diff --git a/CODEOWNERS b/CODEOWNERS index 290a26ec5a16959c3d13f5862973fed533bffe6b..2cc43b65e4e8ed2079838a54d1f7a375d9daec51 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -133,7 +133,7 @@ zh-cn/device-dev/subsystems/subsys-xts-guide.md @Austin23 zh-cn/application-dev/ability/ @RayShih @littlejerry1 @gwang2008 @ccllee @chengxingzhen zh-cn/application-dev/IDL/ @RayShih @littlejerry1 @gwang2008 @ccllee @chengxingzhen zh-cn/application-dev/device-usage-statistics/ @RayShih @shuaytao @wangzhen107 @inter515 -zh-cn/application-dev/ui/ @HelloCrease @qieqiewl @tomatodevboy @niulihua +zh-cn/application-dev/ui/ @HelloCrease @huaweimaxuchu @tomatodevboy @niulihua zh-cn/application-dev/notification/ @RayShih @jayleehw @li-weifeng2 @currydavids zh-cn/application-dev/windowmanager/ @ge-yafang @zhangqiang183 @zhouyaoying @zxg-gitee zh-cn/application-dev/webgl/ @zengyawen @zhangqiang183 @wind_zj @zxg-gitee @@ -369,10 +369,10 @@ zh-cn/application-dev/reference/apis/js-apis-inputconsumer.md @mayunteng_1 @ning zh-cn/application-dev/reference/apis/js-apis-inputdevice.md @mayunteng_1 @ningningW @cococoler @alien0208 zh-cn/application-dev/reference/apis/js-apis-inputevent.md @mayunteng_1 @ningningW @cococoler @alien0208 zh-cn/application-dev/reference/apis/js-apis-inputeventclient.md @mayunteng_1 @ningningW @cococoler @alien0208 -zh-cn/application-dev/reference/apis/js-apis-inputmethod-extension-ability.md @feng-aiwen @ge-yafang @SuperShrimp @murphy1984 -zh-cn/application-dev/reference/apis/js-apis-inputmethod-extension-context.md @feng-aiwen @ge-yafang @SuperShrimp @murphy1984 -zh-cn/application-dev/reference/apis/js-apis-inputmethod.md @feng-aiwen @ge-yafang @SuperShrimp @murphy1984 -zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md @feng-aiwen @ge-yafang @SuperShrimp @murphy1984 +zh-cn/application-dev/reference/apis/js-apis-inputmethod-extension-ability.md @feng-aiwen @ningningW @SuperShrimp @murphy1984 +zh-cn/application-dev/reference/apis/js-apis-inputmethod-extension-context.md @feng-aiwen @ningningW @SuperShrimp @murphy1984 +zh-cn/application-dev/reference/apis/js-apis-inputmethod.md @feng-aiwen @ningningW @SuperShrimp @murphy1984 +zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md @feng-aiwen @ningningW @SuperShrimp @murphy1984 zh-cn/application-dev/reference/apis/js-apis-inputmonitor.md @mayunteng_1 @ningningW @cococoler @alien0208 zh-cn/application-dev/reference/apis/js-apis-intl.md @Buda-Liu @ningningW @budda-wang @yangqing3 zh-cn/application-dev/reference/apis/js-apis-keycode.md @mayunteng_1 @ningningW @cococoler @alien0208 @@ -407,12 +407,12 @@ zh-cn/application-dev/reference/apis/js-apis-prompt.md @huaweimaxuchu @HelloCrea zh-cn/application-dev/reference/apis/js-apis-queue.md @gongjunsong @ge-yafang @flyingwolf @BlackStone zh-cn/application-dev/reference/apis/js-apis-radio.md @zhang-hai-feng @zengyawen @jyh926 @gaoxi785 zh-cn/application-dev/reference/apis/js-apis-reminderAgent.md @jayleehw @RayShih @li-weifeng2 @currydavids -zh-cn/application-dev/reference/apis/js-apis-request.md @feng-aiwen @zengyawen @nagexiucai @murphy1984 +zh-cn/application-dev/reference/apis/js-apis-request.md @feng-aiwen @ningningW @nagexiucai @murphy1984 zh-cn/application-dev/reference/apis/js-apis-resource-manager.md @Buda-Liu @ningningW @budda-wang @yangqing3 zh-cn/application-dev/reference/apis/js-apis-router.md @huaweimaxuchu @HelloCrease @niulihua @tomatodevboy zh-cn/application-dev/reference/apis/js-apis-rpc.md @xuepianpian @RayShih @zhaopeng_gitee @vagrant_world zh-cn/application-dev/reference/apis/js-apis-runninglock.md @aqxyjay @zengyawen @aqxyjay @alien0208 -zh-cn/application-dev/reference/apis/js-apis-screen-lock.md @feng-aiwen @ge-yafang @wangzhangjun @murphy1984 +zh-cn/application-dev/reference/apis/js-apis-screen-lock.md @feng-aiwen @ningningW @wangzhangjun @murphy1984 zh-cn/application-dev/reference/apis/js-apis-screen.md @zhangqiang183 @ge-yafang @zhouyaoying @zxg-gitee zh-cn/application-dev/reference/apis/js-apis-screenshot.md @zhangqiang183 @ge-yafang @zhouyaoying @zxg-gitee zh-cn/application-dev/reference/apis/js-apis-securityLabel.md @panqinxu @zengyawen @bubble_mao @jinhaihw @@ -446,8 +446,8 @@ zh-cn/application-dev/reference/apis/js-apis-system-request.md @zhang-hai-feng @ zh-cn/application-dev/reference/apis/js-apis-system-router.md @huaweimaxuchu @HelloCrease @niulihua @tomatodevboy zh-cn/application-dev/reference/apis/js-apis-system-sensor.md @hellohyh001 @ningningW @butterls @star-wind-snow-and-rain zh-cn/application-dev/reference/apis/js-apis-system-storage.md @feng-aiwen @ge-yafang @gong-a-shi @logic42 -zh-cn/application-dev/reference/apis/js-apis-system-time.md @feng-aiwen @ge-yafang @illybyy @murphy1984 -zh-cn/application-dev/reference/apis/js-apis-system-timer.md @feng-aiwen @ge-yafang @illybyy @murphy1984 +zh-cn/application-dev/reference/apis/js-apis-system-time.md @feng-aiwen @ningningW @illybyy @murphy1984 +zh-cn/application-dev/reference/apis/js-apis-system-timer.md @feng-aiwen @ningningW @illybyy @murphy1984 zh-cn/application-dev/reference/apis/js-apis-system-vibrate.md @hellohyh001 @ningningW @butterls @star-wind-snow-and-rain zh-cn/application-dev/reference/apis/js-apis-telephony-data.md @zhang-hai-feng @zengyawen @jyh926 @gaoxi785 zh-cn/application-dev/reference/apis/js-apis-testRunner.md @inter515 @littlejerry1 @RayShih @inter515 @jiyong @@ -466,7 +466,7 @@ zh-cn/application-dev/reference/apis/js-apis-util.md @gongjunsong @ge-yafang @fl zh-cn/application-dev/reference/apis/js-apis-vector.md @gongjunsong @ge-yafang @flyingwolf @BlackStone zh-cn/application-dev/reference/apis/js-apis-vibrator.md @hellohyh001 @ningningW @butterls @star-wind-snow-and-rain zh-cn/application-dev/reference/apis/js-apis-volumemanager.md @panqinxu @zengyawen @bubble_mao @jinhaihw -zh-cn/application-dev/reference/apis/js-apis-wallpaper.md @feng-aiwen @ge-yafang @wangzhangjun @murphy1984 +zh-cn/application-dev/reference/apis/js-apis-wallpaper.md @feng-aiwen @ningningW @wangzhangjun @murphy1984 zh-cn/application-dev/reference/apis/js-apis-wantAgent.md @littlejerry1 @RayShih @gwang2008 @chengxingzhen zh-cn/application-dev/reference/apis/js-apis-webgl.md @zhangqiang183 @ge-yafang @wind_zj @zxg-gitee zh-cn/application-dev/reference/apis/js-apis-webgl2.md @zhangqiang183 @ge-yafang @wind_zj @zxg-gitee @@ -527,7 +527,7 @@ zh-cn/application-dev/reference/apis/js-apis-fileExtensionInfo.md @panqinxu @zen zh-cn/application-dev/reference/apis/js-apis-freeInstall.md @shuaytao @RayShih @wangzhen107 @inter515 zh-cn/application-dev/reference/apis/js-apis-geoLocationManager.md @cheng_guohong @RayShih @cheng_guohong @xiangkejin123 zh-cn/application-dev/reference/apis/js-apis-hiviewdfx-hiappevent.md @stone2050 @zengyawen @stesen @elsen-liu -zh-cn/application-dev/reference/apis/js-apis-inputmethod-subtype.md @feng-aiwen @ge-yafang @SuperShrimp @murphy1984 +zh-cn/application-dev/reference/apis/js-apis-inputmethod-subtype.md @feng-aiwen @ningningW @SuperShrimp @murphy1984 zh-cn/application-dev/reference/apis/js-apis-installer.md @shuaytao @RayShih @wangzhen107 @inter515 zh-cn/application-dev/reference/apis/js-apis-launcherBundleManager.md @shuaytao @RayShih @wangzhen107 @inter515 zh-cn/application-dev/reference/apis/js-apis-matrix4.md @huaweimaxuchu @HelloCrease @niulihua @tomatodevboy @@ -581,7 +581,7 @@ zh-cn/application-dev/reference/errorcodes/errorcode-hisysevent.md @zengyawen zh-cn/application-dev/reference/errorcodes/errorcode-hiviewdfx-hidebug.md @zengyawen zh-cn/application-dev/reference/errorcodes/errorcode-huks.md @zengyawen zh-cn/application-dev/reference/errorcodes/errorcode-i18n.md @ningningW -zh-cn/application-dev/reference/errorcodes/errorcode-inputmethod-framework.md @ge-yafang +zh-cn/application-dev/reference/errorcodes/errorcode-inputmethod-framework.md @ningningW zh-cn/application-dev/reference/errorcodes/errorcode-multimodalinput.md @ningningW zh-cn/application-dev/reference/errorcodes/errorcode-nfc.md @RayShih zh-cn/application-dev/reference/errorcodes/errorcode-pasteboard.md @ge-yafang @@ -589,7 +589,7 @@ zh-cn/application-dev/reference/errorcodes/errorcode-power.md @zengyawen zh-cn/application-dev/reference/errorcodes/errorcode-preferences.md @ge-yafang zh-cn/application-dev/reference/errorcodes/errorcode-promptAction.md @HelloCrease zh-cn/application-dev/reference/errorcodes/errorcode-reminderAgentManager.md @ningningW -zh-cn/application-dev/reference/errorcodes/errorcode-request.md @zengyawen +zh-cn/application-dev/reference/errorcodes/errorcode-request.md @ningningW zh-cn/application-dev/reference/errorcodes/errorcode-resource-manager.md @ningningW zh-cn/application-dev/reference/errorcodes/errorcode-router.md @HelloCrease zh-cn/application-dev/reference/errorcodes/errorcode-rpc.md @RayShih diff --git a/en/application-dev/IDL/figures/SDKpath.png b/en/application-dev/IDL/figures/SDKpath.png new file mode 100644 index 0000000000000000000000000000000000000000..aa7e33f0246e07fa9f6b8aeb0677c7159dfceb3d Binary files /dev/null and b/en/application-dev/IDL/figures/SDKpath.png differ diff --git a/en/application-dev/IDL/figures/SDKpath2.png b/en/application-dev/IDL/figures/SDKpath2.png new file mode 100644 index 0000000000000000000000000000000000000000..51ac48d2f04d876a204493415b79a5f12e183685 Binary files /dev/null and b/en/application-dev/IDL/figures/SDKpath2.png differ diff --git a/en/application-dev/IDL/idl-guidelines.md b/en/application-dev/IDL/idl-guidelines.md index 5b3a5d7990d4dfe55ddef2ad77ef7dab84033a2e..f165215bad4d663b794c249f8029d33aeeda5863 100644 --- a/en/application-dev/IDL/idl-guidelines.md +++ b/en/application-dev/IDL/idl-guidelines.md @@ -149,198 +149,53 @@ The value of <*formal_param_attr*> can be **in**, **out**, or **inout**, indicat ## How to Develop -### Development Using C++ +### Obtaining IDL +On DevEco Studio, choose **Tools > SDK Manager** to view the local installation path of the OpenHarmony SDK. The following figure uses DevEco Studio 3.0.0.993 as an example. +![SDKpath](./figures/SDKpath.png) +![SDKpath](./figures/SDKpath2.png) -#### Creating an IDL File - - You can use C++ to create IDL files. An example IDL file is as follows: +Go to the local installation path, choose **toolchains > 3.x.x.x** (the folder named after the version number), and check whether the executable file of IDL exists. -```cpp - interface OHOS.IIdlTestService { - int TestIntTransaction([in] int data); - void TestStringTransaction([in] String data); - } -``` +> **NOTE**: Use the SDK of the latest version. The use of an earlier version may cause errors in some statements. -You can run the **./idl -gen-cpp -d dir -c dir/iTest.idl** command (**-d** indicates the output directory) to generate the interface file, stub file, and proxy file in the **dir** directory in the execution environment. The names of the generated interface class files are the same as that of the IDL file, except that the file name extensions are **.h** and **.cpp**. For example, the files generated for **IIdlTestService.idl** are **i_idl_test_service.h**, **idl_test_service_proxy.h**, **idl_test_service_stub.h**, **idl_test_service_proxy.cpp**, and **idl_test_service_stub.cpp**. +If the executable file does not exist, download the SDK package from the mirror as instructed in the [Release Notes](../../release-notes). The following uses the [3.2 Beta3](../../release-notes/OpenHarmony-v3.2-beta3.md#acquiring-source-code-from-mirrors) as an example. -#### Exposing Interfaces on the Server +For details about how to replace the SDK package, see [Guide to Switching to Full SDK](../quick-start/full-sdk-switch-guide.md). -The stub class generated by IDL is an abstract implementation of the interface class and declares all methods in the IDL file. +After obtaining the executable file, perform subsequent development steps based on your scenario. -```cpp -#ifndef OHOS_IDLTESTSERVICESTUB_H -#define OHOS_IDLTESTSERVICESTUB_H -#include -#include "iidl_test_service.h" - -namespace OHOS { -class IdlTestServiceStub : public IRemoteStub { -public: - int OnRemoteRequest( - /* [in] */ uint32_t code, - /* [in] */ MessageParcel& data, - /* [out] */ MessageParcel& reply, - /* [in] */ MessageOption& option) override; - -private: - static constexpr int COMMAND_TEST_INT_TRANSACTION = MIN_TRANSACTION_ID + 0; - static constexpr int COMMAND_TEST_STRING_TRANSACTION = MIN_TRANSACTION_ID + 1; -}; -} // namespace OHOS -#endif // OHOS_IDLTESTSERVICESTUB_H -``` +### Development Using TS -You need to inherit the interface class defined in the IDL file and implement the methods in the class. In addition, you need to register the defined services with SAMGR during service initialization. In the following code snippet, **TestService** inherits the **IdlTestServiceStub** interface class and implements the **TestIntTransaction** and **TestStringTransaction** methods. +#### Creating an IDL File -```cpp -#ifndef OHOS_IPC_TEST_SERVICE_H -#define OHOS_IPC_TEST_SERVICE_H - -#include "hilog/log.h" -#include "log_tags.h" -#include "idl_test_service_stub.h" - -namespace OHOS { -class TestService : public IdlTestServiceStub { -public: - TestService(); - ~TestService(); - static int Instantiate(); - ErrCode TestIntTransaction(int data, int &rep) override; - ErrCode TestStringTransaction(const std::string& data) override; -private: - static constexpr HiviewDFX::HiLogLabel LABEL = { LOG_CORE, LOG_ID_IPC, "TestService" }; -}; -} // namespace OHOS -#endif // OHOS_IPC_TEST_SERVICE_H -``` +You can use TS to create IDL files. -The sample code for registering a service is as follows: + For example, create a file named **IIdlTestService.idl** with the following content: ```cpp -#include "test_service.h" - -#include - -#include "if_system_ability_manager.h" -#include "ipc_debug.h" -#include "ipc_skeleton.h" -#include "iservice_registry.h" -#include "system_ability_definition.h" - -namespace OHOS { -using namespace OHOS::HiviewDFX; - -int TestService::Instantiate() -{ - ZLOGI(LABEL, "%{public}s call in", __func__); - auto saMgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); - if (saMgr == nullptr) { - ZLOGE(LABEL, "%{public}s:fail to get Registry", __func__); - return -ENODEV; - } - - sptr newInstance = new TestService(); - int result = saMgr->AddSystemAbility(IPC_TEST_SERVICE, newInstance); - ZLOGI(LABEL, "%{public}s: IPC_TEST_SERVICE result = %{public}d", __func__, result); - return result; -} - -TestService::TestService() -{ -} - -TestService::~TestService() -{ -} - -ErrCode TestService::TestIntTransaction(int data, int &rep) -{ - ZLOGE(LABEL, " TestService:read from client data = %{public}d", data); - rep = data + data; - return ERR_NONE; -} - -ErrCode TestService::TestStringTransaction(const std::string &data) -{ - ZLOGE(LABEL, "TestService:read string from client data = %{public}s", data.c_str()); - return data.size(); -} -} // namespace OHOS + interface OHOS.IIdlTestService { + int TestIntTransaction([in] int data); + void TestStringTransaction([in] String data); + } ``` -#### Calling Methods from the Client for IPC - -The C++ client obtains the service proxy defined in the system through SAMGR and then invokes the interface provided by the proxy. The sample code is as follows: +Run the **idl -gen-ts -d *dir* -c dir/IIdlTestService.idl** command in the folder where the executable file is located. -```cpp -#include "test_client.h" - -#include "if_system_ability_manager.h" -#include "ipc_debug.h" -#include "ipc_skeleton.h" -#include "iservice_registry.h" -#include "system_ability_definition.h" - -namespace OHOS { -int TestClient::ConnectService() -{ - auto saMgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); - if (saMgr == nullptr) { - ZLOGE(LABEL, "get registry fail"); - return -1; - } +-*dir* next to **d** is the target output folder. For example, if the target output folder is **IIdlTestServiceTs**, run the **idl -gen-ts -d IIdlTestServiceTs -c IIdlTestServiceTs/IIdlTestService.idl** command in the folder where the executable file is located. The interface file, stub file, and proxy file are generated in the *dir* directory (**IIdlTestServiceTs** directory in this example) in the execution environment. - sptr object = saMgr->GetSystemAbility(IPC_TEST_SERVICE); - if (object != nullptr) { - ZLOGE(LABEL, "Got test Service object"); - testService_ = (new (std::nothrow) IdlTestServiceProxy(object)); - } +> **NOTE**: The generated interface class file name must be the same as that of the .idl file. Otherwise, an error occurs during code generation. - if (testService_ == nullptr) { - ZLOGE(LABEL, "Could not find Test Service!"); - return -1; - } - - return 0; -} +For example, for an .idl file named **IIdlTestService.idl** and target output directory named **IIdlTestServiceTs**, the directory structure is similar to the following: -void TestClient::StartIntTransaction() -{ - if (testService_ != nullptr) { - ZLOGE(LABEL, "StartIntTransaction"); - [[maybe_unused]] int result = 0; - testService_->TestIntTransaction(1234, result); // 1234 : test number - ZLOGE(LABEL, "Rec result from server %{public}d.", result); - } -} - -void TestClient::StartStringTransaction() -{ - if (testService_ != nullptr) { - ZLOGI(LABEL, "StartIntTransaction"); - testService_->TestStringTransaction("IDL Test"); - } -} -} // namespace OHOS ``` - -### Development Using TS - -#### Creating an IDL File - - You can use TS to create IDL files. An example IDL file is as follows: - -```ts - interface OHOS.IIdlTestService { - int TestIntTransaction([in] int data); - void TestStringTransaction([in] String data); - } +├── IIdlTestServiceTs # IDL code output folder +│ ├── i_idl_test_service.ts # File generated +│ ├── idl_test_service_proxy.ts # File generated +│ ├── idl_test_service_stub.ts # File generated +│ └── IIdlTestService.idl # Constructed .idl file +└── idl.exe # Executable file of IDL ``` -Run the **./idl -c IIdlTestService.idl -gen-ts -d /data/ts/** command (**-d** indicates the output directory) to generate the interface file, stub file, and proxy file in the **/data/ts** directory in the execution environment. The names of the generated interface class files are the same as that of the IDL file, except that the file name extension is **.ts**. For example, the files generated for the **IIdlTestService.idl** file are **i_idl_test_service.ts**, **idl_test_service_proxy.ts**, and **idl_test_service_stub.ts**. - #### Exposing Interfaces on the Server The stub class generated by IDL is an abstract implementation of the interface class and declares all methods in the IDL file. @@ -356,8 +211,8 @@ export default class IdlTestServiceStub extends rpc.RemoteObject implements IIdl super(des); } - onRemoteRequest(code: number, data, reply, option): boolean { - console.log("onRemoteRequest called, code = " + code); + async onRemoteRequestEx(code: number, data, reply, option): Promise { + console.log("onRemoteRequestEx called, code = " + code); switch(code) { case IdlTestServiceStub.COMMAND_TEST_INT_TRANSACTION: { let _data = data.readInt(); @@ -529,137 +384,3 @@ export default class MySequenceable { private str; } ``` - -## How to Develop for Interworking Between C++ and TS - -### TS Proxy and C++ Stub Development - -#### C++ Service Object - -1. Use C++ to construct an IDL file and run commands to generate interfaces, stub files, and proxy files. - -2. Create a service object, inherit the interface class defined in the C++ stub file, and implement the methods in the class. An example is as follows: - - ```cpp - class IdlTestServiceImpl : public IdlTestServiceStub { - public: - IdlTestServiceImpl() = default; - virtual ~IdlTestServiceImpl() = default; - - ErrCode TestIntTransaction(int _data, int& result) override - { - result = 256; - return ERR_OK; - } - - ErrCode TestStringTransaction(const std::string& _data) override - { - return ERR_OK; - } - }; - ``` - -#### Native APIs in C++ - -C++ provides C++ service objects to TS in the format of native APIs. For example, C++ provides a **GetNativeObject** method, which is used to create an **IdlTestServiceImpl** instance. Using the **NAPI_ohos_rpc_CreateJsRemoteObject** method, you can create a JS remote object for the TS application. - -```cpp -NativeValue* GetNativeObject(NativeEngine& engine, NativeCallbackInfo& info) -{ - sptr impl = new IdlTestServiceImpl(); - napi_value napiRemoteObject = NAPI_ohos_rpc_CreateJsRemoteObject(reinterpret_cast(&engine), impl); - NativeValue* nativeRemoteObject = reinterpret_cast(napiRemoteObject); - return nativeRemoteObject; -} -``` - -#### TS Proxy Object - -Use TS to construct an IDL file and run commands to generate interfaces, stub files, and proxy files. An example proxy file is as follows: - -```ts -import {testIntTransactionCallback} from "./i_idl_test_service"; -import {testStringTransactionCallback} from "./i_idl_test_service"; -import IIdlTestService from "./i_idl_test_service"; -import rpc from "@ohos.rpc"; - -export default class IdlTestServiceProxy implements IIdlTestService { - constructor(proxy) { - this.proxy = proxy; - } - - testIntTransaction(data: number, callback: testIntTransactionCallback): void - { - let _option = new rpc.MessageOption(); - let _data = new rpc.MessageParcel(); - let _reply = new rpc.MessageParcel(); - _data.writeInt(data); - this.proxy.sendRequest(IdlTestServiceProxy.COMMAND_TEST_INT_TRANSACTION, _data, _reply, _option).then(function(result) { - if (result.errCode == 0) { - let _errCode = result.reply.readInt(); - if (_errCode != 0) { - let _returnValue = undefined; - callback(_errCode, _returnValue); - return; - } - let _returnValue = result.reply.readInt(); - callback(_errCode, _returnValue); - } else { - console.log('sendRequest failed, errCode: ' + result.errCode); - } - }) - } - - testStringTransaction(data: string, callback: testStringTransactionCallback): void - { - let _option = new rpc.MessageOption(); - let _data = new rpc.MessageParcel(); - let _reply = new rpc.MessageParcel(); - _data.writeString(data); - this.proxy.sendRequest(IdlTestServiceProxy.COMMAND_TEST_STRING_TRANSACTION, _data, _reply, _option).then(function(result) { - if (result.errCode == 0) { - let _errCode = result.reply.readInt(); - callback(_errCode); - } else { - console.log('sendRequest failed, errCode: ' + result.errCode); - } - }) - } - - static readonly COMMAND_TEST_INT_TRANSACTION = 1; - static readonly COMMAND_TEST_STRING_TRANSACTION = 2; - private proxy -} -``` - -#### Interworking Between TS and C++ Applications - -1. The TS application invokes the native API to obtain the remote C++ service object. -2. Construct a TS proxy and transfers the remote C++ service object to it. -3. Use the TS proxy to call the method declared in the IDL file to implement the interworking between the TS proxy and C++ stub. The following is an example: - -```ts -import IdlTestServiceProxy from './idl_test_service_proxy' -import nativeMgr from 'nativeManager'; - -function testIntTransactionCallback(errCode: number, returnValue: number) -{ - console.log('errCode: ' + errCode + ' returnValue: ' + returnValue); -} - -function testStringTransactionCallback(errCode: number) -{ - console.log('errCode: ' + errCode); -} - -function jsProxyTriggerCppStub() -{ - let nativeObj = nativeMgr.GetNativeObject(); - let tsProxy = new IdlTestServiceProxy(nativeObj); - // Call testIntTransaction. - tsProxy.testIntTransaction(10, testIntTransactionCallback); - - // Call testStringTransaction. - tsProxy.testStringTransaction('test', testIntTransactionCallback); -} -``` diff --git a/en/application-dev/ability/Readme-EN.md b/en/application-dev/ability-deprecated/Readme-EN.md similarity index 88% rename from en/application-dev/ability/Readme-EN.md rename to en/application-dev/ability-deprecated/Readme-EN.md index 6a11f497d375874b96bfed77a77dce033821d6e3..5c803a47558bbd52765090debe162dbecd996ae6 100644 --- a/en/application-dev/ability/Readme-EN.md +++ b/en/application-dev/ability-deprecated/Readme-EN.md @@ -1,5 +1,8 @@ # Ability Development +> **NOTE**
+> This folder is deprecated. Read [Application Models](../application-models/Readme-EN.md) instead. + - [Ability Framework Overview](ability-brief.md) - [Context Usage](context-userguide.md) - FA Model diff --git a/en/application-dev/ability/ability-assistant-guidelines.md b/en/application-dev/ability-deprecated/ability-assistant-guidelines.md similarity index 90% rename from en/application-dev/ability/ability-assistant-guidelines.md rename to en/application-dev/ability-deprecated/ability-assistant-guidelines.md index 4d7b0edb2b91ca07123ad7495f4d64fc2f525e1d..d2e45f5d5492c23bcce0ec48674427df2cb2b765 100644 --- a/en/application-dev/ability/ability-assistant-guidelines.md +++ b/en/application-dev/ability-deprecated/ability-assistant-guidelines.md @@ -73,10 +73,10 @@ The ability assistant enables you to start applications, atomic services, and te | -a/--all | - | Prints ability information in all missions. | | -l/--mission-list | type (All logs are printed if this parameter is left unspecified.)| Prints mission stack information.
The following values are available for **type**:
- NORMAL
- DEFAULT_STANDARD
- DEFAULT_SINGLE
- LAUNCHER | | -e/--extension | elementName | Prints extended component information. | - | -u/--userId | UserId | Prints stack information of a specified user ID. This parameter must be used together with other parameters.
Example commands: aa **dump -a -u 100** and **aa dump -d -u 100**. | - | -d/--data | - | Prints Data ability information. | - | -i/--ability | AbilityRecord ID | Prints detailed information about a specified ability. | - | -c/--client | - | Prints detailed ability information. This parameter must be used together with other parameters.
Example commands: **aa dump -a -c** and **aa dump -i 21 -c**. | + | -u/--userId | UserId | Prints stack information of a specified user ID. This parameter must be used together with other parameters.
Example commands: aa **dump -a -u 100** and **aa dump -d -u 100**.| + | -d/--data | - | Prints Data ability information. | + | -i/--ability | AbilityRecord ID | Prints detailed information about a specified ability. | + | -c/--client | - | Prints detailed ability information. This parameter must be used together with other parameters.
Example commands: **aa dump -a -c** and **aa dump -i 21 -c**.| **Method** diff --git a/en/application-dev/ability/ability-brief.md b/en/application-dev/ability-deprecated/ability-brief.md similarity index 100% rename from en/application-dev/ability/ability-brief.md rename to en/application-dev/ability-deprecated/ability-brief.md diff --git a/en/application-dev/ability/ability-delegator.md b/en/application-dev/ability-deprecated/ability-delegator.md similarity index 96% rename from en/application-dev/ability/ability-delegator.md rename to en/application-dev/ability-deprecated/ability-delegator.md index 5fd0293efde6d6d264be28b6c30123e7697bee6b..b32d472176a5b6270fece94ae4bd8ae9a7bd73fa 100644 --- a/en/application-dev/ability/ability-delegator.md +++ b/en/application-dev/ability-deprecated/ability-delegator.md @@ -46,19 +46,19 @@ For details about how to use DevEco Studio to start the test framework, see [Ope ## Introduction to TestRunner -**TestRunner** is the entry class of the test framework test process. When the test process is started, the system calls related APIs in **TestRunner**. You need to inherit this class and override the **onPrepare** and **onRun** APIs. When creating an application template, DevEco Studio initializes the default **TestRunner** and starts the default **TestAbility** in the **onRun** API. You can modify the test code of **TestAbility** or override **onPrepare** and **onRun** in **TestRunner** to implement your own test code. For details, see [TestRunner](../reference/apis/js-apis-testRunner.md). +**TestRunner** is the entry class of the test framework test process. When the test process is started, the system calls related APIs in **TestRunner**. You need to inherit this class and override the **onPrepare** and **onRun** APIs. When creating an application template, DevEco Studio initializes the default **TestRunner** and starts the default **TestAbility** in the **onRun** API. You can modify the test code of **TestAbility** or override **onPrepare** and **onRun** in **TestRunner** to implement your own test code. For details, see [TestRunner](../reference/apis/js-apis-application-testRunner.md). ## Introduction to AbilityDelegatorRegistry -**AbilityDelegatorRegistry** is the **AbilityDelegator** repository class provided by the test framework. You can use **AbilityDelegatorRegistry** to obtain an **AbilityDelegator** instance and the input and generated parameters **AbilityDelegatorArgs** during the test. You can use **AbilityDelegator** to invoke the function set provided by the test framework for testing and verification. For details, see [AbilityDelegatorRegistry](../reference/apis/js-apis-abilityDelegatorRegistry.md). +**AbilityDelegatorRegistry** is the **AbilityDelegator** repository class provided by the test framework. You can use **AbilityDelegatorRegistry** to obtain an **AbilityDelegator** instance and the input and generated parameters **AbilityDelegatorArgs** during the test. You can use **AbilityDelegator** to invoke the function set provided by the test framework for testing and verification. For details, see [AbilityDelegatorRegistry](../reference/apis/js-apis-application-abilityDelegatorRegistry.md). ## Introduction to AbilityDelegatorArgs -**AbilityDelegatorArgs** is a test parameter class provided by the test framework. You can use **AbilityDelegatorArgs** to obtain the parameters passed and generated during the test. For details, see [AbilityDelegatorArgs](../reference/apis/js-apis-application-abilityDelegatorArgs.md). +**AbilityDelegatorArgs** is a test parameter class provided by the test framework. You can use **AbilityDelegatorArgs** to obtain the parameters passed and generated during the test. For details, see [AbilityDelegatorArgs](../reference/apis/js-apis-inner-application-abilityDelegatorArgs.md). ## Introduction to AbilityMonitor -**AbilityMonitor** is provided by the test framework for binding to and listening for abilities. You can use **AbilityMonitor** to bind to an **Ability** instance and add **AbilityMonitor** to the listening list. When **AbilityMonitor** is bound to an ability, the creation and lifecycle changes of the ability will trigger the related callback in **AbilityMonitor**. You can test and verify the ability in these callbacks. For details, see [AbilityMonitor](../reference/apis/js-apis-application-abilityMonitor.md). +**AbilityMonitor** is provided by the test framework for binding to and listening for abilities. You can use **AbilityMonitor** to bind to an **Ability** instance and add **AbilityMonitor** to the listening list. When **AbilityMonitor** is bound to an ability, the creation and lifecycle changes of the ability will trigger the related callback in **AbilityMonitor**. You can test and verify the ability in these callbacks. For details, see [AbilityMonitor](../reference/apis/js-apis-inner-application-abilityMonitor.md). **Example** @@ -131,7 +131,7 @@ abilityDelegator.startAbility(want, (err, data) => { ### Scheduling the Ability Lifecycle -**AbilityDelegator** provides APIs to display and schedule the ability lifecycle and supports the foreground and background. It works with **AbilityMonitor** to listen for the ability lifecycle. For details, see [AbilityDelegator](../reference/apis/js-apis-application-abilityDelegator.md). +**AbilityDelegator** provides APIs to display and schedule the ability lifecycle and supports the foreground and background. It works with **AbilityMonitor** to listen for the ability lifecycle. For details, see [AbilityDelegator](../reference/apis/js-apis-inner-application-abilityDelegator.md). ### Running a Shell Command diff --git a/en/application-dev/ability/context-userguide.md b/en/application-dev/ability-deprecated/context-userguide.md similarity index 94% rename from en/application-dev/ability/context-userguide.md rename to en/application-dev/ability-deprecated/context-userguide.md index 17fd6b5eb780f656ada33e94a6d1584ebbc55e5c..ac65d92cb9422d040ff16cab1640cd1f9bed5d5c 100644 --- a/en/application-dev/ability/context-userguide.md +++ b/en/application-dev/ability-deprecated/context-userguide.md @@ -4,12 +4,12 @@ **Context** provides the capability of obtaining contextual information of an application. -The OpenHarmony application framework has two models: Feature Ability (FA) model and stage model. Correspondingly, there are two sets of context mechanisms. **application/BaseContext** is a common context base class. It uses the **stageMode** attribute to specify whether the context is used for the stage model. - -- FA model - - Only the methods in **app/Context** can be used for the context in the FA model. Both the application-level context and ability-level context are instances of this type. If an ability-level method is invoked in the application-level context, an error occurs. Therefore, you must pay attention to the actual meaning of the **Context** instance. + The OpenHarmony application framework has two models: Feature Ability (FA) model and stage model. Correspondingly, there are two sets of context mechanisms. **application/BaseContext** is a common context base class. It uses the **stageMode** attribute to specify whether the context is used for the stage model. +- FA model + +Only the methods in **app/Context** can be used for the context in the FA model. Both the application-level context and ability-level context are instances of this type. If an ability-level method is invoked in the application-level context, an error occurs. Therefore, you must pay attention to the actual meaning of the **Context** instance. + - Stage model The stage model has the following types of contexts: **application/Context**, **application/ApplicationContext**, **application/AbilityStageContext**, **application/ExtensionContext**, **application/AbilityContext**, and **application/FormExtensionContext**. For details about these contexts and how to use them, see [Context in the Stage Model](#context-in-the-stage-model). @@ -239,7 +239,7 @@ export default class MainAbility extends Ability { ### application/FormExtensionContext -For details, see [FormExtensionContext](../reference/apis/js-apis-formextensioncontext.md). +For details, see [FormExtensionContext](../reference/apis/js-apis-inner-application-formExtensionContext.md). ### Obtaining the Context on an ArkTS Page diff --git a/en/application-dev/ability/continuationmanager.md b/en/application-dev/ability-deprecated/continuationmanager.md similarity index 99% rename from en/application-dev/ability/continuationmanager.md rename to en/application-dev/ability-deprecated/continuationmanager.md index 20c272e75a16c2bcf14d567c1cbc7afa28a3a69a..0ba79f95acf165d604d8f854832703d7fc4af3f8 100644 --- a/en/application-dev/ability/continuationmanager.md +++ b/en/application-dev/ability-deprecated/continuationmanager.md @@ -188,7 +188,7 @@ As the entry of the ability continuation capability, **continuationManager** is } ``` - The preceding multi-device collaboration operation is performed across devices in the stage model. For details about this operation in the FA model, see [Page Ability Development](https://gitee.com/openharmony/docs/blob/master/en/application-dev/ability/fa-pageability.md). + The preceding multi-device collaboration operation is performed across devices in the stage model. For details about this operation in the FA model, see [Page Ability Development](fa-pageability.md). You can also instruct the device selection module to update the device connection state. The sample code is as follows: diff --git a/en/application-dev/ability/fa-brief.md b/en/application-dev/ability-deprecated/fa-brief.md similarity index 96% rename from en/application-dev/ability/fa-brief.md rename to en/application-dev/ability-deprecated/fa-brief.md index 3788fe994f9f984449c28bdb6f15ff96adb29c21..5ad79cfe259f1fb9cf865b9d6f496c0f31c47ae0 100644 --- a/en/application-dev/ability/fa-brief.md +++ b/en/application-dev/ability-deprecated/fa-brief.md @@ -38,4 +38,6 @@ When an ability is started, an application process as well as a thread for this For details about the project directory structure of the FA model, see [OpenHarmony Project Overview](https://developer.harmonyos.com/en/docs/documentation/doc-guides/ohos-project-overview-0000001218440650#section4154183910141). -For details about how to configure the application package structure of the FA model, see [Application Package Structure Configuration File](../quick-start/package-structure.md). +For details about how to configure the application package structure of the FA model, see [Application Package Structure Configuration File](../quick-start/application-configuration-file-overview-fa.md). + + \ No newline at end of file diff --git a/en/application-dev/ability/fa-dataability.md b/en/application-dev/ability-deprecated/fa-dataability.md similarity index 99% rename from en/application-dev/ability/fa-dataability.md rename to en/application-dev/ability-deprecated/fa-dataability.md index e3fd895c2a3530aa0f8aa85919657a62f3f72c06..8d94e8f225a3966d676e6c7631968c25f5634531 100644 --- a/en/application-dev/ability/fa-dataability.md +++ b/en/application-dev/ability-deprecated/fa-dataability.md @@ -148,7 +148,7 @@ The basic dependency packages include: 1. Create a Data ability helper. - For details about the APIs provided by **DataAbilityHelper**, see [DataAbilityHelper Module](../reference/apis/js-apis-dataAbilityHelper.md). + For details about the APIs provided by **DataAbilityHelper**, see [DataAbilityHelper Module](../reference/apis/js-apis-inner-ability-dataAbilityHelper.md). ```js // Different from the URI defined in the config.json file, the URI passed in the parameter has an extra slash (/), because there is a DeviceID parameter between the second and the third slash (/). import featureAbility from '@ohos.ability.featureAbility' diff --git a/en/application-dev/ability/fa-formability.md b/en/application-dev/ability-deprecated/fa-formability.md similarity index 99% rename from en/application-dev/ability/fa-formability.md rename to en/application-dev/ability-deprecated/fa-formability.md index 377d5e4b8faeda387f4eda5a6506d103c3d76395..a91ca4b9baf98f32bad7ea081024d74949baf726 100644 --- a/en/application-dev/ability/fa-formability.md +++ b/en/application-dev/ability-deprecated/fa-formability.md @@ -43,7 +43,7 @@ The table below describes the **LifecycleForm** APIs, which represent the lifecy | onDestroy(formId: string): void | Called to notify the widget provider that a widget has been destroyed. | | onAcquireFormState?(want: Want): formInfo.FormState | Called to instruct the widget provider to receive the status query result of a widget. | -The table below describes the **FormProvider** APIs. For details, see [FormProvider](../reference/apis/js-apis-formprovider.md). +The table below describes the **FormProvider** APIs. For details, see [FormProvider](../reference/apis/js-apis-application-formProvider.md). **Table 2** FormProvider APIs diff --git a/en/application-dev/ability/fa-pageability.md b/en/application-dev/ability-deprecated/fa-pageability.md similarity index 99% rename from en/application-dev/ability/fa-pageability.md rename to en/application-dev/ability-deprecated/fa-pageability.md index f6eb70595322d3f3308c00afcc9a5907ff87054f..2f4741b80ef771c9b478d32a7713b597fb65c2d4 100644 --- a/en/application-dev/ability/fa-pageability.md +++ b/en/application-dev/ability-deprecated/fa-pageability.md @@ -61,7 +61,7 @@ By default, **singleton** is used. | API | Description | | --------------------------------------------------- | --------------- | -| void startAbility(parameter: StartAbilityParameter) | Starts an ability. | +| void startAbility(parameter: StartAbilityParameter) | Starts an ability. | | Context getContext(): | Obtains the application context.| | void terminateSelf() | Terminates the ability. | | bool hasWindowFocus() | Checks whether the ability has focus. | diff --git a/en/application-dev/ability/fa-serviceability.md b/en/application-dev/ability-deprecated/fa-serviceability.md similarity index 99% rename from en/application-dev/ability/fa-serviceability.md rename to en/application-dev/ability-deprecated/fa-serviceability.md index 3cd2620cfdde502f879e1321e782f2d872e0a77d..cf766f35f72c76eb738d3b168d39cbcba0f21da3 100644 --- a/en/application-dev/ability/fa-serviceability.md +++ b/en/application-dev/ability-deprecated/fa-serviceability.md @@ -22,7 +22,9 @@ The differences between **onCommand()** and **onConnect()** are as follows: ### Creating and Registering a Service Ability -1. Override the Service ability-related lifecycle callbacks to implement your own logic for processing interaction requests. +1. Override the Service ability-related lifecycle callbacks to implement your own logic for processing interaction requests. + + ```ts export default { @@ -45,7 +47,7 @@ The differences between **onCommand()** and **onConnect()** are as follows: } } ``` - + 2. Register a Service ability. Declare the Service ability in the **config.json** file by setting its **type** attribute to **service**. diff --git a/en/application-dev/ability/figures/AbilityComponentInstanceMission.png b/en/application-dev/ability-deprecated/figures/AbilityComponentInstanceMission.png similarity index 100% rename from en/application-dev/ability/figures/AbilityComponentInstanceMission.png rename to en/application-dev/ability-deprecated/figures/AbilityComponentInstanceMission.png diff --git a/en/application-dev/ability/figures/ExtensionAbility.png b/en/application-dev/ability-deprecated/figures/ExtensionAbility.png similarity index 100% rename from en/application-dev/ability/figures/ExtensionAbility.png rename to en/application-dev/ability-deprecated/figures/ExtensionAbility.png diff --git a/en/application-dev/ability/figures/aa-dump-a.PNG b/en/application-dev/ability-deprecated/figures/aa-dump-a.PNG similarity index 100% rename from en/application-dev/ability/figures/aa-dump-a.PNG rename to en/application-dev/ability-deprecated/figures/aa-dump-a.PNG diff --git a/en/application-dev/ability/figures/aa-dump-i.PNG b/en/application-dev/ability-deprecated/figures/aa-dump-i.PNG similarity index 100% rename from en/application-dev/ability/figures/aa-dump-i.PNG rename to en/application-dev/ability-deprecated/figures/aa-dump-i.PNG diff --git a/en/application-dev/ability/figures/aa-dump-l.PNG b/en/application-dev/ability-deprecated/figures/aa-dump-l.PNG similarity index 100% rename from en/application-dev/ability/figures/aa-dump-l.PNG rename to en/application-dev/ability-deprecated/figures/aa-dump-l.PNG diff --git a/en/application-dev/ability/figures/contextIntroduction.png b/en/application-dev/ability-deprecated/figures/contextIntroduction.png similarity index 100% rename from en/application-dev/ability/figures/contextIntroduction.png rename to en/application-dev/ability-deprecated/figures/contextIntroduction.png diff --git a/en/application-dev/ability/figures/continuation-info.png b/en/application-dev/ability-deprecated/figures/continuation-info.png similarity index 100% rename from en/application-dev/ability/figures/continuation-info.png rename to en/application-dev/ability-deprecated/figures/continuation-info.png diff --git a/en/application-dev/ability/figures/continuationManager.png b/en/application-dev/ability-deprecated/figures/continuationManager.png similarity index 100% rename from en/application-dev/ability/figures/continuationManager.png rename to en/application-dev/ability-deprecated/figures/continuationManager.png diff --git a/en/application-dev/ability/figures/fa-dataability-uri.png b/en/application-dev/ability-deprecated/figures/fa-dataability-uri.png similarity index 100% rename from en/application-dev/ability/figures/fa-dataability-uri.png rename to en/application-dev/ability-deprecated/figures/fa-dataability-uri.png diff --git a/en/application-dev/ability/figures/fa-form-example.png b/en/application-dev/ability-deprecated/figures/fa-form-example.png similarity index 100% rename from en/application-dev/ability/figures/fa-form-example.png rename to en/application-dev/ability-deprecated/figures/fa-form-example.png diff --git a/en/application-dev/ability/figures/fa-pageAbility-lifecycle.png b/en/application-dev/ability-deprecated/figures/fa-pageAbility-lifecycle.png similarity index 100% rename from en/application-dev/ability/figures/fa-pageAbility-lifecycle.png rename to en/application-dev/ability-deprecated/figures/fa-pageAbility-lifecycle.png diff --git a/en/application-dev/ability/figures/fa-threading-model.png b/en/application-dev/ability-deprecated/figures/fa-threading-model.png similarity index 100% rename from en/application-dev/ability/figures/fa-threading-model.png rename to en/application-dev/ability-deprecated/figures/fa-threading-model.png diff --git a/en/application-dev/ability/figures/favsstage.png b/en/application-dev/ability-deprecated/figures/favsstage.png similarity index 100% rename from en/application-dev/ability/figures/favsstage.png rename to en/application-dev/ability-deprecated/figures/favsstage.png diff --git a/en/application-dev/ability/figures/lifecycle.png b/en/application-dev/ability-deprecated/figures/lifecycle.png similarity index 100% rename from en/application-dev/ability/figures/lifecycle.png rename to en/application-dev/ability-deprecated/figures/lifecycle.png diff --git a/en/application-dev/ability/figures/page-ability-lifecycle.png b/en/application-dev/ability-deprecated/figures/page-ability-lifecycle.png similarity index 100% rename from en/application-dev/ability/figures/page-ability-lifecycle.png rename to en/application-dev/ability-deprecated/figures/page-ability-lifecycle.png diff --git a/en/application-dev/ability/figures/stage-call.png b/en/application-dev/ability-deprecated/figures/stage-call.png similarity index 100% rename from en/application-dev/ability/figures/stage-call.png rename to en/application-dev/ability-deprecated/figures/stage-call.png diff --git a/en/application-dev/ability/figures/stageabilitylifecyclecallback.png b/en/application-dev/ability-deprecated/figures/stageabilitylifecyclecallback.png similarity index 100% rename from en/application-dev/ability/figures/stageabilitylifecyclecallback.png rename to en/application-dev/ability-deprecated/figures/stageabilitylifecyclecallback.png diff --git a/en/application-dev/ability/figures/stageconcept.png b/en/application-dev/ability-deprecated/figures/stageconcept.png similarity index 100% rename from en/application-dev/ability/figures/stageconcept.png rename to en/application-dev/ability-deprecated/figures/stageconcept.png diff --git a/en/application-dev/ability/figures/stagedesign.png b/en/application-dev/ability-deprecated/figures/stagedesign.png similarity index 100% rename from en/application-dev/ability/figures/stagedesign.png rename to en/application-dev/ability-deprecated/figures/stagedesign.png diff --git a/en/application-dev/ability/figures/stageprocessmodel.png b/en/application-dev/ability-deprecated/figures/stageprocessmodel.png similarity index 100% rename from en/application-dev/ability/figures/stageprocessmodel.png rename to en/application-dev/ability-deprecated/figures/stageprocessmodel.png diff --git a/en/application-dev/ability/public_sys-resources/icon-caution.gif b/en/application-dev/ability-deprecated/public_sys-resources/icon-caution.gif similarity index 100% rename from en/application-dev/ability/public_sys-resources/icon-caution.gif rename to en/application-dev/ability-deprecated/public_sys-resources/icon-caution.gif diff --git a/en/application-dev/ability/public_sys-resources/icon-danger.gif b/en/application-dev/ability-deprecated/public_sys-resources/icon-danger.gif similarity index 100% rename from en/application-dev/ability/public_sys-resources/icon-danger.gif rename to en/application-dev/ability-deprecated/public_sys-resources/icon-danger.gif diff --git a/en/application-dev/ability/public_sys-resources/icon-note.gif b/en/application-dev/ability-deprecated/public_sys-resources/icon-note.gif similarity index 100% rename from en/application-dev/ability/public_sys-resources/icon-note.gif rename to en/application-dev/ability-deprecated/public_sys-resources/icon-note.gif diff --git a/en/application-dev/ability/public_sys-resources/icon-notice.gif b/en/application-dev/ability-deprecated/public_sys-resources/icon-notice.gif similarity index 100% rename from en/application-dev/ability/public_sys-resources/icon-notice.gif rename to en/application-dev/ability-deprecated/public_sys-resources/icon-notice.gif diff --git a/en/application-dev/ability/public_sys-resources/icon-tip.gif b/en/application-dev/ability-deprecated/public_sys-resources/icon-tip.gif similarity index 100% rename from en/application-dev/ability/public_sys-resources/icon-tip.gif rename to en/application-dev/ability-deprecated/public_sys-resources/icon-tip.gif diff --git a/en/application-dev/ability/public_sys-resources/icon-warning.gif b/en/application-dev/ability-deprecated/public_sys-resources/icon-warning.gif similarity index 100% rename from en/application-dev/ability/public_sys-resources/icon-warning.gif rename to en/application-dev/ability-deprecated/public_sys-resources/icon-warning.gif diff --git a/en/application-dev/ability/stage-ability-continuation.md b/en/application-dev/ability-deprecated/stage-ability-continuation.md similarity index 98% rename from en/application-dev/ability/stage-ability-continuation.md rename to en/application-dev/ability-deprecated/stage-ability-continuation.md index 701b730a833a7b97f00398746cddae4d2856a248..7a11716f18f2c8b866e1fd11722ae0e07a32d4ce 100644 --- a/en/application-dev/ability/stage-ability-continuation.md +++ b/en/application-dev/ability-deprecated/stage-ability-continuation.md @@ -301,11 +301,13 @@ In the ability continuation scenario, the distributed data object is used to syn ### Restrictions -1. The continuation must be performed between the same ability, which means the same bundle name, module name, and ability name. For details, see [Application Package Structure Configuration File](../quick-start/stage-structure.md). +1. The continuation must be performed between the same ability, which means the same bundle name, module name, and ability name. For details, see [Application Package Structure Configuration File](../quick-start/module-configuration-file.md). 2. Currently, the application can only implement the continuation capability. The continuation action must be initiated by the system. ### Best Practice - For better user experience, you are advised to use the **wantParam** parameter to transmit data smaller than 100 KB and use distributed objects to transmit data larger than 100 KB. +For better user experience, you are advised to use the **wantParam** parameter to transmit data smaller than 100 KB and use distributed objects to transmit data larger than 100 KB. + + \ No newline at end of file diff --git a/en/application-dev/ability/stage-ability.md b/en/application-dev/ability-deprecated/stage-ability.md similarity index 98% rename from en/application-dev/ability/stage-ability.md rename to en/application-dev/ability-deprecated/stage-ability.md index d09585b25531556cfbee2ab5cbd45c72191aa8a4..97ba5cff5cc083563f1d0f78c7b499bff2cd2050 100644 --- a/en/application-dev/ability/stage-ability.md +++ b/en/application-dev/ability-deprecated/stage-ability.md @@ -1,6 +1,6 @@ # Ability Development ## When to Use -Ability development in the [stage model](stage-brief.md) is significantly different from that in the FA model. The stage model requires you to declare the application package structure in the **module.json5** and **app.json5** files during application development. For details about the configuration file, see [Application Package Structure Configuration File](../quick-start/stage-structure.md). To develop an ability based on the stage model, implement the following logic: +Ability development in the [stage model](stage-brief.md) is significantly different from that in the FA model. The stage model requires you to declare the application package structure in the **module.json5** and **app.json5** files during application development. For details about the configuration file, see [Application Package Structure Configuration File](../quick-start/application-package-structure-stage.md). To develop an ability based on the stage model, implement the following logic: - Create an ability that supports screen viewing and human-machine interaction. You must implement the following scenarios: ability lifecycle callbacks, obtaining ability configuration, requesting permissions, and notifying environment changes. - Start an ability. You need to implement ability startup on the same device, on a remote device, or with a specified UI page. - Call abilities. For details, see [Call Development](stage-call.md). @@ -30,7 +30,7 @@ By default, the singleton mode is used. The following is an example of the **mod ``` ## Creating an Ability ### Available APIs -The table below describes the APIs provided by the **AbilityStage** class, which has the **context** attribute. For details about the APIs, see [AbilityStage](../reference/apis/js-apis-application-abilitystage.md). +The table below describes the APIs provided by the **AbilityStage** class, which has the **context** attribute. For details about the APIs, see [AbilityStage](../reference/apis/js-apis-app-ability-abilityStage.md). **Table 1** AbilityStage APIs |API|Description| @@ -321,3 +321,5 @@ struct Index { } } ``` + + \ No newline at end of file diff --git a/en/application-dev/ability/stage-brief.md b/en/application-dev/ability-deprecated/stage-brief.md similarity index 85% rename from en/application-dev/ability/stage-brief.md rename to en/application-dev/ability-deprecated/stage-brief.md index 2cf186f82db342e02523ee4645521ea72fbd1f6f..2d5474e2c2f0e8328add287481b5ea47abcb2725 100644 --- a/en/application-dev/ability/stage-brief.md +++ b/en/application-dev/ability-deprecated/stage-brief.md @@ -12,15 +12,15 @@ The stage model is designed based on the following considerations: - Efficient management of application processes - As the device memory becomes larger, the number of processes concurrently running in the system increases. If the number of concurrent processes reaches several hundreds, the overall power consumption and performance of the system will be adversely affected without effective management measures. To restrict the behavior of background processes, the stage model uses four measures: transient task, continuous task, agent task, and Work Scheduler task. With these measures, foreground processes will obtain guaranteed resources, thereby delivering a better user experience. +As the device memory becomes larger, the number of processes concurrently running in the system increases. If the number of concurrent processes reaches several hundreds, the overall power consumption and performance of the system will be adversely affected without effective management measures. To restrict the behavior of background processes, the stage model uses four measures: transient task, continuous task, agent task, and Work Scheduler task. With these measures, foreground processes will obtain guaranteed resources, thereby delivering a better user experience. - Native support for cross-device migration and multi-device collaboration - OpenHarmony is a native distributed OS. Its application framework must be designed for easier component migration and collaboration across devices. The stage model achieves this design objective by providing features such as separation between ability and UI as well as integration of UI display and service capabilities. +OpenHarmony is a native distributed OS. Its application framework must be designed for easier component migration and collaboration across devices. The stage model achieves this design objective by providing features such as separation between ability and UI as well as integration of UI display and service capabilities. - Different window forms for various device types - The stage model redefines the ability lifecycle. In terms of architecture, the component manager and window manager are decoupled. This facilitates adaptation between window forms and device types. +The stage model redefines the ability lifecycle. In terms of architecture, the component manager and window manager are decoupled. This facilitates adaptation between window forms and device types. ## Basic Concepts @@ -103,8 +103,12 @@ The processes of an application can be classified into three types: ![stageprocessmodel](figures/stageprocessmodel.png) + + ## Application Package Structure For details about the project directory structure of the stage model, see [OpenHarmony Project Overview](https://developer.harmonyos.com/en/docs/documentation/doc-guides/ohos-project-overview-0000001218440650#section56487581904). -For details about how to configure the application package structure of the stage model, see [Application Package Structure Configuration File (Stage Model)](../quick-start/stage-structure.md). +For details about how to configure the application package structure of the stage model, see [Application Package Structure Configuration File](../quick-start/application-configuration-file-overview-stage.md). + + \ No newline at end of file diff --git a/en/application-dev/ability/stage-call.md b/en/application-dev/ability-deprecated/stage-call.md similarity index 99% rename from en/application-dev/ability/stage-call.md rename to en/application-dev/ability-deprecated/stage-call.md index 5c29001e5c62f4059121247e9a044474111527c3..e447dc4fd89f99948ebb379de7010c4db9486488 100644 --- a/en/application-dev/ability/stage-call.md +++ b/en/application-dev/ability-deprecated/stage-call.md @@ -34,7 +34,7 @@ The table below describes the ability call APIs. For details, see [Ability](../r **Table 2** Ability call APIs |API|Description| |:------|:------| -|startAbilityByCall(want: Want): Promise\|Starts an ability in the foreground (through the **want** configuration) or background (default) and obtains the **Caller** object for communication with the ability. For details, see [AbilityContext](../reference/apis/js-apis-ability-context.md#abilitycontextstartabilitybycall) or [ServiceExtensionContext](../reference/apis/js-apis-service-extension-context.md#serviceextensioncontextstartabilitybycall).| +|startAbilityByCall(want: Want): Promise\|Starts an ability in the foreground (through the **want** configuration) or background (default) and obtains the **Caller** object for communication with the ability. For details, see [AbilityContext](../reference/apis/js-apis-ability-context.md#abilitycontextstartabilitybycall) or [ServiceExtensionContext](../reference/apis/js-apis-inner-application-serviceExtensionContext.md#serviceextensioncontextstartabilitybycall).| |on(method: string, callback: CalleeCallBack): void|Callback invoked when the callee ability registers a method.| |off(method: string): void|Callback invoked when the callee ability deregisters a method.| |call(method: string, data: rpc.Sequenceable): Promise\|Sends agreed sequenceable data to the callee ability.| diff --git a/en/application-dev/ability/stage-formextension.md b/en/application-dev/ability-deprecated/stage-formextension.md similarity index 98% rename from en/application-dev/ability/stage-formextension.md rename to en/application-dev/ability-deprecated/stage-formextension.md index fa90f267c13c0fa002233f585ca7c6b3c9904637..c45b33732a4f902391eb153c9f5304b071bc4f34 100644 --- a/en/application-dev/ability/stage-formextension.md +++ b/en/application-dev/ability-deprecated/stage-formextension.md @@ -31,7 +31,7 @@ Stage widget development refers to the development conducted by the widget provi ## Available APIs -The **FormExtension** class has the following APIs. For details, see [FormExtension](../reference/apis/js-apis-formextension.md). +The **FormExtension** class has the following APIs. For details, see [FormExtension](../reference/apis/js-apis-app-form-formExtensionAbility.md). **Table 1** FormExtension APIs @@ -45,7 +45,7 @@ The **FormExtension** class has the following APIs. For details, see [FormExtens | onDestroy(formId: string): void | Called to notify the widget provider that a **Form** instance (widget) has been destroyed. | | onConfigurationUpdated(config: Configuration): void; | Called when the configuration of the environment where the widget is running is updated. | -The **FormExtension** class also has a member context, that is, the **FormExtensionContext** class. For details, see [FormExtensionContext](../reference/apis/js-apis-formextensioncontext.md). +The **FormExtension** class also has a member context, that is, the **FormExtensionContext** class. For details, see [FormExtensionContext](../reference/apis/js-apis-inner-application-formExtensionContext.md). **Table 2** FormExtensionContext APIs @@ -54,7 +54,7 @@ The **FormExtension** class also has a member context, that is, the **FormExtens | startAbility(want: Want, callback: AsyncCallback<void>): void | Starts an ability. This API uses an asynchronous callback to return the result. (This is a system API and cannot be called by third-party applications.)| | startAbility(want: Want): Promise<void> | Starts an ability. This API uses a promise to return the result. (This is a system API and cannot be called by third-party applications.)| -For details about the **FormProvider** APIs, see [FormProvider](../reference/apis/js-apis-formprovider.md). +For details, see [FormProvider](../reference/apis/js-apis-application-formProvider.md). **Table 3** FormProvider APIs @@ -412,4 +412,4 @@ The following is an example: } } } - ``` \ No newline at end of file + ``` diff --git a/en/application-dev/ability/stage-serviceextension.md b/en/application-dev/ability-deprecated/stage-serviceextension.md similarity index 99% rename from en/application-dev/ability/stage-serviceextension.md rename to en/application-dev/ability-deprecated/stage-serviceextension.md index 0d634ebe67ef9e332f658a0efb0f7ffdb0e1f2b7..98cae5914f7afa34c916c53f6bb423b590cf5070 100644 --- a/en/application-dev/ability/stage-serviceextension.md +++ b/en/application-dev/ability-deprecated/stage-serviceextension.md @@ -71,4 +71,5 @@ OpenHarmony does not support creation of a Service Extension ability for third-p console.log('onDestroy'); } } - ``` \ No newline at end of file + ``` + diff --git a/en/application-dev/ability/wantagent.md b/en/application-dev/ability-deprecated/wantagent.md similarity index 99% rename from en/application-dev/ability/wantagent.md rename to en/application-dev/ability-deprecated/wantagent.md index 5a85bab15b8422aaabb0a173ad888126e08fc038..4b1854d1a54a36f864b3dd4215040eb24db2e5f3 100644 --- a/en/application-dev/ability/wantagent.md +++ b/en/application-dev/ability-deprecated/wantagent.md @@ -2,8 +2,6 @@ ## When to Use The **WantAgent** class encapsulates want information that specifies a particular action, which can be starting an ability or publishing a common event. You can either call **wantAgent.trigger** to trigger a **WantAgent** directly or add a **WantAgent** to a notification so that it will be triggered when users tap the notification. - - ## Available APIs | API | Description| | ---------------------------------------------------------------------------------------------- | ----------- | diff --git a/en/application-dev/application-models/Readme-EN.md b/en/application-dev/application-models/Readme-EN.md new file mode 100644 index 0000000000000000000000000000000000000000..a9473b7f6c2d0fb75e160cafdd1fb94b43633fa7 --- /dev/null +++ b/en/application-dev/application-models/Readme-EN.md @@ -0,0 +1,2 @@ +# Application Models + diff --git a/en/application-dev/application-test/Readme.md b/en/application-dev/application-test/Readme.md new file mode 100644 index 0000000000000000000000000000000000000000..7d465c149d73288be0687b15269152b743509432 --- /dev/null +++ b/en/application-dev/application-test/Readme.md @@ -0,0 +1,6 @@ +# Application Test + +- [arkXtest User Guide](arkxtest-guidelines.md) +- [SmartPerf User Guide](smartperf-guidelines.md) +- [wukong User Guide](wukong-guidelines.md) + diff --git a/en/application-dev/application-test/arkxtest-guidelines.md b/en/application-dev/application-test/arkxtest-guidelines.md new file mode 100644 index 0000000000000000000000000000000000000000..ce7a28154635b724d127a50af801c74f84607402 --- /dev/null +++ b/en/application-dev/application-test/arkxtest-guidelines.md @@ -0,0 +1,270 @@ +# arkXtest User Guide + + +## Overview + +To accelerate test automation of OpenHarmony, arkXtest — an automated test framework that supports both the JavaScript (JS) and TypeScript (TS) programming languages — is provided. + +In this document you will learn about the key functions of arkXtest and how to use it to perform unit testing on application or system APIs and to write UI automated test scripts. + + +### Introduction + +arkXtest is part of the OpenHarmony toolkit and provides basic capabilities of writing and running OpenHarmony automated test scripts. In terms of test script writing, arkXtest offers a wide range of APIs, including basic process APIs, assertion APIs, and APIs related to UI operations. In terms of test script running, arkXtest offers such features as identifying, scheduling, and executing test scripts, as well as summarizing test script execution results. + + +### Principles + +arkXtest is divided into two parts: unit test framework and UI test framework. + +- Unit Test Framework + + As the backbone of arkXtest, the unit test framework offers such features as identifying, scheduling, and executing test scripts, as well as summarizing test script execution results. The figure below shows the main functions of the unit test framework. + + ![](figures/UnitTest.PNG) + + The following figure shows the basic unit test process. To start the unit test framework, run the **aa test** command. + + ![](figures/TestFlow.PNG) + +- UI Testing Framework + + The UI test framework provides [UiTest APIs](../reference/apis/js-apis-uitest.md) for you to call in different test scenarios. The test scripts are executed on top of the unit test framework mentioned above. + + The figure below shows the main functions of the UI test framework. + + ![](figures/Uitest.PNG) + + +### Limitations and Constraints + +- The features of the UI test framework are available only in OpenHarmony 3.1 and later versions. +- The feature availability of the unit test framework varies by version. For details about the mappings between the features and versions, see [arkXtest](https://gitee.com/openharmony/testfwk_arkxtest/blob/master/README_en.md). + + +## Environment preparations + +### Environment Requirements + +Software for writing test scripts: DevEco Studio 3.0 or later + +Hardware for running test scripts: PC connected to a OpenHarmony device, such as the RK3568 development board + +### Setting Up the Environment + +[Download DevEco Studio](https://developer.harmonyos.com/cn/develop/deveco-studio#download) and set it up as instructed on the official website. + + +## Creating a Test Script + +1. Open DevEco Studio and create a project, where the **ohos** directory is where the test script is located. +2. Open the .ets file of the module to be tested in the project directory. Move the cursor to any position in the code, and then right-click and choose **Show Context Actions** > **Create Ohos Test** or press **Alt+Enter** and choose **Create Ohos Test** to create a test class. + +## Writing a Unit Test Script + +```TS +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import abilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' + +const delegator = abilityDelegatorRegistry.getAbilityDelegator() +export default function abilityTest() { + describe('ActsAbilityTest', function () { + it('testUiExample',0, async function (done) { + console.info("uitest: TestUiExample begin"); + //start tested ability + await delegator.executeShellCommand('aa start -b com.ohos.uitest -a MainAbility').then(result =>{ + console.info('Uitest, start ability finished:' + result) + }).catch(err => { + console.info('Uitest, start ability failed: ' + err) + }) + await sleep(1000); + //check top display ability + await delegator.getCurrentTopAbility().then((Ability)=>{ + console.info("get top ability"); + expect(Ability.context.abilityInfo.name).assertEqual('MainAbility'); + }) + done(); + }) + + function sleep(time) { + return new Promise((resolve) => setTimeout(resolve, time)); + } + }) +} +``` + +The unit test script must contain the following basic elements: + +1. Import of the dependency package so that the dependent test APIs can be used. + +2. Test code, mainly about the related logic, such as API invoking. + +3. Invoking of the assertion APIs and setting of checkpoints. If there is no checkpoint, the test script is considered as incomplete. + +## Writing a UI Test Script + +You write a UI test script based on the unit test framework, adding the invoking of APIs provided by the UI test framework to implement the corresponding test logic. + +In this example, the UI test script is written based on the preceding unit test script. First, add the dependency package, as shown below: + +```js +import {UiDriver,BY,UiComponent,MatchPattern} from '@ohos.uitest' +``` + +Then, write specific test code. Specifically, implement the click action on the started application page and add checkpoint check cases. + +```js +export default function abilityTest() { + describe('ActsAbilityTest', function () { + it('testUiExample',0, async function (done) { + console.info("uitest: TestUiExample begin"); + //start tested ability + await delegator.executeShellCommand('aa start -b com.ohos.uitest -a MainAbility').then(result =>{ + console.info('Uitest, start ability finished:' + result) + }).catch(err => { + console.info('Uitest, start ability failed: ' + err) + }) + await sleep(1000); + //check top display ability + await delegator.getCurrentTopAbility().then((Ability)=>{ + console.info("get top ability"); + expect(Ability.context.abilityInfo.name).assertEqual('MainAbility'); + }) + //ui test code + //init uidriver + var driver = await UiDriver.create(); + await driver.delayMs(1000); + //find button by text 'Next' + var button = await driver.findComponent(BY.text('Next')); + //click button + await button.click(); + await driver.delayMs(1000); + //check text + await driver.assertComponentExist(BY.text('after click')); + await driver.pressBack(); + done(); + }) + + function sleep(time) { + return new Promise((resolve) => setTimeout(resolve, time)); + } + }) +} +``` + +## Running the Test Script + +You can run a test script in DevEco Studio in any of the following modes: + +- Test package level: All test cases in the test package are executed. +- Test suite level: All test cases defined in the **describe** method are executed. +- Test method level: The specified **it** method, that is, a single test case, is executed. + +![](figures/Execute.PNG) + +## Viewing the Test Result + +After the test is complete, you can view the test result in DevEco Studio, as shown in the following figure. + +![](figures/TestResult.PNG) + +## FAQs + +### FAQs About Unit Test Cases + +#### The logs in the test case are printed after the test case result + +**Problem** + +The logs added to the test case are displayed after the test case execution, rather than during the test case execution. + +**Possible Causes** + +More than one asynchronous interface is called in the test case.
In principle, logs in the test case are printed before the test case execution is complete. + + **Solution** + +If more than one asynchronous interface is called, you are advised to encapsulate the interface invoking into the promise mode + +#### Error "fail to start ability" is reported during test case execution + +**Problem** + +When a test case is executed, the console returns the error message "fail to start ability". + +**Possible Causes** + +An error occurs during the packaging of the test package, and the test framework dependency file is not included in the test package. + +**Solution** + +Check whether the test package contains the **OpenHarmonyTestRunner.abc** file. If the file does not exist, rebuild and pack the file and perform the test again. + +#### Test case execution timeout + +**Problem** + +After the test case execution is complete, the console displays the error message "execute time XXms", indicating that the case execution times out. + +**Possible Causes** + +1. The test case is executed through an asynchronous interface, but the **done** function is not executed during the execution. As a result, the test case execution does not end until it times out. +2. The time taken for API invocation is longer than the timeout interval set for test case execution. + +**Solution** + +1. Check the code logic of the test case to ensure that the **done** function is executed even if the assertion fails. + +2. Modify the case execution timeout settings under **Run/Debug Configurations** in DevEco Studio. + +### FAQs About UI Test Cases + +#### The failure log contains "Get windows failed/GetRootByWindow failed" + +**Problem** + +The UI test case fails to be executed. The HiLog file contains the error message "Get windows failed/GetRootByWindow failed". + +**Possible Causes** + +The ArkUI feature is disabled. As a result, the control tree information on the test page is not generated. + +**Solution** + +Run the following command, restart the device, and execute the test case again: + +```shell +hdc shell param set persist.ace.testmode.enabled 1 +``` + +#### The failure log contains "uitest-api dose not allow calling concurrently" + +**Problem** + +The UI test case fails to be executed. The HiLog file contains the error message "uitest-api dose not allow calling concurrently". + +**Possible Causes** + +1. In the test case, the **await** operator is not added to the asynchronous interface provided by the UI test framework. + +2. The UI test case is executed in multiple processes. As a result, multiple UI test processes are started. The framework does not support multi-process invoking. + +**Solution** + +1. Check the case implementation and add the **await** operator to the asynchronous interface invoking. + +2. Do not execute UI test cases in multiple processes. + +#### The failure log contains "dose not exist on current UI! Check if the UI has changed after you got the widget object" + +**Problem** + +The UI test case fails to be executed. The HiLog file contains the error message "dose not exist on current UI! Check if the UI has changed after you got the widget object". + +**Possible Causes** + +After the target component is found in the code of the test case, the device UI changes. As a result, the found component is lost and the emulation operation cannot be performed. + +**Solution** + +Run the UI test case again. diff --git a/en/application-dev/application-test/figures/Execute.PNG b/en/application-dev/application-test/figures/Execute.PNG new file mode 100644 index 0000000000000000000000000000000000000000..90dcb55338ad473d29557e4c761801b16c770d45 Binary files /dev/null and b/en/application-dev/application-test/figures/Execute.PNG differ diff --git a/en/application-dev/application-test/figures/SmartPerfStru.png b/en/application-dev/application-test/figures/SmartPerfStru.png new file mode 100644 index 0000000000000000000000000000000000000000..24d203f938891e5a2b73c066776c62b1065fd064 Binary files /dev/null and b/en/application-dev/application-test/figures/SmartPerfStru.png differ diff --git a/en/application-dev/application-test/figures/TestFlow.PNG b/en/application-dev/application-test/figures/TestFlow.PNG new file mode 100644 index 0000000000000000000000000000000000000000..0b79c7e8c34e78397f1c442208de5dbff9c2e91e Binary files /dev/null and b/en/application-dev/application-test/figures/TestFlow.PNG differ diff --git a/en/application-dev/application-test/figures/TestResult.PNG b/en/application-dev/application-test/figures/TestResult.PNG new file mode 100644 index 0000000000000000000000000000000000000000..300266842efab6da7a4f7469ab8c9e890f238b89 Binary files /dev/null and b/en/application-dev/application-test/figures/TestResult.PNG differ diff --git a/en/application-dev/application-test/figures/Uitest.PNG b/en/application-dev/application-test/figures/Uitest.PNG new file mode 100644 index 0000000000000000000000000000000000000000..a9ff5b9d831b4abe1767219dfa8e2fffc5c2e3f8 Binary files /dev/null and b/en/application-dev/application-test/figures/Uitest.PNG differ diff --git a/en/application-dev/application-test/figures/UnitTest.PNG b/en/application-dev/application-test/figures/UnitTest.PNG new file mode 100644 index 0000000000000000000000000000000000000000..d55de62d830df9cfdf345552c54dbf4196564ef6 Binary files /dev/null and b/en/application-dev/application-test/figures/UnitTest.PNG differ diff --git a/en/application-dev/application-test/figures/wukongRandomTest.png b/en/application-dev/application-test/figures/wukongRandomTest.png new file mode 100644 index 0000000000000000000000000000000000000000..a8164620f94f8d4ec61e22e53eb655888ce15050 Binary files /dev/null and b/en/application-dev/application-test/figures/wukongRandomTest.png differ diff --git a/en/application-dev/application-test/figures/wukongRandomTestFlow.png b/en/application-dev/application-test/figures/wukongRandomTestFlow.png new file mode 100644 index 0000000000000000000000000000000000000000..d2355d66557b2b3ce4066691adbe7cce7eb1a5f2 Binary files /dev/null and b/en/application-dev/application-test/figures/wukongRandomTestFlow.png differ diff --git a/en/application-dev/application-test/figures/wukongSpecialTest.png b/en/application-dev/application-test/figures/wukongSpecialTest.png new file mode 100644 index 0000000000000000000000000000000000000000..0f4362da3f8c8cd7b40582acdb443a72434efebf Binary files /dev/null and b/en/application-dev/application-test/figures/wukongSpecialTest.png differ diff --git a/en/application-dev/application-test/smartperf-guidelines.md b/en/application-dev/application-test/smartperf-guidelines.md new file mode 100644 index 0000000000000000000000000000000000000000..91b6cf44ef419487de7b435e42d26199c3b088d0 --- /dev/null +++ b/en/application-dev/application-test/smartperf-guidelines.md @@ -0,0 +1,75 @@ +# SmartPerf User Guide + +## Overview + +Performance testing helps developers detect the performance bottlenecks and deliver quality applications that meet user expectations. For this reason, SmartPerf, a performance testing tool specially designed for OpenHarmony developers, is provided. + +## Introduction + +SmartPerf is a reliable, easy-to-use performance and power consumption test tool built for the OpenHarmony system. It provides KPIs with test value details that help you measure the performance and power consumption of your application, such as FPS, CPU, GPU, and Ftrace. + +You can use SmartPerf in two modes: visualized operation mode (SmartPerf-Device) and command-line shell mode (SmartPerf-Daemon). SmartPerf-Device supports visualized operations and floating window based operations (such as data collection control and real-time data display). SmartPerf-Daemon is applicable to devices without screens and devices with high tolerance regarding performance, for example, Hi3568. + +## Principles + +SmartPerf come with SmartPerf-Device and SmartPerf-Daemon. SmartPerf-Device sends data requests for KPIs (such as FPS, RAM, and Trace) through messages to SmartPerf-Daemon, which then collects and sends back data as requested, and displays the received data. SmartPerf-Daemon also allows on-demand data collection through hell commands. The figure below demonstrates the main functions of SmartPerf. + +![SmartPerf](figures/SmartPerfStru.png) + +## Constraints + +- SmartPerf-Device and SmartPerf-Daemon are pre-installed in version 3.2 and later versions. +- SmartPerf-Device requires a screen to work correctly. + +## Environment Preparations + +To run SmartPerf-Daemon, you must connect the PC to an OpenHarmony device, such as the RK3568 development board. + +## Performing Performance Testing + +**Using SmartPerf-Device** + +In the screenshots below, the RK3568 development board is used as an example. + +1. Set the application for which you want to collect data. + + Start SmartPerf-Device. On the home screen, select the test application and test indicators, and touch **Start Test**. + +2. Control the data collection process from the floating window. + + To start collection, touch **Start** in the floating window. To pause, touch the timer in the floating window to pause data collection. To resume, touch the timer again. To view the collected data in real time, double-touch the timer. To stop, touch and hold the timer. You can drag the floating window to anywhere you like. + + +3. View the report. + + Touch **Report** to view the test report list. Touch **Report List** to view details about test indicators. + +**Using SmartPerf-Daemon** + +1. Access the shell and run the following command to view the help information: +``` +:# SP_daemon --help +``` +2. Run the collection commands. +``` +:# SP_daemon -N 2 -PKG com.ohos.contacts -c -g -t -p -r +``` + +**Collection Commands** + +| Command | Function |Mandatory| +| :-----| :--------------------- |:-----| +| -N | Set the number of collection times. |Yes| +| -PKG | Set the package name. | No| +| -PID | Sets the PID of a process (applicable to RAM).|No| +| -c | Set whether to collect CPU data. | No| +| -g | Set whether to collect GPU data. |No| +| -f | Set whether to collect FPS data. |No| +| -t | Set whether to collect temperature data. |No| +| -p | Set whether to collect current data. |No| +| -r | Set whether to collect memory data. |No| + +The default output path of the test result is as follows: +``` +/data/local/tmp/data.csv +``` diff --git a/en/application-dev/application-test/wukong-guidelines.md b/en/application-dev/application-test/wukong-guidelines.md new file mode 100644 index 0000000000000000000000000000000000000000..e10cb9fa1badd83bd244e70a1f4445afd7f085b7 --- /dev/null +++ b/en/application-dev/application-test/wukong-guidelines.md @@ -0,0 +1,113 @@ +# wukong User Guide + + +## Overview + +Stability testing is important in that it demonstrates how an application performs under stress. For this reason, wukong, a stability testing tool specially designed for OpenHarmony developers, is provided. + +In this document you will learn about the key functions of wukong and how to use it to perform stability testing. + +## Introduction + +wukong is part of the OpenHarmony toolkit and implements basic application stability test capabilities such as random event injection, component injection, exception capture, report generation, and data traversal of abilities. + +## Principles + +wukong mainly provides two types of tests: random test and special test. + +- Random test + + The random test is the staple service of wukong. It provides the basic startup, running, and result summary features, as shown below. + + ![](figures/wukongRandomTest.png) + + The following figure shows the basic running process of the random test, which depends on the **hdc** command. + + ![](figures/wukongRandomTestFlow.png) + +- Special test + + The special test provides a wide range of features: traversing the components of an application in sequence, recording and playback, and sleeping and waking up. + + The following figure shows the main features of the special test. + + ![](figures/wukongSpecialTest.png) + +For details about the test commands, see [wukong](https://gitee.com/openharmony/ostest_wukong/blob/master/README.md). + +## Constraints + +1. wukong is pre-installed in version 3.2 and later versions. + +2. In versions earlier than 3.2, you must build wukong separately and push it to the tested OpenHarmony device. The procedure is as follows: + How to build: + ``` + ./build.sh --product-name rk3568 --build-target wukong + ``` + How to push: + ``` + hdc_std shell mount -o rw,remount / + hdc_std file send wukong / + hdc_std shell chmod a+x /wukong + hdc_std shell mv /wukong /bin/ + ``` + +## Environment Preparations + +To run commands, connect the PC to an OpenHarmony device, such as the RK3568 development board. + +## Performing Stability Testing + +**Using wukong exec for Random Test** + +Access the shell and run the following random test command: +``` +# wukong exec -s 10 -i 1000 -a 0.28 -t 0.72 -c 100 +``` +Random test commands +| Command | Value | Description | +| -------------- | -------------- | ---------------------------------------------- | +| wukong exec | - | Works as the main command. | +| -s | 10 | Sets the random seed. The value 10 is the seed value. | +| -i | 1000 | Sets the application startup interval to 1000 ms.| +| -a | 0.28 | Sets the proportion of the random application startup test to 28%. | +| -t | 0.72 | Sets the proportion of the random touch test to 72%. | +| -c | 100 | Sets the number of execution times to 100. | + +**Using wukong special for Special Test** + +Access the shell and run the following commands to perform the sequential traversal test: +```bash +# wukong special -C [bundlename] -p +``` +Special test commands +| Command | Value | Description | +| -------------- |-------------- | ---------------------------------------------- | +| wukong special | - | Works as the main command. | +| -C [bundlename] |[bundlename] | Sets the bundle name of the application for the sequential traversal test. | +| -p | - | Indicates a screenshot. | + +## Viewing the Test Result + +After the test commands are executed, the test result is automatically generated. + +You can obtain the test result in the following directory: +``` +Before 2022/9/22: /data/local/wukong/report/xxxxxxxx_xxxxxx/ +Since 2022/9/22: /data/local/tmp/wukong/report/xxxxxxxx_xxxxxx/ +``` +>**NOTE** +> +>The folder for test reports is automatically generated. + +Content of the folder is described in the table below. +| Folder/File | Description | +| ------------------------------------ | ------------------ | +| exception/ | Stores exception files generated during the test.| +| screenshot/ | Stores screenshots of the sequential traversal test. | +| wukong_report.csv | Stores the test report summary. | + +You can view the wukong execution log in the path below: +``` +reports/xxxxxxxx_xxxxxx/wukong.log +``` diff --git a/en/application-dev/faqs/Readme-EN.md b/en/application-dev/faqs/Readme-EN.md index 37baff507755e5862045dfb3247324c6e80dcfdf..0f2738b7160dcc599c54ecbe1875d279d6f3661c 100644 --- a/en/application-dev/faqs/Readme-EN.md +++ b/en/application-dev/faqs/Readme-EN.md @@ -10,8 +10,10 @@ - [Network and Connection Development](faqs-connectivity.md) - [Data Management Development](faqs-data-management.md) - [Device Management Development](faqs-device-management.md) +- [DFX Development](faqs-dfx.md) +- [Intl Development](faqs-international.md) - [Native API Usage](faqs-native.md) - [Usage of Third- and Fourth-Party Libraries](faqs-third-party-library.md) -- [hdc_std Command Usage](faqs-ide.md) -- [IDE Usage](faqs-hdc-std.md) -- [Development Board](faqs-development-board.md) +- [IDE Usage](faqs-ide.md) +- [hdc_std Command Usage](faqs-hdc-std.md) +- [Development Board](faqs-development-board.md) \ No newline at end of file diff --git a/en/application-dev/faqs/faqs-connectivity.md b/en/application-dev/faqs/faqs-connectivity.md index e3b02269e2de947fb4ab4069f1d7ba4812825ddc..31e1db2e15e82875427d52a92dd26bcfeb69c34e 100644 --- a/en/application-dev/faqs/faqs-connectivity.md +++ b/en/application-dev/faqs/faqs-connectivity.md @@ -21,7 +21,7 @@ Applicable to: OpenHarmony SDK 3.2.2.5, stage model of API version 9 Error code 28 refers to **CURLE_OPERATION_TIMEDOUT**, which means a cURL operation timeout. For details, see any HTTP status code description available. -Reference: [Development Guide](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-http.md#httpresponse) and [Curl Error Codes](https://curl.se/libcurl/c/libcurl-errors.html) +Reference: [Response Codes](../reference/apis/js-apis-http.md#responsecode) and [Curl Error Codes](https://curl.se/libcurl/c/libcurl-errors.html) ## What does error code 6 mean for the response of \@ohos.net.http.d.ts? @@ -30,4 +30,4 @@ Applicable to: OpenHarmony SDK 3.2.3.5 Error code 6 indicates a failure to resolve the host in the address. You can ping the URL carried in the request to check whether the host is accessible. -Reference: [Development Guide](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-http.md#httpresponse) and [Curl Error Codes](https://curl.se/libcurl/c/libcurl-errors.html) +Reference: [Response Codes](../reference/apis/js-apis-http.md#responsecode) and [Curl Error Codes](https://curl.se/libcurl/c/libcurl-errors.html) diff --git a/en/application-dev/faqs/faqs-data-management.md b/en/application-dev/faqs/faqs-data-management.md index a35f335d1db6f89033e4deb839cf9b7af0f544a2..47f0b7ce20cd54a1cee4eb521801d4e7ca94e04b 100644 --- a/en/application-dev/faqs/faqs-data-management.md +++ b/en/application-dev/faqs/faqs-data-management.md @@ -1,12 +1,10 @@ # Data Management Development - - -## How Do I Save PixelMap data to a database? +## How Do I Save PixelMap Data to a Database? Applicable to: OpenHarmony SDK 3.2.3.5 -You can convert a **PixelMap** into a **ArrayBuffer** and save the **ArrayBuffer** to your database. +You can convert a **PixelMap** into an **ArrayBuffer** and save the **ArrayBuffer** to your database. Reference: [readPixelsToBuffer](../reference/apis/js-apis-image.md#readpixelstobuffer7-1) @@ -14,11 +12,65 @@ Reference: [readPixelsToBuffer](../reference/apis/js-apis-image.md#readpixelstob Applicable to: OpenHarmony SDK 3.2.3.5, stage model of API version 9 -Run the hdc_std command to copy the .db, .db-shm, and .db-wal files from **/data/app/el2/100/database/Bundle name/entry/db/**, and then use the SQLite tool to open the files. +Run the hdc_std command to copy the .db, .db-shm, and .db-wal files in **/data/app/el2/100/database/*bundleName*/entry/db/**, and then use the SQLite tool to open the files. Example: - ``` hdc_std file recv /data/app/el2/100/database/com.xxxx.xxxx/entry/db/test.db ./test.db ``` + +## Does the Database Has a Lock Mechanism? + +Applicable to: OpenHarmony SDK 3.2.5.5, stage model of API version 9 + +The distributed data service (DDS), relational database (RDB) store, and preferences provided OpenHarmony have a lock mechanism. You do not need to bother with the lock mechanism during the development. + +## What Is a Transaction in an RDB Store? + +Applicable to: all versions + +When a large number of operations are performed in an RDB store, an unexpected exception may cause a failure of some data operations and loss of certain data. As a result, the application may become abnormal or even crash. + +A transaction is a group of tasks serving as a single logical unit. It eliminates the failure of some of the operations and loss of associated data. + +## What Data Types Does an RDB Store Support? + +Applicable to: OpenHarmony SDK 3.0 or later, stage model of API version 9 + +An RDB store supports data of the number, string, and Boolean types. The number array supports data of the Double, Long, Float, Int, or Int64 type, with a maximum precision of 17 decimal digits. + +## How Do I View Database db Files? + +Applicable to: OpenHarmony SDK 3.2.6.5, stage model of API version 9 + +1. Run the **hdc_std shell** command. + +2. Obtain the absolute path or sandbox path of the database. + +The absolute path is **/data/app/el2//database/**. The default **** is **100**. + +To obtain the sandbox path, run the **ps -ef | grep hapName** command to obtain the process ID of the application. + +The database sandbox path is **/proc//root/data/storage/el2/database/**. + +3. Run the **find ./ -name "\*.db"** command in the absolute path or sandbox path of the database. + +## How Do I Store Long Text Data? + +Applicable to: OpenHarmony SDK 3.2.5.5, API version 9 + +- Preferences support a string of up to 8192 bytes. + +- The KV store supports a value of up to 4 MB. + +Reference: [Preference Overview](../database/database-preference-overview.md) and [Distributed Data Service Overview](../database/database-mdds-overview.md) + +## How Do I Develop DataShare on the Stage Model + +Applicable to: OpenHarmony SDK 3.2.5.5, API version 9 + +The DataShare on the stage model cannot be used with the **DataAbility** for the FA model. The connected server application must be implemented by using **DataShareExtensionAbility**. + +Reference: [DataShare Development](../database/database-datashare-guidelines.md) + diff --git a/en/application-dev/faqs/faqs-dfx.md b/en/application-dev/faqs/faqs-dfx.md new file mode 100644 index 0000000000000000000000000000000000000000..ec1c8dbfedd5fa3c087c96d54c9c2aab73d75e8a --- /dev/null +++ b/en/application-dev/faqs/faqs-dfx.md @@ -0,0 +1,54 @@ +# DFX Development + +## How do I locate the fault when the application crashes? + +Applicable to: OpenHarmony SDK 3.2.5.5 + +1. Locate the crash-related code based on the service log. + +2. View the error information in the crash file. The crash file is located at **/data/log/faultlog/faultlogger/**. + +## Why cannot access controls in the UiTest test framework? + +Applicable to: OpenHarmony SDK 3.2.5.5 + +Check whether **persist.ace.testmode.enabled** is turned on. + +Run **hdc\_std shell param get persist.ace.testmode.enabled**. + +If the value is **0**, run the **hdc\_std shell param set persist.ace.testmode.enabled 1** to enable the test mode. + + +## Why is private displayed in logs when the format parameter type of HiLog in C++ code is %d or %s? + +When format parameters such as **%d** and **%s** are directly used, the standard system uses **private** to replace the actual data for printing by default to prevent data leakage. To print the actual data, replace **%d** with **%{public}d** or replace **%s** with **%{public}s**. + +## What should I do if the hilog.debug log cannot be printed? + +Applicable to: OpenHarmony SDK 3.2.5.5, stage model of API version 9 + +Run **hdc_std shell hilog -b D** to turn on the debugging switch. + +## Is HiLog or console recommended for log printing? How do I set the domain if HiLog is used? + +Applicable to: OpenHarmony SDK 3.2.2.5 + +You are advised to use the [HiLog](../reference/apis/js-apis-hilog.md) for log printing. For details about how to set the **domain** parameter, see the [Development Guide](../reference/apis/js-apis-hilog.md#hilogisloggable). + +## What is the maximum length of a log record when HiLog is used? Is it configurable? + +Applicable to: OpenHarmony SDK 3.2.2.5 + +The maximum length of a log record is 1,024 characters, and it is not changeable. + +## Can I separate multiple strings by spaces in the tag parameter of the HiLog API? + +Applicable to: OpenHarmony SDK 3.2.6.5, stage model of API version 9 + +No. Separating multiple strings by spaces is not allowed. + +## How do I print real data if HiLog does not contain data labeled by {public}? + +Applicable to: OpenHarmony SDK 3.2.6.5, stage model of API version 9 + +Run **hdc\_std shell hilog -p off** to disable logging of data labeled by {public}. diff --git a/en/application-dev/faqs/faqs-file-management.md b/en/application-dev/faqs/faqs-file-management.md index 1e3740047768d5d5fefa1420659c64da403ad587..adac2f5a6739a85c04005ef8068369776e90581c 100644 --- a/en/application-dev/faqs/faqs-file-management.md +++ b/en/application-dev/faqs/faqs-file-management.md @@ -1,15 +1,65 @@ # File Management Development +## Does fileio.rmdir Delete Files Recursively? +Applicable to: OpenHarmony SDK 3.2.6.3, stage model of API version 9 -## What If There is No Return Value or Error Captured After getAlbums Is Called? +Yes. **fileio.rmdir** deletes files recursively. + +## How Do I Create a File That Does Not Exist? + +Applicable to: OpenHarmony SDK 3.2.6.3, stage model of API version 9 + +You can use **fileio.open(filePath, 0o100, 0o666)**. The second parameter **0o100** means to create a file if it does not exist. The third parameter **mode** must also be specified. + +## What If "call fail callback fail, code: 202, data: json arguments illegal" Is Displayed? + +Applicable to: OpenHarmony SDK 3.2.6.3, stage model of API version 9 + +When the **fileio** module is used to copy files, the file path cannot start with "file:///". + +## How Do I Read Files Outside the App Sandbox? + +Applicable to: OpenHarmony SDK 3.2.6.5, stage model of API version 9 + +If the input parameter of the **fileio** API is **path**, only the sandbox directory of the current app obtained from the context can be accessed. To access data in other directories such as the user data, images, and videos, open the file as the data owner and operate with the file descriptor (FD) returned. + +For example, to read or write a file in Media Library, perform the following steps: + +1. Use **getFileAssets()** to obtain the **fileAsset** object. + +2. Use **fileAsset.open()** to obtain the FD. + +3. Use the obtained FD as the **fileIo** API parameter to read and write the file. + +## What If the File Contains Garbled Characters? + +Applicable to: OpenHarmony SDK 3.2.5.5, stage model of API version 9 + +Read the file content from the buffer, and decode the file content using **util.TextDecoder**. + +Example: + +``` +import util from '@ohos.util' +async function readFile(path) { + let stream = fileio.createStreamSync(path, "r+"); + let readOut = await stream.read(new ArrayBuffer(4096)); + let textDecoder = new util.TextDecoder("utf-8", { ignoreBOM: true }); + let buffer = new Uint8Array(readOut.buffer) + let readString = textDecoder.decode(buffer, { stream: false }); + console.log ("[Demo] File content read: "+ readString); +} +``` + +## What Should I Do If There Is No Return Value or Error Captured After getAlbums Is Called? Applicable to: OpenHarmony SDK 3.2.5.3, stage model of API version 9 -The **ohos.permission.READ_MEDIA** permission is required for calling **getAlbums**, and this permission needs user authorization. For details, see OpenHarmony [Application Permission List](../security/permission-list.md). +The **ohos.permission.READ_MEDIA** is required for using **getAlbums()**. In addition, this permission needs user authorization. For details, see [OpenHarmony Permission List](../security/permission-list.md). 1. Configure the required permission in the **module.json5** file. - + ``` "requestPermissions": [ { @@ -19,7 +69,7 @@ The **ohos.permission.READ_MEDIA** permission is required for calling **getAlbum ``` 2. Add the code for user authorization before the **MainAbility.ts -> onWindowStageCreate** page is loaded. - + ``` private requestPermissions() { let permissionList: Array = [ @@ -34,3 +84,21 @@ The **ohos.permission.READ_MEDIA** permission is required for calling **getAlbum }) } ``` + +## What Do I Do If the App Crashes When FetchFileResult() Is Called Multiple Times? + +Applicable to: OpenHarmony SDK 3.2.5.5, stage model of API version 9 + +Each time after the **FetchFileResult** object is called, call **FetchFileResult.close()** to release and invalidate the **FetchFileResult** object . + +## What If An Error Is Reported by IDE When mediaLibrary.getMediaLibrary() Is Called in the Stage Model? + +Applicable to: OpenHarmony SDK 3.2.5.5, stage model of API version 9 + +In the stage model, use **mediaLibrary.getMediaLibrary(context: Context)** to obtain the media library instance. + +## How Do I Sort the Data Returned by mediaLibrary.getFileAssets()? + +Applicable to: OpenHarmony SDK 3.2.5.5, stage model of API version 9 + +Use the **order** attribute in **[MediaFetchOptions](../reference/apis/js-apis-medialibrary.md#mediafetchoptions7)** to sort the data returned. diff --git a/en/application-dev/faqs/faqs-hdc-std.md b/en/application-dev/faqs/faqs-hdc-std.md index 04c0a202a57b702164b8bcb7a32299d3abd5d75c..60f93da61d7d78a4e148b65c0e30d379b1e1206d 100644 --- a/en/application-dev/faqs/faqs-hdc-std.md +++ b/en/application-dev/faqs/faqs-hdc-std.md @@ -1,17 +1,14 @@ # hdc_std Command Usage - - -## What are the commands commonly used for log management? +## Common Log Commands Applicable to: OpenHarmony SDK 3.2.2.5 -- Clearing logs: hdc_std shell hilog -r +Clearing logs: hdc_std shell hilog -r -- Increasing the buffer size to 20 MB: hdc_std shell hilog -G 20M - -- Capturing logs: hdc_std shell hilog > log.txt +Increasing the buffer size to 20 MB: hdc_std shell hilog -G 20M +Capturing logs: hdc_std shell hilog > log.txt ## What should I do to avoid log flow control? @@ -27,43 +24,64 @@ Applicable to: OpenHarmony SDK 3.2.5.3, stage model of API version 9 After performing the preceding operations, restart the DevEco Studio. +## What should I do if the HAP installed on the development board through the IDE cannot be opened? -## Is HiLog or Console recommended for log printing? How do I set the domain if HiLog is used? +Applicable to: OpenHarmony SDK 3.2.5.3, stage model of API version 9 -Applicable to: OpenHarmony SDK 3.2.2.5 +Check whether the SDK version is consistent with the system version on the development board. You are advised to use the SDK version and system version that are released on the same day. -[HiLog](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-hilog.md) is recommended for an application to print logs. For details about domain setting, see [Development Guide](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-hilog.md#hilogisloggable). +## How do I upload files using the hdc command? +Applicable to: OpenHarmony SDK 3.2.2.5 -## What is the maximum length of a log record when HiLog is used? Is it configurable? +Run the **hdc_std file send** command. -Applicable to: OpenHarmony SDK 3.2.2.5 +## How do I prevent the screen of the RK3568 development board from turning off? -The maximum length of a log record is 1,024 characters, and it is not changeable. +Applicable to: OpenHarmony SDK 3.2.5.3, stage model of API version 9 +Run the **hdc_std shell "power-shell setmode 602"** command. -## What should I do if a HAP package cannot be opened after being installed on the development board using the IDE? +## How do I start an ability using the hdc command? Applicable to: OpenHarmony SDK 3.2.5.3, stage model of API version 9 -Check whether the SDK version is consistent with the system version on the development board. You are advised to use the SDK version and system version that are released on the same day. +Run the **hdc\_std shell aa start -a AbilityName -b bundleName -m moduleName** command. +## How do I change the read and write permissions on a file directory on the development board? -## How do I upload files using an hdc command? +Applicable to: OpenHarmony SDK 3.2.5.6, stage model of API version 9 + +Run the **hdc\_std shell mount -o remount,rw /** command. + +## What should I do if the error message "Unknown file option -r" is displayed when hdc_std file recv is run? + +Applicable to: OpenHarmony SDK 3.2.5.6, stage model of API version 9 + +1. Use the the hdc tool in the device image or SDK of the same version. + +2. Remove any Chinese characters or spaces from the directory specified for the hdc tool. + +## How do I uninstall an application using the hdc command? Applicable to: OpenHarmony SDK 3.2.2.5 -Run the **hdc_std file send** command. +Run the **hdc\_std uninstall [-k] [package_name]** command. -## How do I prevent the screen of the RK3568 development board from turning off? +## How do I check whether the system is 32-bit or 64-bit? -Applicable to: OpenHarmony SDK 3.2.5.3, stage model of API version 9 +Applicable to: OpenHarmony SDK 3.2.5.5 -Run the **hdc_std shell "power-shell setmode 602"** command. +Run the **hdc\_std shell getconf LONG_BIT** command. +If **64** is returned, the system is a 64-bit one. Otherwise, the system is a 32-bit one. -## How do I start an ability using an hdc command? +## How do I view the component tree structure? -Applicable to: OpenHarmony SDK 3.2.5.3, stage model of API version 9 +Applicable to: OpenHarmony SDK 3.2.5.5 + +1. Run the **hdc\_std shell** command to launch the CLI. + +2. Run the **aa dump -a** command to find **abilityID**. -Run the **hdc_std shell aa start -a AbilityName -b bundleName -m moduleName** command. +3. Run the **aa dump -i [abilityID] -c -render** command to view the component tree. diff --git a/en/application-dev/faqs/faqs-international.md b/en/application-dev/faqs/faqs-international.md new file mode 100644 index 0000000000000000000000000000000000000000..546402921ce3a2cd9f9972721727a84d9a31295a --- /dev/null +++ b/en/application-dev/faqs/faqs-international.md @@ -0,0 +1,19 @@ +# Intl Development + +## How resources in AppScope, such as images and text, are referenced? + +Applicable to: OpenHarmony SDK 3.2.5.5, stage model of API version 9 + +Resources are referenced in the **$r('app.type.name')** format. Where, **type** indicates the resource type, such as color, string, and media, and **name** indicates the resource name. + +## How do I convert the resource type to string? + +Applicable to: OpenHarmony SDK3.0, stage model of API version 9 + +If the resource type is set to **string**, the qualifier directory can be set as **this.context.resourceManager.getStringSync(\\$r('app.string.test').id)** and can be converted synchronously. The **\$r('app.string.test', 2)** mode is not supported. For more usage methods, see [Resource Manager](../reference/apis/js-apis-resource-manager.md#getstringsync9). + +## Why should I do if the constants referenced by $ in the form_config.json file does not take effect? + +Applicable to: OpenHarmony SDK 3.2.6.5, API9 Stage model + +In the **form\_config.json** file, **$** cannot be used to reference constants. diff --git a/en/application-dev/napi/mindspore-lite-guidelines.md b/en/application-dev/napi/mindspore-lite-guidelines.md index 47ede475575484d60317e9ed7e2afe586fb12524..420d09121f86b7a4612c2e7ad6fe5f29831be80b 100644 --- a/en/application-dev/napi/mindspore-lite-guidelines.md +++ b/en/application-dev/napi/mindspore-lite-guidelines.md @@ -24,7 +24,7 @@ APIs involved in MindSpore Lite model inference are categorized into context API | ------------------ | ----------------- | |OH_AI_ContextHandle OH_AI_ContextCreate()|Creates a context object.| |void OH_AI_ContextSetThreadNum(OH_AI_ContextHandle context, int32_t thread_num)|Sets the number of runtime threads.| -| void OH_AI_ContextSetThreadAffinityMode(OH_AI_ContextHandle context, int mode)|Sets the affinity mode for binding runtime threads to CPU cores, which are categorized into little cores and big cores depending on the CPU frequency.| +| void OH_AI_ContextSetThreadAffinityMode(OH_AI_ContextHandle context, int mode)|Sets the affinity mode for binding runtime threads to CPU cores, which are classified into large, medium, and small cores based on the CPU frequency. You only need to bind the large or medium cores, but not small cores.| |OH_AI_DeviceInfoHandle OH_AI_DeviceInfoCreate(OH_AI_DeviceType device_type)|Creates a runtime device information object.| |void OH_AI_ContextDestroy(OH_AI_ContextHandle *context)|Destroys a context object.| |void OH_AI_DeviceInfoSetEnableFP16(OH_AI_DeviceInfoHandle device_info, bool is_fp16)|Sets whether to enable float16 inference. This function is available only for CPU and GPU devices.| diff --git a/en/application-dev/reference/apis/Readme-EN.md b/en/application-dev/reference/apis/Readme-EN.md index 322ef9541956a428f36cb624f10f05d4df804bd6..76d12ed38f81bdf496fd228f9cbea11eb8422510 100644 --- a/en/application-dev/reference/apis/Readme-EN.md +++ b/en/application-dev/reference/apis/Readme-EN.md @@ -200,17 +200,19 @@ - [@ohos.data.dataSharePredicates](js-apis-data-dataSharePredicates.md) - [@ohos.data.dataShareResultSet](js-apis-data-DataShareResultSet.md) - [@ohos.data.distributedDataObject](js-apis-data-distributedobject.md) + - [@ohos.data.distributedKVStore](js-apis-distributedKVStore.md) - [@ohos.data.preferences](js-apis-data-preferences.md) - [@ohos.data.rdb](js-apis-data-rdb.md) - - [@ohos.data.ValuesBucket](js-apis-data-ValuesBucket.md) - - data/rdb/[resultSet](js-apis-data-resultset.md) + - [@ohos.data.ValuesBucket](js-apis-data-valuesBucket.md) + - data/rdb + - [resultSet](js-apis-data-resultset.md) - File Management - [@ohos.document](js-apis-document.md) - [@ohos.environment](js-apis-environment.md) - [@ohos.data.fileAccess](js-apis-fileAccess.md) - [@ohos.fileExtensionInfo](js-apis-fileExtensionInfo.md) - [@ohos.fileio](js-apis-fileio.md) - - [@ohos.filemanagement.userfile_manager](js-apis-userfilemanager.md) + - [@ohos.filemanagement.userFileManager](js-apis-userfilemanager.md) - [@ohos.multimedia.medialibrary](js-apis-medialibrary.md) - [@ohos.securityLabel](js-apis-securityLabel.md) - [@ohos.statfs](js-apis-statfs.md) @@ -239,10 +241,13 @@ - [@ohos.nfc.controller](js-apis-nfcController.md) - [@ohos.nfc.tag](js-apis-nfcTag.md) - [@ohos.rpc](js-apis-rpc.md) + - [@ohos.wifiManager (WLAN)](js-apis-wifiManager.md) + - [@ohos.wifiManagerExt](js-apis-wifiManagerExt.md) - [@ohos.wifi](js-apis-wifi.md) - [@ohos.wifiext](js-apis-wifiext.md) - - tag/[nfctech](js-apis-nfctech.md) - - tag/[tagSession](js-apis-tagSession.md) + - tag + - [nfctech](js-apis-nfctech.md) + - [tagSession](js-apis-tagSession.md) - Basic Features - [@ohos.accessibility](js-apis-accessibility.md) - [@ohos.accessibility.config](js-apis-accessibility-config.md) @@ -288,6 +293,7 @@ - [@ohos.runningLock](js-apis-runninglock.md) - [@ohos.sensor](js-apis-sensor.md) - [@ohos.settings](js-apis-settings.md) + - [@ohos.stationary](js-apis-stationary.md) - [@ohos.systemParameterV9](js-apis-system-parameterV9.md) - [@ohos.thermal](js-apis-thermal.md) - [@ohos.update](js-apis-update.md) @@ -342,7 +348,6 @@ - [@ohos.reminderAgent](js-apis-reminderAgent.md) - [@ohos.systemParameter](js-apis-system-parameter.md) - [@ohos.usb](js-apis-usb-deprecated.md) - - [@ohos.workScheduler](js-apis-workScheduler.md) - [@system.app](js-apis-system-app.md) - [@system.battery](js-apis-system-battery.md) - [@system.bluetooth](js-apis-system-bluetooth.md) diff --git a/en/application-dev/reference/apis/js-apis-Bundle-InnerBundleManager.md b/en/application-dev/reference/apis/js-apis-Bundle-InnerBundleManager.md index 9d023410fff66869318fca78d3cae361ff71217b..40725aefbf65838c8da46d75a13368c68118df0d 100644 --- a/en/application-dev/reference/apis/js-apis-Bundle-InnerBundleManager.md +++ b/en/application-dev/reference/apis/js-apis-Bundle-InnerBundleManager.md @@ -1,8 +1,8 @@ -# innerBundleManager(deprecated) +# @ohos.bundle.innerBundleManager The **innerBundleManager** module provides APIs for the **Home Screen** application. -> +> > The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. > This module is deprecated since API version 9. You are advised to use [launcherBundleManager](js-apis-launcherBundleManager.md) and [bundleMonitor](js-apis-bundleMonitor.md) instead. @@ -41,7 +41,7 @@ This is a system API and cannot be called by third-party applications. | Name | Type | Mandatory| Description | | ---------- | ------------------------------------------------------------ | ---- | ----------------------------------------------------- | | bundleName | string | Yes | Bundle name of an application. | -| userId | number | Yes | User ID. The default value is the user ID of the caller. The value must be greater than or equal to 0.| +| userId | number | Yes | User ID. The value must be greater than or equal to 0.| | callback | AsyncCallback\> | Yes | Callback used to return an array of the launcher ability information. | @@ -69,7 +69,7 @@ This is a system API and cannot be called by third-party applications. | Name | Type | Mandatory| Description | | ---------- | ------ | ---- | ----------------------------------------------------- | | bundleName | string | Yes | Bundle name of an application. | -| userId | number | Yes | User ID. The default value is the user ID of the caller. The value must be greater than or equal to 0.| +| userId | number | Yes | User ID. The value must be greater than or equal to 0.| **Return value** @@ -216,7 +216,7 @@ This is a system API and cannot be called by third-party applications. | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------------------ | ---- | ----------------------------------------------------- | -| userId | number | Yes | User ID. The default value is the user ID of the caller. The value must be greater than or equal to 0.| +| userId | number | Yes | User ID. The value must be greater than or equal to 0.| | callback | AsyncCallback\> | Yes | Callback used to return an array of the launcher ability information. | ## innerBundleManager.getAllLauncherAbilityInfos(deprecated) @@ -242,7 +242,7 @@ This is a system API and cannot be called by third-party applications. | Name| Type | Mandatory| Description | | ------ | ------ | ---- | ----------------------------------------------------- | -| userId | number | Yes | User ID. The default value is the user ID of the caller. The value must be greater than or equal to 0.| +| userId | number | Yes | User ID. The value must be greater than or equal to 0.| **Return value** diff --git a/en/application-dev/reference/apis/js-apis-Bundle.md b/en/application-dev/reference/apis/js-apis-Bundle.md index 52a10b74d2346bc15d2fc17ce196b190bfbfa521..83cf9c77d2899e1c0c0969be8199c602e4374816 100644 --- a/en/application-dev/reference/apis/js-apis-Bundle.md +++ b/en/application-dev/reference/apis/js-apis-Bundle.md @@ -1,24 +1,24 @@ -# Bundle +# @ohos.bundle -The **Bundle** module provides APIs for querying the information about bundles, applications, abilities, Extension abilities, and application states. +The **bundle** module provides APIs for obtaining information about an application, including [bundle information](js-apis-bundle-BundleInfo.md), [application information](js-apis-bundle-ApplicationInfo.md), and [ability information](js-apis-bundle-AbilityInfo.md). It also provides APIs to obtain and set the application disabling state. > **NOTE** > > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## Modules to Import -```js +```ts import bundle from '@ohos.bundle'; ``` ## Required Permissions -| Required Permissions | Permission Level | Description | -| ------------------------------------------ | ------------ | ------------------ | -| ohos.permission.GET_BUNDLE_INFO | normal | Permission to query information about a specified application. | -| ohos.permission.GET_BUNDLE_INFO_PRIVILEGED| system_basic | Permission to query information about all applications.| -| ohos.permission.INSTALL_BUNDLE | system_core | Permission to install or uninstall applications. | -| ohos.permission.MANAGE_DISPOSED_APP_STATUS | system_core | Permission to set and query the application disposal status. | +| Required Permissions | Permission Level | Description | +|--------------------------------------------|--------------|---------------| +| ohos.permission.GET_BUNDLE_INFO | normal | Permission to query information about a specified bundle. | +| ohos.permission.GET_BUNDLE_INFO_PRIVILEGED| system_basic | Permission to query information about all bundles. | +| ohos.permission.INSTALL_BUNDLE | system_core | Permission to install or uninstall bundles. | +| ohos.permission.MANAGE_DISPOSED_APP_STATUS | system_core | Permission to set and query the application disposal status.| For details, see [Permission Levels](../../security/accesstoken-overview.md#permission-levels). @@ -30,6 +30,8 @@ getApplicationInfo(bundleName: string, bundleFlags: number, userId?: number): Pr Obtains the application information based on a given bundle name. This API uses a promise to return the result. +No permission is required for obtaining the caller's own information. + **Required permissions** ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO @@ -42,8 +44,8 @@ SystemCapability.BundleManager.BundleFramework | Name | Type | Mandatory| Description | | ----------- | ------ | ---- | ------------------------------------------------------------ | -| bundleName | string | Yes | Bundle name of an application. | -| bundleFlags | number | Yes | Type of information that will be returned. The default value is **0**. For details on the available enumerated values, see the application information flags in [BundleFlag](#bundleflag).| +| bundleName | string | Yes | Bundle name of the application. | +| bundleFlags | number | Yes | Type of information that will be returned. For details about the available enumerated values, see the application information flags in [BundleFlag](#bundleflagdeprecated).| | userId | number | No | User ID. The default value is the user ID of the caller. The value must be greater than or equal to 0. | **Return value** @@ -54,7 +56,7 @@ SystemCapability.BundleManager.BundleFramework **Example** -```js +```ts let bundleName = "com.example.myapplication"; let bundleFlags = 0; let userId = 100; @@ -74,6 +76,8 @@ getApplicationInfo(bundleName: string, bundleFlags: number, userId: number, call Obtains the application information of the specified user based on a given bundle name. This API uses an asynchronous callback to return the result. +No permission is required for obtaining the caller's own information. + **Required permissions** ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO @@ -86,14 +90,14 @@ SystemCapability.BundleManager.BundleFramework | Name | Type | Mandatory| Description | | ----------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| bundleName | string | Yes | Bundle name of an application. | -| bundleFlags | number | Yes | Type of information that will be returned. The default value is **0**. For details on the available enumerated values, see the application information flags in [BundleFlag](#bundleflag).| -| userId | number | Yes | User ID. The default value is the user ID of the caller. The value must be greater than or equal to 0. | +| bundleName | string | Yes | Bundle name of the application. | +| bundleFlags | number | Yes | Type of information that will be returned. For details about the available enumerated values, see the application information flags in [BundleFlag](#bundleflag).| +| userId | number | Yes | User ID. The value must be greater than or equal to 0. | | callback | AsyncCallback\<[ApplicationInfo](js-apis-bundle-ApplicationInfo.md)> | Yes | Callback used to return the application information. | **Example** -```js +```ts let bundleName = "com.example.myapplication"; let bundleFlags = 0; let userId = 100; @@ -115,6 +119,8 @@ getApplicationInfo(bundleName: string, bundleFlags: number, callback: AsyncCallb Obtains the application information based on a given bundle name. This API uses an asynchronous callback to return the result. +No permission is required for obtaining the caller's own information. + **Required permissions** ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO @@ -127,13 +133,13 @@ SystemCapability.BundleManager.BundleFramework | Name | Type | Mandatory| Description | | ----------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| bundleName | string | Yes | Bundle name of an application. | -| bundleFlags | number | Yes | Type of information that will be returned. The default value is **0**. For details on the available enumerated values, see the application information flags in [BundleFlag](#bundleflag).| +| bundleName | string | Yes | Bundle name of the application. | +| bundleFlags | number | Yes | Type of information that will be returned. For details about the available enumerated values, see the application information flags in [BundleFlag](#bundleflag).| | callback | AsyncCallback\<[ApplicationInfo](js-apis-bundle-ApplicationInfo.md)> | Yes | Callback used to return the application information. | **Example** -```js +```ts let bundleName = "com.example.myapplication"; let bundleFlags = 0; bundle.getApplicationInfo(bundleName, bundleFlags, (err, data) => { @@ -152,7 +158,7 @@ bundle.getApplicationInfo(bundleName, bundleFlags, (err, data) => { getAllBundleInfo(bundleFlag: BundleFlag, userId?: number): Promise> -Obtains the information of all available bundles of the specified user in the system. This API uses a promise to return the result. +Obtains the information of all bundles of the specified user. This API uses a promise to return the result. **Required permissions** @@ -166,7 +172,7 @@ SystemCapability.BundleManager.BundleFramework | Name | Type | Mandatory| Description | | ---------- | ---------- | ---- | ------------------------------------------------------------ | -| bundleFlag | BundleFlag | Yes | Type of information that will be returned. The default value is **0**. For details on the available enumerated values, see the bundle information flags in [BundleFlag](#bundleflag).| +| bundleFlag | BundleFlag | Yes | Type of information that will be returned. For details about the available enumerated values, see the bundle information flags in [BundleFlag](#bundleflag).| | userId | number | No | User ID. The default value is the user ID of the caller. The value must be greater than or equal to 0. | **Return value** @@ -177,7 +183,7 @@ SystemCapability.BundleManager.BundleFramework **Example** -```js +```ts let bundleFlag = 0; let userId = 100; bundle.getAllBundleInfo(bundleFlag, userId) @@ -195,7 +201,7 @@ bundle.getAllBundleInfo(bundleFlag, userId) getAllBundleInfo(bundleFlag: BundleFlag, callback: AsyncCallback>): void -Obtains the information of all available bundles in the system. This API uses an asynchronous callback to return the result. +Obtains the information of all bundles of the current user. This API uses an asynchronous callback to return the result. **Required permissions** @@ -209,12 +215,12 @@ SystemCapability.BundleManager.BundleFramework | Name | Type | Mandatory| Description | | ---------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| bundleFlag | BundleFlag | Yes | Type of information that will be returned. The default value is **0**. For details on the available enumerated values, see the bundle information flags in [BundleFlag](#bundleflag).| -| callback | AsyncCallback> | Yes | Callback used to return the information of all available bundles. | +| bundleFlag | BundleFlag | Yes | Type of information that will be returned. For details about the available enumerated values, see the bundle information flags in [BundleFlag](#bundleflag).| +| callback | AsyncCallback> | Yes | Callback used to return the information of all bundles. | **Example** -```js +```ts let bundleFlag = 0; bundle.getAllBundleInfo(bundleFlag, (err, data) => { if (err) { @@ -232,7 +238,7 @@ bundle.getAllBundleInfo(bundleFlag, (err, data) => { getAllBundleInfo(bundleFlag: BundleFlag, userId: number, callback: AsyncCallback>): void -Obtains the information of all available bundles of the specified user in the system. This API uses an asynchronous callback to return the result. +Obtains the information of all bundles of the specified user. This API uses an asynchronous callback to return the result. **Required permissions** @@ -244,15 +250,16 @@ SystemCapability.BundleManager.BundleFramework **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| bundleFlag | BundleFlag | Yes | Type of information that will be returned. The default value is **0**. For details on the available enumerated values, see the bundle information flags in [BundleFlag](#bundleflag).| -| userId | number | Yes | User ID. The default value is the user ID of the caller. The value must be greater than or equal to 0. | -| callback | AsyncCallback> | Yes | Callback used to return the information of all available bundles. | +| Name | Type | Mandatory | Description | +|------------|-------------------------------------------------------------------|-----|---------------------------------------------------------------------| +| bundleFlag | BundleFlag | Yes | Type of information that will be returned. For details about the available enumerated values, see the bundle information flags in [BundleFlag](#bundleflag).| +| userId | number | Yes | User ID. The default value is the user ID of the caller. The value must be greater than or equal to 0. | +| callback | AsyncCallback> | Yes | Callback used to return the information of all bundles. | +| **Example** -```js +```ts let bundleFlag = 0; let userId = 100; bundle.getAllBundleInfo(bundleFlag, userId, (err, data) => { @@ -273,6 +280,8 @@ getBundleInfo(bundleName: string, bundleFlags: number, options?: BundleOptions): Obtains the bundle information based on a given bundle name. This API uses a promise to return the result. +No permission is required for obtaining the caller's own information. + **Required permissions** ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO @@ -283,11 +292,11 @@ SystemCapability.BundleManager.BundleFramework **Parameters** -| Name | Type | Mandatory | Description | -| ----------- | ------------- | ---- | --------------------------------------- | -| bundleName | string | Yes | Bundle name of an application. | -| bundleFlags | number | Yes | Type of information that will be returned. The default value is **0**. For details on the available enumerated values, see the bundle information flags in [BundleFlag](#bundleflag).| -| options | [BundleOptions](#bundleoptions) | No | Includes **userId**. | +| Name | Type | Mandatory | Description | +| ----------- | ------------- | ---- |---------------------------------------------------------------------| +| bundleName | string | Yes | Bundle name of the application. | +| bundleFlags | number | Yes | Type of information that will be returned. For details about the available enumerated values, see the bundle information flags in [BundleFlag](#bundleflag).| +| options | [BundleOptions](#bundleoptions) | No | Options that contain the user ID. | **Return value** @@ -297,7 +306,7 @@ SystemCapability.BundleManager.BundleFramework **Example** -```js +```ts let bundleName = "com.example.myapplication"; let bundleFlags = 1; let options = { @@ -319,6 +328,8 @@ getBundleInfo(bundleName: string, bundleFlags: number, callback: AsyncCallback\< Obtains the bundle information based on a given bundle name. This API uses an asynchronous callback to return the result. +No permission is required for obtaining the caller's own information. + **Required permissions** ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO @@ -329,15 +340,15 @@ SystemCapability.BundleManager.BundleFramework **Parameters** -| Name | Type | Mandatory| Description | -| ----------- | ---------------------------------------------------------- | ---- | ------------------------------------------------------------ | -| bundleName | string | Yes | Bundle name of an application. | -| bundleFlags | number | Yes | Type of information that will be returned. The default value is **0**. For details on the available enumerated values, see the bundle information flags in [BundleFlag](#bundleflag).| -| callback | AsyncCallback\<[BundleInfo](js-apis-bundle-BundleInfo.md)> | Yes | Callback used to return the bundle information. | +| Name | Type | Mandatory| Description | +| ----------- | ---------------------------------------------------------- | ---- |---------------------------------------------------------------------| +| bundleName | string | Yes | Bundle name of the application. | +| bundleFlags | number | Yes | Type of information that will be returned. For details about the available enumerated values, see the bundle information flags in [BundleFlag](#bundleflag).| +| callback | AsyncCallback\<[BundleInfo](js-apis-bundle-BundleInfo.md)> | Yes | Callback used to return the bundle information. | **Example** -```js +```ts let bundleName = "com.example.myapplication"; let bundleFlags = 1; bundle.getBundleInfo(bundleName, bundleFlags, (err, data) => { @@ -358,6 +369,8 @@ getBundleInfo(bundleName: string, bundleFlags: number, options: BundleOptions, c Obtains the bundle information based on a given bundle name and bundle options. This API uses an asynchronous callback to return the result. +No permission is required for obtaining the caller's own information. + **Required permissions** ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO @@ -370,14 +383,14 @@ SystemCapability.BundleManager.BundleFramework | Name | Type | Mandatory| Description | | ----------- | ---------------------------------------------------------- | ---- | ------------------------------------------------------------ | -| bundleName | string | Yes | Bundle name of an application. | -| bundleFlags | number | Yes | Type of information that will be returned. The default value is **0**. For details on the available enumerated values, see the bundle information flags in [BundleFlag](#bundleflag).| +| bundleName | string | Yes | Bundle name of the application. | +| bundleFlags | number | Yes | Type of information that will be returned. For details about the available enumerated values, see the bundle information flags in [BundleFlag](#bundleflag).| | options | [BundleOptions](#bundleoptions) | Yes | Includes **userId**. | | callback | AsyncCallback\<[BundleInfo](js-apis-bundle-BundleInfo.md)> | Yes | Callback used to return the bundle information. | **Example** -```js +```ts let bundleName = "com.example.myapplication"; let bundleFlags = 1; let options = { @@ -400,7 +413,7 @@ bundle.getBundleInfo(bundleName, bundleFlags, options, (err, data) => { getBundleInstaller(): Promise<BundleInstaller>; -Obtains the installation package information. This API uses a promise to return the result. +Obtains the installation package. This API uses a promise to return the result. **Required permissions** @@ -418,7 +431,17 @@ This is a system API and cannot be called by third-party applications. | Type | Description | | ------------------------------------------------------------ | -------------------------------------------- | -| Promise<[BundleInstaller](js-apis-bundle-BundleInstaller.md)> | Promise used to return the installation package information.| +| Promise<[BundleInstaller](js-apis-bundle-BundleInstaller.md)> | Promise used to return the installation package.| + +**Example** + +```ts +bundle.getBundleInstaller().then((data) => { + console.info('getBundleInstaller successfully.'); +}).catch((error) => { + console.error('getBundleInstaller failed.'); +}); +``` ## bundle.getBundleInstallerdeprecated @@ -426,7 +449,7 @@ This is a system API and cannot be called by third-party applications. getBundleInstaller(callback: AsyncCallback<BundleInstaller>): void; -Obtains the installation package information. This API uses an asynchronous callback to return the result. +Obtains the installation package. This API uses an asynchronous callback to return the result. **Required permissions** @@ -444,8 +467,19 @@ This is a system API and cannot be called by third-party applications. | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------------------ | ---- | ---------------- | -| callback | AsyncCallback<[BundleInstaller](js-apis-bundle-BundleInstaller.md)> | Yes | Callback used to return the installation package information.| +| callback | AsyncCallback<[BundleInstaller](js-apis-bundle-BundleInstaller.md)> | Yes | Callback used to return the installation package.| + +**Example** +```ts +bundle.getBundleInstaller((err, data) => { + if (err.code == 0) { + console.error('getBundleInstaller failed.'); + } else { + console.info('getBundleInstaller successfully'); + } +}); +``` ## bundle.cleanBundleCacheFiles8+ deprecated > This API is deprecated since API version 9. You are advised to use [bundleManager.cleanBundleCacheFiles](js-apis-bundleManager.md#bundlemanagercleanbundlecachefiles) instead. @@ -470,9 +504,23 @@ This is a system API and cannot be called by third-party applications. | Name | Type | Mandatory| Description | | ---------- | ------------------- | ---- | ------------------------------------- | -| bundleName | string | Yes | Bundle name of an application.| +| bundleName | string | Yes | Bundle name of the application.| | callback | AsyncCallback\ | Yes | Callback used to return the result. | +**Example** + +```ts +let bundleName = "com.example.myapplication"; + +bundle.cleanBundleCacheFiles(bundleName, err => { + if (err) { + console.error('cleanBundleCacheFiles failed.'); + } else { + console.info('cleanBundleCacheFiles successfully.'); + } +}); +``` + ## bundle.cleanBundleCacheFiles8+ deprecated > This API is deprecated since API version 9. You are advised to use [bundleManager.cleanBundleCacheFiles](js-apis-bundleManager.md#bundlemanagercleanbundlecachefiles) instead. @@ -497,7 +545,7 @@ This is a system API and cannot be called by third-party applications. | Name | Type | Mandatory| Description | | ---------- | ------ | ---- | ------------------------------------- | -| bundleName | string | Yes | Bundle name of an application.| +| bundleName | string | Yes | Bundle name of the application.| **Return value** @@ -505,6 +553,18 @@ This is a system API and cannot be called by third-party applications. | ------------- | ------------------------------------ | | Promise\ | Promise that returns no value.| +**Example** + +```ts +let bundleName = "com.example.myapplication"; + +bundle.cleanBundleCacheFiles(bundleName).then(()=> { + console.info('cleanBundleCacheFiles successfully.'); +}).catch(err=> { + console.error('cleanBundleCacheFiles failed.'); +}); +``` + ## bundle.setApplicationEnabled8+ deprecated > This API is deprecated since API version 9. You are advised to use [bundleManager.setApplicationEnabled](js-apis-bundleManager.md#bundlemanagersetapplicationenabled) instead. @@ -527,11 +587,25 @@ This is a system API and cannot be called by third-party applications. **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ------------------- | ---- | ----------------------------------------------- | -| bundleName | string | Yes | Bundle name of an application. | +| Name | Type | Mandatory| Description | +| ---------- | ------------------- | ---- |--------------------------------| +| bundleName | string | Yes | Bundle name of the application. | | isEnable | boolean | Yes | Whether to enable the application. The value **true** means to enable the application, and **false** means the opposite.| -| callback | AsyncCallback\ | Yes | Callback used to return the result. | +| callback | AsyncCallback\ | Yes | Callback used to return the result. | + +**Example** + +```ts +let bundleName = "com.example.myapplication"; + +bundle.setApplicationEnabled(bundleName, false, err => { + if (err) { + console.error('setApplicationEnabled failed.'); + } else { + console.info('setApplicationEnabled successfully.'); + } +}); +``` ## bundle.setApplicationEnabled8+ deprecated @@ -555,9 +629,9 @@ This is a system API and cannot be called by third-party applications. **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ------- | ---- | ----------------------------------------------- | -| bundleName | string | Yes | Bundle name of an application. | +| Name | Type | Mandatory| Description | +| ---------- | ------- | ---- |------------------------------| +| bundleName | string | Yes | Bundle name of the application. | | isEnable | boolean | Yes | Whether to enable the application. The value **true** means to enable the application, and **false** means the opposite.| **Return value** @@ -566,6 +640,18 @@ This is a system API and cannot be called by third-party applications. | ------------- | ------------------------------------ | | Promise\ | Promise that returns no value.| +**Example** + +```ts +let bundleName = "com.example.myapplication"; + +bundleManager.setApplicationEnabled(bundleName, false).then(()=> { + console.info('setApplicationEnabled successfully.'); +}).catch(err=> { + console.error('setApplicationEnabled failed.'); +}); +``` + ## bundle.setAbilityEnabled8+ deprecated > This API is deprecated since API version 9. You are advised to use [bundleManager.setAbilityEnabled](js-apis-bundleManager.md#bundlemanagersetabilityenabled) instead. @@ -627,6 +713,28 @@ This is a system API and cannot be called by third-party applications. | ------------- | ------------------------------------ | | Promise\ | Promise that returns no value.| +**Example** + +```ts +let flag = bundle.BundleFlag.GET_ABILITY_INFO_WITH_PERMISSION; +let userId = 100; +let want = { + bundleName : "com.example.myapplication", + abilityName : "com.example.myapplication.MainAbility" +}; + +bundle.getAbilityInfo(want, flag, userId).then((abilityInfo) => { + console.info('getAbilityInfo successfully. Data: ' + JSON.stringify(abilityInfo)); + + bundle.setAbilityEnabled(abilityInfo, false).then(data => { + console.info('setAbilityEnabled successfully.'); + }).catch(err => { + console.error('setAbilityEnabled failed:' + JSON.stringify(err)); + }) +}).catch(error => { + console.error('getAbilityInfo failed. Cause: ' + JSON.stringify(error)); +}); +``` ## bundle.getPermissionDef8+ deprecated > This API is deprecated since API version 9. You are advised to use [bundleManager.getPermissionDef](js-apis-bundleManager.md#bundlemanagergetpermissiondef) instead. @@ -654,6 +762,19 @@ This is a system API and cannot be called by third-party applications. | permissionName | string | Yes | Name of the permission. | | callback | AsyncCallback<[PermissionDef](js-apis-bundle-PermissionDef)> | Yes | Callback used to return the permission details.| +**Example** + +```ts +let permission = "ohos.permission.GET_BUNDLE_INFO"; +bundleManager.getPermissionDef(permission, (err, data) => { + if (err) { + console.error('getPermissionDef failed:' + err.message); + } else { + console.info('getPermissionDef successfully:' + JSON.stringify(data)); + } +}); +``` + ## bundle.getPermissionDef8+ deprecated > This API is deprecated since API version 9. You are advised to use [bundleManager.getPermissionDef](js-apis-bundleManager.md#bundlemanagergetpermissiondef) instead. @@ -686,6 +807,16 @@ This is a system API and cannot be called by third-party applications. | ------------------------------------------------------ | ------------------------------------------------------ | | Promise<[PermissionDef](js-apis-bundle-PermissionDef)> | Promise used to return the permission details.| +**Example** + +```ts +let permissionName = "ohos.permission.GET_BUNDLE_INFO"; +bundle.getPermissionDef(permissionName).then((data) => { + console.info('getPermissionDef successfully. Data: ' + JSON.stringify(data)); +}).catch(error => { + console.error('getPermissionDef failed. Cause: ' + error.message); +}); +``` ## bundle.getAllApplicationInfodeprecated @@ -707,8 +838,8 @@ SystemCapability.BundleManager.BundleFramework | Name | Type | Mandatory| Description | | ----------- | ------ | ---- | ------------------------------------------------------------ | -| bundleFlags | number | Yes | Type of information that will be returned. The default value is **0**. For details on the available enumerated values, see the application information flags in [BundleFlag](#bundleflag).| -| userId | number | Yes | User ID. The default value is the user ID of the caller. The value must be greater than or equal to 0. | +| bundleFlags | number | Yes | Type of information that will be returned. For details about the available enumerated values, see the application information flags in [BundleFlag](#bundleflag).| +| userId | number | No | User ID. The default value is the user ID of the caller. The value must be greater than or equal to 0. | **Return value** @@ -718,7 +849,7 @@ SystemCapability.BundleManager.BundleFramework **Example** -```js +```ts let bundleFlags = 8; let userId = 100; bundle.getAllApplicationInfo(bundleFlags, userId) @@ -735,7 +866,7 @@ bundle.getAllApplicationInfo(bundleFlags, userId) getAllApplicationInfo(bundleFlags: number, userId: number, callback: AsyncCallback>): void -Obtains the information about all applications of the specified user. This API uses an asynchronous callback to return the result. +Obtains the information about all applications. This API uses an asynchronous callback to return the result. **Required permissions** @@ -749,14 +880,14 @@ SystemCapability.BundleManager.BundleFramework | Name | Type | Mandatory| Description | | ----------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| bundleFlags | number | Yes | Type of information that will be returned. The default value is **0**. For details on the available enumerated values, see the application information flags in [BundleFlag](#bundleflag).| +| bundleFlags | number | Yes | Type of information that will be returned. For details about the available enumerated values, see the application information flags in [BundleFlag](#bundleflag).| | userId | number | Yes | User ID. The default value is the user ID of the caller. The value must be greater than or equal to 0. | | callback | AsyncCallback> | Yes | Callback used to return the application information. | **Example** -```js -let bundleFlags = 8; +```ts +let bundleFlags = bundle.BundleFlag.GET_APPLICATION_INFO_WITH_PERMISSION; let userId = 100; bundle.getAllApplicationInfo(bundleFlags, userId, (err, data) => { if (err) { @@ -774,7 +905,7 @@ bundle.getAllApplicationInfo(bundleFlags, userId, (err, data) => { getAllApplicationInfo(bundleFlags: number, callback: AsyncCallback>) : void; -Obtains the information about all applications. This API uses an asynchronous callback to return the result. +Obtains the information about all applications of the current user. This API uses an asynchronous callback to return the result. **Required permissions** @@ -788,13 +919,13 @@ SystemCapability.BundleManager.BundleFramework | Name | Type | Mandatory| Description | | ----------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| bundleFlags | number | Yes | Type of information that will be returned. The default value is **0**. For details on the available enumerated values, see the application information flags in [BundleFlag](#bundleflag).| +| bundleFlags | number | Yes | Type of information that will be returned. For details about the available enumerated values, see the application information flags in [BundleFlag](#bundleflag).| | callback | AsyncCallback> | Yes | Callback used to return the application information. | **Example** -```js -let bundleFlags = 8; +```ts +let bundleFlags = bundle.BundleFlag.GET_APPLICATION_INFO_WITH_PERMISSION; bundle.getAllApplicationInfo(bundleFlags, (err, data) => { if (err) { console.error('Operation failed. Cause: ' + JSON.stringify(err)); @@ -820,8 +951,8 @@ SystemCapability.BundleManager.BundleFramework | Name | Type | Mandatory | Description | | ---------- | ------ | ---- | ------------ | -| hapFilePath | string | Yes | Path where the HAP file is stored. The path should point to the relative directory of the current application's data directory.| -| bundleFlags | number | Yes | Flags used to specify information contained in the **BundleInfo** object that will be returned. The default value is **0**. For details on the available enumerated values, see the bundle information flags in [BundleFlag](#bundleflag).| +| hapFilePath | string | Yes | Path where the HAP file is stored. The absolute path of the application and the data directory sandbox path are supported.| +| bundleFlags | number | Yes | Flags used to specify information contained in the **BundleInfo** object that will be returned. For details about the available enumerated values, see the bundle information flags in [BundleFlag](#bundleflag).| **Return value** | Type | Description | @@ -830,8 +961,8 @@ SystemCapability.BundleManager.BundleFramework **Example** -```js -let hapFilePath = "/data/xxx/test.hap"; +```ts +let hapFilePath = "/data/storage/el2/base/test.hap"; let bundleFlags = 0; bundle.getBundleArchiveInfo(hapFilePath, bundleFlags) .then((data) => { @@ -857,14 +988,14 @@ SystemCapability.BundleManager.BundleFramework | Name | Type | Mandatory | Description | | ---------- | ------ | ---- | ------------ | -| hapFilePath | string | Yes | Path where the HAP file is stored. The path should point to the relative directory of the current application's data directory.| -| bundleFlags | number | Yes | Flags used to specify information contained in the **BundleInfo** object that will be returned. The default value is **0**. For details on the available enumerated values, see the bundle information flags in [BundleFlag](#bundleflag).| +| hapFilePath | string | Yes | Path where the HAP file is stored.. The absolute path of the application and the data directory sandbox path are supported.| +| bundleFlags | number | Yes | Flags used to specify information contained in the **BundleInfo** object that will be returned. For details about the available enumerated values, see the bundle information flags in [BundleFlag](#bundleflag).| | callback| AsyncCallback\<[BundleInfo](js-apis-bundle-BundleInfo.md)> | Yes | Callback used to return the information about the bundles.| **Example** -```js -let hapFilePath = "/data/xxx/test.hap"; +```ts +let hapFilePath = "/data/storage/el2/base/test.hap"; let bundleFlags = 0; bundle.getBundleArchiveInfo(hapFilePath, bundleFlags, (err, data) => { if (err) { @@ -884,6 +1015,8 @@ getAbilityInfo(bundleName: string, abilityName: string): Promise\ Obtains the ability information based on a given bundle name and ability name. This API uses a promise to return the result. +No permission is required for obtaining the caller's own information. + **Required permissions** ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO @@ -894,9 +1027,9 @@ SystemCapability.BundleManager.BundleFramework **Parameters** -| Name | Type | Mandatory | Description | -| ----------- | ------ | ---- | ---------------- | -| bundleName | string | Yes | Bundle name of an application. | +| Name | Type | Mandatory | Description | +| ----------- | ------ | ---- |------------| +| bundleName | string | Yes | Bundle name of the application. | | abilityName | string | Yes | Ability name.| **Return value** @@ -907,7 +1040,7 @@ SystemCapability.BundleManager.BundleFramework **Example** -```js +```ts let bundleName = "com.example.myapplication"; let abilityName = "com.example.myapplication.MainAbility"; bundle.getAbilityInfo(bundleName, abilityName) @@ -926,6 +1059,8 @@ getAbilityInfo(bundleName: string, abilityName: string, callback: AsyncCallback\ Obtains the ability information based on a given bundle name and ability name. This API uses an asynchronous callback to return the result. +No permission is required for obtaining the caller's own information. + **Required permissions** ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO @@ -936,15 +1071,15 @@ SystemCapability.BundleManager.BundleFramework **Parameters** -| Name | Type | Mandatory | Description | -| ----------- | ------------ | ---- | ---------------- | -| bundleName | string | Yes | Bundle name of an application. | -| abilityName | string | Yes | Ability name.| +| Name | Type | Mandatory | Description | +| ----------- | ------------ | ---- |----------------------------| +| bundleName | string | Yes | Bundle name of the application. | +| abilityName | string | Yes | Ability name. | | callback | AsyncCallback\<[AbilityInfo](js-apis-bundle-AbilityInfo.md)> | Yes | Callback used to return the ability information.| **Example** -```js +```ts let bundleName = "com.example.myapplication"; let abilityName = "com.example.myapplication.MainAbility"; bundle.getAbilityInfo(bundleName, abilityName, (err, data) => { @@ -964,6 +1099,8 @@ getAbilityLabel(bundleName: string, abilityName: string): Promise\ Obtains the application name based on a given bundle name and ability name. This API uses a promise to return the result. +No permission is required for obtaining the caller's own information. + **Required permissions** ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO @@ -974,10 +1111,10 @@ SystemCapability.BundleManager.BundleFramework **Parameters** -| Name | Type | Mandatory | Description | -| ----------- | ------ | ---- | ---------------- | -| bundleName | string | Yes | Bundle name of an application. | -| abilityName | string | Yes | Ability name.| +| Name | Type | Mandatory | Description | +|-------------|--------|-----|------------| +| bundleName | string | Yes | Bundle name of the application. | +| abilityName | string | Yes | Ability name.| **Return value** @@ -987,7 +1124,7 @@ SystemCapability.BundleManager.BundleFramework **Example** -```js +```ts let bundleName = "com.example.myapplication"; let abilityName = "com.example.myapplication.MainAbility"; bundle.getAbilityLabel(bundleName, abilityName) @@ -1006,6 +1143,8 @@ getAbilityLabel(bundleName: string, abilityName: string, callback : AsyncCallbac Obtains the application name based on a given bundle name and ability name. This API uses an asynchronous callback to return the result. +No permission is required for obtaining the caller's own information. + **Required permissions** ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO @@ -1016,15 +1155,15 @@ SystemCapability.BundleManager.BundleFramework **Parameters** -| Name | Type | Mandatory | Description | -| ----------- | ---------------------- | ---- | ---------------- | -| bundleName | string | Yes | Bundle name of an application. | -| abilityName | string | Yes | Ability name.| -| callback | AsyncCallback\ | Yes | Callback used to return the application name. | +| Name | Type | Mandatory | Description | +|-------------|------------------------|-----|-------------------------| +| bundleName | string | Yes | Bundle name of the application. | +| abilityName | string | Yes | Ability name. | +| callback | AsyncCallback\ | Yes | Callback used to return the application name.| **Example** -```js +```ts let bundleName = "com.example.myapplication"; let abilityName = "com.example.myapplication.MainAbility"; bundle.getAbilityLabel(bundleName, abilityName, (err, data) => { @@ -1062,7 +1201,7 @@ SystemCapability.BundleManager.BundleFramework **Example** -```js +```ts let bundleName = "com.example.myapplication"; let abilityName = "com.example.myapplication.MainAbility"; bundle.getAbilityInfo(bundleName, abilityName).then((abilityInfo)=>{ @@ -1095,7 +1234,7 @@ SystemCapability.BundleManager.BundleFramework **Example** -```js +```ts let bundleName = "com.example.myapplication"; let abilityName = "com.example.myapplication.MainAbility"; bundle.getAbilityInfo(bundleName, abilityName).then((abilityInfo)=>{ @@ -1125,17 +1264,17 @@ SystemCapability.BundleManager.BundleFramework | Name | Type | Mandatory| Description | | ---------- | ------ | ---- | ------------------------ | -| bundleName | string | Yes | Bundle name of an application.| +| bundleName | string | Yes | Bundle name of the application.| **Return value** | Type | Description | | ----------------- | ------------------------- | -| Promise\ | Promise used to return whether the ability is enabled. If the ability is enabled, **true** will be returned; otherwise, **false** will be returned.| +| Promise\ | Promise used to return whether the application is enabled. If the application is enabled, **true** will be returned; otherwise, **false** will be returned.| **Example** -```js +```ts let bundleName = "com.example.myapplication"; bundle.isApplicationEnabled(bundleName) .then((data) => { @@ -1161,12 +1300,12 @@ SystemCapability.BundleManager.BundleFramework | Name | Type | Mandatory| Description | | ---------- | ----------------------- | ---- | ------------------------ | -| bundleName | string | Yes | Bundle name of an application.| -| callback | AsyncCallback\ | Yes | Callback used to return whether the ability is enabled. If the ability is enabled, **true** will be returned; otherwise, **false** will be returned. | +| bundleName | string | Yes | Bundle name of the application.| +| callback | AsyncCallback\ | Yes | Callback used to return whether the application is enabled. If the application is enabled, **true** will be returned; otherwise, **false** will be returned. | **Example** -```js +```ts let bundleName = "com.example.myapplication"; bundle.isApplicationEnabled(bundleName, (err, data) => { if (err) { @@ -1185,6 +1324,8 @@ queryAbilityByWant(want: Want, bundleFlags: number, userId?: number): Promise> | Yes | Callback used to return the ability information. | +| Name | Type | Mandatory | Description | +|-------------|---------------------------------------------------------------------|-----|-------------------------------------------------------------------------| +| want | [Want](js-apis-application-want.md) | Yes | Want that contains the bundle name. | +| bundleFlags | number | Yes | Ability information to be returned. For details about the available enumerated values, see the ability information flags in [BundleFlag](#bundleflag).| +| userId | number | Yes | User ID. The value must be greater than or equal to 0. | +| callback | AsyncCallback> | Yes | Callback used to return the ability information. | **Example** -```js +```ts let bundleFlags = 0; let userId = 100; let want = { @@ -1277,6 +1420,8 @@ queryAbilityByWant(want: Want, bundleFlags: number, callback: AsyncCallback> | Yes | Callback used to return the ability information. | +| Name | Type | Mandatory | Description | +|-------------|---------------------------------------------------------------------|-----|-------------------------------------------------------------------------| +| want | [Want](js-apis-application-want.md) | Yes | Want that contains the bundle name. | +| bundleFlags | number | Yes | Ability information to be returned. For details about the available enumerated values, see the ability information flags in [BundleFlag](#bundleflag).| +| callback | AsyncCallback> | Yes | Callback used to return the ability information. | **Example** -```js +```ts let bundleFlags = 0; let want = { bundleName : "com.example.myapplication", @@ -1332,16 +1477,16 @@ SystemCapability.BundleManager.BundleFramework | Name | Type | Mandatory| Description | | ---------- | ------ | ---- | ------------------------ | -| bundleName | string | Yes | Bundle name of an application.| +| bundleName | string | Yes | Bundle name of the application.| **Return value** | Type | Description | | -------------- | -------------------------------------- | -| Promise\<[Want](js-apis-application-Want.md)> | Promise used to return the **Want** object.| +| Promise\<[Want](js-apis-application-want.md)> | Promise used to return the **Want** object.| **Example** -```js +```ts let bundleName = "com.example.myapplication"; bundle.getLaunchWantForBundle(bundleName) .then((data) => { @@ -1371,12 +1516,12 @@ SystemCapability.BundleManager.BundleFramework | Name | Type | Mandatory| Description | | ---------- | --------------------------------------------------- | ---- | -------------------------------------------------------- | -| bundleName | string | Yes | Bundle name of an application. | -| callback | AsyncCallback\<[Want](js-apis-application-Want.md)> | Yes | Callback used to return the **Want** object.| +| bundleName | string | Yes | Bundle name of the application. | +| callback | AsyncCallback\<[Want](js-apis-application-want.md)> | Yes | Callback used to return the **Want** object.| **Example** -```js +```ts let bundleName = "com.example.myapplication"; bundle.getLaunchWantForBundle(bundleName, (err, data) => { if (err) { @@ -1413,7 +1558,7 @@ SystemCapability.BundleManager.BundleFramework **Example** -```js +```ts let uid = 20010005; bundle.getNameForUid(uid) .then((data) => { @@ -1437,14 +1582,14 @@ SystemCapability.BundleManager.BundleFramework **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ---------------------- | ---- | ----------------------------------------------- | -| uid | number | Yes | UID based on which the bundle name is to obtain. | +| Name | Type | Mandatory | Description | +|----------|------------------------|-----|----------------------------| +| uid | number | Yes | UID based on which the bundle name is to obtain. | | callback | AsyncCallback\ | Yes | Callback used to return the bundle name.| **Example** -```js +```ts let uid = 20010005; bundle.getNameForUid(uid, (err, data) => { if (err) { @@ -1464,6 +1609,8 @@ getAbilityIcon(bundleName: string, abilityName: string): Promise\ | Yes | Callback used to return the [pixel map](js-apis-image.md).| **Example** -```js +```ts let bundleName = "com.example.myapplication"; let abilityName = "com.example.myapplication.MainAbility"; bundle.getAbilityIcon(bundleName, abilityName, (err, data) => { @@ -1536,7 +1686,7 @@ bundle.getAbilityIcon(bundleName, abilityName, (err, data) => { ``` ## InstallErrorCodedeprecated -> This API is deprecated since API version 9. You are not advised to use it anymore. +> This API is deprecated since API version 9. You are not advised using it anymore. **System capability**: SystemCapability.BundleManager.BundleFramework @@ -1567,7 +1717,11 @@ bundle.getAbilityIcon(bundleName, abilityName, (err, data) => { > This API is deprecated since API version 9. You are advised to use [bundleManager.BundleFlag](js-apis-bundleManager.md#bundleflag) instead. -Enumerates bundle flags. +Enumerates the bundle flags, which indicate the type of bundle information to obtain. + +If an API does not match the flag, the flag is ignored. For example, using **GET_ABILITY_INFO_WITH_PERMISSION** to obtain the application information does not affect the result. + +Flags can be used together. For example, you can use the combination of **GET_APPLICATION_INFO_WITH_PERMISSION** and **GET_APPLICATION_INFO_WITH_DISABLE** to obtain the result that contains both application permission information and disabled application information. **System capability**: SystemCapability.BundleManager.BundleFramework @@ -1587,9 +1741,9 @@ Enumerates bundle flags. | GET_ALL_APPLICATION_INFO | 0xFFFF0000 | Obtains all application information. | ## BundleOptionsdeprecated -> This API is deprecated since API version 9. You are not advised to use it anymore. +> This API is deprecated since API version 9. You are not advised using it anymore. -Describes the bundle options. +Options that contain the user ID. **System capability**: SystemCapability.BundleManager.BundleFramework @@ -1601,7 +1755,7 @@ Describes the bundle options. > This API is deprecated since API version 9. You are advised to use [bundleManager.AbilityType](js-apis-bundleManager.md#abilitytype) instead. -Enumerates ability types. +Enumerates the ability types. **System capability**: SystemCapability.BundleManager.BundleFramework @@ -1630,7 +1784,7 @@ Enumerates display orientations. > This API is deprecated since API version 9. You are advised to use [bundleManager.LaunchType](js-apis-bundleManager.md#launchtype) instead. -Enumerates launch modes. +Enumerates the ability launch modes. **System capability**: SystemCapability.BundleManager.BundleFramework @@ -1640,9 +1794,9 @@ Enumerates launch modes. | STANDARD | 1 | The ability can have multiple instances. | ## AbilitySubTypedeprecated -> This API is deprecated since API version 9. You are not advised to use it anymore. +> This API is deprecated since API version 9. You are not advised using it anymore. -Enumerates ability subtypes. +Enumerates the ability subtypes. **System capability**: SystemCapability.BundleManager.BundleFramework @@ -1652,9 +1806,9 @@ Enumerates ability subtypes. | CA | 1 | Ability that has a UI.| ## ColorModedeprecated -> This API is deprecated since API version 9. You are not advised to use it anymore. +> This API is deprecated since API version 9. You are not advised using it anymore. -Enumerates color modes. +Enumerates the color modes of applications and widgets. **System capability**: SystemCapability.BundleManager.BundleFramework @@ -1669,7 +1823,7 @@ Enumerates color modes. > This API is deprecated since API version 9. You are advised to use [bundleManager.PermissionGrantState](js-apis-bundleManager.md#permissiongrantstate) instead. -Enumerates permission grant states. +Enumerates the permission grant states. **System capability**: SystemCapability.BundleManager.BundleFramework diff --git a/en/application-dev/reference/apis/js-apis-accessibility-GesturePath.md b/en/application-dev/reference/apis/js-apis-accessibility-GesturePath.md new file mode 100644 index 0000000000000000000000000000000000000000..34d4df8dd99bb528ae79d8d13de74f491f75f3db --- /dev/null +++ b/en/application-dev/reference/apis/js-apis-accessibility-GesturePath.md @@ -0,0 +1,46 @@ +# @ohos.accessibility.GesturePath + + The **GesturePath** module provides APIs for creating gesture path information required for an accessibility application to inject gestures. + +> **NOTE** +> +> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. + +## Modules to Import + +```ts +import GesturePath from '@ohos.accessibility.GesturePath'; +``` + +## GesturePath + +Defines a gesture path. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +### Attributes + +| Name | Type | Readable | Writable | Description | +| ------------ | ---------------------------------------- | ---- | ---- | ------ | +| points | Array<[GesturePoint](js-apis-accessibility-GesturePoint.md#gesturepoint)> | Yes | Yes | Gesture touch point. | +| durationTime | number | Yes | Yes | Total gesture duration, in milliseconds.| + +### constructor + +constructor(durationTime: number); + +Constructor used to create a **GesturePath** object. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| durationTime | number | Yes| Total gesture duration, in milliseconds.| + +**Example** + +```ts +let gesturePath = new GesturePath.GesturePath(20); +``` diff --git a/en/application-dev/reference/apis/js-apis-accessibility-GesturePoint.md b/en/application-dev/reference/apis/js-apis-accessibility-GesturePoint.md new file mode 100644 index 0000000000000000000000000000000000000000..5792c44cd9fc89cf495e943a4e40463ce89281c4 --- /dev/null +++ b/en/application-dev/reference/apis/js-apis-accessibility-GesturePoint.md @@ -0,0 +1,47 @@ +# @ohos.accessibility.GesturePoint + + The **GesturePoint** module provides APIs for creating gesture touch point information required for an accessibility application to inject gestures. + +> **NOTE** +> +> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. + +## Modules to Import + +```ts +import GesturePoint from '@ohos.accessibility.GesturePoint'; +``` + +## GesturePoint + +Defines a gesture touch point. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +### Attributes + +| Name | Type | Readable | Writable | Description | +| --------- | ------ | ---- | ---- | ------- | +| positionX | number | Yes | Yes | X coordinate of the touch point.| +| positionY | number | Yes | Yes | Y coordinate of the touch point.| + +### constructor + +constructor(positionX: number, positionY: number); + +Constructor used to create a **GesturePoint** object. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| positionX | number | Yes| X coordinate of the touch point.| +| positionY | number | Yes | Y coordinate of the touch point.| + +**Example** + +```ts +let gesturePoint = new GesturePoint.GesturePoint(1, 2); +``` diff --git a/en/application-dev/reference/apis/js-apis-accessibility-config.md b/en/application-dev/reference/apis/js-apis-accessibility-config.md index c33230f7181ce92a50cee6c1417eb5d71a124f68..33b6f586279309125be085e8a28d5423b271fae3 100644 --- a/en/application-dev/reference/apis/js-apis-accessibility-config.md +++ b/en/application-dev/reference/apis/js-apis-accessibility-config.md @@ -1,17 +1,16 @@ -# System Accessibility Configuration +# @ohos.accessibility.config -The **config** module allows you to configure system accessibility features, including accessibility extension, high-contrast text, mouse buttons, and captions. +The System Accessibility Configuration module allows you to configure system accessibility features, including accessibility extension, high-contrast text, mouse buttons, and captions. > **NOTE** > -> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. -> -> The APIs provided by this module are system APIs. +> - The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> - The APIs provided by this module are system APIs. ## Modules to Import -```typescript -import config from "@ohos.accessibility.config"; +```ts +import config from '@ohos.accessibility.config'; ``` ## Attributes @@ -22,20 +21,20 @@ import config from "@ohos.accessibility.config"; | -------- | -------- | -------- | -------- | -------- | | highContrastText | [Config](#config)\| Yes| Yes| Whether to enable high-contrast text.| | invertColor | [Config](#config)\| Yes| Yes| Whether to enable color inversion.| -| daltonizationColorFilter | [Config](#config)\<[DaltonizationColorFilter](#daltonizationcolorfilter)>| Yes| Yes| Daltonization filter. | +| daltonizationColorFilter | [Config](#config)<[DaltonizationColorFilter](#daltonizationcolorfilter)>| Yes| Yes| Configuration of the daltonization filter.| | contentTimeout | [Config](#config)\| Yes| Yes| Recommended duration for content display. The value ranges from 0 to 5000, in milliseconds.| -| animationOff | [Config](#config)\| Yes| Yes| Whether to enable animation.| +| animationOff | [Config](#config)\| Yes| Yes| Whether to disable animation.| | brightnessDiscount | [Config](#config)\| Yes| Yes| Brightness discount. The value ranges from 0 to 1.0.| | mouseKey | [Config](#config)\| Yes| Yes| Whether to enable the mouse button feature.| -| mouseAutoClick | [Config](#config)\| Yes| Yes| Interval for the automatic mouse clicks. The value ranges from 0 to 5000, in milliseconds.| +| mouseAutoClick | [Config](#config)\| Yes| Yes| Interval for automatic mouse clicks. The value ranges from 0 to 5000, in milliseconds.| | shortkey | [Config](#config)\| Yes| Yes| Whether to enable the accessibility extension shortcut key.| -| shortkeyTarget | [Config](#config)\| Yes| Yes| Target application for the accessibility extension shortcut key. The value format is bundleName/abilityName.| +| shortkeyTarget | [Config](#config)\| Yes| Yes| Target application for the accessibility extension shortcut key. The value format is 'bundleName/abilityName'.| | captions | [Config](#config)\| Yes| Yes| Whether to enable captions.| -| captionsStyle | [Config](#config)\<[accessibility.CaptionsStyle](./js-apis-accessibility.md#captionsstyle8)>| Yes| Yes| Captions style.| +| captionsStyle | [Config](#config)\<[accessibility.CaptionsStyle](js-apis-accessibility.md#captionsstyle8)>| Yes| Yes| Captions style.| ## enableAbility -enableAbility(name: string, capability: Array<[accessibility.Capability](./js-apis-accessibility.md#capability)>): Promise<void>; +enableAbility(name: string, capability: Array<accessibility.Capability>): Promise<void>; Enables an accessibility extension ability. This API uses a promise to return the result. @@ -45,29 +44,44 @@ Enables an accessibility extension ability. This API uses a promise to return th | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| name | string | Yes| Name of the accessibility extension ability. The format is bundleName/abilityName.| -| capability | Array<[accessibility.Capability](./js-apis-accessibility.md#capability)>) | Yes| Capability of the accessibility extension ability.| +| name | string | Yes| Name of the accessibility extension ability. The format is 'bundleName/abilityName'.| +| capability | Array<[accessibility.Capability](js-apis-accessibility.md#capability)> | Yes| Capability of the accessibility extension ability.| **Return value** | Type| Description| | -------- | -------- | -| Promise<void> | Promise used to return the execution result.| +| Promise<void> | Promise that returns no value.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300001 | Invalid bundle name or ability name. | +| 9300002 | Target ability already enabled. | **Example** - ```typescript - config.enableAbility("com.ohos.example/axExtension", ['retrieve']) - .then(() => { - console.info('enable succeed'); - }).catch((error) => { - console.error('enable failed'); - }); - ``` +```ts +import accessibility from '@ohos.accessibility'; +let name = 'com.ohos.example/axExtension'; +let capability : accessibility.Capability[] = ['retrieve']; +try { + config.enableAbility(name, capability).then(() => { + console.info('enable ability succeed'); + }).catch((err) => { + console.error('failed to enable ability, because ' + JSON.stringify(err)); + }); +} catch (exception) { + console.error('failed to enable ability, because ' + JSON.stringify(exception)); +}; +``` ## enableAbility -enableAbility(name: string, capability: Array<[accessibility.Capability](./js-apis-accessibility.md#capability)>, callback: AsyncCallback<void>): void; +enableAbility(name: string, capability: Array<accessibility.Capability>, callback: AsyncCallback<void>): void; Enables an accessibility extension ability. This API uses an asynchronous callback to return the result. @@ -77,21 +91,37 @@ Enables an accessibility extension ability. This API uses an asynchronous callba | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| name | string | Yes| Name of the accessibility extension ability. The format is bundleName/abilityName.| -| capability | Array<[accessibility.Capability](./js-apis-accessibility.md#capability)> | Yes| Capability of the accessibility extension ability.| -| callback | AsyncCallback<void> | Yes| Callback used to return the execution result.| +| name | string | Yes| Name of the accessibility extension ability. The format is 'bundleName/abilityName'.| +| capability | Array<[accessibility.Capability](js-apis-accessibility.md#capability)> | Yes| Capability of the accessibility extension ability.| +| callback | AsyncCallback<void> | Yes| Callback used to return the result.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300001 | Invalid bundle name or ability name. | +| 9300002 | Target ability already enabled. | **Example** - ```typescript - config.enableAbility("com.ohos.example/axExtension", ['retrieve'], (err, data) => { - if (err) { - console.error('enable failed'); - return; - } - console.info('enable succeed'); - }) - ``` +```ts +import accessibility from '@ohos.accessibility'; +let name = 'com.ohos.example/axExtension'; +let capability : accessibility.Capability[] = ['retrieve']; +try { + config.enableAbility(name, capability, (err) => { + if (err) { + console.error('failed to enable ability, because ' + JSON.stringify(err)); + return; + } + console.info('enable ability succeed'); + }); +} catch (exception) { + console.error('failed to enable ability, because ' + JSON.stringify(exception)); +}; +``` ## disableAbility @@ -105,24 +135,36 @@ Disables an accessibility extension ability. This API uses a promise to return t | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| name | string | Yes| Name of the accessibility extension ability. The format is bundleName/abilityName.| +| name | string | Yes| Name of the accessibility extension ability. The format is 'bundleName/abilityName'.| **Return value** | Type| Description| | -------- | -------- | -| Promise<void> | Promise used to return the execution result.| +| Promise<void> | Promise that returns no value.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300001 | Invalid bundle name or ability name. | **Example** - ```typescript - config.disableAbility("com.ohos.example/axExtension") - .then(() => { - console.info('disable succeed'); - }).catch((error) => { - console.error('disable failed'); - }); - ``` +```ts +let name = 'com.ohos.example/axExtension'; +try { + config.disableAbility(name).then(() => { + console.info('disable ability succeed'); + }).catch((err) => { + console.error('failed to disable ability, because ' + JSON.stringify(err)); + }); +} catch (exception) { + console.error('failed to disable ability, because ' + JSON.stringify(exception)); +}; +``` ## disableAbility @@ -136,26 +178,39 @@ Disables an accessibility extension ability. This API uses an asynchronous callb | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| name | string | Yes| Name of the accessibility extension ability. The format is bundleName/abilityName.| -| callback | AsyncCallback<void> | Yes| Callback used to return the execution result.| +| name | string | Yes| Name of the accessibility extension ability. The format is 'bundleName/abilityName'.| +| callback | AsyncCallback<void> | Yes| Callback used to return the result.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300001 | Invalid bundle name or ability name. | **Example** - ```typescript - config.disableAbility("com.ohos.example/axExtension", (err, data) => { - if (err) { - console.error('disable failed'); - return; - } - console.info('disable succeed'); - }) - ``` +```ts +let name = 'com.ohos.example/axExtension'; +try { + config.disableAbility(name, (err, data) => { + if (err) { + console.error('failed to enable ability, because ' + JSON.stringify(err)); + return; + } + console.info('disable succeed'); + }); +} catch (exception) { + console.error('failed to enable ability, because ' + JSON.stringify(exception)); +}; +``` -## on('enableAbilityListsStateChanged') +## on('enabledAccessibilityExtensionListChange') -on(type: 'enableAbilityListsStateChanged', callback: Callback<void>): void; +on(type: 'enabledAccessibilityExtensionListChange', callback: Callback<void>): void; -Adds a listener for changes in the list of enabled accessibility extension abilities. +Adds a listener for changes in the list of enabled accessibility extension abilities. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.BarrierFree.Accessibility.Core @@ -163,22 +218,27 @@ Adds a listener for changes in the list of enabled accessibility extension abili | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| type | string | Yes| Listening type. The value is fixed at **'enableAbilityListsStateChanged'**, indicating the changes in the list of enabled accessibility extension abilities. | +| type | string | Yes| Listening type. The value is fixed at **'enabledAccessibilityExtensionListChange'**, indicating listening for changes in the list of enabled accessibility extension abilities.| | callback | Callback<void> | Yes| Callback invoked when the list of enabled accessibility extension abilities changes.| **Example** - ```typescript - config.on('enableAbilityListsStateChanged',() => { - console.info('ax extension ability enable list changed'); - }); - ``` +```ts +try { + config.on('enabledAccessibilityExtensionListChange', () => { + console.info('subscribe enabled accessibility extension list change state success'); + }); +} catch (exception) { + console.error('failed to subscribe enabled accessibility extension list change state, because ' + + JSON.stringify(exception)); +}; +``` -## off('enableAbilityListsStateChanged') +## off('enabledAccessibilityExtensionListChange') -off(type: 'enableAbilityListsStateChanged', callback?: Callback<void>): void; +off(type: 'enabledAccessibilityExtensionListChange', callback?: Callback<void>): void; -Cancels the listener for changes in the list of enabled accessibility extension abilities. +Cancels the listener for changes in the list of enabled accessibility extension abilities. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.BarrierFree.Accessibility.Core @@ -186,14 +246,21 @@ Cancels the listener for changes in the list of enabled accessibility extension | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| type | string | No| Listening type. The value is fixed at **'enableAbilityListsStateChanged'**, indicating the changes in the list of enabled accessibility extension abilities. | +| type | string | Yes| Listening type. The value is fixed at **'enabledAccessibilityExtensionListChange'**, indicating listening for changes in the list of enabled accessibility extension abilities.| | callback | Callback<void> | No| Callback invoked when the list of enabled accessibility extension abilities changes.| **Example** - ```typescript - config.off('enableAbilityListsStateChanged'); - ``` +```ts +try { + config.off('enabledAccessibilityExtensionListChange', () => { + console.info('Unsubscribe enabled accessibility extension list change state success'); + }); +} catch (exception) { + console.error('failed to Unsubscribe enabled accessibility extension list change state, because ' + + JSON.stringify(exception)); +}; +``` ## Config @@ -203,7 +270,7 @@ Implements configuration, acquisition, and listening for attributes. set(value: T): Promise<void>; -Sets this attribute. This API uses a promise to return the result. +Sets the attribute value. This API uses a promise to return the result. **System capability**: SystemCapability.BarrierFree.Accessibility.Core @@ -217,24 +284,28 @@ Sets this attribute. This API uses a promise to return the result. | Type| Description| | -------- | -------- | -| Promise<void> | Promise used to return the execution result.| +| Promise<void> | Promise that returns no value.| **Example** - ```typescript - config.highContrastText.set(true) - .then(() => { - console.info('highContrastText set succeed'); - }).catch((error) => { - console.error('highContrastText set failed'); - }); - ``` +```ts +let value = true; +try { + config.highContrastText.set(value).then(() => { + console.info('set highContrastText succeed'); + }).catch((err) => { + console.error('failed to set highContrastText, because ' + JSON.stringify(err)); + }); +} catch (exception) { + console.error('failed to set config, because ' + JSON.stringify(exception)); +}; +``` ### set set(value: T, callback: AsyncCallback<void>): void; -Sets this attribute. This API uses an asynchronous callback to return the result. +Sets the attribute value. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.BarrierFree.Accessibility.Core @@ -243,25 +314,30 @@ Sets this attribute. This API uses an asynchronous callback to return the result | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | value | T | Yes| Attribute value to set.| -| callback | AsyncCallback<void> | Yes| Callback used to return the execution result.| +| callback | AsyncCallback<void> | Yes| Callback used to return the result.| **Example** - ```typescript - config.highContrastText.set(true, (err, data) => { - if (err) { - console.error('highContrastText set failed'); - return; - } - console.info('highContrastText set succeed'); - }) - ``` +```ts +let value = true; +try { + config.highContrastText.set(value, (err, data) => { + if (err) { + console.error('failed to set highContrastText, because ' + JSON.stringify(err)); + return; + } + console.info('set highContrastText succeed'); + }); +} catch (exception) { + console.error('failed to set config, because ' + JSON.stringify(exception)); +}; +``` ### get get(): Promise<T>; -Obtains the value of this attribute. This API uses a promise to return the result. +Obtains the attribute value. This API uses a promise to return the result. **System capability**: SystemCapability.BarrierFree.Accessibility.Core @@ -269,24 +345,25 @@ Obtains the value of this attribute. This API uses a promise to return the resul | Type| Description| | -------- | -------- | -| Promise<T> | Promise used to return the attribute value.| +| Promise<T> | Promise used to return the value obtained.| **Example** - ```typescript - config.highContrastText.get() - .then((value) => { - console.info('highContrastText get succeed'); - }).catch((error) => { - console.error('highContrastText get failed'); - }); - ``` +```ts +let value; +config.highContrastText.get().then((data) => { + value = data; + console.info('get highContrastText success'); +}).catch((err) => { + console.error('failed to get highContrastText, because ' + JSON.stringify(err)); +}); +``` ### get get(callback: AsyncCallback<T>): void; -Obtains the value of this attribute. This API uses an asynchronous callback to return the result. +Obtains the attribute value. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.BarrierFree.Accessibility.Core @@ -294,25 +371,27 @@ Obtains the value of this attribute. This API uses an asynchronous callback to r | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callback | AsyncCallback<void> | Yes| Callback used to return the attribute value.| +| callback | AsyncCallback<T> | Yes| Callback used to return the attribute value.| **Example** - ```typescript - config.highContrastText.get((err, data) => { - if (err) { - console.error('highContrastText get failed'); - return; - } - console.info('highContrastText get succeed'); - }) - ``` +```ts +let value; +config.highContrastText.get((err, data) => { + if (err) { + console.error('failed to get highContrastText, because ' + JSON.stringify(err)); + return; + } + value = data; + console.info('get highContrastText success'); +}); +``` ### on on(callback: Callback<T>): void; -Adds a listener for attribute changes. +Adds a listener for attribute changes. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.BarrierFree.Accessibility.Core @@ -324,17 +403,21 @@ Adds a listener for attribute changes. **Example** - ```typescript - config.highContrastText.on(() => { - console.info('highContrastText changed'); - }); - ``` +```ts +try { + config.highContrastText.on((data) => { + console.info('subscribe highContrastText success, result: ' + JSON.stringify(data)); + }); +} catch (exception) { + console.error('failed subscribe highContrastText, because ' + JSON.stringify(exception)); +} +``` ### off off(callback?: Callback<T>): void; -Cancels the listener for attribute changes. +Cancels the listener for attribute changes. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.BarrierFree.Accessibility.Core @@ -342,13 +425,15 @@ Cancels the listener for attribute changes. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callback | Callback<T> | No| Callback invoked when the attribute changes.| +| callback | Callback<T> | No| Callback invoked when the list of enabled accessibility extension abilities changes.| **Example** - ```typescript - config.highContrastText.off(); - ``` +```ts +config.highContrastText.off((data) => { + console.info('Unsubscribe highContrastText success, result: ' + JSON.stringify(data)); +}); +``` ## DaltonizationColorFilter diff --git a/en/application-dev/reference/apis/js-apis-accessibility.md b/en/application-dev/reference/apis/js-apis-accessibility.md index 6d318b4ade570aea27b58ca93d37ef0a3992d3bc..cf4443c60f4b58a17986bdb7ae5160fd6a95347c 100644 --- a/en/application-dev/reference/apis/js-apis-accessibility.md +++ b/en/application-dev/reference/apis/js-apis-accessibility.md @@ -1,4 +1,4 @@ -# Accessibility +# @ohos.accessibility The **Accessibility** module implements the accessibility functions, including obtaining the accessibility application list, accessibility application enabled status, and captions configuration. @@ -8,7 +8,7 @@ The **Accessibility** module implements the accessibility functions, including o ## Modules to Import -```typescript +```ts import accessibility from '@ohos.accessibility'; ``` @@ -49,7 +49,7 @@ Provides information about an accessibility application. | Name| Type| Readable| Writable| Description| | -------- | -------- | -------- | -------- | -------- | -| id | number | Yes| No| Ability ID.| +| id | string | Yes| No| Ability ID.| | name | string | Yes| No| Ability name.| | bundleName | string | Yes| No| Bundle name.| | targetBundleNames9+ | Array<string> | Yes| No| Name of the target bundle.| @@ -85,7 +85,7 @@ Describes the target action supported by an accessibility application. ## Capability -Enumerates the capabilities of an auxiliary application. +Enumerates the capabilities of an accessibility application. **System capability**: SystemCapability.BarrierFree.Accessibility.Core @@ -145,7 +145,7 @@ Describes the style of captions. ## CaptionsManager8+ -Implements configuration management for captions. +Implements configuration management for captions. Before calling any API of **CaptionsManager**, you must use the [accessibility.getCaptionsManager()](#accessibilitygetcaptionsmanager8) API to obtain a **CaptionsManager** instance. **System capability**: SystemCapability.BarrierFree.Accessibility.Hearing @@ -156,87 +156,113 @@ Implements configuration management for captions. | enabled | boolean | Yes| No| Whether to enable captions configuration.| | style | [CaptionsStyle](#captionsstyle8) | Yes| No| Style of captions.| -In the following API examples, you must first use the [accessibility.getCaptionsManager()](#accessibilitygetcaptionsmanager8) API to obtain a **captionsManager** instance, and then call the methods using the obtained instance. - ### on('enableChange') on(type: 'enableChange', callback: Callback<boolean>): void; -Enables listening for the enabled status changes of captions configuration. +Enables listening for the enabled status changes of captions configuration. This API uses an asynchronous callback to return the result. -- **Parameters** +**Parameters** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | type | string | Yes| Type of the event to listen for, which is set to **enableChange** in this API.| - | callback | Callback<boolean> | Yes| Callback invoked when the enabled status of captions configuration changes.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| type | string | Yes| Type of the event to listen for, which is set to **'enableChange'** in this API.| +| callback | Callback<boolean> | Yes| Callback invoked when the enabled status of captions configuration changes.| -- **Example** +**Example** - ```typescript - captionsManager.on('enableChange',(data) => { - console.info('success data:subscribeStateObserver : ' + JSON.stringify(data)) - }) - ``` +```ts +let captionsManager = accessibility.getCaptionsManager(); +try { + captionsManager.on('enableChange', (data) => { + console.info('subscribe caption manager enable state change, result: ' + JSON.stringify(data)); + }); +} catch (exception) { + console.error('failed to subscribe caption manager enable state change, because ' + JSON.stringify(exception)); +} +``` ### on('styleChange') on(type: 'styleChange', callback: Callback<CaptionsStyle>): void; -Enables listening for captions style changes. +Enables listening for captions style changes. This API uses an asynchronous callback to return the result. -- **Parameters** +**Parameters** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | type | string | Yes| Type of the event to listen for, which is set to **styleChange** in this API.| - | callback | Callback<[CaptionsStyle](#captionsstyle8)> | Yes| Callback invoked when the style of captions changes.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| type | string | Yes| Type of the event to listen for, which is set to **'styleChange'** in this API.| +| callback | Callback<[CaptionsStyle](#captionsstyle8)> | Yes| Callback invoked when the style of captions changes.| -- **Example** +**Example** + +```ts +let captionStyle; +let captionsManager = accessibility.getCaptionsManager(); +try { + captionsManager.on('styleChange', (data) => { + captionStyle = data; + console.info('subscribe caption manager style state change, result: ' + JSON.stringify(data)); + }); +} catch (exception) { + console.error('failed to subscribe caption manager style state change, because ' + JSON.stringify(exception)); +} +``` - ```typescript - captionsManager.on('styleChange',(data) => { - console.info('success data:subscribeStateObserver : ' + JSON.stringify(data)) - }) - ``` - ### off('enableChange') off(type: 'enableChange', callback?: Callback<boolean>): void; -Disables listening for the enabled status changes of captions configuration. +Disables listening for the enabled status changes of captions configuration. This API uses an asynchronous callback to return the result. -- **Parameters** +**Parameters** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | type | string | Yes| Type of the event to listen for, which is set to **enableChange** in this API.| - | callback | Callback<boolean> | No| Callback invoked when the enabled status of captions configuration changes.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| type | string | Yes| Type of the event to listen for, which is set to **'enableChange'** in this API.| +| callback | Callback<boolean> | No| Callback invoked when the enabled status of captions configuration changes.| -- **Example** +**Example** - ```typescript - captionsManager.off('enableChange') - ``` +```ts +let captionsManager = accessibility.getCaptionsManager(); +try { + captionsManager.off('enableChange', (data) => { + console.info('Unsubscribe caption manager enable state change, result: ' + JSON.stringify(data)); + }); +} catch (exception) { + console.error('failed to Unsubscribe caption manager enable state change, because ' + JSON.stringify(exception)); +} +``` ### off('styleChange') off(type: 'styleChange', callback?: Callback<CaptionsStyle>): void; -Disables listening for captions style changes. +Disables listening for captions style changes. This API uses an asynchronous callback to return the result. -- **Parameters** +**Parameters** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | type | string | Yes| Type of the event to listen for, which is set to **styleChange** in this API.| - | callback | Callback<[CaptionsStyle](#captionsstyle8)> | No| Callback invoked when the style of captions changes.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| type | string | Yes| Type of the event to listen for, which is set to **'styleChange'** in this API.| +| callback | Callback<[CaptionsStyle](#captionsstyle8)> | No| Callback invoked when the style of captions changes.| -- **Example** +**Example** - ```typescript - captionsManager.off('styleChange') - ``` +```ts +let captionStyle; +let captionsManager = accessibility.getCaptionsManager(); +try { + captionsManager.off('styleChange', (data) => { + captionStyle = data; + console.info('Unsubscribe caption manager style state change, result: ' + JSON.stringify(data)); + }); +} catch (exception) { + console.error('failed to Unsubscribe caption manager style state change, because ' + JSON.stringify(exception)); +} +``` ## EventInfo @@ -271,16 +297,20 @@ Implements a constructor. **System capability**: SystemCapability.BarrierFree.Accessibility.Core -- **Parameters** +**Parameters** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | jsonObject | string | Yes| JSON string required for creating an object.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| jsonObject | string | Yes| JSON string required for creating an object.| -- **Example** +**Example** - ```typescript - let eventInfo = new accessibility.EventInfo({"type":"click","bundleName":"com.example.MyApplication","triggerAction":"click"}) + ```ts + let eventInfo = new accessibility.EventInfo({ + 'type':'click', + 'bundleName':'com.example.MyApplication', + 'triggerAction':'click' + }); ``` ## EventType @@ -331,153 +361,319 @@ Enumerates window update types. | active | Window activity change.| | focus | Window focus change.| -## accessibility.getAbilityLists +## accessibility.getAbilityLists(deprecated) getAbilityLists(abilityType: AbilityType, stateType: AbilityState): Promise<Array<AccessibilityAbilityInfo>> Obtains the accessibility application list. This API uses a promise to return the result. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. +> You are advised to use[getAccessibilityExtensionList()](#accessibilitygetaccessibilityextensionlist9). + **System capability**: SystemCapability.BarrierFree.Accessibility.Core -- **Parameters** - - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | abilityType | [AbilityType](#abilitytype) | Yes| Accessibility application type.| - | stateType | [AbilityState](#abilitystate) | Yes| Accessibility application status.| - -- **Return value** - - | Type| Description| - | -------- | -------- | - | Promise<Array<[AccessibilityAbilityInfo](#accessibilityabilityinfo)>> | Promise used to return the accessibility application list.| - -- **Example** - - ```typescript - accessibility.getAbilityLists("spoken", "enable") - .then((data) => { - console.info('success data:getAbilityList1 : ' + JSON.stringify(data)); - for (let item of data) { - console.info(item.id); - console.info(item.name); - console.info(item.description); - console.info(item.abilityTypes); - console.info(item.eventTypes); - console.info(item.capabilities); - console.info(item.packageName); - console.info(item.filterBundleNames); - console.info(item.bundleName); - } - }).catch((error) => { - console.error('failed to getAbilityList1 because ' + JSON.stringify(error)); - }) - ``` +**Parameters** -## accessibility.getAbilityLists +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| abilityType | [AbilityType](#abilitytype) | Yes| Accessibility application type.| +| stateType | [AbilityState](#abilitystate) | Yes| Accessibility application status.| + +**Return value** + +| Type| Description| +| -------- | -------- | +| Promise<Array<[AccessibilityAbilityInfo](#accessibilityabilityinfo)>> | Promise used to return the accessibility application list.| + +**Example** + +```ts +let abilityType = 'spoken'; +let abilityState = 'enable'; +let abilityList: accessibility.AccessibilityInfo[]; +try { + accessibility.getAbilityLists(abilityType, abilityState).then((data) => { + for (let item of data) { + console.info(item.id); + console.info(item.name); + console.info(item.description); + console.info(item.bundleName); + extensionList.push(item); + } + console.info('get accessibility extension list success'); + }).catch((err) => { + console.error('failed to get accessibility extension list because ' + JSON.stringify(err)); + }); +} catch (exception) { + console.error('failed to get accessibility extension list because ' + JSON.stringify(exception)); +} +``` + +## accessibility.getAbilityLists(deprecated) getAbilityLists(abilityType: AbilityType, stateType: AbilityState,callback: AsyncCallback<Array<AccessibilityAbilityInfo>>): void Obtains the accessibility application list. This API uses an asynchronous callback to return the result. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. +> You are advised to use [getAccessibilityExtensionList()](#accessibilitygetaccessibilityextensionlist9-1). + **System capability**: SystemCapability.BarrierFree.Accessibility.Core -- **Parameters** - - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | abilityType | [AbilityType](#abilitytype) | Yes| Accessibility application type.| - | stateType | [AbilityState](#abilitystate) | Yes| Accessibility application status.| - | callback | AsyncCallback<Array<[AccessibilityAbilityInfo](#accessibilityabilityinfo)>> | Yes| Callback used to return the accessibility application list.| - -- **Example** - - ```typescript - accessibility.getAbilityLists("visual", "enable", (err, data) => { - if (err) { - console.error('failed to getAbilityList2 because ' + JSON.stringify(err)); - return; - } - console.info('success data:getAbilityList2 : ' + JSON.stringify(data)); - for (let item of data) { - console.info(item.id); - console.info(item.name); - console.info(item.description); - console.info(item.abilityTypes); - console.info(item.eventTypes); - console.info(item.capabilities); - console.info(item.packageName); - console.info(item.filterBundleNames); - console.info(item.bundleName); - } - }) - ``` +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| abilityType | [AbilityType](#abilitytype) | Yes| Accessibility application type.| +| stateType | [AbilityState](#abilitystate) | Yes| Accessibility application status.| +| callback | AsyncCallback<Array<[AccessibilityAbilityInfo](#accessibilityabilityinfo)>> | Yes| Callback used to return the accessibility application list.| + +**Example** + +```ts +let abilityType = 'spoken'; +let abilityState = 'enable'; +let abilityList: accessibility.AccessibilityInfo[]; +try { + accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { + if (err) { + console.error('failed to get accessibility extension list because ' + JSON.stringify(err)); + return; + } + for (let item of data) { + console.info(item.id); + console.info(item.name); + console.info(item.description); + console.info(item.bundleName); + abilityList.push(item); + } + console.info('get accessibility extension list success'); + }).catch((err) => { + console.error('failed to get accessibility extension list because ' + JSON.stringify(err)); + }); +} catch (exception) { + console.error('failed to get accessibility extension list because ' + JSON.stringify(exception)); +} +``` + +## accessibility.getAccessibilityExtensionList9+ + +getAccessibilityExtensionList(abilityType: AbilityType, stateType: AbilityState): Promise<Array<AccessibilityAbilityInfo>> + +Obtains the accessibility application list. This API uses a promise to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| abilityType | [AbilityType](#abilitytype) | Yes| Accessibility application type.| +| stateType | [AbilityState](#abilitystate) | Yes| Accessibility application status.| + +**Return value** + +| Type| Description| +| -------- | -------- | +| Promise<Array<[AccessibilityAbilityInfo](#accessibilityabilityinfo)>> | Promise used to return the accessibility application list.| + +**Example** + +```ts +let abilityType : accessibility.AbilityType = 'spoken'; +let abilityState : accessibility.AbilityState = 'enable'; +let extensionList: accessibility.AccessibilityAbilityInfo[] = []; +try { + accessibility.getAccessibilityExtensionList(abilityType, abilityState).then((data) => { + for (let item of data) { + console.info(item.id); + console.info(item.name); + console.info(item.description); + console.info(item.bundleName); + extensionList.push(item); + } + console.info('get accessibility extension list success'); + }).catch((err) => { + console.error('failed to get accessibility extension list because ' + JSON.stringify(err)); + }); +} catch (exception) { + console.error('failed to get accessibility extension list because ' + JSON.stringify(exception)); +} +``` + +## accessibility.getAccessibilityExtensionList9+ + +getAccessibilityExtensionList(abilityType: AbilityType, stateType: AbilityState, callback: AsyncCallback<Array<AccessibilityAbilityInfo>>): void + +Obtains the accessibility application list. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| abilityType | [AbilityType](#abilitytype) | Yes| Accessibility application type.| +| stateType | [AbilityState](#abilitystate) | Yes| Accessibility application status.| +| callback | AsyncCallback<Array<[AccessibilityAbilityInfo](#accessibilityabilityinfo)>> | Yes| Callback used to return the accessibility application list.| + +**Example** + +```ts +let abilityType : accessibility.AbilityType = 'spoken'; +let abilityState : accessibility.AbilityState = 'enable'; +let extensionList: accessibility.AccessibilityAbilityInfo[] = []; +try { + accessibility.getAccessibilityExtensionList(abilityType, abilityState, (err, data) => { + if (err) { + console.error('failed to get accessibility extension list because ' + JSON.stringify(err)); + return; + } + for (let item of data) { + console.info(item.id); + console.info(item.name); + console.info(item.description); + console.info(item.bundleName); + extensionList.push(item); + } + console.info('get accessibility extension list success'); + }); +} catch (exception) { + console.error('failed to get accessibility extension list because ' + JSON.stringify(exception)); +} +``` ## accessibility.getCaptionsManager8+ getCaptionsManager(): CaptionsManager -Obtains the captions configuration. +Obtains a **CaptionsManager** instance. **System capability**: SystemCapability.BarrierFree.Accessibility.Hearing -- **Return value** +**Return value** - | Type| Description| - | -------- | -------- | - | [CaptionsManager](#captionsmanager8) | Captions configuration.| +| Type| Description| +| -------- | -------- | +| [CaptionsManager](#captionsmanager8) | Captions configuration.| -- **Example** +**Example** - ```typescript - captionsManager = accessibility.getCaptionsManager() - ``` +```ts +let captionsManager = accessibility.getCaptionsManager(); +``` -## accessibility.on('accessibilityStateChange' | 'touchGuideStateChange') +## accessibility.on('accessibilityStateChange') -on(type: 'accessibilityStateChange' | 'touchGuideStateChange', callback: Callback<boolean>): void +on(type: 'accessibilityStateChange', callback: Callback<boolean>): void -Enables listening for the enabled status changes of the accessibility application or touch guide mode. +Enables listening for the enabled status changes of the accessibility application. This API uses an asynchronous callback to return the result. -- **Parameters** +**Parameters** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | type | string | Yes| Type of the event to listen for.
- **'accessibilityStateChange'** means to listen for the enabled status changes of the accessibility application.
**System capability**: SystemCapability.BarrierFree.Accessibility.Core
- **'touchGuideStateChange'** means to listen for the enabled status changes of the touch guide mode.
**System capability**: SystemCapability.BarrierFree.Accessibility.Vision| - | callback | Callback\ | Yes| Callback invoked when the enabled status of captions configuration changes.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| type | string | Yes| Type of the event to listen for, which is set to **'accessibilityStateChange'** in this API.| +| callback | Callback<boolean> | Yes| Callback used to return the result.| -- **Example** +**Example** - ```typescript - accessibility.on('accessibilityStateChange',(data) => { - console.info('success data:subscribeStateObserver : ' + JSON.stringify(data)) - }) - ``` +```ts +try { + accessibility.on('accessibilityStateChange', (data) => { + console.info('subscribe accessibility state change, result: ' + JSON.stringify(data)); + }); +} catch (exception) { + console.error('failed to subscribe accessibility state change, because ' + JSON.stringify(exception)); +} +``` -## accessibility.off('accessibilityStateChange' | 'touchGuideStateChange') +## accessibility.on('touchGuideStateChange') -off(type: 'accessibilityStateChange ' | 'touchGuideStateChange', callback?: Callback<boolean>): void +on(type: 'touchGuideStateChange', callback: Callback<boolean>): void -Disables listening for the enabled status changes of the accessibility application or touch guide mode. +Enables listening for the enabled status changes of the touch guide mode. This API uses an asynchronous callback to return the result. -- **Parameters** +**Parameters** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | type | string | No| Type of the event to listen for.
- **'accessibilityStateChange'** means to listen for the enabled status changes of the accessibility application.
**System capability**: SystemCapability.BarrierFree.Accessibility.Core
- **'touchGuideStateChange'** means to listen for the enabled status changes of the touch guide mode.
**System capability**: SystemCapability.BarrierFree.Accessibility.Vision| - | callback | Callback<boolean> | No| Callback invoked when the enabled status changes.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| type | string | Yes| Type of the event to listen for, which is set to **'touchGuideStateChange'** in this API.| +| callback | Callback<boolean> | Yes| Callback used to return the result.| -- **Example** +**Example** - ```typescript - accessibility.off('accessibilityStateChange',(data) => { - console.info('success data:unSubscribeStateObserver : ' + JSON.stringify(data)) - }) - ``` +```ts +try { + accessibility.on('touchGuideStateChange', (data) => { + console.info('subscribe touch guide state change, result: ' + JSON.stringify(data)); + }); +} catch (exception) { + console.error('failed to subscribe touch guide state change, because ' + JSON.stringify(exception)); +} +``` + +## accessibility.off('accessibilityStateChange') + +off(type: 'accessibilityStateChange', callback?: Callback<boolean>): void + +Disables listening for the enabled status changes of the accessibility application. This API uses an asynchronous callback to return the result. + + + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| type | string | No| Type of the event to listen for, which is set to **'accessibilityStateChange'** in this API.| +| callback | Callback<boolean> | No| Callback used to return the result.| + +**Example** + +```ts +try { + accessibility.off('accessibilityStateChange', (data) => { + console.info('Unsubscribe accessibility state change, result: ' + JSON.stringify(data)); + }); +} catch (exception) { + console.error('failed to Unsubscribe accessibility state change, because ' + JSON.stringify(exception)); +} +``` + +## accessibility.off('touchGuideStateChange') + +off(type: 'touchGuideStateChange', callback?: Callback<boolean>): void + +Disables listening for the enabled status changes of the touch guide mode. This API uses an asynchronous callback to return the result. + + + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| type | string | No| Type of the event to listen for, which is set to **'touchGuideStateChange'** in this API.| +| callback | Callback<boolean> | No| Callback used to return the result.| + +**Example** + +```ts +try { + accessibility.off('touchGuideStateChange', (data) => { + console.info('Unsubscribe touch guide state change, result: ' + JSON.stringify(data)); + }); +} catch (exception) { + console.error('failed to Unsubscribe touch guide state change, because ' + JSON.stringify(exception)); +} +``` ## accessibility.isOpenAccessibility @@ -487,22 +683,21 @@ Checks whether accessibility is enabled. This API uses a promise to return the r **System capability**: SystemCapability.BarrierFree.Accessibility.Core -- **Return value** +**Return value** - | Type| Description| - | -------- | -------- | - | Promise<boolean> | Returns **true** if accessibility is enabled; returns **false** otherwise.| +| Type| Description| +| -------- | -------- | +| Promise<boolean> | Promise used to return the result. Returns **true** if accessibility is enabled; returns **false** otherwise.| -- **Example** +**Example** - ```typescript - accessibility.isOpenAccessibility() - .then((data) => { - console.info('success data:isOpenAccessibility : ' + JSON.stringify(data)) - }).catch((error) => { - console.error('failed to isOpenAccessibility because ' + JSON.stringify(error)); - }) - ``` +```ts +accessibility.isOpenAccessibility().then((data) => { + console.info('success data:isOpenAccessibility : ' + JSON.stringify(data)) +}).catch((err) => { + console.error('failed to isOpenAccessibility because ' + JSON.stringify(err)); +}); +``` ## accessibility.isOpenAccessibility @@ -512,23 +707,23 @@ Checks whether accessibility is enabled. This API uses an asynchronous callback **System capability**: SystemCapability.BarrierFree.Accessibility.Core -- **Parameters** +**Parameters** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | callback | AsyncCallback<boolean> | Yes| Callback used to return the result. Returns **true** if accessibility is enabled; returns **false** otherwise.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| callback | AsyncCallback<boolean> | Yes| Callback used to return the result. Returns **true** if accessibility is enabled; returns **false** otherwise.| -- **Example** +**Example** - ```typescript - accessibility.isOpenAccessibility((err, data) => { - if (err) { - console.error('failed to isOpenAccessibility because ' + JSON.stringify(err)); - return; - } - console.info('success data:isOpenAccessibility : ' + JSON.stringify(data)) - }) - ``` +```ts +accessibility.isOpenAccessibility((err, data) => { + if (err) { + console.error('failed to isOpenAccessibility because ' + JSON.stringify(err)); + return; + } + console.info('success data:isOpenAccessibility : ' + JSON.stringify(data)) +}); +``` ## accessibility.isOpenTouchGuide @@ -538,22 +733,21 @@ Checks whether touch guide mode is enabled. This API uses a promise to return th **System capability**: SystemCapability.BarrierFree.Accessibility.Vision -- **Return value** +**Return value** - | Type| Description| - | -------- | -------- | - | Promise<boolean> | Returns **true** if touch guide mode is enabled; returns **false** otherwise.| +| Type| Description| +| -------- | -------- | +| Promise<boolean> | Promise used to return the result. Returns **true** if touch guide mode is enabled; returns **false** otherwise.| -- **Example** +**Example** - ```typescript - accessibility.isOpenTouchGuide() - .then((data) => { - console.info('success data:isOpenTouchGuide : ' + JSON.stringify(data)) - }).catch((error) => { - console.error('failed to isOpenTouchGuide because ' + JSON.stringify(error)); - }) - ``` +```ts +accessibility.isOpenTouchGuide().then((data) => { + console.info('success data:isOpenTouchGuide : ' + JSON.stringify(data)) +}).catch((err) => { + console.error('failed to isOpenTouchGuide because ' + JSON.stringify(err)); +}); +``` ## accessibility.isOpenTouchGuide @@ -563,78 +757,172 @@ Checks whether touch guide mode is enabled. This API uses an asynchronous callba **System capability**: SystemCapability.BarrierFree.Accessibility.Vision -- **Parameters** +**Parameters** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | callback | AsyncCallback<boolean> | Yes| Callback used to return the result. Returns **true** if touch guide mode is enabled; returns **false** otherwise.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| callback | AsyncCallback<boolean> | Yes| Callback used to return the result. Returns **true** if touch guide mode is enabled; returns **false** otherwise.| -- **Example** +**Example** - ```typescript - accessibility.isOpenTouchGuide((err, data) => { - if (err) { - console.error('failed to isOpenTouchGuide because ' + JSON.stringify(err)); - return; - } - console.info('success data:isOpenTouchGuide : ' + JSON.stringify(data)) - }) - ``` +```ts +accessibility.isOpenTouchGuide((err, data) => { + if (err) { + console.error('failed to isOpenTouchGuide because ' + JSON.stringify(err)); + return; + } + console.info('success data:isOpenTouchGuide : ' + JSON.stringify(data)) +}); +``` -## accessibility.sendEvent +## accessibility.sendEvent(deprecated) sendEvent(event: EventInfo): Promise<void> Sends an accessibility event. This API uses a promise to return the result. -**System capability**: SystemCapability.BarrierFree.Accessibility.Core - -- **Parameters** +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. +> You are advised to use **[sendAccessibilityEvent()](#accessibilitysendaccessibilityevent9)**. - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | event | [EventInfo](#eventinfo) | Yes| Accessibility event.| +**System capability**: SystemCapability.BarrierFree.Accessibility.Core -- **Return value** +**Parameters** - | Type| Description| - | -------- | -------- | - | Promise<void> | Promise used to return the result. Returns data if the accessibility event is sent successfully; returns an error otherwise.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| event | [EventInfo](#eventinfo) | Yes| Accessibility event.| -- **Example** +**Return value** - ```typescript - accessibility.sendEvent(this.eventInfo) - .then((data) => { - console.info('success data:sendEvent : ' + JSON.stringify(data)) - }).catch((error) => { - console.error('failed to sendEvent because ' + JSON.stringify(error)); - }) - ``` +| Type| Description| +| -------- | -------- | +| Promise<void> | Promise that returns no value.| + +**Example** + +```ts +let eventInfo = new accessibility.EventInfo({ + 'type':'click', + 'bundleName':'com.example.MyApplication', + 'triggerAction':'click' +}); +accessibility.sendEvent(eventInfo).then(() => { + console.info('send event success'); +}).catch((err) => { + console.error('failed to sendEvent because ' + JSON.stringify(err)); +}); +``` -## accessibility.sendEvent +## accessibility.sendEvent(deprecated) sendEvent(event: EventInfo, callback: AsyncCallback<void>): void Sends an accessibility event. This API uses an asynchronous callback to return the result. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. +> You are advised to use **[sendAccessibilityEvent()](#accessibilitysendaccessibilityevent9-1)**. + **System capability**: SystemCapability.BarrierFree.Accessibility.Core -- **Parameters** +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| event | [EventInfo](#eventinfo) | Yes| Accessibility event.| +| callback | AsyncCallback<void> | Yes| Callback used to return the result. If the operation fails, **error** that contains data is returned. | + +**Example** + +```ts +let eventInfo = new accessibility.EventInfo({ + 'type':'click', + 'bundleName':'com.example.MyApplication', + 'triggerAction':'click' +}); +accessibility.sendEvent(eventInfo, (err, data) => { + if (err) { + console.error('failed to sendEvent because ' + JSON.stringify(err)); + return; + } + console.info('sendEvent success'); +}); +``` - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | event | [EventInfo](#eventinfo) | Yes| Accessibility event.| - | callback | AsyncCallback<void> | Yes| Callback used to return the result. Returns data if the accessibility event is sent successfully; returns an error otherwise.| +## accessibility.sendAccessibilityEvent9+ -- **Example** +sendAccessibilityEvent(event: EventInfo): Promise<void> - ```typescript - accessibility.sendEvent(this.eventInfo,(err, data) => { - if (err) { - console.error('failed to sendEvent because ' + JSON.stringify(err)); - return; - } - console.info('success data:sendEvent : ' + JSON.stringify(data)) - }) - ``` +Sends an accessibility event. This API uses a promise to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| event | [EventInfo](#eventinfo) | Yes| Accessibility event.| + +**Return value** + +| Type| Description| +| -------- | -------- | +| Promise<void> | Promise that returns no value.| + +**Example** + +```ts +let eventInfo = new accessibility.EventInfo({ + 'type':'click', + 'bundleName':'com.example.MyApplication', + 'triggerAction':'click' +}); +try { + accessibility.sendAccessibilityEvent(eventInfo).then(() => { + console.info('send event success'); + }).catch((err) => { + console.error('failed to send event because ' + JSON.stringify(err)); + }); +} catch (exception) { + console.error('failed to send event because ' + JSON.stringify(exception)); +} +``` + +## accessibility.sendAccessibilityEvent9+ + +sendAccessibilityEvent(event: EventInfo, callback: AsyncCallback<void>): void + +Sends an accessibility event. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| event | [EventInfo](#eventinfo) | Yes| Accessibility event.| +| callback | AsyncCallback<void> | Yes| Callback used to return the result. If the operation fails, **error** that contains data is returned. | + +**Example** + +```ts +let eventInfo = new accessibility.EventInfo({ + 'type':'click', + 'bundleName':'com.example.MyApplication', + 'triggerAction':'click' +}); +try { + accessibility.sendEvent(eventInfo, (err, data) => { + if (err) { + console.error('failed to send event because ' + JSON.stringify(err)); + return; + } + console.info('send event success'); + }); +} catch (exception) { + console.error('failed to send event because ' + JSON.stringify(exception)); +} +``` diff --git a/en/application-dev/reference/apis/js-apis-appAccount.md b/en/application-dev/reference/apis/js-apis-appAccount.md index 5814fad2cff1b347469cc49c6a51196e9beb1e80..0d2aef3e25aa21eb724c8f74f977d901ea12b290 100644 --- a/en/application-dev/reference/apis/js-apis-appAccount.md +++ b/en/application-dev/reference/apis/js-apis-appAccount.md @@ -1,4 +1,4 @@ -# App Account Management +# @ohos.account.appAccount The **appAccount** module provides APIs for adding, deleting, modifying, and querying app account information, and supports inter-app authentication and distributed data synchronization. @@ -3173,7 +3173,7 @@ Set credentials for an app account. This API uses an asynchronous callback to re | Name | Type | Mandatory | Description | | -------------- | ------------------------- | ---- | ------------- | | name | string | Yes | Name of the target app account. | -| credentialType | string | Yes | Type of the credential to delete. | +| credentialType | string | Yes | Type of the credential to set. | | credential | string | Yes | Credential value. | | callback | AsyncCallback<void> | Yes | Callback invoked to return the result. If the operation is successful, **err** is **null**. Otherwise, **err** is an error object.| @@ -3203,7 +3203,7 @@ Set credentials for an app account. This API uses a promise to return the result | Name | Type | Mandatory | Description | | -------------- | ------ | ---- | ---------- | | name | string | Yes | Name of the target app account. | -| credentialType | string | Yes | Type of the credential to delete.| +| credentialType | string | Yes | Type of the credential to set.| | credential | string | Yes | Credential value.| **Return value** @@ -3576,7 +3576,7 @@ Obtains the credential of an app account. This API uses an asynchronous callback | Name | Type | Mandatory | Description | | -------------- | --------------------------- | ---- | -------------- | | name | string | Yes | Name of the target app account. | -| credentialType | string | Yes | Type of the credential to delete.| +| credentialType | string | Yes | Type of the credential to obtain.| | callback | AsyncCallback<string> | Yes | Callback invoked to return the result. If the operation is successful, **err** is **null** and **data** is the credential obtained. Otherwise, **err** is an error object.| **Example** @@ -3606,7 +3606,7 @@ Obtains the credential of an app account. This API uses a promise to return the | Name | Type | Mandatory | Description | | -------------- | ------ | ---- | ---------- | | name | string | Yes | Name of the target app account. | -| credentialType | string | Yes | Type of the credential to delete.| +| credentialType | string | Yes | Type of the credential to obtain.| **Return value** diff --git a/en/application-dev/reference/apis/js-apis-application-accessibilityExtensionAbility.md b/en/application-dev/reference/apis/js-apis-application-accessibilityExtensionAbility.md index a78f8cc320a4d081f356145d8ed4c51907a025ba..a47e3e8908f69f5515beab95cea6f74351719a77 100644 --- a/en/application-dev/reference/apis/js-apis-application-accessibilityExtensionAbility.md +++ b/en/application-dev/reference/apis/js-apis-application-accessibilityExtensionAbility.md @@ -1,12 +1,10 @@ -# Accessibility Extension Ability +# @ohos.application.AccessibilityExtensionAbility -The **AccessibilityExtensionAbility** module is based on the ExtensionAbility framework and provides the **AccessibilityExtensionAbility**. +The **AccessibilityExtensionAbility** module provides accessibility extension capabilities based on the ExtensionAbility framework. ->**NOTE** +> **NOTE** > ->The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. -> ->The APIs of this module can be used only in the stage model. +> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## Modules to Import @@ -18,9 +16,9 @@ import AccessibilityExtensionAbility from '@ohos.application.AccessibilityExtens **System capability**: SystemCapability.BarrierFree.Accessibility.Core -| Name | Type | Readable | Writable | Description | +| Name | Type| Readable| Writable| Description | | --------- | -------- | ---- | ---- | ------------------------- | -| context | [AccessibilityExtensionContext](js-apis-accessibility-extension-context.md) | Yes | No | Context of the accessibility extension ability. | +| context | [AccessibilityExtensionContext](js-apis-inner-application-accessibilityExtensionContext.md) | Yes| No| Context of the accessibility extension ability.| ## AccessibilityEvent @@ -32,36 +30,10 @@ Defines an accessibility event. | Name | Type | Readable | Writable | Description | | --------- | ---------------------------------------- | ---- | ---- | ---------- | -| eventType | [EventType](js-apis-accessibility.md#eventtype) \| [WindowUpdateType](js-apis-accessibility.md#windowupdatetype) \| [TouchGuideType](#touchguidetype) \| [GestureType](#gesturetype) \| [PageUpdateType](#pageupdatetype) | Yes | No | Event type. | +| eventType | [accessibility.EventType](js-apis-accessibility.md#EventType) \| [accessibility.WindowUpdateType](js-apis-accessibility.md#WindowUpdateType) \| [TouchGuideType](#touchguidetype) \| [GestureType](#gesturetype) \| [PageUpdateType](#pageupdatetype) | Yes | No | Event type. | | target | AccessibilityElement | Yes | No | Target component where the event occurs.| | timeStamp | number | Yes | No | Timestamp of the event. | -## GesturePath - -Defines a gesture path. - -**System capability**: SystemCapability.BarrierFree.Accessibility.Core - -### Attributes - -| Name | Type | Readable | Writable | Description | -| ------------ | ---------------------------------------- | ---- | ---- | ------ | -| points | Array<[GesturePoint](gesturepoint)> | Yes | Yes | An array of gesture touch points. | -| durationTime | number | Yes | Yes | Total time consumed by the gesture.| - -## GesturePoint - -Defines a gesture touch point. - -**System capability**: SystemCapability.BarrierFree.Accessibility.Core - -### Attributes - -| Name | Type | Readable | Writable | Description | -| --------- | ------ | ---- | ---- | ------- | -| positionX | number | Yes | Yes | X-coordinate of the touch point.| -| positionY | number | Yes | Yes | Y-coordinate of the touch point.| - ## GestureType Enumerates gesture types. @@ -89,7 +61,7 @@ Enumerates gesture types. ## PageUpdateType -Enumerates the page refresh types. +Enumerates the page update types. **System capability**: SystemCapability.BarrierFree.Accessibility.Core @@ -106,27 +78,25 @@ Enumerates the touch guide event types. | Name | Description | | ---------- | ------------ | -| touchBegin | A touch starts in touch guide mode.| -| touchEnd | A touch ends in touch guide mode.| +| touchBegin | Start of touch in touch guide mode. | +| touchEnd | End of touch in touch guide mode. | ## AccessibilityExtensionAbility.onConnect onConnect(): void; -Called when the **AccessibilityExtensionAbility** is enabled and connected to the system service. In this API, you can initialize service logic. This API can be overridden as required. +Called when the **AccessibilityExtensionAbility** is enabled and connected to the system service. In this API, you can have the service logic initialized. This API can be overridden as required. **System capability**: SystemCapability.BarrierFree.Accessibility.Core -**Parameters** - -None - **Example** ```ts -onConnect(): void { - console.log("AxExtensionAbility onConnect"); -} +class MyAccessibilityExtensionAbility extends AccessibilityExtensionAbility { + onConnect() { + console.log('AxExtensionAbility onConnect'); + } +}; ``` ## AccessibilityExtensionAbility.onDisconnect @@ -137,16 +107,14 @@ Called when the **AccessibilityExtensionAbility** is disabled and disconnected f **System capability**: SystemCapability.BarrierFree.Accessibility.Core -**Parameters** - -None - **Example** ```ts -onDisconnect(): void { - console.log("AxExtensionAbility onDisconnect"); -} +class MyAccessibilityExtensionAbility extends AccessibilityExtensionAbility { + onDisconnect() { + console.log('AxExtensionAbility onDisconnect'); + } +}; ``` ## AccessibilityExtensionAbility.onAccessibilityEvent @@ -166,19 +134,21 @@ Called when an event that matches the specified bundle and event type occurs. In **Example** ```ts -onAccessibilityEvent(event: AccessibilityEvent): void { - console.log("AxExtensionAbility onAccessibilityEvent"); - if (event.eventType == 'click') { - console.log("AxExtensionAbility onAccessibilityEvent: click"); +class MyAccessibilityExtensionAbility extends AccessibilityExtensionAbility { + onAccessibilityEvent(event) { + console.log('AxExtensionAbility onAccessibilityEvent'); + if (event.eventType == 'click') { + console.log('AxExtensionAbility onAccessibilityEvent: click'); + } } -} +}; ``` ## AccessibilityExtensionAbility.onKeyEvent -onKeyEvent(keyEvent: inputEventClient.KeyEvent): boolean; +onKeyEvent(keyEvent: KeyEvent): boolean; -Called when a physical key is pressed. In this API, you can determine whether to intercept the key event based on the service. +Called when a physical key is pressed. In this API, you can determine whether to intercept an event based on the service. **System capability**: SystemCapability.BarrierFree.Accessibility.Core @@ -191,12 +161,14 @@ Called when a physical key is pressed. In this API, you can determine whether to **Example** ```ts -onKeyEvent(keyEvent: inputEventClient.KeyEvent): boolean { - console.log("AxExtensionAbility onKeyEvent"); - if (keyEvent.keyCode == 22) { - console.log("AxExtensionAbility onKeyEvent: intercept 22"); - return true; +class MyAccessibilityExtensionAbility extends AccessibilityExtensionAbility { + onKeyEvent(keyEvent) { + console.log('AxExtensionAbility onKeyEvent'); + if (keyEvent.keyCode == 22) { + console.log('AxExtensionAbility onKeyEvent: intercept 22'); + return true; + } + return false; } - return false; -} +}; ``` diff --git a/en/application-dev/reference/apis/js-apis-arraylist.md b/en/application-dev/reference/apis/js-apis-arraylist.md index d98422b678ea658dbe4092dc9247ca4bb551f5cc..f6334ff328c76de2d9be97b9ad430065819e53c9 100644 --- a/en/application-dev/reference/apis/js-apis-arraylist.md +++ b/en/application-dev/reference/apis/js-apis-arraylist.md @@ -1,4 +1,4 @@ -# Linear Container ArrayList +# @ohos.util.ArrayList (Linear Container ArrayList) > **NOTE** > @@ -52,11 +52,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let arrayList = new ArrayList(); -try { - let arrayList2 = ArrayList(); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -90,21 +85,16 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er **Example** - ```ts - let arrayList = new ArrayList(); - let result = arrayList.add("a"); - let result1 = arrayList.add(1); - let b = [1, 2, 3]; - let result2 = arrayList.add(b); - let c = {name: "Dylon", age: "13"}; - let result3 = arrayList.add(c); - let result4 = arrayList.add(false); - try { - arrayList.add.bind({}, "b")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. - } catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); - } - ``` +```ts +let arrayList = new ArrayList(); +let result = arrayList.add("a"); +let result1 = arrayList.add(1); +let b = [1, 2, 3]; +let result2 = arrayList.add(b); +let c = {name: "Dylon", age: "13"}; +let result3 = arrayList.add(c); +let result4 = arrayList.add(false); +``` ### insert @@ -128,7 +118,7 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The insert method cannot be bound. | -| 10200001 | The value of parameters are out of range. | +| 10200001 | The parameter value is out of range. | **Example** @@ -137,21 +127,6 @@ let arrayList = new ArrayList(); arrayList.insert("A", 0); arrayList.insert(0, 1); arrayList.insert(true, 2); -try { - arrayList.insert.bind({}, 1, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - let res = arrayList.insert (8, 11); // Trigger an out-of-bounds exception. -} catch (err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - let res = arrayList.insert("a", "b"); // Trigger a type exception. -} catch (err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### has @@ -189,11 +164,6 @@ let arrayList = new ArrayList(); let result = arrayList.has("squirrel"); arrayList.add("squirrel"); let result1 = arrayList.has("squirrel"); -try { - arrayList.has.bind({}, "squirrel")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### getIndexOf @@ -236,11 +206,6 @@ arrayList.add(1); arrayList.add(2); arrayList.add(4); let result = arrayList.getIndexOf(2); -try { - arrayList.getIndexOf.bind({}, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### getLastIndexOf @@ -283,11 +248,6 @@ arrayList.add(1); arrayList.add(2); arrayList.add(4); let result = arrayList.getLastIndexOf(2); -try { - arrayList.getLastIndexOf.bind({}, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### removeByIndex @@ -317,7 +277,7 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The removeByIndex method cannot be bound. | -| 10200001 | The value of parameters are out of range. | +| 10200001 | The parameter value is out of range. | **Example** @@ -329,21 +289,6 @@ arrayList.add(5); arrayList.add(2); arrayList.add(4); let result = arrayList.removeByIndex(2); -try { - arrayList.removeByIndex.bind({}, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - arrayList.removeByIndex("a"); // Trigger a type exception. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - arrayList.removeByIndex(8); // Trigger an out-of-bounds exception. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### remove @@ -383,11 +328,6 @@ arrayList.add(4); arrayList.add(5); arrayList.add(4); let result = arrayList.remove(2); -try { - arrayList.remove.bind({}, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### removeByRange @@ -412,7 +352,7 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The removeByRange method cannot be bound. | -| 10200001 | The value of parameters are out of range. | +| 10200001 | The parameter value is out of range. | **Example** @@ -423,21 +363,11 @@ arrayList.add(4); arrayList.add(5); arrayList.add(4); arrayList.removeByRange(2, 4); -try { - arrayList.removeByRange.bind({}, 2, 4)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - arrayList.removeByRange(8, 4); // Trigger an out-of-bounds exception. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### replaceAllElements -replaceAllElements(callbackfn: (value: T, index?: number, arrlist?: ArrayList<T>) => T, +replaceAllElements(callbackFn: (value: T, index?: number, arrlist?: ArrayList<T>) => T, thisArg?: Object): void Replaces all elements in this container with new elements, and returns the new ones. @@ -448,7 +378,7 @@ Replaces all elements in this container with new elements, and returns the new o | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked for the replacement.| +| callbackFn | function | Yes| Callback invoked for the replacement.| | thisArg | Object | No| Value to use when the callback is invoked.| callbackfn @@ -481,18 +411,11 @@ arrayList.replaceAllElements((value: number, index: number)=> { arrayList.replaceAllElements((value: number, index: number) => { return value = value - 2; }); -try { - arrayList.replaceAllElements.bind({}, (value: number, index: number)=> { - return value = 2 * value; - })(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### forEach -forEach(callbackfn: (value: T, index?: number, arrlist?: ArrayList<T>) => void, +forEach(callbackFn: (value: T, index?: number, arrlist?: ArrayList<T>) => void, thisArg?: Object): void Uses a callback to traverse the elements in this container and obtain their position indexes. @@ -503,7 +426,7 @@ Uses a callback to traverse the elements in this container and obtain their posi | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked to traverse the elements in the container.| +| callbackFn | function | Yes| Callback invoked to traverse the elements in the container.| | thisArg | Object | No| Value to use when the callback is invoked.| callbackfn @@ -533,13 +456,6 @@ arrayList.add(4); arrayList.forEach((value, index) => { console.log(`value:${value}`, index); }); -try { - arrayList.forEach.bind({}, (value, index) => { - console.log(`value:${value}`, index); - })(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### sort @@ -582,11 +498,6 @@ arrayList.add(4); arrayList.sort((a: number, b: number) => a - b); arrayList.sort((a: number, b: number) => b - a); arrayList.sort(); -try { - arrayList.sort.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### subArrayList @@ -617,7 +528,7 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The subArrayList method cannot be bound. | -| 10200001 | The value of parameters are out of range. | +| 10200001 | The parameter value is out of range. | **Example** @@ -630,16 +541,6 @@ arrayList.add(4); let result1 = arrayList.subArrayList(2, 4); let result2 = arrayList.subArrayList(4, 3); let result3 = arrayList.subArrayList(2, 6); -try { - arrayList.subArrayList.bind({}, 2, 4)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - arrayList.subArrayList(6, 4); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### clear @@ -667,11 +568,6 @@ arrayList.add(4); arrayList.add(5); arrayList.add(4); arrayList.clear(); -try { - arrayList.clear.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### clone @@ -706,11 +602,6 @@ arrayList.add(4); arrayList.add(5); arrayList.add(4); let result = arrayList.clone(); -try { - arrayList.clone.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### getCapacity @@ -744,11 +635,6 @@ arrayList.add(4); arrayList.add(5); arrayList.add(4); let result = arrayList.getCapacity(); -try { - arrayList.getCapacity.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### convertToArray @@ -782,11 +668,6 @@ arrayList.add(4); arrayList.add(5); arrayList.add(4); let result = arrayList.convertToArray(); -try { - arrayList.convertToArray.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### isEmpty @@ -820,11 +701,6 @@ arrayList.add(4); arrayList.add(5); arrayList.add(4); let result = arrayList.isEmpty(); -try { - arrayList.isEmpty.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### increaseCapacityTo @@ -859,11 +735,6 @@ arrayList.add(5); arrayList.add(4); arrayList.increaseCapacityTo(2); arrayList.increaseCapacityTo(8); -try { - arrayList.increaseCapacityTo.bind({}, 5)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### trimToCurrentLength @@ -891,11 +762,6 @@ arrayList.add(4); arrayList.add(5); arrayList.add(4); arrayList.trimToCurrentLength(); -try { - arrayList.trimToCurrentLength.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### [Symbol.iterator] @@ -941,9 +807,4 @@ while(temp != undefined) { console.log(`value:${temp}`); temp = iter.next().value; } -try { - arrayList[Symbol.iterator].bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` diff --git a/en/application-dev/reference/apis/js-apis-audio.md b/en/application-dev/reference/apis/js-apis-audio.md index 8296185a2866ab0148e68ee56e52eea68e708892..48be07fbffdadd82f34eb41b6906f4a87a679e89 100644 --- a/en/application-dev/reference/apis/js-apis-audio.md +++ b/en/application-dev/reference/apis/js-apis-audio.md @@ -1,4 +1,4 @@ -# Audio Management +# @ohos.multimedia.audio (Audio Management) The **Audio** module provides basic audio management capabilities, including audio volume and audio device management, and audio data collection and rendering. @@ -9,9 +9,9 @@ This module provides the following common audio-related functions: - [AudioCapturer](#audiocapturer8): audio capture, used to record PCM audio data. - [TonePlayer](#toneplayer9): tone player, used to manage and play Dual Tone Multi Frequency (DTMF) tones, such as dial tones and ringback tones. -> **NOTE** +> **NOTE** > -> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## Modules to Import @@ -23,9 +23,9 @@ import audio from '@ohos.multimedia.audio'; | Name | Type | Readable | Writable| Description | | --------------------------------------- | ----------| ---- | ---- | ------------------ | -| LOCAL_NETWORK_ID9+ | string | Yes | No | Network ID of the local device.
This is a system API.
**System capability**: SystemCapability.Multimedia.Audio.Device | -| DEFAULT_VOLUME_GROUP_ID9+ | number | Yes | No | Default volume group ID.
**System capability**: SystemCapability.Multimedia.Audio.Volume | -| DEFAULT_INTERRUPT_GROUP_ID9+ | number | Yes | No | Default audio interruption group ID.
**System capability**: SystemCapability.Multimedia.Audio.Interrupt | +| LOCAL_NETWORK_ID9+ | string | Yes | No | Network ID of the local device.
This is a system API.
**System capability**: SystemCapability.Multimedia.Audio.Device | +| DEFAULT_VOLUME_GROUP_ID9+ | number | Yes | No | Default volume group ID.
**System capability**: SystemCapability.Multimedia.Audio.Volume | +| DEFAULT_INTERRUPT_GROUP_ID9+ | number | Yes | No | Default audio interruption group ID.
**System capability**: SystemCapability.Multimedia.Audio.Interrupt | **Example** @@ -74,7 +74,10 @@ Creates an **AudioRenderer** instance. This API uses an asynchronous callback to **Example** ```js +import featureAbility from '@ohos.ability.featureAbility'; +import fileio from '@ohos.fileio'; import audio from '@ohos.multimedia.audio'; + let audioStreamInfo = { samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, channels: audio.AudioChannel.CHANNEL_1, @@ -126,6 +129,8 @@ Creates an **AudioRenderer** instance. This API uses a promise to return the res **Example** ```js +import featureAbility from '@ohos.ability.featureAbility'; +import fileio from '@ohos.fileio'; import audio from '@ohos.multimedia.audio'; let audioStreamInfo = { @@ -279,9 +284,9 @@ Creates a **TonePlayer** instance. This API uses an asynchronous callback to ret import audio from '@ohos.multimedia.audio'; let audioRendererInfo = { - "contentType": audio.ContentType.CONTENT_TYPE_MUSIC, - "streamUsage": audio.StreamUsage.STREAM_USAGE_MEDIA, - "rendererFlags": 0 + content : audio.ContentType.CONTENT_TYPE_SONIFICATION, + usage : audio.StreamUsage.STREAM_USAGE_MEDIA, + rendererFlags : 0 } let tonePlayer; @@ -322,13 +327,14 @@ Creates a **TonePlayer** instance. This API uses a promise to return the result. ```js import audio from '@ohos.multimedia.audio'; -async function createTonePlayer(){ +let tonePlayer; +async function createTonePlayerBefore(){ let audioRendererInfo = { - "contentType": audio.ContentType.CONTENT_TYPE_MUSIC, - "streamUsage": audio.StreamUsage.STREAM_USAGE_MEDIA, - "rendererFlags": 0 + content : audio.ContentType.CONTENT_TYPE_SONIFICATION, + usage : audio.StreamUsage.STREAM_USAGE_MEDIA, + rendererFlags : 0 } - let tonePlayer = await audio.createTonePlayer(audioRendererInfo); + tonePlayer = await audio.createTonePlayer(audioRendererInfo); } ``` @@ -338,7 +344,7 @@ Enumerates the audio stream types. **System capability**: SystemCapability.Multimedia.Audio.Volume -| Name | Default Value| Description | +| Name | Value | Description | | ---------------------------- | ------ | ---------- | | VOICE_CALL8+ | 0 | Audio stream for voice calls.| | RINGTONE | 2 | Audio stream for ringtones. | @@ -354,7 +360,7 @@ Enumerates the result types of audio interruption requests. **System API**: This is a system API. -| Name | Default Value| Description | +| Name | Value | Description | | ---------------------------- | ------ | ---------- | | INTERRUPT_REQUEST_GRANT | 0 | The audio interruption request is accepted.| | INTERRUPT_REQUEST_REJECT | 1 | The audio interruption request is denied. There may be a stream with a higher priority.| @@ -365,7 +371,7 @@ Enumerates the audio interruption modes. **System capability**: SystemCapability.Multimedia.Audio.Interrupt -| Name | Default Value| Description | +| Name | Value | Description | | ---------------------------- | ------ | ---------- | | SHARE_MODE | 0 | Shared mode.| | INDEPENDENT_MODE | 1 | Independent mode.| @@ -376,7 +382,7 @@ Enumerates the audio device flags. **System capability**: SystemCapability.Multimedia.Audio.Device -| Name | Default Value | Description | +| Name | Value | Description | | ------------------------------- | ------ | ------------------------------------------------- | | NONE_DEVICES_FLAG9+ | 0 | No device.
This is a system API. | | OUTPUT_DEVICES_FLAG | 1 | Output device.| @@ -392,7 +398,7 @@ Enumerates the audio device roles. **System capability**: SystemCapability.Multimedia.Audio.Device -| Name | Default Value| Description | +| Name | Value | Description | | ------------- | ------ | -------------- | | INPUT_DEVICE | 1 | Input role.| | OUTPUT_DEVICE | 2 | Output role.| @@ -403,7 +409,7 @@ Enumerates the audio device types. **System capability**: SystemCapability.Multimedia.Audio.Device -| Name | Default Value| Description | +| Name | Value | Description | | ---------------------| ------ | --------------------------------------------------------- | | INVALID | 0 | Invalid device. | | EARPIECE | 1 | Earpiece. | @@ -422,7 +428,7 @@ Enumerates the device types used for communication. **System capability**: SystemCapability.Multimedia.Audio.Communication -| Name | Default Value| Description | +| Name | Value | Description | | ------------- | ------ | -------------| | SPEAKER | 2 | Speaker. | @@ -432,7 +438,7 @@ Enumerates the ringer modes. **System capability**: SystemCapability.Multimedia.Audio.Communication -| Name | Default Value| Description | +| Name | Value | Description | | ------------------- | ------ | ---------- | | RINGER_MODE_SILENT | 0 | Silent mode.| | RINGER_MODE_VIBRATE | 1 | Vibration mode.| @@ -444,7 +450,7 @@ Enumerates the audio sample formats. **System capability**: SystemCapability.Multimedia.Audio.Core -| Name | Default Value| Description | +| Name | Value | Description | | ---------------------------------- | ------ | -------------------------- | | SAMPLE_FORMAT_INVALID | -1 | Invalid format. | | SAMPLE_FORMAT_U8 | 0 | Unsigned 8-bit integer. | @@ -459,15 +465,15 @@ Enumerates the audio error codes. **System capability**: SystemCapability.Multimedia.Audio.Core -| Error Message | Error Code | Error Description | +| Name | Value | Description | | ---------------------| --------| ----------------- | | ERROR_INVALID_PARAM | 6800101 | Invalid parameter. | | ERROR_NO_MEMORY | 6800102 | Memory allocation failure. | | ERROR_ILLEGAL_STATE | 6800103 | Unsupported state. | -| ERROR_UNSUPPORTED | 6800104 | Unsupported parameter value. | +| ERROR_UNSUPPORTED | 6800104 | Unsupported parameter value. | | ERROR_TIMEOUT | 6800105 | Processing timeout. | | ERROR_STREAM_LIMIT | 6800201 | Too many audio streams.| -| ERROR_SYSTEM | 6800301 | System error. | +| ERROR_SYSTEM | 6800301 | System error. | ## AudioChannel8+ @@ -475,18 +481,18 @@ Enumerates the audio channels. **System capability**: SystemCapability.Multimedia.Audio.Core -| Name | Default Value | Description | +| Name | Value | Description | | --------- | -------- | -------- | | CHANNEL_1 | 0x1 << 0 | Mono.| | CHANNEL_2 | 0x1 << 1 | Dual-channel.| ## AudioSamplingRate8+ -Enumerates the audio sampling rates. +Enumerates the audio sampling rates. The sampling rates supported vary according to the device in use. **System capability**: SystemCapability.Multimedia.Audio.Core -| Name | Default Value| Description | +| Name | Value | Description | | ----------------- | ------ | --------------- | | SAMPLE_RATE_8000 | 8000 | The sampling rate is 8000. | | SAMPLE_RATE_11025 | 11025 | The sampling rate is 11025.| @@ -506,7 +512,7 @@ Enumerates the audio encoding types. **System capability**: SystemCapability.Multimedia.Audio.Core -| Name | Default Value| Description | +| Name | Value | Description | | --------------------- | ------ | --------- | | ENCODING_TYPE_INVALID | -1 | Invalid. | | ENCODING_TYPE_RAW | 0 | PCM encoding.| @@ -517,7 +523,7 @@ Enumerates the audio content types. **System capability**: SystemCapability.Multimedia.Audio.Core -| Name | Default Value| Description | +| Name | Value | Description | | ---------------------------------- | ------ | ---------- | | CONTENT_TYPE_UNKNOWN | 0 | Unknown content.| | CONTENT_TYPE_SPEECH | 1 | Speech. | @@ -532,7 +538,7 @@ Enumerates the audio stream usage. **System capability**: SystemCapability.Multimedia.Audio.Core -| Name | Default Value| Description | +| Name | Value | Description | | ------------------------------------------| ------ | ---------- | | STREAM_USAGE_UNKNOWN | 0 | Unknown usage.| | STREAM_USAGE_MEDIA | 1 | Used for media. | @@ -548,7 +554,7 @@ Enumerates the audio interruption request types. **System capability**: SystemCapability.Multimedia.Audio.Interrupt -| Name | Default Value | Description | +| Name | Value | Description | | ---------------------------------- | ------ | ------------------------- | | INTERRUPT_REQUEST_TYPE_DEFAULT | 0 | Default type, which can be used to interrupt audio requests. | @@ -558,7 +564,7 @@ Enumerates the audio states. **System capability**: SystemCapability.Multimedia.Audio.Core -| Name | Default Value| Description | +| Name | Value | Description | | -------------- | ------ | ---------------- | | STATE_INVALID | -1 | Invalid state. | | STATE_NEW | 0 | Creating instance state.| @@ -574,7 +580,7 @@ Enumerates the audio renderer rates. **System capability**: SystemCapability.Multimedia.Audio.Renderer -| Name | Default Value| Description | +| Name | Value | Description | | ------------------ | ------ | ---------- | | RENDER_RATE_NORMAL | 0 | Normal rate.| | RENDER_RATE_DOUBLE | 1 | Double rate. | @@ -586,7 +592,7 @@ Enumerates the audio interruption types. **System capability**: SystemCapability.Multimedia.Audio.Renderer -| Name | Default Value| Description | +| Name | Value | Description | | -------------------- | ------ | ---------------------- | | INTERRUPT_TYPE_BEGIN | 1 | Audio interruption started.| | INTERRUPT_TYPE_END | 2 | Audio interruption ended.| @@ -597,7 +603,7 @@ Enumerates the types of force that causes audio interruption. **System capability**: SystemCapability.Multimedia.Audio.Renderer -| Name | Default Value| Description | +| Name | Value | Description | | --------------- | ------ | ------------------------------------ | | INTERRUPT_FORCE | 0 | Forced action taken by the system. | | INTERRUPT_SHARE | 1 | The application can choose to take action or ignore.| @@ -608,7 +614,7 @@ Enumerates the hints provided along with audio interruption. **System capability**: SystemCapability.Multimedia.Audio.Renderer -| Name | Default Value| Description | +| Name | Value | Description | | ---------------------------------- | ------ | -------------------------------------------- | | INTERRUPT_HINT_NONE8+ | 0 | None. | | INTERRUPT_HINT_RESUME | 1 | Resume the playback. | @@ -636,7 +642,7 @@ Describes audio renderer information. **System capability**: SystemCapability.Multimedia.Audio.Core -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory | Description | | ------------- | --------------------------- | ---- | ---------------- | | content | [ContentType](#contenttype) | Yes | Audio content type. | | usage | [StreamUsage](#streamusage) | Yes | Audio stream usage.| @@ -661,7 +667,7 @@ Describes audio renderer configurations. **System capability**: SystemCapability.Multimedia.Audio.Renderer -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory | Description | | ------------ | ---------------------------------------- | ---- | ---------------- | | streamInfo | [AudioStreamInfo](#audiostreaminfo8) | Yes | Audio stream information.| | rendererInfo | [AudioRendererInfo](#audiorendererinfo8) | Yes | Audio renderer information.| @@ -672,7 +678,7 @@ Describes the interruption event received by the application when playback is in **System capability**: SystemCapability.Multimedia.Audio.Renderer -| Name | Type | Mandatory| Description | +| Name | Type |Mandatory | Description | | --------- | ------------------------------------------ | ---- | ------------------------------------ | | eventType | [InterruptType](#interrupttype) | Yes | Whether the interruption has started or ended. | | forceType | [InterruptForceType](#interruptforcetype9) | Yes | Whether the interruption is taken by the system or to be taken by the application.| @@ -686,7 +692,7 @@ Describes the event received by the application when the volume is changed. **System capability**: SystemCapability.Multimedia.Audio.Volume -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory | Description | | ---------- | ----------------------------------- | ---- | -------------------------------------------------------- | | volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | | volume | number | Yes | Volume to set. The value range can be obtained by calling **getMinVolume** and **getMaxVolume**.| @@ -701,7 +707,7 @@ Describes the event received by the application when the microphone mute status **System capability**: SystemCapability.Multimedia.Audio.Device | Name | Type | Mandatory| Description | -| ---------- | ----------------------------------- | ---- | -------------------------------------------------------- | +| ---------- | ----------------------------------- | ---- |-------------------------------------------------------- | | mute | boolean | Yes | Mute status of the microphone. The value **true** means that the microphone is muted, and **false** means the opposite. | ## ConnectType9+ @@ -712,7 +718,7 @@ Enumerates the types of connected devices. **System capability**: SystemCapability.Multimedia.Audio.Volume -| Name | Default Value| Description | +| Name | Value | Description | | :------------------------------ | :----- | :--------------------- | | CONNECT_TYPE_LOCAL | 1 | Local device. | | CONNECT_TYPE_DISTRIBUTED | 2 | Distributed device. | @@ -738,7 +744,7 @@ Describes the volume group information. | networkId9+ | string | Yes | No | Network ID of the device. | | groupId9+ | number | Yes | No | Group ID of the device.| | mappingId9+ | number | Yes | No | Group mapping ID.| -| groupName9+ | number | Yes | No | Group name.| +| groupName9+ | string | Yes | No | Group name.| | type9+ | [ConnectType](#connecttype9)| Yes | No | Type of the connected device.| ## DeviceChangeAction @@ -758,7 +764,7 @@ Enumerates the device connection statuses. **System capability**: SystemCapability.Multimedia.Audio.Device -| Name | Default Value| Description | +| Name | Value | Description | | :--------- | :----- | :------------- | | CONNECT | 0 | Connected. | | DISCONNECT | 1 | Disconnected.| @@ -791,7 +797,7 @@ Enumerates the audio source types. **System capability**: SystemCapability.Multimedia.Audio.Core -| Name | Default Value| Description | +| Name | Value | Description | | :------------------------------------------- | :----- | :--------------------- | | SOURCE_TYPE_INVALID | -1 | Invalid audio source. | | SOURCE_TYPE_MIC | 0 | Mic source. | @@ -804,7 +810,7 @@ Enumerates the audio scenes. **System capability**: SystemCapability.Multimedia.Audio.Communication -| Name | Default Value| Description | +| Name | Value | Description | | :--------------------- | :----- | :-------------------------------------------- | | AUDIO_SCENE_DEFAULT | 0 | Default audio scene. | | AUDIO_SCENE_RINGING | 1 | Ringing audio scene.
This is a system API.| @@ -959,7 +965,6 @@ Sets an audio scene. This API uses an asynchronous callback to return the result **Example** ```js -let audioManager = audio.getAudioManager(); audioManager.setAudioScene(audio.AudioScene.AUDIO_SCENE_PHONE_CALL, (err) => { if (err) { console.error(`Failed to set the audio scene mode.​ ${err}`); @@ -994,7 +999,6 @@ Sets an audio scene. This API uses a promise to return the result. **Example** ```js -let audioManager = audio.getAudioManager(); audioManager.setAudioScene(audio.AudioScene.AUDIO_SCENE_PHONE_CALL).then(() => { console.info('Promise returned to indicate a successful setting of the audio scene mode.'); }).catch ((err) => { @@ -1019,7 +1023,6 @@ Obtains the audio scene. This API uses an asynchronous callback to return the re **Example** ```js -let audioManager = audio.getAudioManager(); audioManager.getAudioScene((err, value) => { if (err) { console.error(`Failed to obtain the audio scene mode.​ ${err}`); @@ -1046,7 +1049,6 @@ Obtains the audio scene. This API uses a promise to return the result. **Example** ```js -let audioManager = audio.getAudioManager(); audioManager.getAudioScene().then((value) => { console.info(`Promise returned to indicate that the audio scene mode is obtained ${value}.`); }).catch ((err) => { @@ -1096,179 +1098,20 @@ Obtains an **AudioRoutingManager** instance. let audioRoutingManager = audioManager.getRoutingManager(); ``` -## AudioVolumeManager9+ - -Implements audio volume management. Before calling an API in **AudioVolumeManager**, you must use [getVolumeManager](#getvolumemanager9) to obtain an **AudioVolumeManager** instance. - -### getVolumeGroupInfos9+ - -getVolumeGroupInfos(networkId: string, callback: AsyncCallback\): void - -Obtains the volume groups. This API uses an asynchronous callback to return the result. - -**System API**: This is a system API. - -**System capability**: SystemCapability.Multimedia.Audio.Volume - -**Parameters** - -| Name | Type | Mandatory| Description | -| ---------- | ------------------------------------------------------------ | ---- | -------------------- | -| networkId | string | Yes | Network ID of the device. The network ID of the local device is **audio.LOCAL_NETWORK_ID**. | -| callback | AsyncCallback<[VolumeGroupInfos](#volumegroupinfos9)> | Yes | Callback used to return the volume group information array.| - -**Example** -```js -audioVolumeManager.getVolumeGroupInfos(audio.LOCAL_NETWORK_ID, (err, value) => { - if (err) { - console.error(`Failed to obtain the volume group infos list. ${err}`); - return; - } - console.info('Callback invoked to indicate that the volume group infos list is obtained.'); -}); -``` - -### getVolumeGroupInfos9+ - -getVolumeGroupInfos(networkId: string\): Promise - -Obtains the volume groups. This API uses a promise to return the result. - -**System API**: This is a system API. - -**System capability**: SystemCapability.Multimedia.Audio.Volume - -**Parameters** - -| Name | Type | Mandatory| Description | -| ---------- | ------------------| ---- | -------------------- | -| networkId | string | Yes | Network ID of the device. The network ID of the local device is **audio.LOCAL_NETWORK_ID**. | - -**Return value** - -| Type | Description | -| ------------------- | ----------------------------- | -| Promise<[VolumeGroupInfos](#volumegroupinfos9)> | Volume group information array.| - -**Example** - -```js -async function getVolumeGroupInfos(){ - let volumegroupinfos = await audio.getAudioManager().getVolumeManager().getVolumeGroupInfos(audio.LOCAL_NETWORK_ID); - console.info('Promise returned to indicate that the volumeGroup list is obtained.'+JSON.stringify(volumegroupinfos)) -} -``` - -### getVolumeGroupManager9+ - -getVolumeGroupManager(groupId: number, callback: AsyncCallback\): void - -Obtains the audio group manager. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Audio.Volume - -**Parameters** - -| Name | Type | Mandatory| Description | -| ---------- | ------------------------------------------------------------ | ---- | -------------------- | -| groupId | number | Yes | Volume group ID. | -| callback | AsyncCallback< [AudioVolumeGroupManager](#audiovolumegroupmanager9) > | Yes | Callback used to return the audio group manager.| - -**Example** - -```js -let groupid = audio.DEFAULT_VOLUME_GROUP_ID; -audioVolumeManager.getVolumeGroupManager(groupid, (err, value) => { - if (err) { - console.error(`Failed to obtain the volume group infos list. ${err}`); - return; - } - console.info('Callback invoked to indicate that the volume group infos list is obtained.'); -}); - -``` - -### getVolumeGroupManager9+ - -getVolumeGroupManager(groupId: number\): Promise - -Obtains the audio group manager. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Audio.Volume - -**Parameters** - -| Name | Type | Mandatory| Description | -| ---------- | ---------------------------------------- | ---- | ---------------- | -| groupId | number | Yes | Volume group ID. | - -**Return value** - -| Type | Description | -| ------------------- | ----------------------------- | -| Promise< [AudioVolumeGroupManager](#audiovolumegroupmanager9) > | Promise used to return the audio group manager.| - -**Example** - -```js -let groupid = audio.DEFAULT_VOLUME_GROUP_ID; -let audioVolumeGroupManager = await audioVolumeManager.getVolumeGroupManager(groupid); -console.info('Callback invoked to indicate that the volume group infos list is obtained.'); -``` - -### on('volumeChange')9+ - -on(type: 'volumeChange', callback: Callback\): void - -Subscribes to system volume change events. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Audio.Volume - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | -------------------------------------- | ---- | ------------------------------------------------------------ | -| type | string | Yes | Event type. The value **'volumeChange'** means the system volume change event, which is triggered when the system volume changes.| -| callback | Callback<[VolumeEvent](#volumeevent8)> | Yes | Callback used to return the system volume change event. | - -**Error codes** - -For details about the error codes, see [Audio Error Codes](../errorcodes/errorcode-audio.md). - -| ID| Error Message| -| ------- | --------------------------------------------| -| 6800101 | if input parameter value error. | - -**Example** - -```js -audioVolumeManager.on('volumeChange', (volumeEvent) => { - console.info(`VolumeType of stream: ${volumeEvent.volumeType} `); - console.info(`Volume level: ${volumeEvent.volume} `); - console.info(`Whether to updateUI: ${volumeEvent.updateUi} `); -}); -``` - -## AudioVolumeGroupManager9+ - -Manages the volume of an audio group. Before calling any API in **AudioVolumeGroupManager**, you must use [getVolumeGroupManager](#getvolumegroupmanager9) to obtain an **AudioVolumeGroupManager** instance. - -**System API**: This is a system API. - -**System capability**: SystemCapability.Multimedia.Audio.Volume - -### setVolume9+ +### setVolume(deprecated) setVolume(volumeType: AudioVolumeType, volume: number, callback: AsyncCallback<void>): void Sets the volume for a stream. This API uses an asynchronous callback to return the result. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [setVolume](#setvolume9) in **AudioVolumeGroupManager**. + **Required permissions**: ohos.permission.ACCESS_NOTIFICATION_POLICY This permission is required only for muting or unmuting the ringer when **volumeType** is set to **AudioVolumeType.RINGTONE**. -**System API**: This is a system API. - **System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** @@ -1282,7 +1125,7 @@ This permission is required only for muting or unmuting the ringer when **volume **Example** ```js -audioVolumeGroupManager.setVolume(audio.AudioVolumeType.MEDIA, 10, (err) => { +audioManager.setVolume(audio.AudioVolumeType.MEDIA, 10, (err) => { if (err) { console.error(`Failed to set the volume. ${err}`); return; @@ -1291,18 +1134,20 @@ audioVolumeGroupManager.setVolume(audio.AudioVolumeType.MEDIA, 10, (err) => { }); ``` -### setVolume9+ +### setVolume(deprecated) setVolume(volumeType: AudioVolumeType, volume: number): Promise<void> Sets the volume for a stream. This API uses a promise to return the result. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [setVolume](#setvolume9) in **AudioVolumeGroupManager**. + **Required permissions**: ohos.permission.ACCESS_NOTIFICATION_POLICY This permission is required only for muting or unmuting the ringer when **volumeType** is set to **AudioVolumeType.RINGTONE**. -**System API**: This is a system API. - **System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** @@ -1321,17 +1166,21 @@ This permission is required only for muting or unmuting the ringer when **volume **Example** ```js -audioVolumeGroupManager.setVolume(audio.AudioVolumeType.MEDIA, 10).then(() => { +audioManager.setVolume(audio.AudioVolumeType.MEDIA, 10).then(() => { console.info('Promise returned to indicate a successful volume setting.'); }); ``` -### getVolume9+ +### getVolume(deprecated) getVolume(volumeType: AudioVolumeType, callback: AsyncCallback<number>): void Obtains the volume of a stream. This API uses an asynchronous callback to return the result. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getVolume](#getvolume9) in **AudioVolumeGroupManager**. + **System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** @@ -1344,7 +1193,7 @@ Obtains the volume of a stream. This API uses an asynchronous callback to return **Example** ```js -audioVolumeGroupManager.getVolume(audio.AudioVolumeType.MEDIA, (err, value) => { +audioManager.getVolume(audio.AudioVolumeType.MEDIA, (err, value) => { if (err) { console.error(`Failed to obtain the volume. ${err}`); return; @@ -1353,12 +1202,16 @@ audioVolumeGroupManager.getVolume(audio.AudioVolumeType.MEDIA, (err, value) => { }); ``` -### getVolume9+ +### getVolume(deprecated) getVolume(volumeType: AudioVolumeType): Promise<number> Obtains the volume of a stream. This API uses a promise to return the result. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getVolume](#getvolume9) in **AudioVolumeGroupManager**. + **System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** @@ -1376,17 +1229,21 @@ Obtains the volume of a stream. This API uses a promise to return the result. **Example** ```js -audioVolumeGroupManager.getVolume(audio.AudioVolumeType.MEDIA).then((value) => { - console.info(`Promise returned to indicate that the volume is obtained ${value}.`); +audioManager.getVolume(audio.AudioVolumeType.MEDIA).then((value) => { + console.info(`Promise returned to indicate that the volume is obtained ${value} .`); }); ``` -### getMinVolume9+ +### getMinVolume(deprecated) getMinVolume(volumeType: AudioVolumeType, callback: AsyncCallback<number>): void Obtains the minimum volume allowed for a stream. This API uses an asynchronous callback to return the result. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getMinVolume](#getminvolume9) in **AudioVolumeGroupManager**. + **System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** @@ -1399,7 +1256,7 @@ Obtains the minimum volume allowed for a stream. This API uses an asynchronous c **Example** ```js -audioVolumeGroupManager.getMinVolume(audio.AudioVolumeType.MEDIA, (err, value) => { +audioManager.getMinVolume(audio.AudioVolumeType.MEDIA, (err, value) => { if (err) { console.error(`Failed to obtain the minimum volume. ${err}`); return; @@ -1408,12 +1265,16 @@ audioVolumeGroupManager.getMinVolume(audio.AudioVolumeType.MEDIA, (err, value) = }); ``` -### getMinVolume9+ +### getMinVolume(deprecated) getMinVolume(volumeType: AudioVolumeType): Promise<number> Obtains the minimum volume allowed for a stream. This API uses a promise to return the result. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getMinVolume](#getminvolume9) in **AudioVolumeGroupManager**. + **System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** @@ -1431,17 +1292,21 @@ Obtains the minimum volume allowed for a stream. This API uses a promise to retu **Example** ```js -audioVolumeGroupManager.getMinVolume(audio.AudioVolumeType.MEDIA).then((value) => { - console.info(`Promised returned to indicate that the minimum volume is obtained ${value}.`); +audioManager.getMinVolume(audio.AudioVolumeType.MEDIA).then((value) => { + console.info(`Promised returned to indicate that the minimum volume is obtained. ${value}`); }); ``` -### getMaxVolume9+ +### getMaxVolume(deprecated) getMaxVolume(volumeType: AudioVolumeType, callback: AsyncCallback<number>): void Obtains the maximum volume allowed for a stream. This API uses an asynchronous callback to return the result. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getMaxVolume](#getmaxvolume9) in **AudioVolumeGroupManager**. + **System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** @@ -1454,7 +1319,7 @@ Obtains the maximum volume allowed for a stream. This API uses an asynchronous c **Example** ```js -audioVolumeGroupManager.getMaxVolume(audio.AudioVolumeType.MEDIA, (err, value) => { +audioManager.getMaxVolume(audio.AudioVolumeType.MEDIA, (err, value) => { if (err) { console.error(`Failed to obtain the maximum volume. ${err}`); return; @@ -1463,12 +1328,16 @@ audioVolumeGroupManager.getMaxVolume(audio.AudioVolumeType.MEDIA, (err, value) = }); ``` -### getMaxVolume9+ +### getMaxVolume(deprecated) getMaxVolume(volumeType: AudioVolumeType): Promise<number> Obtains the maximum volume allowed for a stream. This API uses a promise to return the result. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getMaxVolume](#getmaxvolume9) in **AudioVolumeGroupManager**. + **System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** @@ -1486,22 +1355,20 @@ Obtains the maximum volume allowed for a stream. This API uses a promise to retu **Example** ```js -audioVolumeGroupManager.getMaxVolume(audio.AudioVolumeType.MEDIA).then((data) => { +audioManager.getMaxVolume(audio.AudioVolumeType.MEDIA).then((data) => { console.info('Promised returned to indicate that the maximum volume is obtained.'); }); ``` -### mute9+ +### mute(deprecated) mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback<void>): void Mutes or unmutes a stream. This API uses an asynchronous callback to return the result. -**Required permissions**: ohos.permission.ACCESS_NOTIFICATION_POLICY - -This permission is required only for muting or unmuting the ringer when **volumeType** is set to **AudioVolumeType.RINGTONE**. - -**System API**: This is a system API. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [mute](#mute9) in **AudioVolumeGroupManager**. **System capability**: SystemCapability.Multimedia.Audio.Volume @@ -1516,7 +1383,7 @@ This permission is required only for muting or unmuting the ringer when **volume **Example** ```js -audioVolumeGroupManager.mute(audio.AudioVolumeType.MEDIA, true, (err) => { +audioManager.mute(audio.AudioVolumeType.MEDIA, true, (err) => { if (err) { console.error(`Failed to mute the stream. ${err}`); return; @@ -1525,17 +1392,15 @@ audioVolumeGroupManager.mute(audio.AudioVolumeType.MEDIA, true, (err) => { }); ``` -### mute9+ +### mute(deprecated) mute(volumeType: AudioVolumeType, mute: boolean): Promise<void> Mutes or unmutes a stream. This API uses a promise to return the result. -**Required permissions**: ohos.permission.ACCESS_NOTIFICATION_POLICY - -This permission is required only for muting or unmuting the ringer when **volumeType** is set to **AudioVolumeType.RINGTONE**. - -**System API**: This is a system API. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [mute](#mute9) in **AudioVolumeGroupManager**. **System capability**: SystemCapability.Multimedia.Audio.Volume @@ -1554,18 +1419,23 @@ This permission is required only for muting or unmuting the ringer when **volume **Example** + ```js -audioVolumeGroupManager.mute(audio.AudioVolumeType.MEDIA, true).then(() => { +audioManager.mute(audio.AudioVolumeType.MEDIA, true).then(() => { console.info('Promise returned to indicate that the stream is muted.'); }); ``` -### isMute9+ +### isMute(deprecated) isMute(volumeType: AudioVolumeType, callback: AsyncCallback<boolean>): void Checks whether a stream is muted. This API uses an asynchronous callback to return the result. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [isMute](#ismute9) in **AudioVolumeGroupManager**. + **System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** @@ -1578,21 +1448,25 @@ Checks whether a stream is muted. This API uses an asynchronous callback to retu **Example** ```js -audioVolumeGroupManager.isMute(audio.AudioVolumeType.MEDIA, (err, value) => { +audioManager.isMute(audio.AudioVolumeType.MEDIA, (err, value) => { if (err) { console.error(`Failed to obtain the mute status. ${err}`); return; } - console.info(`Callback invoked to indicate that the mute status of the stream is obtained ${value}.`); + console.info(`Callback invoked to indicate that the mute status of the stream is obtained. ${value}`); }); ``` -### isMute9+ +### isMute(deprecated) isMute(volumeType: AudioVolumeType): Promise<boolean> Checks whether a stream is muted. This API uses a promise to return the result. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [isMute](#ismute9) in **AudioVolumeGroupManager**. + **System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** @@ -1610,24 +1484,89 @@ Checks whether a stream is muted. This API uses a promise to return the result. **Example** ```js -audioVolumeGroupManager.isMute(audio.AudioVolumeType.MEDIA).then((value) => { +audioManager.isMute(audio.AudioVolumeType.MEDIA).then((value) => { console.info(`Promise returned to indicate that the mute status of the stream is obtained ${value}.`); }); ``` -### setRingerMode9+ +### isActive(deprecated) + +isActive(volumeType: AudioVolumeType, callback: AsyncCallback<boolean>): void + +Checks whether a stream is active. This API uses an asynchronous callback to return the result. + +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [isActive](#isactive9) in **AudioStreamManager**. + +**System capability**: SystemCapability.Multimedia.Audio.Volume + +**Parameters** + +| Name | Type | Mandatory| Description | +| ---------- | ----------------------------------- | ---- | ------------------------------------------------- | +| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | +| callback | AsyncCallback<boolean> | Yes | Callback used to return the active status of the stream. The value **true** means that the stream is active, and **false** means the opposite.| + +**Example** + +```js +audioManager.isActive(audio.AudioVolumeType.MEDIA, (err, value) => { + if (err) { + console.error(`Failed to obtain the active status of the stream. ${err}`); + return; + } + console.info(`Callback invoked to indicate that the active status of the stream is obtained ${value}.`); +}); +``` + +### isActive(deprecated) + +isActive(volumeType: AudioVolumeType): Promise<boolean> + +Checks whether a stream is active. This API uses a promise to return the result. + +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [isActive](#isactive9) in **AudioStreamManager**. + +**System capability**: SystemCapability.Multimedia.Audio.Volume + +**Parameters** + +| Name | Type | Mandatory| Description | +| ---------- | ----------------------------------- | ---- | ------------ | +| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type.| + +**Return value** + +| Type | Description | +| ---------------------- | -------------------------------------------------------- | +| Promise<boolean> | Promise used to return the active status of the stream. The value **true** means that the stream is active, and **false** means the opposite.| + +**Example** + +```js +audioManager.isActive(audio.AudioVolumeType.MEDIA).then((value) => { + console.info(`Promise returned to indicate that the active status of the stream is obtained ${value}.`); +}); +``` + +### setRingerMode(deprecated) setRingerMode(mode: AudioRingMode, callback: AsyncCallback<void>): void Sets the ringer mode. This API uses an asynchronous callback to return the result. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [setRingerMode](#setringermode9) in **AudioVolumeGroupManager**. + **Required permissions**: ohos.permission.ACCESS_NOTIFICATION_POLICY This permission is required only for muting or unmuting the ringer. -**System API**: This is a system API. - -**System capability**: SystemCapability.Multimedia.Audio.Volume +**System capability**: SystemCapability.Multimedia.Audio.Communication **Parameters** @@ -1639,7 +1578,7 @@ This permission is required only for muting or unmuting the ringer. **Example** ```js -audioVolumeGroupManager.setRingerMode(audio.AudioRingMode.RINGER_MODE_NORMAL, (err) => { +audioManager.setRingerMode(audio.AudioRingMode.RINGER_MODE_NORMAL, (err) => { if (err) { console.error(`Failed to set the ringer mode.​ ${err}`); return; @@ -1648,19 +1587,21 @@ audioVolumeGroupManager.setRingerMode(audio.AudioRingMode.RINGER_MODE_NORMAL, (e }); ``` -### setRingerMode9+ +### setRingerMode(deprecated) setRingerMode(mode: AudioRingMode): Promise<void> Sets the ringer mode. This API uses a promise to return the result. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [setRingerMode](#setringermode9) in **AudioVolumeGroupManager**. + **Required permissions**: ohos.permission.ACCESS_NOTIFICATION_POLICY This permission is required only for muting or unmuting the ringer. -**System API**: This is a system API. - -**System capability**: SystemCapability.Multimedia.Audio.Volume +**System capability**: SystemCapability.Multimedia.Audio.Communication **Parameters** @@ -1677,18 +1618,22 @@ This permission is required only for muting or unmuting the ringer. **Example** ```js -audioVolumeGroupManager.setRingerMode(audio.AudioRingMode.RINGER_MODE_NORMAL).then(() => { +audioManager.setRingerMode(audio.AudioRingMode.RINGER_MODE_NORMAL).then(() => { console.info('Promise returned to indicate a successful setting of the ringer mode.'); }); ``` -### getRingerMode9+ +### getRingerMode(deprecated) getRingerMode(callback: AsyncCallback<AudioRingMode>): void Obtains the ringer mode. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Volume +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getRingerMode](#getringermode9) in **AudioVolumeGroupManager**. + +**System capability**: SystemCapability.Multimedia.Audio.Communication **Parameters** @@ -1699,7 +1644,7 @@ Obtains the ringer mode. This API uses an asynchronous callback to return the re **Example** ```js -audioVolumeGroupManager.getRingerMode((err, value) => { +audioManager.getRingerMode((err, value) => { if (err) { console.error(`Failed to obtain the ringer mode.​ ${err}`); return; @@ -1708,13 +1653,17 @@ audioVolumeGroupManager.getRingerMode((err, value) => { }); ``` -### getRingerMode9+ +### getRingerMode(deprecated) getRingerMode(): Promise<AudioRingMode> Obtains the ringer mode. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Volume +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getRingerMode](#getringermode9) in **AudioVolumeGroupManager**. + +**System capability**: SystemCapability.Multimedia.Audio.Communication **Return value** @@ -1725,85 +1674,123 @@ Obtains the ringer mode. This API uses a promise to return the result. **Example** ```js -audioVolumeGroupManager.getRingerMode().then((value) => { +audioManager.getRingerMode().then((value) => { console.info(`Promise returned to indicate that the ringer mode is obtained ${value}.`); }); ``` -### on('ringerModeChange')9+ +### getDevices(deprecated) -on(type: 'ringerModeChange', callback: Callback\): void +getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback<AudioDeviceDescriptors>): void -Subscribes to ringer mode change events. +Obtains the audio devices with a specific flag. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Volume +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getDevices](#getdevices9) in **AudioRoutingManager**. + +**System capability**: SystemCapability.Multimedia.Audio.Device **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ----------------------------------------- | ---- | ------------------------------------------------------------ | -| type | string | Yes | Event type. The value **'ringerModeChange'** means the ringer mode change event, which is triggered when a ringer mode change is detected.| -| callback | Callback<[AudioRingMode](#audioringmode)> | Yes | Callback used to return the system volume change event. | +| Name | Type | Mandatory| Description | +| ---------- | ------------------------------------------------------------ | ---- | -------------------- | +| deviceFlag | [DeviceFlag](#deviceflag) | Yes | Audio device flag. | +| callback | AsyncCallback<[AudioDeviceDescriptors](#audiodevicedescriptors)> | Yes | Callback used to return the device list.| -**Error codes** +**Example** +```js +audioManager.getDevices(audio.DeviceFlag.OUTPUT_DEVICES_FLAG, (err, value) => { + if (err) { + console.error(`Failed to obtain the device list. ${err}`); + return; + } + console.info('Callback invoked to indicate that the device list is obtained.'); +}); +``` -For details about the error codes, see [Audio Error Codes](../errorcodes/errorcode-audio.md). +### getDevices(deprecated) -| ID| Error Message| -| ------- | --------------------------------------------| -| 6800101 | if input parameter value error. | +getDevices(deviceFlag: DeviceFlag): Promise<AudioDeviceDescriptors> + +Obtains the audio devices with a specific flag. This API uses a promise to return the result. + +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getDevices](#getdevices9) in **AudioRoutingManager**. + +**System capability**: SystemCapability.Multimedia.Audio.Device + +**Parameters** + +| Name | Type | Mandatory| Description | +| ---------- | ------------------------- | ---- | ---------------- | +| deviceFlag | [DeviceFlag](#deviceflag) | Yes | Audio device flag.| + +**Return value** + +| Type | Description | +| ------------------------------------------------------------ | ------------------------- | +| Promise<[AudioDeviceDescriptors](#audiodevicedescriptors)> | Promise used to return the device list.| **Example** ```js -audioVolumeGroupManager.on('ringerModeChange', (ringerMode) => { - console.info(`Updated ringermode: ${ringerMode}`); +audioManager.getDevices(audio.DeviceFlag.OUTPUT_DEVICES_FLAG).then((data) => { + console.info('Promise returned to indicate that the device list is obtained.'); }); ``` -### setMicrophoneMute9+ -setMicrophoneMute(mute: boolean, callback: AsyncCallback<void>): void +### setDeviceActive(deprecated) -Mutes or unmutes the microphone. This API uses an asynchronous callback to return the result. +setDeviceActive(deviceType: ActiveDeviceType, active: boolean, callback: AsyncCallback<void>): void -**Required permissions**: ohos.permission.MANAGE_AUDIO_CONFIG +Sets a device to the active state. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Volume +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [setCommunicationDevice](#setcommunicationdevice9) in **AudioRoutingManager**. + +**System capability**: SystemCapability.Multimedia.Audio.Device **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ------------------------- | ---- | --------------------------------------------- | -| mute | boolean | Yes | Mute status to set. The value **true** means to mute the microphone, and **false** means the opposite.| -| callback | AsyncCallback<void> | Yes | Callback used to return the result. | +| Name | Type | Mandatory| Description | +| ---------- | ------------------------------------- | ---- | ------------------------ | +| deviceType | [ActiveDeviceType](#activedevicetypedeprecated) | Yes | Audio device type. | +| active | boolean | Yes | Active state to set. The value **true** means to set the device to the active state, and **false** means the opposite. | +| callback | AsyncCallback<void> | Yes | Callback used to return the result.| **Example** ```js -audioVolumeGroupManager.setMicrophoneMute(true, (err) => { +audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER, true, (err) => { if (err) { - console.error(`Failed to mute the microphone. ${err}`); + console.error(`Failed to set the active status of the device. ${err}`); return; } - console.info('Callback invoked to indicate that the microphone is muted.'); + console.info('Callback invoked to indicate that the device is set to the active status.'); }); ``` -### setMicrophoneMute9+ +### setDeviceActive(deprecated) -setMicrophoneMute(mute: boolean): Promise<void> +setDeviceActive(deviceType: ActiveDeviceType, active: boolean): Promise<void> -Mutes or unmutes the microphone. This API uses a promise to return the result. +Sets a device to the active state. This API uses a promise to return the result. -**Required permissions**: ohos.permission.MANAGE_AUDIO_CONFIG +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [setCommunicationDevice](#setcommunicationdevice9) in **AudioRoutingManager**. -**System capability**: SystemCapability.Multimedia.Audio.Volume +**System capability**: SystemCapability.Multimedia.Audio.Device **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ------- | ---- | --------------------------------------------- | -| mute | boolean | Yes | Mute status to set. The value **true** means to mute the microphone, and **false** means the opposite.| +| Name | Type | Mandatory| Description | +| ---------- | ------------------------------------- | ---- | ------------------ | +| deviceType | [ActiveDeviceType](#activedevicetypedeprecated) | Yes | Audio device type.| +| active | boolean | Yes | Active state to set. The value **true** means to set the device to the active state, and **false** means the opposite. | **Return value** @@ -1813,552 +1800,539 @@ Mutes or unmutes the microphone. This API uses a promise to return the result. **Example** + ```js -audioVolumeGroupManager.setMicrophoneMute(true).then(() => { - console.info('Promise returned to indicate that the microphone is muted.'); +audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER, true).then(() => { + console.info('Promise returned to indicate that the device is set to the active status.'); }); ``` -### isMicrophoneMute9+ +### isDeviceActive(deprecated) -isMicrophoneMute(callback: AsyncCallback<boolean>): void +isDeviceActive(deviceType: ActiveDeviceType, callback: AsyncCallback<boolean>): void -Checks whether the microphone is muted. This API uses an asynchronous callback to return the result. +Checks whether a device is active. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Volume +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [isCommunicationDeviceActive](#iscommunicationdeviceactive9) in **AudioRoutingManager**. + +**System capability**: SystemCapability.Multimedia.Audio.Device **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ---------------------------- | ---- | ------------------------------------------------------- | -| callback | AsyncCallback<boolean> | Yes | Callback used to return the mute status of the microphone. The value **true** means that the microphone is muted, and **false** means the opposite.| +| Name | Type | Mandatory| Description | +| ---------- | ------------------------------------- | ---- | ------------------------ | +| deviceType | [ActiveDeviceType](#activedevicetypedeprecated) | Yes | Audio device type. | +| callback | AsyncCallback<boolean> | Yes | Callback used to return the active state of the device.| **Example** ```js -audioVolumeGroupManager.isMicrophoneMute((err, value) => { +audioManager.isDeviceActive(audio.ActiveDeviceType.SPEAKER, (err, value) => { if (err) { - console.error(`Failed to obtain the mute status of the microphone. ${err}`); + console.error(`Failed to obtain the active status of the device. ${err}`); return; } - console.info(`Callback invoked to indicate that the mute status of the microphone is obtained ${value}.`); + console.info('Callback invoked to indicate that the active status of the device is obtained.'); }); ``` -### isMicrophoneMute9+ +### isDeviceActive(deprecated) -isMicrophoneMute(): Promise<boolean> +isDeviceActive(deviceType: ActiveDeviceType): Promise<boolean> -Checks whether the microphone is muted. This API uses a promise to return the result. +Checks whether a device is active. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Volume +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [isCommunicationDeviceActive](#iscommunicationdeviceactive9) in **AudioRoutingManager**. + +**System capability**: SystemCapability.Multimedia.Audio.Device + +**Parameters** + +| Name | Type | Mandatory| Description | +| ---------- | ------------------------------------- | ---- | ------------------ | +| deviceType | [ActiveDeviceType](#activedevicetypedeprecated) | Yes | Audio device type.| **Return value** -| Type | Description | -| ---------------------- | ------------------------------------------------------------ | -| Promise<boolean> | Promise used to return the mute status of the microphone. The value **true** means that the microphone is muted, and **false** means the opposite.| +| Type | Description | +| ---------------------- | ------------------------------- | +| Promise<boolean> | Promise used to return the active state of the device.| **Example** ```js -audioVolumeGroupManager.isMicrophoneMute().then((value) => { - console.info(`Promise returned to indicate that the mute status of the microphone is obtained ${value}.`); +audioManager.isDeviceActive(audio.ActiveDeviceType.SPEAKER).then((value) => { + console.info(`Promise returned to indicate that the active status of the device is obtained ${value}.`); }); ``` -### on('micStateChange')9+ +### setMicrophoneMute(deprecated) -on(type: 'micStateChange', callback: Callback<MicStateChangeEvent>): void +setMicrophoneMute(mute: boolean, callback: AsyncCallback<void>): void -Subscribes to system mic state change events. +Mutes or unmutes the microphone. This API uses an asynchronous callback to return the result. -Currently, when multiple **AudioManager** instances are used in a single process, only the subscription of the last instance takes effect, and the subscription of other instances is overwritten (even if the last instance does not initiate a subscription). Therefore, you are advised to use a single **AudioManager** instance. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [setMicrophoneMute](#setmicrophonemute9) in **AudioVolumeGroupManager**. -**System capability**: SystemCapability.Multimedia.Audio.Volume +**Required permissions**: ohos.permission.MICROPHONE + +**System capability**: SystemCapability.Multimedia.Audio.Device **Parameters** -| Name | Type | Mandatory| Description | -| -------- | -------------------------------------- | ---- | ------------------------------------------------------------ | -| type | string | Yes | Event type. The value **'micStateChange'** means the system mic state change event, which is triggered when the system mic state changes.| -| callback | Callback<[MicStateChangeEvent](#micstatechangeevent9)> | Yes | Callback used to return the changed micr state. | +| Name | Type | Mandatory| Description | +| -------- | ------------------------- | ---- | --------------------------------------------- | +| mute | boolean | Yes | Mute status to set. The value **true** means to mute the microphone, and **false** means the opposite.| +| callback | AsyncCallback<void> | Yes | Callback used to return the result. | -**Error codes** +**Example** -For details about the error codes, see [Audio Error Codes](../errorcodes/errorcode-audio.md). +```js +audioManager.setMicrophoneMute(true, (err) => { + if (err) { + console.error(`Failed to mute the microphone. ${err}`); + return; + } + console.info('Callback invoked to indicate that the microphone is muted.'); +}); +``` -| ID| Error Message| -| ------- | --------------------------------------------| -| 6800101 | if input parameter value error. | +### setMicrophoneMute(deprecated) + +setMicrophoneMute(mute: boolean): Promise<void> + +Mutes or unmutes the microphone. This API uses a promise to return the result. + +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [setMicrophoneMute](#setmicrophonemute9) in **AudioVolumeGroupManager**. + +**Required permissions**: ohos.permission.MICROPHONE + +**System capability**: SystemCapability.Multimedia.Audio.Device + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------- | ---- | --------------------------------------------- | +| mute | boolean | Yes | Mute status to set. The value **true** means to mute the microphone, and **false** means the opposite.| + +**Return value** + +| Type | Description | +| ------------------- | ------------------------------- | +| Promise<void> | Promise used to return the result.| **Example** ```js -audioVolumeGroupManager.on('micStateChange', (micStateChange) => { - console.info(`Current microphone status is: ${micStateChange.mute} `); +audioManager.setMicrophoneMute(true).then(() => { + console.info('Promise returned to indicate that the microphone is muted.'); }); ``` -## AudioStreamManager9+ +### isMicrophoneMute(deprecated) -Implements audio stream management. Before calling any API in **AudioStreamManager**, you must use [getStreamManager](#getstreammanager9) to obtain an **AudioStreamManager** instance. +isMicrophoneMute(callback: AsyncCallback<boolean>): void -### getCurrentAudioRendererInfoArray9+ +Checks whether the microphone is muted. This API uses an asynchronous callback to return the result. -getCurrentAudioRendererInfoArray(callback: AsyncCallback<AudioRendererChangeInfoArray>): void +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [isMicrophoneMute](#ismicrophonemute9) in **AudioVolumeGroupManager**. -Obtains the information about the current audio renderer. This API uses an asynchronous callback to return the result. +**Required permissions**: ohos.permission.MICROPHONE -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**System capability**: SystemCapability.Multimedia.Audio.Device **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ----------------------------------- | -------- | --------------------------- | -| callback | AsyncCallback<[AudioRendererChangeInfoArray](#audiorendererchangeinfoarray9)> | Yes | Callback used to return the audio renderer information.| +| Name | Type | Mandatory| Description | +| -------- | ---------------------------- | ---- | ------------------------------------------------------- | +| callback | AsyncCallback<boolean> | Yes | Callback used to return the mute status of the microphone. The value **true** means that the microphone is muted, and **false** means the opposite.| **Example** ```js -audioStreamManager.getCurrentAudioRendererInfoArray(async (err, AudioRendererChangeInfoArray) => { - console.info('getCurrentAudioRendererInfoArray **** Get Callback Called ****'); +audioManager.isMicrophoneMute((err, value) => { if (err) { - console.error(`getCurrentAudioRendererInfoArray :ERROR: ${err}`); - } else { - if (AudioRendererChangeInfoArray != null) { - for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { - let AudioRendererChangeInfo = AudioRendererChangeInfoArray[i]; - console.info(`StreamId for ${i} is: ${AudioRendererChangeInfo.streamId}`); - console.info(`ClientUid for ${i} is: ${AudioRendererChangeInfo.clientUid}`); - console.info(`Content ${i} is: ${AudioRendererChangeInfo.rendererInfo.content}`); - console.info(`Stream ${i} is: ${AudioRendererChangeInfo.rendererInfo.usage}`); - console.info(`Flag ${i} is: ${AudioRendererChangeInfo.rendererInfo.rendererFlags}`); - console.info(`State for ${i} is: ${AudioRendererChangeInfo.rendererState}`); - for (let j = 0;j < AudioRendererChangeInfo.deviceDescriptors.length; j++) { - console.info(`Id: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].id}`); - console.info(`Type: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].deviceType}`); - console.info(`Role: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].deviceRole}`); - console.info(`Name: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].name}`); - console.info(`Address: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].address}`); - console.info(`SampleRates: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].sampleRates[0]}`); - console.info(`ChannelCount ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].channelCounts[0]}`); - console.info(`ChannelMask: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].channelMasks}`); - } - } - } + console.error(`Failed to obtain the mute status of the microphone. ${err}`); + return; } + console.info(`Callback invoked to indicate that the mute status of the microphone is obtained ${value}.`); }); ``` -### getCurrentAudioRendererInfoArray9+ +### isMicrophoneMute(deprecated) -getCurrentAudioRendererInfoArray(): Promise<AudioRendererChangeInfoArray> +isMicrophoneMute(): Promise<boolean> -Obtains the information about the current audio renderer. This API uses a promise to return the result. +Checks whether the microphone is muted. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [isMicrophoneMute](#ismicrophonemute9) in **AudioVolumeGroupManager**. + +**Required permissions**: ohos.permission.MICROPHONE + +**System capability**: SystemCapability.Multimedia.Audio.Device **Return value** -| Type | Description | -| ---------------------------------------------------------------------------------| --------------------------------------- | -| Promise<[AudioRendererChangeInfoArray](#audiorendererchangeinfoarray9)> | Promise used to return the audio renderer information. | +| Type | Description | +| ---------------------- | ------------------------------------------------------------ | +| Promise<boolean> | Promise used to return the mute status of the microphone. The value **true** means that the microphone is muted, and **false** means the opposite.| **Example** ```js -async function getCurrentAudioRendererInfoArray(){ - await audioStreamManager.getCurrentAudioRendererInfoArray().then( function (AudioRendererChangeInfoArray) { - console.info(`getCurrentAudioRendererInfoArray ######### Get Promise is called ##########`); - if (AudioRendererChangeInfoArray != null) { - for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { - let AudioRendererChangeInfo = AudioRendererChangeInfoArray[i]; - console.info(`StreamId for ${i} is: ${AudioRendererChangeInfo.streamId}`); - console.info(`ClientUid for ${i} is: ${AudioRendererChangeInfo.clientUid}`); - console.info(`Content ${i} is: ${AudioRendererChangeInfo.rendererInfo.content}`); - console.info(`Stream ${i} is: ${AudioRendererChangeInfo.rendererInfo.usage}`); - console.info(`Flag ${i} is: ${AudioRendererChangeInfo.rendererInfo.rendererFlags}`); - console.info(`State for ${i} is: ${AudioRendererChangeInfo.rendererState}`); - for (let j = 0;j < AudioRendererChangeInfo.deviceDescriptors.length; j++) { - console.info(`Id: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].id}`); - console.info(`Type: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].deviceType}`); - console.info(`Role: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].deviceRole}`); - console.info(`Name: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].name}`); - console.info(`Address: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].address}`); - console.info(`SampleRates: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].sampleRates[0]}`); - console.info(`ChannelCount ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].channelCounts[0]}`); - console.info(`ChannelMask: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].channelMasks}`); - } - } - } - }).catch((err) => { - console.error(`getCurrentAudioRendererInfoArray :ERROR: ${err}`); - }); -} +audioManager.isMicrophoneMute().then((value) => { + console.info(`Promise returned to indicate that the mute status of the microphone is obtained ${value}.`); +}); ``` -### getCurrentAudioCapturerInfoArray9+ +### on('volumeChange')(deprecated) -getCurrentAudioCapturerInfoArray(callback: AsyncCallback<AudioCapturerChangeInfoArray>): void +on(type: 'volumeChange', callback: Callback\): void -Obtains the information about the current audio capturer. This API uses an asynchronous callback to return the result. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [on](#on9) in **AudioVolumeManager**. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +Subscribes to system volume change events. + +**System API**: This is a system API. + +Currently, when multiple **AudioManager** instances are used in a single process, only the subscription of the last instance takes effect, and the subscription of other instances is overwritten (even if the last instance does not initiate a subscription). Therefore, you are advised to use a single **AudioManager** instance. + +**System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** -| Name | Type | Mandatory | Description | -| ---------- | ----------------------------------- | --------- | -------------------------------------------------------- | -| callback | AsyncCallback<[AudioCapturerChangeInfoArray](#audiocapturerchangeinfoarray9)> | Yes | Callback used to return the audio capturer information.| +| Name | Type | Mandatory| Description | +| -------- | -------------------------------------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type. The value **'volumeChange'** means the system volume change event, which is triggered when a system volume change is detected.| +| callback | Callback<[VolumeEvent](#volumeevent8)> | Yes | Callback used to return the system volume change event. | **Example** ```js -audioStreamManager.getCurrentAudioCapturerInfoArray(async (err, AudioCapturerChangeInfoArray) => { - console.info('getCurrentAudioCapturerInfoArray **** Get Callback Called ****'); - if (err) { - console.error(`getCurrentAudioCapturerInfoArray :ERROR: ${err}`); - } else { - if (AudioCapturerChangeInfoArray != null) { - for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { - console.info(`StreamId for ${i} is: ${AudioCapturerChangeInfoArray[i].streamId}`); - console.info(`ClientUid for ${i} is: ${AudioCapturerChangeInfoArray[i].clientUid}`); - console.info(`Source for ${i} is: ${AudioCapturerChangeInfoArray[i].capturerInfo.source}`); - console.info(`Flag ${i} is: ${AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags}`); - console.info(`State for ${i} is: ${AudioCapturerChangeInfoArray[i].capturerState}`); - for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { - console.info(`Id: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id}`); - console.info(`Type: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType}`); - console.info(`Role: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole}`); - console.info(`Name: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name}`); - console.info(`Address: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address}`); - console.info(`SampleRates: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]}`); - console.info(`ChannelCounts ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]}`); - console.info(`ChannelMask: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks}`); - } - } - } - } +audioManager.on('volumeChange', (volumeEvent) => { + console.info(`VolumeType of stream: ${volumeEvent.volumeType} `); + console.info(`Volume level: ${volumeEvent.volume} `); + console.info(`Whether to updateUI: ${volumeEvent.updateUi} `); }); ``` -### getCurrentAudioCapturerInfoArray9+ +### on('ringerModeChange')(deprecated) -getCurrentAudioCapturerInfoArray(): Promise<AudioCapturerChangeInfoArray> +on(type: 'ringerModeChange', callback: Callback\): void -Obtains the information about the current audio capturer. This API uses a promise to return the result. +Subscribes to ringer mode change events. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [on('ringerModeChange')](#onringermodechange9) in **AudioVolumeGroupManager**. -**Return value** +**System API**: This is a system API. -| Type | Description | -| -----------------------------------------------------------------------------| ----------------------------------- | -| Promise<[AudioCapturerChangeInfoArray](#audiocapturerchangeinfoarray9)> | Promise used to return the audio capturer information. | +**System capability**: SystemCapability.Multimedia.Audio.Communication + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ----------------------------------------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type. The value **'ringerModeChange'** means the ringer mode change event, which is triggered when a ringer mode change is detected.| +| callback | Callback<[AudioRingMode](#audioringmode)> | Yes | Callback used to return the ringer mode change event. | **Example** ```js -async function getCurrentAudioCapturerInfoArray(){ - await audioStreamManager.getCurrentAudioCapturerInfoArray().then( function (AudioCapturerChangeInfoArray) { - console.info('getCurrentAudioCapturerInfoArray **** Get Promise Called ****'); - if (AudioCapturerChangeInfoArray != null) { - for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { - console.info(`StreamId for ${i} is: ${AudioCapturerChangeInfoArray[i].streamId}`); - console.info(`ClientUid for ${i} is: ${AudioCapturerChangeInfoArray[i].clientUid}`); - console.info(`Source for ${i} is: ${AudioCapturerChangeInfoArray[i].capturerInfo.source}`); - console.info(`Flag ${i} is: ${AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags}`); - console.info(`State for ${i} is: ${AudioCapturerChangeInfoArray[i].capturerState}`); - for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { - console.info(`Id: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id}`); - console.info(`Type: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType}`); - console.info(`Role: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole}`); - console.info(`Name: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name}`); - console.info(`Address: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address}`); - console.info(`SampleRates: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]}`); - console.info(`ChannelCounts ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]}`); - console.info(`ChannelMask: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks}`); - } - } - } - }).catch((err) => { - console.error(`getCurrentAudioCapturerInfoArray :ERROR: ${err}`); - }); -} +audioManager.on('ringerModeChange', (ringerMode) => { + console.info(`Updated ringermode: ${ringerMode}`); +}); ``` -### on('audioRendererChange')9+ - -on(type: "audioRendererChange", callback: Callback<AudioRendererChangeInfoArray>): void - -Subscribes to audio renderer change events. +### on('deviceChange')(deprecated) -**System capability**: SystemCapability.Multimedia.Audio.Renderer +on(type: 'deviceChange', callback: Callback): void -**Parameters** +Subscribes to device change events. When a device is connected or disconnected, registered clients will receive the callback. -| Name | Type | Mandatory | Description | -| -------- | ---------- | --------- | ------------------------------------------------------------------------ | -| type | string | Yes | Event type. The event `'audioRendererChange'` is triggered when the audio renderer changes. | -| callback | Callback<[AudioRendererChangeInfoArray](#audiorendererchangeinfoarray9)> | Yes | Callback used to return the result. | +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [on](#on9) in **AudioRoutingManager**. -**Error codes** +**System capability**: SystemCapability.Multimedia.Audio.Device -For details about the error codes, see [Audio Error Codes](../errorcodes/errorcode-audio.md). +**Parameters** -| ID| Error Message| -| ------- | --------------------------------------------| -| 6800101 | if input parameter value error. | +| Name | Type | Mandatory| Description | +| :------- | :--------------------------------------------------- | :--- | :----------------------------------------- | +| type | string | Yes | Event type. The value **'deviceChange'** means the device change event, which is triggered when a device connection status change is detected.| +| callback | Callback<[DeviceChangeAction](#devicechangeaction)\> | Yes | Callback used to return the device update details. | **Example** ```js -audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { - let AudioRendererChangeInfo = AudioRendererChangeInfoArray[i]; - console.info(`## RendererChange on is called for ${i} ##`); - console.info(`StreamId for ${i} is: ${AudioRendererChangeInfo.streamId}`); - console.info(`ClientUid for ${i} is: ${AudioRendererChangeInfo.clientUid}`); - console.info(`Content ${i} is: ${AudioRendererChangeInfo.rendererInfo.content}`); - console.info(`Stream ${i} is: ${AudioRendererChangeInfo.rendererInfo.usage}`); - console.info(`Flag ${i} is: ${AudioRendererChangeInfo.rendererInfo.rendererFlags}`); - console.info(`State for ${i} is: ${AudioRendererChangeInfo.rendererState}`); - for (let j = 0;j < AudioRendererChangeInfo.deviceDescriptors.length; j++) { - console.info(`Id: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].id}`); - console.info(`Type: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].deviceType}`); - console.info(`Role: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].deviceRole}`); - console.info(`Name: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].name}`); - console.info(`Address: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].address}`); - console.info(`SampleRates: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].sampleRates[0]}`); - console.info(`ChannelCount ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].channelCounts[0]}`); - console.info(`ChannelMask: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].channelMasks}`); - } - } +audioManager.on('deviceChange', (deviceChanged) => { + console.info(`device change type : ${deviceChanged.type} `); + console.info(`device descriptor size : ${deviceChanged.deviceDescriptors.length} `); + console.info(`device change descriptor : ${deviceChanged.deviceDescriptors[0].deviceRole} `); + console.info(`device change descriptor : ${deviceChanged.deviceDescriptors[0].deviceType} `); }); ``` -### off('audioRendererChange')9+ - -off(type: "audioRendererChange"): void - -Unsubscribes from audio renderer change events. +### off('deviceChange')(deprecated) -**System capability**: SystemCapability.Multimedia.Audio.Renderer +off(type: 'deviceChange', callback?: Callback): void -**Parameters** +Unsubscribes from device change events. -| Name | Type | Mandatory| Description | -| -------- | ------- | ---- | ---------------- | -| type | string | Yes | Event type. The event `'audioRendererChange'` is triggered when the audio renderer changes.| +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [off](#off9) in **AudioRoutingManager**. -**Error codes** +**System capability**: SystemCapability.Multimedia.Audio.Device -For details about the error codes, see [Audio Error Codes](../errorcodes/errorcode-audio.md). +**Parameters** -| ID| Error Message| -| ------- | --------------------------------------------| -| 6800101 | if input parameter value error. | +| Name | Type | Mandatory| Description | +| -------- | --------------------------------------------------- | ---- | ------------------------------------------ | +| type | string | Yes | Event type. The value **'deviceChange'** means the device change event, which is triggered when a device connection status change is detected.| +| callback | Callback<[DeviceChangeAction](#devicechangeaction)> | No | Callback used to return the device update details. | **Example** ```js -audioStreamManager.off('audioRendererChange'); -console.info('######### RendererChange Off is called #########'); +audioManager.off('deviceChange', (deviceChanged) => { + console.info('Should be no callback.'); +}); ``` -### on('audioCapturerChange')9+ +### on('interrupt')(deprecated) -on(type: "audioCapturerChange", callback: Callback<AudioCapturerChangeInfoArray>): void +on(type: 'interrupt', interrupt: AudioInterrupt, callback: Callback\): void -Subscribes to audio capturer change events. +Subscribes to audio interruption events. When the application's audio is interrupted by another playback event, the application will receive the callback. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +Same as [on('audioInterrupt')](#onaudiointerrupt9), this API is used to listen for focus changes. However, this API is used in scenarios without audio streams (no **AudioRenderer** instance is created), such as frequency modulation (FM) and voice wakeup. + +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. + +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ------- | --------- | ----------------------------------------------------------------------- | -| type | string | Yes | Event type. The event `'audioCapturerChange'` is triggered when the audio capturer changes. | -| callback | Callback<[AudioCapturerChangeInfoArray](#audiocapturerchangeinfoarray9)> | Yes | Callback used to return the result. | +| Name | Type | Mandatory| Description | +| --------- | --------------------------------------------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type. The value **'interrupt'** means the audio interruption event, which is triggered when the audio playback of the current application is interrupted by another application.| +| interrupt | AudioInterrupt | Yes | Audio interruption event type. | +| callback | Callback<[InterruptAction](#interruptactiondeprecated)> | Yes | Callback invoked for the audio interruption event. | **Example** ```js -audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { - console.info(`## CapChange on is called for element ${i} ##`); - console.info(`StreamId for ${i} is: ${AudioCapturerChangeInfoArray[i].streamId}`); - console.info(`ClientUid for ${i} is: ${AudioCapturerChangeInfoArray[i].clientUid}`); - console.info(`Source for ${i} is: ${AudioCapturerChangeInfoArray[i].capturerInfo.source}`); - console.info(`Flag ${i} is: ${AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags}`); - console.info(`State for ${i} is: ${AudioCapturerChangeInfoArray[i].capturerState}`); - let devDescriptor = AudioCapturerChangeInfoArray[i].deviceDescriptors; - for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { - console.info(`Id: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id}`); - console.info(`Type: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType}`); - console.info(`Role: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole}`); - console.info(`Name: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name}`); - console.info(`Address: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address}`); - console.info(`SampleRates: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]}`); - console.info(`ChannelCounts ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]}`); - console.info(`ChannelMask: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks}`); - } +let interAudioInterrupt = { + streamUsage:2, + contentType:0, + pauseWhenDucked:true +}; +audioManager.on('interrupt', interAudioInterrupt, (InterruptAction) => { + if (InterruptAction.actionType === 0) { + console.info('An event to gain the audio focus starts.'); + console.info(`Focus gain event: ${InterruptAction} `); + } + if (InterruptAction.actionType === 1) { + console.info('An audio interruption event starts.'); + console.info(`Audio interruption event: ${InterruptAction} `); } }); ``` -### off('audioCapturerChange')9+ +### off('interrupt')(deprecated) -off(type: "audioCapturerChange"): void; +off(type: 'interrupt', interrupt: AudioInterrupt, callback?: Callback\): void -Unsubscribes from audio capturer change events. +Unsubscribes from audio interruption events. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. + +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory| Description | -| -------- | -------- | --- | ------------------------------------------------------------- | -| type | string |Yes | Event type. The event `'audioCapturerChange'` is triggered when the audio capturer changes.| +| Name | Type | Mandatory| Description | +| --------- | --------------------------------------------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type. The value **'interrupt'** means the audio interruption event, which is triggered when the audio playback of the current application is interrupted by another application.| +| interrupt | AudioInterrupt | Yes | Audio interruption event type. | +| callback | Callback<[InterruptAction](#interruptactiondeprecated)> | No | Callback invoked for the audio interruption event. | **Example** ```js -audioStreamManager.off('audioCapturerChange'); -console.info('######### CapturerChange Off is called #########'); - +let interAudioInterrupt = { + streamUsage:2, + contentType:0, + pauseWhenDucked:true +}; +audioManager.off('interrupt', interAudioInterrupt, (InterruptAction) => { + if (InterruptAction.actionType === 0) { + console.info('An event to release the audio focus starts.'); + console.info(`Focus release event: ${InterruptAction} `); + } +}); ``` -### isActive9+ +## AudioVolumeManager9+ -isActive(volumeType: AudioVolumeType, callback: AsyncCallback<boolean>): void +Implements audio volume management. Before calling an API in **AudioVolumeManager**, you must use [getVolumeManager](#getvolumemanager9) to obtain an **AudioVolumeManager** instance. -Checks whether a stream is active. This API uses an asynchronous callback to return the result. +### getVolumeGroupInfos9+ -**System capability**: SystemCapability.Multimedia.Audio.Renderer +getVolumeGroupInfos(networkId: string, callback: AsyncCallback\): void + +Obtains the volume groups. This API uses an asynchronous callback to return the result. + +**System API**: This is a system API. + +**System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ----------------------------------- | ---- | ------------------------------------------------- | -| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | -| callback | AsyncCallback<boolean> | Yes | Callback used to return the active status of the stream. The value **true** means that the stream is active, and **false** means the opposite.| +| Name | Type | Mandatory| Description | +| ---------- | ------------------------------------------------------------ | ---- | -------------------- | +| networkId | string | Yes | Network ID of the device. The network ID of the local device is **audio.LOCAL_NETWORK_ID**. | +| callback | AsyncCallback<[VolumeGroupInfos](#volumegroupinfos9)> | Yes | Callback used to return the volume group information array.| **Example** - ```js -audioStreamManager.isActive(audio.AudioVolumeType.MEDIA, (err, value) => { +audioVolumeManager.getVolumeGroupInfos(audio.LOCAL_NETWORK_ID, (err, value) => { if (err) { - console.error(`Failed to obtain the active status of the stream. ${err}`); + console.error(`Failed to obtain the volume group infos list. ${err}`); return; } - console.info(`Callback invoked to indicate that the active status of the stream is obtained ${value}.`); + console.info('Callback invoked to indicate that the volume group infos list is obtained.'); }); ``` -### isActive9+ +### getVolumeGroupInfos9+ -isActive(volumeType: AudioVolumeType): Promise<boolean> +getVolumeGroupInfos(networkId: string\): Promise -Checks whether a stream is active. This API uses a promise to return the result. +Obtains the volume groups. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**System API**: This is a system API. + +**System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ----------------------------------- | ---- | ------------ | -| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type.| +| Name | Type | Mandatory| Description | +| ---------- | ------------------| ---- | -------------------- | +| networkId | string | Yes | Network ID of the device. The network ID of the local device is **audio.LOCAL_NETWORK_ID**. | **Return value** -| Type | Description | -| ---------------------- | -------------------------------------------------------- | -| Promise<boolean> | Promise used to return the active status of the stream. The value **true** means that the stream is active, and **false** means the opposite.| +| Type | Description | +| ------------------- | ----------------------------- | +| Promise<[VolumeGroupInfos](#volumegroupinfos9)> | Volume group information array.| **Example** ```js -audioStreamManager.isActive(audio.AudioVolumeType.MEDIA).then((value) => { - console.info(`Promise returned to indicate that the active status of the stream is obtained ${value}.`); -}); -``` - -## AudioRoutingManager9+ - -Implements audio routing management. Before calling any API in **AudioRoutingManager**, you must use [getRoutingManager](#getroutingmanager9) to obtain an **AudioRoutingManager** instance. +async function getVolumeGroupInfos(){ + let volumegroupinfos = await audio.getAudioManager().getVolumeManager().getVolumeGroupInfos(audio.LOCAL_NETWORK_ID); + console.info('Promise returned to indicate that the volumeGroup list is obtained.'+JSON.stringify(volumegroupinfos)) +} +``` -### getDevices9+ +### getVolumeGroupManager9+ -getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback<AudioDeviceDescriptors>): void +getVolumeGroupManager(groupId: number, callback: AsyncCallback\): void -Obtains the audio devices with a specific flag. This API uses an asynchronous callback to return the result. +Obtains the audio group manager. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Device +**System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** | Name | Type | Mandatory| Description | | ---------- | ------------------------------------------------------------ | ---- | -------------------- | -| deviceFlag | [DeviceFlag](#deviceflag) | Yes | Audio device flag. | -| callback | AsyncCallback<[AudioDeviceDescriptors](#audiodevicedescriptors)> | Yes | Callback used to return the device list.| +| groupId | number | Yes | Volume group ID. | +| callback | AsyncCallback<[AudioVolumeGroupManager](#audiovolumegroupmanager9)> | Yes | Callback used to return the audio group manager.| **Example** ```js -audioRoutingManager.getDevices(audio.DeviceFlag.OUTPUT_DEVICES_FLAG, (err, value) => { +let groupid = audio.DEFAULT_VOLUME_GROUP_ID; +audioVolumeManager.getVolumeGroupManager(groupid, (err, value) => { if (err) { - console.error(`Failed to obtain the device list. ${err}`); + console.error(`Failed to obtain the volume group infos list. ${err}`); return; } - console.info('Callback invoked to indicate that the device list is obtained.'); + console.info('Callback invoked to indicate that the volume group infos list is obtained.'); }); + ``` -### getDevices9+ +### getVolumeGroupManager9+ -getDevices(deviceFlag: DeviceFlag): Promise<AudioDeviceDescriptors> +getVolumeGroupManager(groupId: number\): Promise -Obtains the audio devices with a specific flag. This API uses a promise to return the result. +Obtains the audio group manager. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Device +**System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ------------------------- | ---- | ---------------- | -| deviceFlag | [DeviceFlag](#deviceflag) | Yes | Audio device flag.| +| Name | Type | Mandatory| Description | +| ---------- | ---------------------------------------- | ---- | ---------------- | +| groupId | number | Yes | Volume group ID. | **Return value** -| Type | Description | -| ------------------------------------------------------------ | ------------------------- | -| Promise<[AudioDeviceDescriptors](#audiodevicedescriptors)> | Promise used to return the device list.| +| Type | Description | +| ------------------- | ----------------------------- | +| Promise< [AudioVolumeGroupManager](#audiovolumegroupmanager9) > | Promise used to return the audio group manager.| **Example** ```js -audioRoutingManager.getDevices(audio.DeviceFlag.OUTPUT_DEVICES_FLAG).then((data) => { - console.info('Promise returned to indicate that the device list is obtained.'); -}); +let groupid = audio.DEFAULT_VOLUME_GROUP_ID; +let audioVolumeGroupManager; +getVolumeGroupManager(); +async function getVolumeGroupManager(){ + audioVolumeGroupManager = await audioVolumeManager.getVolumeGroupManager(groupid); + console.info('Callback invoked to indicate that the volume group infos list is obtained.'); +} + ``` -### on9+ +### on('volumeChange')9+ -on(type: 'deviceChange', deviceFlag: DeviceFlag, callback: Callback): void +on(type: 'volumeChange', callback: Callback\): void -Subscribes to device change events. When a device is connected or disconnected, registered clients will receive the callback. +Subscribes to system volume change events. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Device +**System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** -| Name | Type | Mandatory| Description | -| :------- | :--------------------------------------------------- | :--- | :----------------------------------------- | -| type | string | Yes | Event type. The value **'deviceChange'** means the device change event, which is triggered when a device connection status change is detected.| -| deviceFlag | [DeviceFlag](#deviceflag) | Yes | Audio device flag. | -| callback | Callback<[DeviceChangeAction](#devicechangeaction)\> | Yes | Callback used to return the device update details. | +| Name | Type | Mandatory| Description | +| -------- | -------------------------------------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type. The value **'volumeChange'** means the system volume change event, which is triggered when the system volume changes.| +| callback | Callback<[VolumeEvent](#volumeevent8)> | Yes | Callback used to return the system volume change event. | **Error codes** @@ -2366,2108 +2340,2324 @@ For details about the error codes, see [Audio Error Codes](../errorcodes/errorco | ID| Error Message| | ------- | --------------------------------------------| -| 6800101 | if input parameter value error. | +| 6800101 | if input parameter value error | **Example** ```js -audioRoutingManager.on('deviceChange', audio.DeviceFlag.OUTPUT_DEVICES_FLAG, (deviceChanged) => { - console.info('device change type : ' + deviceChanged.type); - console.info('device descriptor size : ' + deviceChanged.deviceDescriptors.length); - console.info('device change descriptor : ' + deviceChanged.deviceDescriptors[0].deviceRole); - console.info('device change descriptor : ' + deviceChanged.deviceDescriptors[0].deviceType); +audioVolumeManager.on('volumeChange', (volumeEvent) => { + console.info(`VolumeType of stream: ${volumeEvent.volumeType} `); + console.info(`Volume level: ${volumeEvent.volume} `); + console.info(`Whether to updateUI: ${volumeEvent.updateUi} `); }); ``` -### off9+ - -off(type: 'deviceChange', callback?: Callback): void - -Unsubscribes from device change events. - -**System capability**: SystemCapability.Multimedia.Audio.Device - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | --------------------------------------------------- | ---- | ------------------------------------------ | -| type | string | Yes | Event type. The value **'deviceChange'** means the device change event, which is triggered when a device connection status change is detected.| -| callback | Callback<[DeviceChangeAction](#devicechangeaction)> | No | Callback used to return the device update details. | +## AudioVolumeGroupManager9+ -**Error codes** +Manages the volume of an audio group. Before calling any API in **AudioVolumeGroupManager**, you must use [getVolumeGroupManager](#getvolumegroupmanager9) to obtain an **AudioVolumeGroupManager** instance. -For details about the error codes, see [Audio Error Codes](../errorcodes/errorcode-audio.md). +**System API**: This is a system API. -| ID| Error Message| -| ------- | --------------------------------------------| -| 6800101 | if input parameter value error. | +**System capability**: SystemCapability.Multimedia.Audio.Volume -**Example** +### setVolume9+ -```js -audioRoutingManager.off('deviceChange', (deviceChanged) => { - console.info('Should be no callback.'); -}); -``` +setVolume(volumeType: AudioVolumeType, volume: number, callback: AsyncCallback<void>): void -### selectInputDevice9+ +Sets the volume for a stream. This API uses an asynchronous callback to return the result. -selectInputDevice(inputAudioDevices: AudioDeviceDescriptors, callback: AsyncCallback<void>): void +**Required permissions**: ohos.permission.ACCESS_NOTIFICATION_POLICY -Selects an audio input device. Currently, only one input device can be selected. This API uses an asynchronous callback to return the result. +This permission is required only for muting or unmuting the ringer when **volumeType** is set to **AudioVolumeType.RINGTONE**. **System API**: This is a system API. -**System capability**: SystemCapability.Multimedia.Audio.Device +**System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** -| Name | Type | Mandatory| Description | -| --------------------------- | ------------------------------------------------------------ | ---- | ------------------------- | -| inputAudioDevices | [AudioDeviceDescriptors](#audiodevicedescriptors) | Yes | Input device. | -| callback | AsyncCallback<void> | Yes | Callback used to return the result.| +| Name | Type | Mandatory| Description | +| ---------- | ----------------------------------- | ---- | -------------------------------------------------------- | +| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | +| volume | number | Yes | Volume to set. The value range can be obtained by calling **getMinVolume** and **getMaxVolume**.| +| callback | AsyncCallback<void> | Yes | Callback used to return the result. | **Example** -```js -let inputAudioDeviceDescriptor = [{ - "deviceRole":audio.DeviceRole.INPUT_DEVICE, - "networkId":audio.LOCAL_NETWORK_ID, - "interruptGroupId":1, - "volumeGroupId":1 }]; -async function selectInputDevice(){ - audioRoutingManager.selectInputDevice(inputAudioDeviceDescriptor, (err) => { - if (err) { - console.error(`Result ERROR: ${err}`); - } else { - console.info('Select input devices result callback: SUCCESS'); } - }); -} +```js +audioVolumeGroupManager.setVolume(audio.AudioVolumeType.MEDIA, 10, (err) => { + if (err) { + console.error(`Failed to set the volume. ${err}`); + return; + } + console.info('Callback invoked to indicate a successful volume setting.'); +}); ``` -### selectInputDevice9+ +### setVolume9+ -selectInputDevice(inputAudioDevices: AudioDeviceDescriptors): Promise<void> +setVolume(volumeType: AudioVolumeType, volume: number): Promise<void> -**System API**: This is a system API. +Sets the volume for a stream. This API uses a promise to return the result. -Selects an audio input device. Currently, only one input device can be selected. This API uses a promise to return the result. +**Required permissions**: ohos.permission.ACCESS_NOTIFICATION_POLICY -**System capability**: SystemCapability.Multimedia.Audio.Device +This permission is required only for muting or unmuting the ringer when **volumeType** is set to **AudioVolumeType.RINGTONE**. + +**System API**: This is a system API. + +**System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** -| Name | Type | Mandatory| Description | -| --------------------------- | ------------------------------------------------------------ | ---- | ------------------------- | -| inputAudioDevices | [AudioDeviceDescriptors](#audiodevicedescriptors) | Yes | Input device. | +| Name | Type | Mandatory| Description | +| ---------- | ----------------------------------- | ---- | -------------------------------------------------------- | +| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | +| volume | number | Yes | Volume to set. The value range can be obtained by calling **getMinVolume** and **getMaxVolume**.| **Return value** -| Type | Description | -| --------------------- | --------------------------- | -| Promise<void> | Promise used to return the result.| +| Type | Description | +| ------------------- | ----------------------------- | +| Promise<void> | Promise used to return the result.| **Example** ```js -let inputAudioDeviceDescriptor =[{ - "deviceRole":audio.DeviceRole.INPUT_DEVICE, - "networkId":audio.LOCAL_NETWORK_ID, - "interruptGroupId":1, - "volumeGroupId":1 }]; - -async function getRoutingManager(){ - audioRoutingManager.selectInputDevice(inputAudioDeviceDescriptor).then(() => { - console.info('Select input devices result promise: SUCCESS'); - }).catch((err) => { - console.error(`Result ERROR: ${err}`); - }); -} +audioVolumeGroupManager.setVolume(audio.AudioVolumeType.MEDIA, 10).then(() => { + console.info('Promise returned to indicate a successful volume setting.'); +}); ``` -### setCommunicationDevice9+ +### getVolume9+ -setCommunicationDevice(deviceType: CommunicationDeviceType, active: boolean, callback: AsyncCallback<void>): void +getVolume(volumeType: AudioVolumeType, callback: AsyncCallback<number>): void -Sets a communication device to the active state. This API uses an asynchronous callback to return the result. +Obtains the volume of a stream. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Communication +**System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ------------------------------------- | ---- | ------------------------ | -| deviceType | [CommunicationDeviceType](#communicationdevicetype9) | Yes | Communication device type. | -| active | boolean | Yes | Active state to set. The value **true** means to set the device to the active state, and **false** means the opposite. | -| callback | AsyncCallback<void> | Yes | Callback used to return the result.| +| Name | Type | Mandatory| Description | +| ---------- | ----------------------------------- | ---- | ------------------ | +| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | +| callback | AsyncCallback<number> | Yes | Callback used to return the volume.| **Example** ```js -audioRoutingManager.setCommunicationDevice(audio.CommunicationDeviceType.SPEAKER, true, (err) => { +audioVolumeGroupManager.getVolume(audio.AudioVolumeType.MEDIA, (err, value) => { if (err) { - console.error(`Failed to set the active status of the device. ${err}`); + console.error(`Failed to obtain the volume. ${err}`); return; } - console.info('Callback invoked to indicate that the device is set to the active status.'); + console.info('Callback invoked to indicate that the volume is obtained.'); }); ``` -### setCommunicationDevice9+ +### getVolume9+ -setCommunicationDevice(deviceType: CommunicationDeviceType, active: boolean): Promise<void> +getVolume(volumeType: AudioVolumeType): Promise<number> -Sets a communication device to the active state. This API uses a promise to return the result. +Obtains the volume of a stream. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Communication +**System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ----------------------------------------------------- | ---- | ------------------ | -| deviceType | [CommunicationDeviceType](#communicationdevicetype9) | Yes | Communication device type.| -| active | boolean | Yes | Active state to set. The value **true** means to set the device to the active state, and **false** means the opposite. | +| Name | Type | Mandatory| Description | +| ---------- | ----------------------------------- | ---- | ------------ | +| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type.| **Return value** -| Type | Description | -| ------------------- | ------------------------------- | -| Promise<void> | Promise used to return the result.| +| Type | Description | +| --------------------- | ------------------------- | +| Promise<number> | Promise used to return the volume.| **Example** ```js -audioRoutingManager.setCommunicationDevice(audio.CommunicationDeviceType.SPEAKER, true).then(() => { - console.info('Promise returned to indicate that the device is set to the active status.'); +audioVolumeGroupManager.getVolume(audio.AudioVolumeType.MEDIA).then((value) => { + console.info(`Promise returned to indicate that the volume is obtained ${value}.`); }); ``` -### isCommunicationDeviceActive9+ +### getMinVolume9+ -isCommunicationDeviceActive(deviceType: CommunicationDeviceType, callback: AsyncCallback<boolean>): void +getMinVolume(volumeType: AudioVolumeType, callback: AsyncCallback<number>): void -Checks whether a communication device is active. This API uses an asynchronous callback to return the result. +Obtains the minimum volume allowed for a stream. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Communication +**System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ---------------------------------------------------- | ---- | ------------------------ | -| deviceType | [CommunicationDeviceType](#communicationdevicetype9) | Yes | Communication device type. | -| callback | AsyncCallback<boolean> | Yes | Callback used to return the active state of the device.| +| Name | Type | Mandatory| Description | +| ---------- | ----------------------------------- | ---- | ------------------ | +| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | +| callback | AsyncCallback<number> | Yes | Callback used to return the minimum volume.| **Example** ```js -audioRoutingManager.isCommunicationDeviceActive(audio.CommunicationDeviceType.SPEAKER, (err, value) => { +audioVolumeGroupManager.getMinVolume(audio.AudioVolumeType.MEDIA, (err, value) => { if (err) { - console.error(`Failed to obtain the active status of the device. ${err}`); + console.error(`Failed to obtain the minimum volume. ${err}`); return; } - console.info('Callback invoked to indicate that the active status of the device is obtained.'); + console.info(`Callback invoked to indicate that the minimum volume is obtained. ${value}`); }); ``` -### isCommunicationDeviceActive9+ +### getMinVolume9+ -isCommunicationDeviceActive(deviceType: CommunicationDeviceType): Promise<boolean> +getMinVolume(volumeType: AudioVolumeType): Promise<number> -Checks whether a communication device is active. This API uses a promise to return the result. +Obtains the minimum volume allowed for a stream. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Communication +**System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ---------------------------------------------------- | ---- | ------------------ | -| deviceType | [CommunicationDeviceType](#communicationdevicetype9) | Yes | Communication device type.| +| Name | Type | Mandatory| Description | +| ---------- | ----------------------------------- | ---- | ------------ | +| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type.| **Return value** -| Type | Description | -| ---------------------- | ------------------------------- | -| Promise<boolean> | Promise used to return the active state of the device.| +| Type | Description | +| --------------------- | ------------------------- | +| Promise<number> | Promise used to return the minimum volume.| **Example** ```js -audioRoutingManager.isCommunicationDeviceActive(audio.CommunicationDeviceType.SPEAKER).then((value) => { - console.info(`Promise returned to indicate that the active status of the device is obtained ${value}.`); +audioVolumeGroupManager.getMinVolume(audio.AudioVolumeType.MEDIA).then((value) => { + console.info(`Promised returned to indicate that the minimum volume is obtained ${value}.`); }); ``` -### selectOutputDevice9+ - -selectOutputDevice(outputAudioDevices: AudioDeviceDescriptors, callback: AsyncCallback<void>): void +### getMaxVolume9+ -Selects an audio output device. Currently, only one output device can be selected. This API uses an asynchronous callback to return the result. +getMaxVolume(volumeType: AudioVolumeType, callback: AsyncCallback<number>): void -**System API**: This is a system API. +Obtains the maximum volume allowed for a stream. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Device +**System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** -| Name | Type | Mandatory| Description | -| --------------------------- | ------------------------------------------------------------ | ---- | ------------------------- | -| outputAudioDevices | [AudioDeviceDescriptors](#audiodevicedescriptors) | Yes | Output device. | -| callback | AsyncCallback<void> | Yes | Callback used to return the result.| +| Name | Type | Mandatory| Description | +| ---------- | ----------------------------------- | ---- | ---------------------- | +| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | +| callback | AsyncCallback<number> | Yes | Callback used to return the maximum volume.| **Example** + ```js -let outputAudioDeviceDescriptor = [{ - "deviceRole":audio.DeviceRole.OUTPUT_DEVICE, - "networkId":audio.LOCAL_NETWORK_ID, - "interruptGroupId":1, - "volumeGroupId":1 }]; -async function selectOutputDevice(){ - audioRoutingManager.selectOutputDevice(outputAudioDeviceDescriptor, (err) => { - if (err) { - console.error(`Result ERROR: ${err}`); - } else { - console.info('Select output devices result callback: SUCCESS'); } - }); -} +audioVolumeGroupManager.getMaxVolume(audio.AudioVolumeType.MEDIA, (err, value) => { + if (err) { + console.error(`Failed to obtain the maximum volume. ${err}`); + return; + } + console.info(`Callback invoked to indicate that the maximum volume is obtained. ${value}`); +}); ``` -### selectOutputDevice9+ - -selectOutputDevice(outputAudioDevices: AudioDeviceDescriptors): Promise<void> +### getMaxVolume9+ -**System API**: This is a system API. +getMaxVolume(volumeType: AudioVolumeType): Promise<number> -Selects an audio output device. Currently, only one output device can be selected. This API uses a promise to return the result. +Obtains the maximum volume allowed for a stream. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Device +**System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** -| Name | Type | Mandatory| Description | -| --------------------------- | ------------------------------------------------------------ | ---- | ------------------------- | -| outputAudioDevices | [AudioDeviceDescriptors](#audiodevicedescriptors) | Yes | Output device. | +| Name | Type | Mandatory| Description | +| ---------- | ----------------------------------- | ---- | ------------ | +| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type.| **Return value** -| Type | Description | -| --------------------- | --------------------------- | -| Promise<void> | Promise used to return the result.| +| Type | Description | +| --------------------- | ----------------------------- | +| Promise<number> | Promise used to return the maximum volume.| **Example** ```js -let outputAudioDeviceDescriptor =[{ - "deviceRole":audio.DeviceRole.OUTPUT_DEVICE, - "networkId":audio.LOCAL_NETWORK_ID, - "interruptGroupId":1, - "volumeGroupId":1 }]; - -async function selectOutputDevice(){ - audioRoutingManager.selectOutputDevice(outputAudioDeviceDescriptor).then(() => { - console.info('Select output devices result promise: SUCCESS'); - }).catch((err) => { - console.error(`Result ERROR: ${err}`); - }); -} +audioVolumeGroupManager.getMaxVolume(audio.AudioVolumeType.MEDIA).then((data) => { + console.info('Promised returned to indicate that the maximum volume is obtained.'); +}); ``` -### selectOutputDeviceByFilter9+ +### mute9+ -selectOutputDeviceByFilter(filter: AudioRendererFilter, outputAudioDevices: AudioDeviceDescriptors, callback: AsyncCallback<void>): void +mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback<void>): void -**System API**: This is a system API. +Mutes or unmutes a stream. This API uses an asynchronous callback to return the result. -Selects an audio output device based on the filter criteria. Currently, only one output device can be selected. This API uses an asynchronous callback to return the result. +**Required permissions**: ohos.permission.ACCESS_NOTIFICATION_POLICY -**System capability**: SystemCapability.Multimedia.Audio.Device +This permission is required only for muting or unmuting the ringer when **volumeType** is set to **AudioVolumeType.RINGTONE**. + +**System API**: This is a system API. + +**System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** -| Name | Type | Mandatory| Description | -| --------------------------- | ------------------------------------------------------------ | ---- | ------------------------- | -| filter | [AudioRendererFilter](#audiorendererfilter9) | Yes | Filter criteria. | -| outputAudioDevices | [AudioDeviceDescriptors](#audiodevicedescriptors) | Yes | Output device. | -| callback | AsyncCallback<void> | Yes | Callback used to return the result.| +| Name | Type | Mandatory| Description | +| ---------- | ----------------------------------- | ---- | ------------------------------------- | +| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | +| mute | boolean | Yes | Mute status to set. The value **true** means to mute the stream, and **false** means the opposite.| +| callback | AsyncCallback<void> | Yes | Callback used to return the result. | **Example** -```js -let outputAudioRendererFilter = { - "uid":20010041, - "rendererInfo": { - "contentType":audio.ContentType.CONTENT_TYPE_MUSIC, - "streamUsage":audio.StreamUsage.STREAM_USAGE_MEDIA, - "rendererFlags":0 }, - "rendererId":0 }; -let outputAudioDeviceDescriptor = [{ - "deviceRole":audio.DeviceRole.OUTPUT_DEVICE, - "networkId":audio.LOCAL_NETWORK_ID, - "interruptGroupId":1, - "volumeGroupId":1 }]; -async function selectOutputDeviceByFilter(){ - audioRoutingManager.selectOutputDeviceByFilter(outputAudioRendererFilter, outputAudioDeviceDescriptor, (err) => { - if (err) { - console.error(`Result ERROR: ${err}`); - } else { - console.info('Select output devices by filter result callback: SUCCESS'); } - }); -} +```js +audioVolumeGroupManager.mute(audio.AudioVolumeType.MEDIA, true, (err) => { + if (err) { + console.error(`Failed to mute the stream. ${err}`); + return; + } + console.info('Callback invoked to indicate that the stream is muted.'); +}); ``` -### selectOutputDeviceByFilter9+ +### mute9+ -selectOutputDeviceByFilter(filter: AudioRendererFilter, outputAudioDevices: AudioDeviceDescriptors): Promise<void> +mute(volumeType: AudioVolumeType, mute: boolean): Promise<void> -**System API**: This is a system API. +Mutes or unmutes a stream. This API uses a promise to return the result. -Selects an audio output device based on the filter criteria. Currently, only one output device can be selected. This API uses a promise to return the result. +**Required permissions**: ohos.permission.ACCESS_NOTIFICATION_POLICY -**System capability**: SystemCapability.Multimedia.Audio.Device +This permission is required only for muting or unmuting the ringer when **volumeType** is set to **AudioVolumeType.RINGTONE**. + +**System API**: This is a system API. + +**System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** -| Name | Type | Mandatory| Description | -| ----------------------| ------------------------------------------------------------ | ---- | ------------------------- | -| filter | [AudioRendererFilter](#audiorendererfilter9) | Yes | Filter criteria. | -| outputAudioDevices | [AudioDeviceDescriptors](#audiodevicedescriptors) | Yes | Output device. | +| Name | Type | Mandatory| Description | +| ---------- | ----------------------------------- | ---- | ------------------------------------- | +| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | +| mute | boolean | Yes | Mute status to set. The value **true** means to mute the stream, and **false** means the opposite.| **Return value** -| Type | Description | -| --------------------- | --------------------------- | -| Promise<void> | Promise used to return the result.| +| Type | Description | +| ------------------- | ----------------------------- | +| Promise<void> | Promise used to return the result.| **Example** ```js -let outputAudioRendererFilter = { - "uid":20010041, - "rendererInfo": { - "contentType":audio.ContentType.CONTENT_TYPE_MUSIC, - "streamUsage":audio.StreamUsage.STREAM_USAGE_MEDIA, - "rendererFlags":0 }, - "rendererId":0 }; -let outputAudioDeviceDescriptor = [{ - "deviceRole":audio.DeviceRole.OUTPUT_DEVICE, - "networkId":audio.LOCAL_NETWORK_ID, - "interruptGroupId":1, - "volumeGroupId":1 }]; - -async function selectOutputDeviceByFilter(){ - audioRoutingManager.selectOutputDeviceByFilter(outputAudioRendererFilter, outputAudioDeviceDescriptor).then(() => { - console.info('Select output devices by filter result promise: SUCCESS'); - }).catch((err) => { - console.error(`Result ERROR: ${err}`); - }) -} +audioVolumeGroupManager.mute(audio.AudioVolumeType.MEDIA, true).then(() => { + console.info('Promise returned to indicate that the stream is muted.'); +}); ``` -## AudioRendererChangeInfoArray9+ - -Defines an **AudioRenderChangeInfo** array, which is read-only. +### isMute9+ -**System capability**: SystemCapability.Multimedia.Audio.Renderer +isMute(volumeType: AudioVolumeType, callback: AsyncCallback<boolean>): void -## AudioRendererChangeInfo9+ +Checks whether a stream is muted. This API uses an asynchronous callback to return the result. -Describes the audio renderer change event. +**System capability**: SystemCapability.Multimedia.Audio.Volume -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**Parameters** -| Name | Type | Readable | Writable | Description | -| ------------- | ---------------------------------------- | -------- | -------- | ---------------------------------------------------------- | -| streamId | number | Yes | No | Unique ID of an audio stream. | -| clientUid | number | Yes | No | UID of the audio renderer client.
This is a system API. | -| rendererInfo | [AudioRendererInfo](#audiorendererinfo8) | Yes | No | Audio renderer information. | -| rendererState | [AudioState](#audiostate) | Yes | No | Audio state.
This is a system API. | +| Name | Type | Mandatory| Description | +| ---------- | ----------------------------------- | ---- | ----------------------------------------------- | +| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | +| callback | AsyncCallback<boolean> | Yes | Callback used to return the mute status of the stream. The value **true** means that the stream is muted, and **false** means the opposite.| **Example** ```js -import audio from '@ohos.multimedia.audio'; - -let audioStreamManager; -let resultFlag = false; -let audioManager = audio.getAudioManager(); - -audioManager.getStreamManager((err, data) => { +audioVolumeGroupManager.isMute(audio.AudioVolumeType.MEDIA, (err, value) => { if (err) { - console.error(`Get AudioStream Manager : ERROR : ${err}`); - } else { - audioStreamManager = data; - console.info('Get AudioStream Manager : Success'); + console.error(`Failed to obtain the mute status. ${err}`); + return; } + console.info(`Callback invoked to indicate that the mute status of the stream is obtained ${value}.`); }); +``` -audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { - for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { - console.info(`## RendererChange on is called for ${i} ##`); - console.info(`StreamId for ${i} is: ${AudioRendererChangeInfoArray[i].streamId}`); - console.info(`ClientUid for ${i} is: ${AudioRendererChangeInfoArray[i].clientUid}`); - console.info(`Content for ${i} is: ${AudioRendererChangeInfoArray[i].rendererInfo.content}`); - console.info(`Stream for ${i} is: ${AudioRendererChangeInfoArray[i].rendererInfo.usage}`); - console.info(`Flag ${i} is: ${AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags}`); - console.info(`State for ${i} is: ${AudioRendererChangeInfoArray[i].rendererState}`); - let devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; - for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { - console.info(`Id: ${i} : ${AudioRendererChangeInfoArray[i].deviceDescriptors[j].id}`); - console.info(`Type: ${i} : ${AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType}`); - console.info(`Role: ${i} : ${AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole}`); - console.info(`Name: ${i} : ${AudioRendererChangeInfoArray[i].deviceDescriptors[j].name}`); - console.info(`Addr: ${i} : ${AudioRendererChangeInfoArray[i].deviceDescriptors[j].address}`); - console.info(`SR: ${i} : ${AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]}`); - console.info(`C ${i} : ${AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]}`); - console.info(`CM: ${i} : ${AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks}`); - } - if (AudioRendererChangeInfoArray[i].rendererState == 1 && devDescriptor != null) { - resultFlag = true; - console.info(`ResultFlag for ${i} is: ${resultFlag}`); - } - } +### isMute9+ + +isMute(volumeType: AudioVolumeType): Promise<boolean> + +Checks whether a stream is muted. This API uses a promise to return the result. + +**System capability**: SystemCapability.Multimedia.Audio.Volume + +**Parameters** + +| Name | Type | Mandatory| Description | +| ---------- | ----------------------------------- | ---- | ------------ | +| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type.| + +**Return value** + +| Type | Description | +| ---------------------- | ------------------------------------------------------ | +| Promise<boolean> | Promise used to return the mute status of the stream. The value **true** means that the stream is muted, and **false** means the opposite.| + +**Example** + +```js +audioVolumeGroupManager.isMute(audio.AudioVolumeType.MEDIA).then((value) => { + console.info(`Promise returned to indicate that the mute status of the stream is obtained ${value}.`); }); ``` +### setRingerMode9+ -## AudioCapturerChangeInfoArray9+ +setRingerMode(mode: AudioRingMode, callback: AsyncCallback<void>): void -Defines an **AudioCapturerChangeInfo** array, which is read-only. +Sets the ringer mode. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**Required permissions**: ohos.permission.ACCESS_NOTIFICATION_POLICY -## AudioCapturerChangeInfo9+ +This permission is required only for muting or unmuting the ringer. -Describes the audio capturer change event. +**System API**: This is a system API. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Volume -| Name | Type | Readable | Writable | Description | -| ------------- | ---------------------------------------- | -------- | -------- | ---------------------------------------------------------- | -| streamId | number | Yes | No | Unique ID of an audio stream. | -| clientUid | number | Yes | No | UID of the audio capturer client.
This is a system API. | -| capturerInfo | [AudioCapturerInfo](#audiocapturerinfo8) | Yes | No | Audio capturer information. | -| capturerState | [AudioState](#audiostate) | Yes | No | Audio state.
This is a system API. | +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------------- | ---- | ------------------------ | +| mode | [AudioRingMode](#audioringmode) | Yes | Ringer mode. | +| callback | AsyncCallback<void> | Yes | Callback used to return the result.| **Example** ```js -import audio from '@ohos.multimedia.audio'; - -const audioManager = audio.getAudioManager(); -let audioStreamManager; -audioManager.getStreamManager((err, data) => { +audioVolumeGroupManager.setRingerMode(audio.AudioRingMode.RINGER_MODE_NORMAL, (err) => { if (err) { - console.error(`getStreamManager : Error: ${err}`); - } else { - console.info('getStreamManager : Success : SUCCESS'); - audioStreamManager = data; - } -}); - -let resultFlag = false; -audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { - for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { - console.info(`## CapChange on is called for element ${i} ##`); - console.info(`StrId for ${i} is: ${AudioCapturerChangeInfoArray[i].streamId}`); - console.info(`CUid for ${i} is: ${AudioCapturerChangeInfoArray[i].clientUid}`); - console.info(`Src for ${i} is: ${AudioCapturerChangeInfoArray[i].capturerInfo.source}`); - console.info(`Flag ${i} is: ${AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags}`); - console.info(`State for ${i} is: ${AudioCapturerChangeInfoArray[i].capturerState}`); - let devDescriptor = AudioCapturerChangeInfoArray[i].deviceDescriptors; - for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { - console.info(`Id: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id}`); - console.info(`Type: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType}`); - console.info(`Role: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole}`); - console.info(`Name: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name}`); - console.info(`Addr: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address}`); - console.info(`SR: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]}`); - console.info(`C ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]}`); - console.info(`CM ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks}`); - } - if (AudioCapturerChangeInfoArray[i].capturerState == 1 && devDescriptor != null) { - resultFlag = true; - console.info(`ResultFlag for element ${i} is: ${resultFlag}`); - } + console.error(`Failed to set the ringer mode.​ ${err}`); + return; } + console.info('Callback invoked to indicate a successful setting of the ringer mode.'); }); ``` -## AudioDeviceDescriptors +### setRingerMode9+ -Defines an [AudioDeviceDescriptor](#audiodevicedescriptor) array, which is read-only. +setRingerMode(mode: AudioRingMode): Promise<void> -## AudioDeviceDescriptor +Sets the ringer mode. This API uses a promise to return the result. -Describes an audio device. +**Required permissions**: ohos.permission.ACCESS_NOTIFICATION_POLICY -**System capability**: SystemCapability.Multimedia.Audio.Device +This permission is required only for muting or unmuting the ringer. -| Name | Type | Readable | Writable | Description | -| ----------------------------- | ------------------------- | -------- | -------- | ------------------------------------------------------------ | -| deviceRole | [DeviceRole](#devicerole) | Yes | No | Device role. | -| deviceType | [DeviceType](#devicetype) | Yes | No | Device type. | -| id9+ | number | Yes | No | Device ID. | -| name9+ | string | Yes | No | Device name. | -| address9+ | string | Yes | No | Device address. | -| sampleRates9+ | Array<number> | Yes | No | Supported sampling rates. | -| channelCounts9+ | Array<number> | Yes | No | Number of channels supported. | -| channelMasks9+ | Array<number> | Yes | No | Supported channel masks. | -| networkId9+ | string | Yes | No | ID of the device network.
This is a system API. | -| interruptGroupId9+ | number | Yes | No | ID of the interruption group to which the device belongs.
This is a system API. | -| volumeGroupId9+ | number | Yes | No | ID of the volume group to which the device belongs.
This is a system API. | +**System API**: This is a system API. + +**System capability**: SystemCapability.Multimedia.Audio.Volume + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------------------------------- | ---- | -------------- | +| mode | [AudioRingMode](#audioringmode) | Yes | Ringer mode.| + +**Return value** + +| Type | Description | +| ------------------- | ------------------------------- | +| Promise<void> | Promise used to return the result.| **Example** ```js -import audio from '@ohos.multimedia.audio'; +audioVolumeGroupManager.setRingerMode(audio.AudioRingMode.RINGER_MODE_NORMAL).then(() => { + console.info('Promise returned to indicate a successful setting of the ringer mode.'); +}); +``` -function displayDeviceProp(value) { - deviceRoleValue = value.deviceRole; - deviceTypeValue = value.deviceType; -} +### getRingerMode9+ -let deviceRoleValue = null; -let deviceTypeValue = null; -const promise = audio.getAudioManager().getDevices(1); -promise.then(function (value) { - console.info('AudioFrameworkTest: Promise: getDevices OUTPUT_DEVICES_FLAG'); - value.forEach(displayDeviceProp); - if (deviceTypeValue != null && deviceRoleValue != null){ - console.info('AudioFrameworkTest: Promise: getDevices : OUTPUT_DEVICES_FLAG : PASS'); - } else { - console.error('AudioFrameworkTest: Promise: getDevices : OUTPUT_DEVICES_FLAG : FAIL'); +getRingerMode(callback: AsyncCallback<AudioRingMode>): void + +Obtains the ringer mode. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Multimedia.Audio.Volume + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ---------------------------------------------------- | ---- | ------------------------ | +| callback | AsyncCallback<[AudioRingMode](#audioringmode)> | Yes | Callback used to return the ringer mode.| + +**Example** + +```js +audioVolumeGroupManager.getRingerMode((err, value) => { + if (err) { + console.error(`Failed to obtain the ringer mode.​ ${err}`); + return; } + console.info(`Callback invoked to indicate that the ringer mode is obtained ${value}.`); }); ``` -## AudioRendererFilter9+ +### getRingerMode9+ + +getRingerMode(): Promise<AudioRingMode> + +Obtains the ringer mode. This API uses a promise to return the result. -Implements filter criteria. Before calling **selectOutputDeviceByFilter**, you must obtain an **AudioRendererFilter** instance. +**System capability**: SystemCapability.Multimedia.Audio.Volume -**System API**: This is a system API. +**Return value** -| Name | Type | Mandatory | Description | -| ------------ | ---------------------------------------- | --------- | ------------------------------------------------------------ | -| uid | number | Yes | Application ID.
**System capability**: SystemCapability.Multimedia.Audio.Core | -| rendererInfo | [AudioRendererInfo](#audiorendererinfo8) | No | Audio renderer information.
**System capability**: SystemCapability.Multimedia.Audio.Renderer | -| rendererId | number | No | Unique ID of an audio stream.
**System capability**: SystemCapability.Multimedia.Audio.Renderer | +| Type | Description | +| ---------------------------------------------- | ------------------------------- | +| Promise<[AudioRingMode](#audioringmode)> | Promise used to return the ringer mode.| **Example** ```js -let outputAudioRendererFilter = { - "uid":20010041, - "rendererInfo": { - "contentType":audio.ContentType.CONTENT_TYPE_MUSIC, - "streamUsage":audio.StreamUsage.STREAM_USAGE_MEDIA, - "rendererFlags":0 }, - "rendererId":0 }; +audioVolumeGroupManager.getRingerMode().then((value) => { + console.info(`Promise returned to indicate that the ringer mode is obtained ${value}.`); +}); ``` -## AudioRenderer8+ +### on('ringerModeChange')9+ -Provides APIs for audio rendering. Before calling any API in **AudioRenderer**, you must use [createAudioRenderer](#audiocreateaudiorenderer8) to create an **AudioRenderer** instance. +on(type: 'ringerModeChange', callback: Callback\): void -### Attributes +Subscribes to ringer mode change events. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**System capability**: SystemCapability.Multimedia.Audio.Volume -| Name | Type | Readable | Writable | Description | -| ------------------ | -------------------------- | -------- | -------- | --------------------- | -| state8+ | [AudioState](#audiostate8) | Yes | No | Audio renderer state. | +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ----------------------------------------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type. The value **'ringerModeChange'** means the ringer mode change event, which is triggered when a ringer mode change is detected.| +| callback | Callback<[AudioRingMode](#audioringmode)> | Yes | Callback used to return the system volume change event. | + +**Error codes** + +For details about the error codes, see [Audio Error Codes](../errorcodes/errorcode-audio.md). + +| ID| Error Message| +| ------- | --------------------------------------------| +| 6800101 | if input parameter value error | **Example** ```js -let state = audioRenderer.state; +audioVolumeGroupManager.on('ringerModeChange', (ringerMode) => { + console.info(`Updated ringermode: ${ringerMode}`); +}); ``` +### setMicrophoneMute9+ -### getRendererInfo8+ +setMicrophoneMute(mute: boolean, callback: AsyncCallback<void>): void -getRendererInfo(callback: AsyncCallback): void +Mutes or unmutes the microphone. This API uses an asynchronous callback to return the result. -Obtains the renderer information of this **AudioRenderer** instance. This API uses an asynchronous callback to return the result. +**Required permissions**: ohos.permission.MANAGE_AUDIO_CONFIG -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** -| Name | Type | Mandatory | Description | -| :------- | :------------------------------------------------------- | :-------- | :------------------------------------------------ | -| callback | AsyncCallback<[AudioRendererInfo](#audiorendererinfo8)\> | Yes | Callback used to return the renderer information. | +| Name | Type | Mandatory| Description | +| -------- | ------------------------- | ---- | --------------------------------------------- | +| mute | boolean | Yes | Mute status to set. The value **true** means to mute the microphone, and **false** means the opposite.| +| callback | AsyncCallback<void> | Yes | Callback used to return the result. | **Example** ```js -audioRenderer.getRendererInfo((err, rendererInfo) => { - console.info('Renderer GetRendererInfo:'); - console.info(`Renderer content: ${rendererInfo.content}`); - console.info(`Renderer usage: ${rendererInfo.usage}`); - console.info(`Renderer flags: ${rendererInfo.rendererFlags}`); +audioVolumeGroupManager.setMicrophoneMute(true, (err) => { + if (err) { + console.error(`Failed to mute the microphone. ${err}`); + return; + } + console.info('Callback invoked to indicate that the microphone is muted.'); }); ``` -### getRendererInfo8+ +### setMicrophoneMute9+ -getRendererInfo(): Promise +setMicrophoneMute(mute: boolean): Promise<void> -Obtains the renderer information of this **AudioRenderer** instance. This API uses a promise to return the result. +Mutes or unmutes the microphone. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**Required permissions**: ohos.permission.MANAGE_AUDIO_CONFIG + +**System capability**: SystemCapability.Multimedia.Audio.Volume + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------- | ---- | --------------------------------------------- | +| mute | boolean | Yes | Mute status to set. The value **true** means to mute the microphone, and **false** means the opposite.| **Return value** -| Type | Description | -| -------------------------------------------------- | ------------------------------------------------ | -| Promise<[AudioRendererInfo](#audiorendererinfo8)\> | Promise used to return the renderer information. | +| Type | Description | +| ------------------- | ------------------------------- | +| Promise<void> | Promise used to return the result.| **Example** ```js -audioRenderer.getRendererInfo().then((rendererInfo) => { - console.info('Renderer GetRendererInfo:'); - console.info(`Renderer content: ${rendererInfo.content}`); - console.info(`Renderer usage: ${rendererInfo.usage}`); - console.info(`Renderer flags: ${rendererInfo.rendererFlags}`) -}).catch((err) => { - console.error(`AudioFrameworkRenderLog: RendererInfo :ERROR: ${err}`); +audioVolumeGroupManager.setMicrophoneMute(true).then(() => { + console.info('Promise returned to indicate that the microphone is muted.'); }); ``` -### getStreamInfo8+ +### isMicrophoneMute9+ -getStreamInfo(callback: AsyncCallback): void +isMicrophoneMute(callback: AsyncCallback<boolean>): void -Obtains the stream information of this **AudioRenderer** instance. This API uses an asynchronous callback to return the result. +Checks whether the microphone is muted. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**System capability**: SystemCapability.Multimedia.Audio.Volume **Parameters** -| Name | Type | Mandatory | Description | -| :------- | :--------------------------------------------------- | :-------- | :---------------------------------------------- | -| callback | AsyncCallback<[AudioStreamInfo](#audiostreaminfo8)\> | Yes | Callback used to return the stream information. | +| Name | Type | Mandatory| Description | +| -------- | ---------------------------- | ---- | ------------------------------------------------------- | +| callback | AsyncCallback<boolean> | Yes | Callback used to return the mute status of the microphone. The value **true** means that the microphone is muted, and **false** means the opposite.| **Example** ```js -audioRenderer.getStreamInfo((err, streamInfo) => { - console.info('Renderer GetStreamInfo:'); - console.info(`Renderer sampling rate: ${streamInfo.samplingRate}`); - console.info(`Renderer channel: ${streamInfo.channels}`); - console.info(`Renderer format: ${streamInfo.sampleFormat}`); - console.info(`Renderer encoding type: ${streamInfo.encodingType}`); +audioVolumeGroupManager.isMicrophoneMute((err, value) => { + if (err) { + console.error(`Failed to obtain the mute status of the microphone. ${err}`); + return; + } + console.info(`Callback invoked to indicate that the mute status of the microphone is obtained ${value}.`); }); ``` -### getStreamInfo8+ +### isMicrophoneMute9+ -getStreamInfo(): Promise +isMicrophoneMute(): Promise<boolean> -Obtains the stream information of this **AudioRenderer** instance. This API uses a promise to return the result. +Checks whether the microphone is muted. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**System capability**: SystemCapability.Multimedia.Audio.Volume **Return value** -| Type | Description | -| :--------------------------------------------- | :--------------------------------------------- | -| Promise<[AudioStreamInfo](#audiostreaminfo8)\> | Promise used to return the stream information. | +| Type | Description | +| ---------------------- | ------------------------------------------------------------ | +| Promise<boolean> | Promise used to return the mute status of the microphone. The value **true** means that the microphone is muted, and **false** means the opposite.| **Example** ```js -audioRenderer.getStreamInfo().then((streamInfo) => { - console.info('Renderer GetStreamInfo:'); - console.info(`Renderer sampling rate: ${streamInfo.samplingRate}`); - console.info(`Renderer channel: ${streamInfo.channels}`); - console.info(`Renderer format: ${streamInfo.sampleFormat}`); - console.info(`Renderer encoding type: ${streamInfo.encodingType}`); -}).catch((err) => { - console.error(`ERROR: ${err}`); +audioVolumeGroupManager.isMicrophoneMute().then((value) => { + console.info(`Promise returned to indicate that the mute status of the microphone is obtained ${value}.`); }); +``` + +### on('micStateChange')9+ +on(type: 'micStateChange', callback: Callback<MicStateChangeEvent>): void + +Subscribes to system microphone state change events. + +Currently, when multiple **AudioManager** instances are used in a single process, only the subscription of the last instance takes effect, and the subscription of other instances is overwritten (even if the last instance does not initiate a subscription). Therefore, you are advised to use a single **AudioManager** instance. + +**System capability**: SystemCapability.Multimedia.Audio.Volume + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------------------------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type. The value **'micStateChange'** means the system microphone state change event, which is triggered when the system microphone state changes.| +| callback | Callback<[MicStateChangeEvent](#micstatechangeevent9)> | Yes | Callback used to return the changed microphone state. | + +**Error codes** + +For details about the error codes, see [Audio Error Codes](../errorcodes/errorcode-audio.md). + +| ID| Error Message| +| ------- | --------------------------------------------| +| 6800101 | if input parameter value error | + +**Example** + +```js +audioVolumeGroupManager.on('micStateChange', (micStateChange) => { + console.info(`Current microphone status is: ${micStateChange.mute} `); +}); ``` -### getAudioStreamId9+ +## AudioStreamManager9+ -getAudioStreamId(callback: AsyncCallback): void +Implements audio stream management. Before calling any API in **AudioStreamManager**, you must use [getStreamManager](#getstreammanager9) to obtain an **AudioStreamManager** instance. -Obtains the stream ID of this **AudioRenderer** instance. This API uses an asynchronous callback to return the result. +### getCurrentAudioRendererInfoArray9+ + +getCurrentAudioRendererInfoArray(callback: AsyncCallback<AudioRendererChangeInfoArray>): void + +Obtains the information about the current audio renderer. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| :------- | :--------------------- | :-------- | :------------------------------------- | -| callback | AsyncCallback | Yes | Callback used to return the stream ID. | +| Name | Type | Mandatory | Description | +| -------- | ----------------------------------- | -------- | --------------------------- | +| callback | AsyncCallback<[AudioRendererChangeInfoArray](#audiorendererchangeinfoarray9)> | Yes | Callback used to return the audio renderer information.| **Example** ```js -audioRenderer.getAudioStreamId((err, streamid) => { - console.info(`Renderer GetStreamId: ${streamid}`); +audioStreamManager.getCurrentAudioRendererInfoArray(async (err, AudioRendererChangeInfoArray) => { + console.info('getCurrentAudioRendererInfoArray **** Get Callback Called ****'); + if (err) { + console.error(`getCurrentAudioRendererInfoArray :ERROR: ${err}`); + } else { + if (AudioRendererChangeInfoArray != null) { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + let AudioRendererChangeInfo = AudioRendererChangeInfoArray[i]; + console.info(`StreamId for ${i} is: ${AudioRendererChangeInfo.streamId}`); + console.info(`ClientUid for ${i} is: ${AudioRendererChangeInfo.clientUid}`); + console.info(`Content ${i} is: ${AudioRendererChangeInfo.rendererInfo.content}`); + console.info(`Stream ${i} is: ${AudioRendererChangeInfo.rendererInfo.usage}`); + console.info(`Flag ${i} is: ${AudioRendererChangeInfo.rendererInfo.rendererFlags}`); + console.info(`State for ${i} is: ${AudioRendererChangeInfo.rendererState}`); + for (let j = 0;j < AudioRendererChangeInfo.deviceDescriptors.length; j++) { + console.info(`Id: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].id}`); + console.info(`Type: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].deviceType}`); + console.info(`Role: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].deviceRole}`); + console.info(`Name: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].name}`); + console.info(`Address: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].address}`); + console.info(`SampleRates: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].sampleRates[0]}`); + console.info(`ChannelCount ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].channelCounts[0]}`); + console.info(`ChannelMask: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].channelMasks}`); + } + } + } + } }); - ``` -### getAudioStreamId9+ +### getCurrentAudioRendererInfoArray9+ -getAudioStreamId(): Promise +getCurrentAudioRendererInfoArray(): Promise<AudioRendererChangeInfoArray> -Obtains the stream ID of this **AudioRenderer** instance. This API uses a promise to return the result. +Obtains the information about the current audio renderer. This API uses a promise to return the result. **System capability**: SystemCapability.Multimedia.Audio.Renderer **Return value** -| Type | Description | -| :--------------- | :------------------------------------ | -| Promise | Promise used to return the stream ID. | +| Type | Description | +| ---------------------------------------------------------------------------------| --------------------------------------- | +| Promise<[AudioRendererChangeInfoArray](#audiorendererchangeinfoarray9)> | Promise used to return the audio renderer information. | **Example** ```js -audioRenderer.getAudioStreamId().then((streamid) => { - console.info(`Renderer getAudioStreamId: ${streamid}`); -}).catch((err) => { - console.error(`ERROR: ${err}`); -}); - +async function getCurrentAudioRendererInfoArray(){ + await audioStreamManager.getCurrentAudioRendererInfoArray().then( function (AudioRendererChangeInfoArray) { + console.info(`getCurrentAudioRendererInfoArray ######### Get Promise is called ##########`); + if (AudioRendererChangeInfoArray != null) { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + let AudioRendererChangeInfo = AudioRendererChangeInfoArray[i]; + console.info(`StreamId for ${i} is: ${AudioRendererChangeInfo.streamId}`); + console.info(`ClientUid for ${i} is: ${AudioRendererChangeInfo.clientUid}`); + console.info(`Content ${i} is: ${AudioRendererChangeInfo.rendererInfo.content}`); + console.info(`Stream ${i} is: ${AudioRendererChangeInfo.rendererInfo.usage}`); + console.info(`Flag ${i} is: ${AudioRendererChangeInfo.rendererInfo.rendererFlags}`); + console.info(`State for ${i} is: ${AudioRendererChangeInfo.rendererState}`); + for (let j = 0;j < AudioRendererChangeInfo.deviceDescriptors.length; j++) { + console.info(`Id: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].id}`); + console.info(`Type: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].deviceType}`); + console.info(`Role: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].deviceRole}`); + console.info(`Name: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].name}`); + console.info(`Address: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].address}`); + console.info(`SampleRates: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].sampleRates[0]}`); + console.info(`ChannelCount ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].channelCounts[0]}`); + console.info(`ChannelMask: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].channelMasks}`); + } + } + } + }).catch((err) => { + console.error(`getCurrentAudioRendererInfoArray :ERROR: ${err}`); + }); +} ``` -### start8+ +### getCurrentAudioCapturerInfoArray9+ -start(callback: AsyncCallback): void +getCurrentAudioCapturerInfoArray(callback: AsyncCallback<AudioCapturerChangeInfoArray>): void -Starts the renderer. This API uses an asynchronous callback to return the result. +Obtains the information about the current audio capturer. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| -------- | -------------------- | --------- | ----------------------------------- | -| callback | AsyncCallback\ | Yes | Callback used to return the result. | +| Name | Type | Mandatory | Description | +| ---------- | ----------------------------------- | --------- | -------------------------------------------------------- | +| callback | AsyncCallback<[AudioCapturerChangeInfoArray](#audiocapturerchangeinfoarray9)> | Yes | Callback used to return the audio capturer information.| **Example** ```js -audioRenderer.start((err) => { +audioStreamManager.getCurrentAudioCapturerInfoArray(async (err, AudioCapturerChangeInfoArray) => { + console.info('getCurrentAudioCapturerInfoArray **** Get Callback Called ****'); if (err) { - console.error('Renderer start failed.'); + console.error(`getCurrentAudioCapturerInfoArray :ERROR: ${err}`); } else { - console.info('Renderer start success.'); + if (AudioCapturerChangeInfoArray != null) { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(`StreamId for ${i} is: ${AudioCapturerChangeInfoArray[i].streamId}`); + console.info(`ClientUid for ${i} is: ${AudioCapturerChangeInfoArray[i].clientUid}`); + console.info(`Source for ${i} is: ${AudioCapturerChangeInfoArray[i].capturerInfo.source}`); + console.info(`Flag ${i} is: ${AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags}`); + console.info(`State for ${i} is: ${AudioCapturerChangeInfoArray[i].capturerState}`); + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(`Id: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id}`); + console.info(`Type: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType}`); + console.info(`Role: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole}`); + console.info(`Name: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name}`); + console.info(`Address: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address}`); + console.info(`SampleRates: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]}`); + console.info(`ChannelCounts ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]}`); + console.info(`ChannelMask: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks}`); + } + } + } } }); - ``` -### start8+ +### getCurrentAudioCapturerInfoArray9+ -start(): Promise +getCurrentAudioCapturerInfoArray(): Promise<AudioCapturerChangeInfoArray> -Starts the renderer. This API uses a promise to return the result. +Obtains the information about the current audio capturer. This API uses a promise to return the result. **System capability**: SystemCapability.Multimedia.Audio.Renderer **Return value** -| Type | Description | -| -------------- | ---------------------------------- | -| Promise\ | Promise used to return the result. | +| Type | Description | +| -----------------------------------------------------------------------------| ----------------------------------- | +| Promise<[AudioCapturerChangeInfoArray](#audiocapturerchangeinfoarray9)> | Promise used to return the audio capturer information. | **Example** ```js -audioRenderer.start().then(() => { - console.info('Renderer started'); -}).catch((err) => { - console.error(`ERROR: ${err}`); -}); - +async function getCurrentAudioCapturerInfoArray(){ + await audioStreamManager.getCurrentAudioCapturerInfoArray().then( function (AudioCapturerChangeInfoArray) { + console.info('getCurrentAudioCapturerInfoArray **** Get Promise Called ****'); + if (AudioCapturerChangeInfoArray != null) { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(`StreamId for ${i} is: ${AudioCapturerChangeInfoArray[i].streamId}`); + console.info(`ClientUid for ${i} is: ${AudioCapturerChangeInfoArray[i].clientUid}`); + console.info(`Source for ${i} is: ${AudioCapturerChangeInfoArray[i].capturerInfo.source}`); + console.info(`Flag ${i} is: ${AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags}`); + console.info(`State for ${i} is: ${AudioCapturerChangeInfoArray[i].capturerState}`); + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(`Id: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id}`); + console.info(`Type: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType}`); + console.info(`Role: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole}`); + console.info(`Name: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name}`); + console.info(`Address: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address}`); + console.info(`SampleRates: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]}`); + console.info(`ChannelCounts ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]}`); + console.info(`ChannelMask: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks}`); + } + } + } + }).catch((err) => { + console.error(`getCurrentAudioCapturerInfoArray :ERROR: ${err}`); + }); +} ``` -### pause8+ +### on('audioRendererChange')9+ -pause(callback: AsyncCallback\): void +on(type: "audioRendererChange", callback: Callback<AudioRendererChangeInfoArray>): void -Pauses rendering. This API uses an asynchronous callback to return the result. +Subscribes to audio renderer change events. **System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| -------- | -------------------- | --------- | ----------------------------------- | -| callback | AsyncCallback\ | Yes | Callback used to return the result. | +| Name | Type | Mandatory | Description | +| -------- | ---------- | --------- | ------------------------------------------------------------------------ | +| type | string | Yes | Event type. The event `'audioRendererChange'` is triggered when the audio renderer changes. | +| callback | Callback<[AudioRendererChangeInfoArray](#audiorendererchangeinfoarray9)> | Yes | Callback used to return the result. | + +**Error codes** + +For details about the error codes, see [Audio Error Codes](../errorcodes/errorcode-audio.md). + +| ID| Error Message| +| ------- | --------------------------------------------| +| 6800101 | if input parameter value error | **Example** ```js -audioRenderer.pause((err) => { - if (err) { - console.error('Renderer pause failed'); - } else { - console.info('Renderer paused.'); +audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + let AudioRendererChangeInfo = AudioRendererChangeInfoArray[i]; + console.info(`## RendererChange on is called for ${i} ##`); + console.info(`StreamId for ${i} is: ${AudioRendererChangeInfo.streamId}`); + console.info(`ClientUid for ${i} is: ${AudioRendererChangeInfo.clientUid}`); + console.info(`Content ${i} is: ${AudioRendererChangeInfo.rendererInfo.content}`); + console.info(`Stream ${i} is: ${AudioRendererChangeInfo.rendererInfo.usage}`); + console.info(`Flag ${i} is: ${AudioRendererChangeInfo.rendererInfo.rendererFlags}`); + console.info(`State for ${i} is: ${AudioRendererChangeInfo.rendererState}`); + for (let j = 0;j < AudioRendererChangeInfo.deviceDescriptors.length; j++) { + console.info(`Id: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].id}`); + console.info(`Type: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].deviceType}`); + console.info(`Role: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].deviceRole}`); + console.info(`Name: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].name}`); + console.info(`Address: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].address}`); + console.info(`SampleRates: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].sampleRates[0]}`); + console.info(`ChannelCount ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].channelCounts[0]}`); + console.info(`ChannelMask: ${i} : ${AudioRendererChangeInfo.deviceDescriptors[j].channelMasks}`); + } } }); - ``` -### pause8+ +### off('audioRendererChange')9+ -pause(): Promise\ +off(type: "audioRendererChange"): void -Pauses rendering. This API uses a promise to return the result. +Unsubscribes from audio renderer change events. **System capability**: SystemCapability.Multimedia.Audio.Renderer -**Return value** +**Parameters** -| Type | Description | -| -------------- | ---------------------------------- | -| Promise\ | Promise used to return the result. | +| Name | Type | Mandatory| Description | +| -------- | ------- | ---- | ---------------- | +| type | string | Yes | Event type. The event `'audioRendererChange'` is triggered when the audio renderer changes.| + +**Error codes** + +For details about the error codes, see [Audio Error Codes](../errorcodes/errorcode-audio.md). + +| ID| Error Message| +| ------- | --------------------------------------------| +| 6800101 | if input parameter value error | **Example** ```js -audioRenderer.pause().then(() => { - console.info('Renderer paused'); -}).catch((err) => { - console.error(`ERROR: ${err}`); -}); - +audioStreamManager.off('audioRendererChange'); +console.info('######### RendererChange Off is called #########'); ``` -### drain8+ +### on('audioCapturerChange')9+ -drain(callback: AsyncCallback\): void +on(type: "audioCapturerChange", callback: Callback<AudioCapturerChangeInfoArray>): void -Drains the playback buffer. This API uses an asynchronous callback to return the result. +Subscribes to audio capturer change events. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Parameters** -| Name | Type | Mandatory | Description | -| -------- | -------------------- | --------- | ----------------------------------- | -| callback | AsyncCallback\ | Yes | Callback used to return the result. | +| Name | Type | Mandatory | Description | +| -------- | ------- | --------- | ----------------------------------------------------------------------- | +| type | string | Yes | Event type. The event `'audioCapturerChange'` is triggered when the audio capturer changes. | +| callback | Callback<[AudioCapturerChangeInfoArray](#audiocapturerchangeinfoarray9)> | Yes | Callback used to return the result. | + +**Error codes** + +For details about the error codes, see [Audio Error Codes](../errorcodes/errorcode-audio.md). + +| ID| Error Message| +| ------- | --------------------------------------------| +| 6800101 | if input parameter value error | **Example** ```js -audioRenderer.drain((err) => { - if (err) { - console.error('Renderer drain failed'); - } else { - console.info('Renderer drained.'); +audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(`## CapChange on is called for element ${i} ##`); + console.info(`StreamId for ${i} is: ${AudioCapturerChangeInfoArray[i].streamId}`); + console.info(`ClientUid for ${i} is: ${AudioCapturerChangeInfoArray[i].clientUid}`); + console.info(`Source for ${i} is: ${AudioCapturerChangeInfoArray[i].capturerInfo.source}`); + console.info(`Flag ${i} is: ${AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags}`); + console.info(`State for ${i} is: ${AudioCapturerChangeInfoArray[i].capturerState}`); + let devDescriptor = AudioCapturerChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(`Id: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id}`); + console.info(`Type: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType}`); + console.info(`Role: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole}`); + console.info(`Name: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name}`); + console.info(`Address: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address}`); + console.info(`SampleRates: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]}`); + console.info(`ChannelCounts ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]}`); + console.info(`ChannelMask: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks}`); + } } }); - ``` -### drain8+ +### off('audioCapturerChange')9+ -drain(): Promise\ +off(type: "audioCapturerChange"): void; -Drains the playback buffer. This API uses a promise to return the result. +Unsubscribes from audio capturer change events. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**System capability**: SystemCapability.Multimedia.Audio.Capturer -**Return value** +**Parameters** -| Type | Description | -| -------------- | ---------------------------------- | -| Promise\ | Promise used to return the result. | +| Name | Type | Mandatory| Description | +| -------- | -------- | --- | ------------------------------------------------------------- | +| type | string |Yes | Event type. The event `'audioCapturerChange'` is triggered when the audio capturer changes.| + +**Error codes** + +For details about the error codes, see [Audio Error Codes](../errorcodes/errorcode-audio.md). + +| ID| Error Message| +| ------- | --------------------------------------------| +| 6800101 | if input parameter value error | **Example** ```js -audioRenderer.drain().then(() => { - console.info('Renderer drained successfully'); -}).catch((err) => { - console.error(`ERROR: ${err}`); -}); +audioStreamManager.off('audioCapturerChange'); +console.info('######### CapturerChange Off is called #########'); ``` -### stop8+ +### isActive9+ -stop(callback: AsyncCallback\): void +isActive(volumeType: AudioVolumeType, callback: AsyncCallback<boolean>): void -Stops rendering. This API uses an asynchronous callback to return the result. +Checks whether a stream is active. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| -------- | -------------------- | --------- | ----------------------------------- | -| callback | AsyncCallback\ | Yes | Callback used to return the result. | +| Name | Type | Mandatory| Description | +| ---------- | ----------------------------------- | ---- | ------------------------------------------------- | +| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream types. | +| callback | AsyncCallback<boolean> | Yes | Callback used to return the active status of the stream. The value **true** means that the stream is active, and **false** means the opposite.| **Example** ```js -audioRenderer.stop((err) => { +audioStreamManager.isActive(audio.AudioVolumeType.MEDIA, (err, value) => { if (err) { - console.error('Renderer stop failed'); - } else { - console.info('Renderer stopped.'); + console.error(`Failed to obtain the active status of the stream. ${err}`); + return; } + console.info(`Callback invoked to indicate that the active status of the stream is obtained ${value}.`); }); - ``` -### stop8+ +### isActive9+ -stop(): Promise\ +isActive(volumeType: AudioVolumeType): Promise<boolean> -Stops rendering. This API uses a promise to return the result. +Checks whether a stream is active. This API uses a promise to return the result. **System capability**: SystemCapability.Multimedia.Audio.Renderer +**Parameters** + +| Name | Type | Mandatory| Description | +| ---------- | ----------------------------------- | ---- | ------------ | +| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream types.| + **Return value** -| Type | Description | -| -------------- | ---------------------------------- | -| Promise\ | Promise used to return the result. | +| Type | Description | +| ---------------------- | -------------------------------------------------------- | +| Promise<boolean> | Promise used to return the active status of the stream. The value **true** means that the stream is active, and **false** means the opposite.| **Example** ```js -audioRenderer.stop().then(() => { - console.info('Renderer stopped successfully'); -}).catch((err) => { - console.error(`ERROR: ${err}`); +audioStreamManager.isActive(audio.AudioVolumeType.MEDIA).then((value) => { + console.info(`Promise returned to indicate that the active status of the stream is obtained ${value}.`); }); - ``` -### release8+ +## AudioRoutingManager9+ -release(callback: AsyncCallback\): void +Implements audio routing management. Before calling any API in **AudioRoutingManager**, you must use [getRoutingManager](#getroutingmanager9) to obtain an **AudioRoutingManager** instance. -Releases the renderer. This API uses an asynchronous callback to return the result. +### getDevices9+ -**System capability**: SystemCapability.Multimedia.Audio.Renderer +getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback<AudioDeviceDescriptors>): void + +Obtains the audio devices with a specific flag. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Multimedia.Audio.Device **Parameters** -| Name | Type | Mandatory | Description | -| -------- | -------------------- | --------- | ----------------------------------- | -| callback | AsyncCallback\ | Yes | Callback used to return the result. | +| Name | Type | Mandatory| Description | +| ---------- | ------------------------------------------------------------ | ---- | -------------------- | +| deviceFlag | [DeviceFlag](#deviceflag) | Yes | Audio device flag. | +| callback | AsyncCallback<[AudioDeviceDescriptors](#audiodevicedescriptors)> | Yes | Callback used to return the device list.| **Example** ```js -audioRenderer.release((err) => { +audioRoutingManager.getDevices(audio.DeviceFlag.OUTPUT_DEVICES_FLAG, (err, value) => { if (err) { - console.error('Renderer release failed'); - } else { - console.info('Renderer released.'); + console.error(`Failed to obtain the device list. ${err}`); + return; } + console.info('Callback invoked to indicate that the device list is obtained.'); }); - ``` -### release8+ +### getDevices9+ -release(): Promise\ +getDevices(deviceFlag: DeviceFlag): Promise<AudioDeviceDescriptors> -Releases the renderer. This API uses a promise to return the result. +Obtains the audio devices with a specific flag. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**System capability**: SystemCapability.Multimedia.Audio.Device + +**Parameters** + +| Name | Type | Mandatory| Description | +| ---------- | ------------------------- | ---- | ---------------- | +| deviceFlag | [DeviceFlag](#deviceflag) | Yes | Audio device flag.| **Return value** -| Type | Description | -| -------------- | ---------------------------------- | -| Promise\ | Promise used to return the result. | +| Type | Description | +| ------------------------------------------------------------ | ------------------------- | +| Promise<[AudioDeviceDescriptors](#audiodevicedescriptors)> | Promise used to return the device list.| **Example** ```js -audioRenderer.release().then(() => { - console.info('Renderer released successfully'); -}).catch((err) => { - console.error(`ERROR: ${err}`); +audioRoutingManager.getDevices(audio.DeviceFlag.OUTPUT_DEVICES_FLAG).then((data) => { + console.info('Promise returned to indicate that the device list is obtained.'); }); - ``` -### write8+ +### on9+ -write(buffer: ArrayBuffer, callback: AsyncCallback\): void +on(type: 'deviceChange', deviceFlag: DeviceFlag, callback: Callback): void -Writes the buffer. This API uses an asynchronous callback to return the result. +Subscribes to device change events. When a device is connected or disconnected, registered clients will receive the callback. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**System capability**: SystemCapability.Multimedia.Audio.Device **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------- | --------- | ------------------------------------------------------------ | -| buffer | ArrayBuffer | Yes | Buffer to be written. | -| callback | AsyncCallback\ | Yes | Callback used to return the result. If the operation is successful, the number of bytes written is returned; otherwise, an error code is returned. | +| Name | Type | Mandatory| Description | +| :------- | :--------------------------------------------------- | :--- | :----------------------------------------- | +| type | string | Yes | Event type. The value **'deviceChange'** means the device change event, which is triggered when a device connection status change is detected.| +| deviceFlag | [DeviceFlag](#deviceflag) | Yes | Audio device flag. | +| callback | Callback<[DeviceChangeAction](#devicechangeaction)\> | Yes | Callback used to return the device update details. | + +**Error codes** + +For details about the error codes, see [Audio Error Codes](../errorcodes/errorcode-audio.md). + +| ID| Error Message| +| ------- | --------------------------------------------| +| 6800101 | if input parameter value error | **Example** ```js -let bufferSize; -audioRenderer.getBufferSize().then((data)=> { - console.info(`AudioFrameworkRenderLog: getBufferSize: SUCCESS ${data}`); - bufferSize = data; - }).catch((err) => { - console.error(`AudioFrameworkRenderLog: getBufferSize: ERROR: ${err}`); - }); -console.info(`Buffer size: ${bufferSize}`); -let context = featureAbility.getContext(); -let path; -async function getCacheDir(){ - path = await context.getCacheDir(); -} -let filePath = path + '/StarWars10s-2C-48000-4SW.wav'; -let ss = fileio.createStreamSync(filePath, 'r'); -let buf = new ArrayBuffer(bufferSize); -ss.readSync(buf); -audioRenderer.write(buf, (err, writtenbytes) => { - if (writtenbytes < 0) { - console.error('write failed.'); - } else { - console.info(`Actual written bytes: ${writtenbytes}`); - } +audioRoutingManager.on('deviceChange', audio.DeviceFlag.OUTPUT_DEVICES_FLAG, (deviceChanged) => { + console.info('device change type : ' + deviceChanged.type); + console.info('device descriptor size : ' + deviceChanged.deviceDescriptors.length); + console.info('device change descriptor : ' + deviceChanged.deviceDescriptors[0].deviceRole); + console.info('device change descriptor : ' + deviceChanged.deviceDescriptors[0].deviceType); }); - ``` -### write8+ +### off9+ -write(buffer: ArrayBuffer): Promise\ +off(type: 'deviceChange', callback?: Callback): void -Writes the buffer. This API uses a promise to return the result. +Unsubscribes from device change events. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**System capability**: SystemCapability.Multimedia.Audio.Device -**Return value** +**Parameters** -| Type | Description | -| ---------------- | ------------------------------------------------------------ | -| Promise\ | Promise used to return the result. If the operation is successful, the number of bytes written is returned; otherwise, an error code is returned. | +| Name | Type | Mandatory| Description | +| -------- | --------------------------------------------------- | ---- | ------------------------------------------ | +| type | string | Yes | Event type. The value **'deviceChange'** means the device change event, which is triggered when a device connection status change is detected.| +| callback | Callback<[DeviceChangeAction](#devicechangeaction)> | No | Callback used to return the device update details. | + +**Error codes** + +For details about the error codes, see [Audio Error Codes](../errorcodes/errorcode-audio.md). + +| ID| Error Message| +| ------- | --------------------------------------------| +| 6800101 | if input parameter value error | **Example** ```js -let bufferSize; -audioRenderer.getBufferSize().then((data) => { - console.info(`AudioFrameworkRenderLog: getBufferSize: SUCCESS ${data}`); - bufferSize = data; - }).catch((err) => { - console.info(`AudioFrameworkRenderLog: getBufferSize: ERROR: ${err}`); - }); -console.info(`BufferSize: ${bufferSize}`); -let context = featureAbility.getContext(); -let path; -async function getCacheDir(){ - path = await context.getCacheDir(); -} -let filePath = path + '/StarWars10s-2C-48000-4SW.wav'; -let ss = fileio.createStreamSync(filePath, 'r'); -let buf = new ArrayBuffer(bufferSize); -ss.readSync(buf); -audioRenderer.write(buf).then((writtenbytes) => { - if (writtenbytes < 0) { - console.error('write failed.'); - } else { - console.info(`Actual written bytes: ${writtenbytes}`); - } -}).catch((err) => { - console.error(`ERROR: ${err}`); +audioRoutingManager.off('deviceChange', (deviceChanged) => { + console.info('Should be no callback.'); }); - ``` -### getAudioTime8+ +### selectInputDevice9+ -getAudioTime(callback: AsyncCallback\): void +selectInputDevice(inputAudioDevices: AudioDeviceDescriptors, callback: AsyncCallback<void>): void -Obtains the number of nanoseconds elapsed from the Unix epoch (January 1, 1970). This API uses an asynchronous callback to return the result. +Selects an audio input device. Only one input device can be selected. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**System API**: This is a system API. + +**System capability**: SystemCapability.Multimedia.Audio.Device **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------- | --------- | -------------------------------------- | -| callback | AsyncCallback\ | Yes | Callback used to return the timestamp. | +| Name | Type | Mandatory| Description | +| --------------------------- | ------------------------------------------------------------ | ---- | ------------------------- | +| inputAudioDevices | [AudioDeviceDescriptors](#audiodevicedescriptors) | Yes | Input device. | +| callback | AsyncCallback<void> | Yes | Callback used to return the result.| **Example** - ```js -audioRenderer.getAudioTime((err, timestamp) => { - console.info(`Current timestamp: ${timestamp}`); -}); +let inputAudioDeviceDescriptor = [{ + deviceRole : audio.DeviceRole.INPUT_DEVICE, + deviceType : audio.DeviceType.EARPIECE, + id : 1, + name : "", + address : "", + sampleRates : [44100], + channelCounts : [2], + channelMasks : [0], + networkId : audio.LOCAL_NETWORK_ID, + interruptGroupId : 1, + volumeGroupId : 1, +}]; +async function selectInputDevice(){ + audioRoutingManager.selectInputDevice(inputAudioDeviceDescriptor, (err) => { + if (err) { + console.error(`Result ERROR: ${err}`); + } else { + console.info('Select input devices result callback: SUCCESS'); } + }); +} ``` -### getAudioTime8+ +### selectInputDevice9+ -getAudioTime(): Promise\ +selectInputDevice(inputAudioDevices: AudioDeviceDescriptors): Promise<void> -Obtains the number of nanoseconds elapsed from the Unix epoch (January 1, 1970). This API uses a promise to return the result. +**System API**: This is a system API. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +Selects an audio input device. Only one input device can be selected. This API uses a promise to return the result. + +**System capability**: SystemCapability.Multimedia.Audio.Device + +**Parameters** + +| Name | Type | Mandatory| Description | +| --------------------------- | ------------------------------------------------------------ | ---- | ------------------------- | +| inputAudioDevices | [AudioDeviceDescriptors](#audiodevicedescriptors) | Yes | Input device. | **Return value** -| Type | Description | -| ---------------- | ------------------------------------- | -| Promise\ | Promise used to return the timestamp. | +| Type | Description | +| --------------------- | --------------------------- | +| Promise<void> | Promise used to return the result.| **Example** ```js -audioRenderer.getAudioTime().then((timestamp) => { - console.info(`Current timestamp: ${timestamp}`); -}).catch((err) => { - console.error(`ERROR: ${err}`); -}); +let inputAudioDeviceDescriptor = [{ + deviceRole : audio.DeviceRole.INPUT_DEVICE, + deviceType : audio.DeviceType.EARPIECE, + id : 1, + name : "", + address : "", + sampleRates : [44100], + channelCounts : [2], + channelMasks : [0], + networkId : audio.LOCAL_NETWORK_ID, + interruptGroupId : 1, + volumeGroupId : 1, +}]; +async function getRoutingManager(){ + audioRoutingManager.selectInputDevice(inputAudioDeviceDescriptor).then(() => { + console.info('Select input devices result promise: SUCCESS'); + }).catch((err) => { + console.error(`Result ERROR: ${err}`); + }); +} ``` -### getBufferSize8+ +### setCommunicationDevice9+ -getBufferSize(callback: AsyncCallback\): void +setCommunicationDevice(deviceType: CommunicationDeviceType, active: boolean, callback: AsyncCallback<void>): void -Obtains a reasonable minimum buffer size in bytes for rendering. This API uses an asynchronous callback to return the result. +Sets a communication device to the active state. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**System capability**: SystemCapability.Multimedia.Audio.Communication **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------- | --------- | ---------------------------------------- | -| callback | AsyncCallback\ | Yes | Callback used to return the buffer size. | +| Name | Type | Mandatory| Description | +| ---------- | ------------------------------------- | ---- | ------------------------ | +| deviceType | [CommunicationDeviceType](#communicationdevicetype9) | Yes | Communication device type. | +| active | boolean | Yes | Active state to set. The value **true** means to set the device to the active state, and **false** means the opposite. | +| callback | AsyncCallback<void> | Yes | Callback used to return the result.| **Example** ```js -let bufferSize = audioRenderer.getBufferSize(async(err, bufferSize) => { +audioRoutingManager.setCommunicationDevice(audio.CommunicationDeviceType.SPEAKER, true, (err) => { if (err) { - console.error('getBufferSize error'); + console.error(`Failed to set the active status of the device. ${err}`); + return; } + console.info('Callback invoked to indicate that the device is set to the active status.'); }); - ``` -### getBufferSize8+ +### setCommunicationDevice9+ -getBufferSize(): Promise\ +setCommunicationDevice(deviceType: CommunicationDeviceType, active: boolean): Promise<void> -Obtains a reasonable minimum buffer size in bytes for rendering. This API uses a promise to return the result. +Sets a communication device to the active state. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**System capability**: SystemCapability.Multimedia.Audio.Communication + +**Parameters** + +| Name | Type | Mandatory| Description | +| ---------- | ----------------------------------------------------- | ---- | ------------------ | +| deviceType | [CommunicationDeviceType](#communicationdevicetype9) | Yes | Communication device type.| +| active | boolean | Yes | Active state to set. The value **true** means to set the device to the active state, and **false** means the opposite. | **Return value** -| Type | Description | -| ---------------- | --------------------------------------- | -| Promise\ | Promise used to return the buffer size. | +| Type | Description | +| ------------------- | ------------------------------- | +| Promise<void> | Promise used to return the result.| **Example** ```js -let bufferSize; -audioRenderer.getBufferSize().then((data) => { - console.info(`AudioFrameworkRenderLog: getBufferSize: SUCCESS ${data}`); - bufferSize = data; -}).catch((err) => { - console.error(`AudioFrameworkRenderLog: getBufferSize: ERROR: ${err}`); +audioRoutingManager.setCommunicationDevice(audio.CommunicationDeviceType.SPEAKER, true).then(() => { + console.info('Promise returned to indicate that the device is set to the active status.'); }); - ``` -### setRenderRate8+ +### isCommunicationDeviceActive9+ -setRenderRate(rate: AudioRendererRate, callback: AsyncCallback\): void +isCommunicationDeviceActive(deviceType: CommunicationDeviceType, callback: AsyncCallback<boolean>): void -Sets the render rate. This API uses an asynchronous callback to return the result. +Checks whether a communication device is active. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**System capability**: SystemCapability.Multimedia.Audio.Communication **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------------------------- | --------- | ----------------------------------- | -| rate | [AudioRendererRate](#audiorendererrate8) | Yes | Audio render rate. | -| callback | AsyncCallback\ | Yes | Callback used to return the result. | +| Name | Type | Mandatory| Description | +| ---------- | ---------------------------------------------------- | ---- | ------------------------ | +| deviceType | [CommunicationDeviceType](#communicationdevicetype9) | Yes | Communication device type. | +| callback | AsyncCallback<boolean> | Yes | Callback used to return the active state of the device.| **Example** ```js -audioRenderer.setRenderRate(audio.AudioRendererRate.RENDER_RATE_NORMAL, (err) => { +audioRoutingManager.isCommunicationDeviceActive(audio.CommunicationDeviceType.SPEAKER, (err, value) => { if (err) { - console.error('Failed to set params'); - } else { - console.info('Callback invoked to indicate a successful render rate setting.'); + console.error(`Failed to obtain the active status of the device. ${err}`); + return; } + console.info('Callback invoked to indicate that the active status of the device is obtained.'); }); - ``` -### setRenderRate8+ +### isCommunicationDeviceActive9+ -setRenderRate(rate: AudioRendererRate): Promise\ +isCommunicationDeviceActive(deviceType: CommunicationDeviceType): Promise<boolean> -Sets the render rate. This API uses a promise to return the result. +Checks whether a communication device is active. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**System capability**: SystemCapability.Multimedia.Audio.Communication **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ---------------------------------------- | --------- | ------------------ | -| rate | [AudioRendererRate](#audiorendererrate8) | Yes | Audio render rate. | +| Name | Type | Mandatory| Description | +| ---------- | ---------------------------------------------------- | ---- | ------------------ | +| deviceType | [CommunicationDeviceType](#communicationdevicetype9) | Yes | Communication device type.| **Return value** -| Type | Description | -| -------------- | ---------------------------------- | -| Promise\ | Promise used to return the result. | +| Type | Description | +| ---------------------- | ------------------------------- | +| Promise<boolean> | Promise used to return the active state of the device.| **Example** ```js -audioRenderer.setRenderRate(audio.AudioRendererRate.RENDER_RATE_NORMAL).then(() => { - console.info('setRenderRate SUCCESS'); -}).catch((err) => { - console.error(`ERROR: ${err}`); +audioRoutingManager.isCommunicationDeviceActive(audio.CommunicationDeviceType.SPEAKER).then((value) => { + console.info(`Promise returned to indicate that the active status of the device is obtained ${value}.`); }); - ``` -### getRenderRate8+ +### selectOutputDevice9+ -getRenderRate(callback: AsyncCallback\): void +selectOutputDevice(outputAudioDevices: AudioDeviceDescriptors, callback: AsyncCallback<void>): void -Obtains the current render rate. This API uses an asynchronous callback to return the result. +Selects an audio output device. Currently, only one output device can be selected. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**System API**: This is a system API. + +**System capability**: SystemCapability.Multimedia.Audio.Device **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ------------------------------------------------------- | --------- | ---------------------------------------------- | -| callback | AsyncCallback<[AudioRendererRate](#audiorendererrate8)> | Yes | Callback used to return the audio render rate. | +| Name | Type | Mandatory| Description | +| --------------------------- | ------------------------------------------------------------ | ---- | ------------------------- | +| outputAudioDevices | [AudioDeviceDescriptors](#audiodevicedescriptors) | Yes | Output device. | +| callback | AsyncCallback<void> | Yes | Callback used to return the result.| **Example** - ```js -audioRenderer.getRenderRate((err, renderrate) => { - console.info(`getRenderRate: ${renderrate}`); -}); +let outputAudioDeviceDescriptor = [{ + deviceRole : audio.DeviceRole.OUTPUT_DEVICE, + deviceType : audio.DeviceType.SPEAKER, + id : 1, + name : "", + address : "", + sampleRates : [44100], + channelCounts : [2], + channelMasks : [0], + networkId : audio.LOCAL_NETWORK_ID, + interruptGroupId : 1, + volumeGroupId : 1, +}]; +async function selectOutputDevice(){ + audioRoutingManager.selectOutputDevice(outputAudioDeviceDescriptor, (err) => { + if (err) { + console.error(`Result ERROR: ${err}`); + } else { + console.info('Select output devices result callback: SUCCESS'); } + }); +} ``` -### getRenderRate8+ - -getRenderRate(): Promise\ - -Obtains the current render rate. This API uses a promise to return the result. - -**System capability**: SystemCapability.Multimedia.Audio.Renderer - -**Return value** - -| Type | Description | -| ------------------------------------------------- | --------------------------------------------- | -| Promise<[AudioRendererRate](#audiorendererrate8)> | Promise used to return the audio render rate. | - -**Example** - -```js -audioRenderer.getRenderRate().then((renderRate) => { - console.info(`getRenderRate: ${renderRate}`); -}).catch((err) => { - console.error(`ERROR: ${err}`); -}); - -``` +### selectOutputDevice9+ -### setInterruptMode9+ +selectOutputDevice(outputAudioDevices: AudioDeviceDescriptors): Promise<void> -setInterruptMode(mode: InterruptMode): Promise<void> +**System API**: This is a system API. -Sets the audio interruption mode for the application. This API uses a promise to return the result. +Selects an audio output device. Currently, only one output device can be selected. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Interrupt +**System capability**: SystemCapability.Multimedia.Audio.Device **Parameters** -| Name | Type | Mandatory | Description | -| ---- | -------------------------------- | --------- | ------------------------ | -| mode | [InterruptMode](#interruptmode9) | Yes | Audio interruption mode. | +| Name | Type | Mandatory| Description | +| --------------------------- | ------------------------------------------------------------ | ---- | ------------------------- | +| outputAudioDevices | [AudioDeviceDescriptors](#audiodevicedescriptors) | Yes | Output device. | **Return value** -| Type | Description | -| ------------------- | ------------------------------------------------------------ | -| Promise<void> | Promise used to return the result. If the operation is successful, **undefined** is returned. Otherwise, **error** is returned. | +| Type | Description | +| --------------------- | --------------------------- | +| Promise<void> | Promise used to return the result.| **Example** ```js -let mode = 0; -audioRenderer.setInterruptMode(mode).then(data=>{ - console.info('setInterruptMode Success!'); -}).catch((err) => { - console.error(`setInterruptMode Fail: ${err}`); -}); +let outputAudioDeviceDescriptor = [{ + deviceRole : audio.DeviceRole.OUTPUT_DEVICE, + deviceType : audio.DeviceType.SPEAKER, + id : 1, + name : "", + address : "", + sampleRates : [44100], + channelCounts : [2], + channelMasks : [0], + networkId : audio.LOCAL_NETWORK_ID, + interruptGroupId : 1, + volumeGroupId : 1, +}]; +async function selectOutputDevice(){ + audioRoutingManager.selectOutputDevice(outputAudioDeviceDescriptor).then(() => { + console.info('Select output devices result promise: SUCCESS'); + }).catch((err) => { + console.error(`Result ERROR: ${err}`); + }); +} ``` -### setInterruptMode9+ +### selectOutputDeviceByFilter9+ -setInterruptMode(mode: InterruptMode, callback: AsyncCallback\): void +selectOutputDeviceByFilter(filter: AudioRendererFilter, outputAudioDevices: AudioDeviceDescriptors, callback: AsyncCallback<void>): void -Sets the audio interruption mode for the application. This API uses an asynchronous callback to return the result. +**System API**: This is a system API. -**System capability**: SystemCapability.Multimedia.Audio.Interrupt +Selects an audio output device based on the filter criteria. Currently, only one output device can be selected. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Multimedia.Audio.Device **Parameters** -| Name | Type | Mandatory | Description | -| -------- | -------------------------------- | --------- | ----------------------------------- | -| mode | [InterruptMode](#interruptmode9) | Yes | Audio interruption mode. | -| callback | AsyncCallback\ | Yes | Callback used to return the result. | +| Name | Type | Mandatory| Description | +| --------------------------- | ------------------------------------------------------------ | ---- | ------------------------- | +| filter | [AudioRendererFilter](#audiorendererfilter9) | Yes | Filter criteria. | +| outputAudioDevices | [AudioDeviceDescriptors](#audiodevicedescriptors) | Yes | Output device. | +| callback | AsyncCallback<void> | Yes | Callback used to return the result.| **Example** - ```js -let mode = 1; -audioRenderer.setInterruptMode(mode, (err, data)=>{ - if(err){ - console.error(`setInterruptMode Fail: ${err}`); - } - console.info('setInterruptMode Success!'); -}); +let outputAudioRendererFilter = { + uid : 20010041, + rendererInfo : { + content : audio.ContentType.CONTENT_TYPE_MUSIC, + usage : audio.StreamUsage.STREAM_USAGE_MEDIA, + rendererFlags : 0 }, + rendererId : 0 }; + +let outputAudioDeviceDescriptor = [{ + deviceRole : audio.DeviceRole.OUTPUT_DEVICE, + deviceType : audio.DeviceType.SPEAKER, + id : 1, + name : "", + address : "", + sampleRates : [44100], + channelCounts : [2], + channelMasks : [0], + networkId : audio.LOCAL_NETWORK_ID, + interruptGroupId : 1, + volumeGroupId : 1, +}]; +async function selectOutputDeviceByFilter(){ + audioRoutingManager.selectOutputDeviceByFilter(outputAudioRendererFilter, outputAudioDeviceDescriptor, (err) => { + if (err) { + console.error(`Result ERROR: ${err}`); + } else { + console.info('Select output devices by filter result callback: SUCCESS'); } + }); +} ``` -### setVolume9+ +### selectOutputDeviceByFilter9+ -setVolume(volume: number): Promise<void> +selectOutputDeviceByFilter(filter: AudioRendererFilter, outputAudioDevices: AudioDeviceDescriptors): Promise<void> -Sets the volume for the application. This API uses a promise to return the result. +**System API**: This is a system API. -**System capability**: SystemCapability.Multimedia.Audio.Renderer +Selects an audio output device based on the filter criteria. Currently, only one output device can be selected. This API uses a promise to return the result. + +**System capability**: SystemCapability.Multimedia.Audio.Device **Parameters** -| Name | Type | Mandatory | Description | -| ------ | ------ | --------- | -------------- | -| volume | number | Yes | Volume to set. | +| Name | Type | Mandatory| Description | +| ----------------------| ------------------------------------------------------------ | ---- | ------------------------- | +| filter | [AudioRendererFilter](#audiorendererfilter9) | Yes | Filter criteria. | +| outputAudioDevices | [AudioDeviceDescriptors](#audiodevicedescriptors) | Yes | Output device. | **Return value** -| Type | Description | -| ------------------- | ------------------------------------------------------------ | -| Promise<void> | Promise used to return the result. If the operation is successful, **undefined** is returned. Otherwise, **error** is returned. | +| Type | Description | +| --------------------- | --------------------------- | +| Promise<void> | Promise used to return the result.| **Example** ```js -audioRenderer.setVolume(10).then(data=>{ - console.info('setVolume Success!'); -}).catch((err) => { - console.error(`setVolume Fail: ${err}`); -}); +let outputAudioRendererFilter = { + uid : 20010041, + rendererInfo : { + content : audio.ContentType.CONTENT_TYPE_MUSIC, + usage : audio.StreamUsage.STREAM_USAGE_MEDIA, + rendererFlags : 0 }, + rendererId : 0 }; -``` +let outputAudioDeviceDescriptor = [{ + deviceRole : audio.DeviceRole.OUTPUT_DEVICE, + deviceType : audio.DeviceType.SPEAKER, + id : 1, + name : "", + address : "", + sampleRates : [44100], + channelCounts : [2], + channelMasks : [0], + networkId : audio.LOCAL_NETWORK_ID, + interruptGroupId : 1, + volumeGroupId : 1, +}]; -### setVolume9+ +async function selectOutputDeviceByFilter(){ + audioRoutingManager.selectOutputDeviceByFilter(outputAudioRendererFilter, outputAudioDeviceDescriptor).then(() => { + console.info('Select output devices by filter result promise: SUCCESS'); + }).catch((err) => { + console.error(`Result ERROR: ${err}`); + }) +} +``` -setVolume(volume: number, callback: AsyncCallback\): void +## AudioRendererChangeInfoArray9+ -Sets the volume for the application. This API uses an asynchronous callback to return the result. +Defines an **AudioRenderChangeInfo** array, which is read-only. **System capability**: SystemCapability.Multimedia.Audio.Renderer -**Parameters** +## AudioRendererChangeInfo9+ -| Name | Type | Mandatory | Description | -| -------- | -------------------- | --------- | ----------------------------------- | -| volume | number | Yes | Volume to set. | -| callback | AsyncCallback\ | Yes | Callback used to return the result. | +Describes the audio renderer change event. + +**System capability**: SystemCapability.Multimedia.Audio.Renderer + +| Name | Type | Readable | Writable | Description | +| ------------- | ---------------------------------------- | -------- | -------- | ---------------------------------------------------------- | +| streamId | number | Yes | No | Unique ID of an audio stream. | +| clientUid | number | Yes | No | UID of the audio renderer client.
This is a system API. | +| rendererInfo | [AudioRendererInfo](#audiorendererinfo8) | Yes | No | Audio renderer information. | +| rendererState | [AudioState](#audiostate) | Yes | No | Audio state.
This is a system API. | **Example** ```js -audioRenderer.setVolume(10, (err, data)=>{ - if(err){ - console.error(`setVolume Fail: ${err}`); +import audio from '@ohos.multimedia.audio'; + +const audioManager = audio.getAudioManager(); +let audioStreamManager = audioManager.getStreamManager(); +let resultFlag = false; + +audioStreamManager.on('audioRendererChange', (AudioRendererChangeInfoArray) => { + for (let i = 0; i < AudioRendererChangeInfoArray.length; i++) { + console.info(`## RendererChange on is called for ${i} ##`); + console.info(`StreamId for ${i} is: ${AudioRendererChangeInfoArray[i].streamId}`); + console.info(`ClientUid for ${i} is: ${AudioRendererChangeInfoArray[i].clientUid}`); + console.info(`Content for ${i} is: ${AudioRendererChangeInfoArray[i].rendererInfo.content}`); + console.info(`Stream for ${i} is: ${AudioRendererChangeInfoArray[i].rendererInfo.usage}`); + console.info(`Flag ${i} is: ${AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags}`); + console.info(`State for ${i} is: ${AudioRendererChangeInfoArray[i].rendererState}`); + let devDescriptor = AudioRendererChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioRendererChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(`Id: ${i} : ${AudioRendererChangeInfoArray[i].deviceDescriptors[j].id}`); + console.info(`Type: ${i} : ${AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceType}`); + console.info(`Role: ${i} : ${AudioRendererChangeInfoArray[i].deviceDescriptors[j].deviceRole}`); + console.info(`Name: ${i} : ${AudioRendererChangeInfoArray[i].deviceDescriptors[j].name}`); + console.info(`Addr: ${i} : ${AudioRendererChangeInfoArray[i].deviceDescriptors[j].address}`); + console.info(`SR: ${i} : ${AudioRendererChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]}`); + console.info(`C ${i} : ${AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]}`); + console.info(`CM: ${i} : ${AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks}`); + } + if (AudioRendererChangeInfoArray[i].rendererState == 1 && devDescriptor != null) { + resultFlag = true; + console.info(`ResultFlag for ${i} is: ${resultFlag}`); + } } - console.info('setVolume Success!'); }); - ``` -### on('audioInterrupt')9+ - -on(type: 'audioInterrupt', callback: Callback\): void - -Subscribes to audio interruption events. This API uses a callback to get interrupt events. -Same as [on('interrupt')](#oninterruptdeprecated), this API has obtained the focus before **start**, **pause**, or **stop** of **AudioRenderer** is called. Therefore, you do not need to request the focus. +## AudioCapturerChangeInfoArray9+ -**System capability**: SystemCapability.Multimedia.Audio.Interrupt +Defines an **AudioCapturerChangeInfo** array, which is read-only. -**Parameters** +**System capability**: SystemCapability.Multimedia.Audio.Capturer -| Name | Type | Mandatory | Description | -| -------- | -------------------------------------------- | --------- | ------------------------------------------------------------ | -| type | string | Yes | Event type. The value **'audioInterrupt'** means the audio interruption event, which is triggered when audio playback is interrupted. | -| callback | Callback<[InterruptEvent](#interruptevent9)> | Yes | Callback used to return the audio interruption event. | +## AudioCapturerChangeInfo9+ -**Error codes** +Describes the audio capturer change event. -For details about the error codes, see [Audio Error Codes](../errorcodes/errorcode-audio.md). +**System capability**: SystemCapability.Multimedia.Audio.Capturer -| ID | Error Message | -| ------- | ------------------------------- | -| 6800101 | if input parameter value error. | +| Name | Type | Readable | Writable | Description | +| ------------- | ---------------------------------------- | -------- | -------- | ---------------------------------------------------------- | +| streamId | number | Yes | No | Unique ID of an audio stream. | +| clientUid | number | Yes | No | UID of the audio capturer client.
This is a system API. | +| capturerInfo | [AudioCapturerInfo](#audiocapturerinfo8) | Yes | No | Audio capturer information. | +| capturerState | [AudioState](#audiostate) | Yes | No | Audio state.
This is a system API. | **Example** ```js -let isPlay; -let started; -audioRenderer.on('audioInterrupt', async(interruptEvent) => { - if (interruptEvent.forceType == audio.InterruptForceType.INTERRUPT_FORCE) { - switch (interruptEvent.hintType) { - case audio.InterruptHint.INTERRUPT_HINT_PAUSE: - console.info('Force paused. Stop writing'); - isPlay = false; - break; - case audio.InterruptHint.INTERRUPT_HINT_STOP: - console.info('Force stopped. Stop writing'); - isPlay = false; - break; +import audio from '@ohos.multimedia.audio'; + +const audioManager = audio.getAudioManager(); +let audioStreamManager = audioManager.getStreamManager(); + +let resultFlag = false; +audioStreamManager.on('audioCapturerChange', (AudioCapturerChangeInfoArray) => { + for (let i = 0; i < AudioCapturerChangeInfoArray.length; i++) { + console.info(`## CapChange on is called for element ${i} ##`); + console.info(`StrId for ${i} is: ${AudioCapturerChangeInfoArray[i].streamId}`); + console.info(`CUid for ${i} is: ${AudioCapturerChangeInfoArray[i].clientUid}`); + console.info(`Src for ${i} is: ${AudioCapturerChangeInfoArray[i].capturerInfo.source}`); + console.info(`Flag ${i} is: ${AudioCapturerChangeInfoArray[i].capturerInfo.capturerFlags}`); + console.info(`State for ${i} is: ${AudioCapturerChangeInfoArray[i].capturerState}`); + let devDescriptor = AudioCapturerChangeInfoArray[i].deviceDescriptors; + for (let j = 0; j < AudioCapturerChangeInfoArray[i].deviceDescriptors.length; j++) { + console.info(`Id: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].id}`); + console.info(`Type: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceType}`); + console.info(`Role: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].deviceRole}`); + console.info(`Name: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].name}`); + console.info(`Addr: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].address}`); + console.info(`SR: ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].sampleRates[0]}`); + console.info(`C ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]}`); + console.info(`CM ${i} : ${AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks}`); } - } else if (interruptEvent.forceType == audio.InterruptForceType.INTERRUPT_SHARE) { - switch (interruptEvent.hintType) { - case audio.InterruptHint.INTERRUPT_HINT_RESUME: - console.info('Resume force paused renderer or ignore'); - await audioRenderer.start().then(async function () { - console.info('AudioInterruptMusic: renderInstant started :SUCCESS '); - started = true; - }).catch((err) => { - console.error(`AudioInterruptMusic: renderInstant start :ERROR : ${err}`); - started = false; - }); - if (started) { - isPlay = true; - console.info(`AudioInterruptMusic Renderer started : isPlay : ${isPlay}`); - } else { - console.error('AudioInterruptMusic Renderer start failed'); - } - break; - case audio.InterruptHint.INTERRUPT_HINT_PAUSE: - console.info('Choose to pause or ignore'); - if (isPlay == true) { - isPlay == false; - console.info('AudioInterruptMusic: Media PAUSE : TRUE'); - } else { - isPlay = true; - console.info('AudioInterruptMusic: Media PLAY : TRUE'); - } - break; + if (AudioCapturerChangeInfoArray[i].capturerState == 1 && devDescriptor != null) { + resultFlag = true; + console.info(`ResultFlag for element ${i} is: ${resultFlag}`); } } }); - ``` -### on('markReach')8+ +## AudioDeviceDescriptors -on(type: "markReach", frame: number, callback: Callback<number>): void +Defines an [AudioDeviceDescriptor](#audiodevicedescriptor) array, which is read-only. -Subscribes to mark reached events. When the number of frames rendered reaches the value of the **frame** parameter, a callback is invoked. +## AudioDeviceDescriptor -**System capability**: SystemCapability.Multimedia.Audio.Renderer +Describes an audio device. -**Parameters** +**System capability**: SystemCapability.Multimedia.Audio.Device -| Name | Type | Mandatory | Description | -| :------- | :---------------- | :-------- | :----------------------------------------------------------- | -| type | string | Yes | Event type. The value is fixed at **'markReach'**. | -| frame | number | Yes | Number of frames to trigger the event. The value must be greater than **0**. | -| callback | Callback\ | Yes | Callback invoked when the event is triggered. | +| Name | Type | Readable | Writable | Description | +| ----------------------------- | ------------------------- | -------- | -------- | ------------------------------------------------------------ | +| deviceRole | [DeviceRole](#devicerole) | Yes | No | Device role. | +| deviceType | [DeviceType](#devicetype) | Yes | No | Device type. | +| id9+ | number | Yes | No | Device ID. | +| name9+ | string | Yes | No | Device name. | +| address9+ | string | Yes | No | Device address. | +| sampleRates9+ | Array<number> | Yes | No | Supported sampling rates. | +| channelCounts9+ | Array<number> | Yes | No | Number of channels supported. | +| channelMasks9+ | Array<number> | Yes | No | Supported channel masks. | +| networkId9+ | string | Yes | No | ID of the device network.
This is a system API. | +| interruptGroupId9+ | number | Yes | No | ID of the interruption group to which the device belongs.
This is a system API. | +| volumeGroupId9+ | number | Yes | No | ID of the volume group to which the device belongs.
This is a system API. | **Example** ```js -audioRenderer.on('markReach', 1000, (position) => { - if (position == 1000) { - console.info('ON Triggered successfully'); +import audio from '@ohos.multimedia.audio'; + +function displayDeviceProp(value) { + deviceRoleValue = value.deviceRole; + deviceTypeValue = value.deviceType; +} + +let deviceRoleValue = null; +let deviceTypeValue = null; +const promise = audio.getAudioManager().getDevices(1); +promise.then(function (value) { + console.info('AudioFrameworkTest: Promise: getDevices OUTPUT_DEVICES_FLAG'); + value.forEach(displayDeviceProp); + if (deviceTypeValue != null && deviceRoleValue != null){ + console.info('AudioFrameworkTest: Promise: getDevices : OUTPUT_DEVICES_FLAG : PASS'); + } else { + console.error('AudioFrameworkTest: Promise: getDevices : OUTPUT_DEVICES_FLAG : FAIL'); } }); - ``` +## AudioRendererFilter9+ -### off('markReach') 8+ +Implements filter criteria. Before calling **selectOutputDeviceByFilter**, you must obtain an **AudioRendererFilter** instance. -off(type: 'markReach'): void +**System API**: This is a system API. -Unsubscribes from mark reached events. +| Name | Type | Mandatory | Description | +| ------------ | ---------------------------------------- | --------- | ------------------------------------------------------------ | +| uid | number | Yes | Application ID.
**System capability**: SystemCapability.Multimedia.Audio.Core | +| rendererInfo | [AudioRendererInfo](#audiorendererinfo8) | No | Audio renderer information.
**System capability**: SystemCapability.Multimedia.Audio.Renderer | +| rendererId | number | No | Unique ID of an audio stream.
**System capability**: SystemCapability.Multimedia.Audio.Renderer | -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**Example** -**Parameters** +```js +let outputAudioRendererFilter = { + "uid":20010041, + "rendererInfo": { + "contentType":audio.ContentType.CONTENT_TYPE_MUSIC, + "streamUsage":audio.StreamUsage.STREAM_USAGE_MEDIA, + "rendererFlags":0 }, + "rendererId":0 }; +``` -| Name | Type | Mandatory | Description | -| :--- | :----- | :-------- | :------------------------------------------------- | -| type | string | Yes | Event type. The value is fixed at **'markReach'**. | +## AudioRenderer8+ + +Provides APIs for audio rendering. Before calling any API in **AudioRenderer**, you must use [createAudioRenderer](#audiocreateaudiorenderer8) to create an **AudioRenderer** instance. + +### Attributes + +**System capability**: SystemCapability.Multimedia.Audio.Renderer + +| Name | Type | Readable | Writable | Description | +| ------------------ | -------------------------- | -------- | -------- | --------------------- | +| state8+ | [AudioState](#audiostate8) | Yes | No | Audio renderer state. | **Example** ```js -audioRenderer.off('markReach'); - +let state = audioRenderer.state; ``` -### on('periodReach') 8+ +### getRendererInfo8+ -on(type: "periodReach", frame: number, callback: Callback<number>): void +getRendererInfo(callback: AsyncCallback): void -Subscribes to period reached events. When the number of frames rendered reaches the value of the **frame** parameter, a callback is triggered and the specified value is returned. +Obtains the renderer information of this **AudioRenderer** instance. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| :------- | :---------------- | :-------- | :----------------------------------------------------------- | -| type | string | Yes | Event type. The value is fixed at **'periodReach'**. | -| frame | number | Yes | Number of frames to trigger the event. The value must be greater than **0**. | -| callback | Callback\ | Yes | Callback invoked when the event is triggered. | +| Name | Type | Mandatory | Description | +| :------- | :------------------------------------------------------- | :-------- | :------------------------------------------------ | +| callback | AsyncCallback<[AudioRendererInfo](#audiorendererinfo8)\> | Yes | Callback used to return the renderer information. | **Example** ```js -audioRenderer.on('periodReach', 1000, (position) => { - if (position == 1000) { - console.info('ON Triggered successfully'); - } +audioRenderer.getRendererInfo((err, rendererInfo) => { + console.info('Renderer GetRendererInfo:'); + console.info(`Renderer content: ${rendererInfo.content}`); + console.info(`Renderer usage: ${rendererInfo.usage}`); + console.info(`Renderer flags: ${rendererInfo.rendererFlags}`); }); - ``` -### off('periodReach') 8+ +### getRendererInfo8+ -off(type: 'periodReach'): void +getRendererInfo(): Promise -Unsubscribes from period reached events. +Obtains the renderer information of this **AudioRenderer** instance. This API uses a promise to return the result. **System capability**: SystemCapability.Multimedia.Audio.Renderer -**Parameters** +**Return value** -| Name | Type | Mandatory | Description | -| :--- | :----- | :-------- | :--------------------------------------------------- | -| type | string | Yes | Event type. The value is fixed at **'periodReach'**. | +| Type | Description | +| -------------------------------------------------- | ------------------------------------------------ | +| Promise<[AudioRendererInfo](#audiorendererinfo8)\> | Promise used to return the renderer information. | **Example** ```js -audioRenderer.off('periodReach') - +audioRenderer.getRendererInfo().then((rendererInfo) => { + console.info('Renderer GetRendererInfo:'); + console.info(`Renderer content: ${rendererInfo.content}`); + console.info(`Renderer usage: ${rendererInfo.usage}`); + console.info(`Renderer flags: ${rendererInfo.rendererFlags}`) +}).catch((err) => { + console.error(`AudioFrameworkRenderLog: RendererInfo :ERROR: ${err}`); +}); ``` -### on('stateChange')8+ +### getStreamInfo8+ -on(type: 'stateChange', callback: Callback): void +getStreamInfo(callback: AsyncCallback): void -Subscribes to state change events. +Obtains the stream information of this **AudioRenderer** instance. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| :------- | :------------------------- | :-------- | :----------------------------------------------------------- | -| type | string | Yes | Event type. The value **stateChange** means the state change event. | -| callback | [AudioState](#audiostate8) | Yes | Callback used to return the state change. | +| Name | Type | Mandatory | Description | +| :------- | :--------------------------------------------------- | :-------- | :---------------------------------------------- | +| callback | AsyncCallback<[AudioStreamInfo](#audiostreaminfo8)\> | Yes | Callback used to return the stream information. | **Example** ```js -audioRenderer.on('stateChange', (state) => { - if (state == 1) { - console.info('audio renderer state is: STATE_PREPARED'); - } - if (state == 2) { - console.info('audio renderer state is: STATE_RUNNING'); - } +audioRenderer.getStreamInfo((err, streamInfo) => { + console.info('Renderer GetStreamInfo:'); + console.info(`Renderer sampling rate: ${streamInfo.samplingRate}`); + console.info(`Renderer channel: ${streamInfo.channels}`); + console.info(`Renderer format: ${streamInfo.sampleFormat}`); + console.info(`Renderer encoding type: ${streamInfo.encodingType}`); }); - ``` -## AudioCapturer8+ +### getStreamInfo8+ -Provides APIs for audio capture. Before calling any API in **AudioCapturer**, you must use [createAudioCapturer](#audiocreateaudiocapturer8) to create an **AudioCapturer** instance. +getStreamInfo(): Promise -### Attributes +Obtains the stream information of this **AudioRenderer** instance. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer -| Name | Type | Readable | Writable | Description | -| :----------------- | :------------------------- | :------- | :------- | :-------------------- | -| state8+ | [AudioState](#audiostate8) | Yes | No | Audio capturer state. | +**Return value** + +| Type | Description | +| :--------------------------------------------- | :--------------------------------------------- | +| Promise<[AudioStreamInfo](#audiostreaminfo8)\> | Promise used to return the stream information. | **Example** ```js -let state = audioCapturer.state; +audioRenderer.getStreamInfo().then((streamInfo) => { + console.info('Renderer GetStreamInfo:'); + console.info(`Renderer sampling rate: ${streamInfo.samplingRate}`); + console.info(`Renderer channel: ${streamInfo.channels}`); + console.info(`Renderer format: ${streamInfo.sampleFormat}`); + console.info(`Renderer encoding type: ${streamInfo.encodingType}`); +}).catch((err) => { + console.error(`ERROR: ${err}`); +}); ``` -### getCapturerInfo8+ +### getAudioStreamId9+ -getCapturerInfo(callback: AsyncCallback): void +getAudioStreamId(callback: AsyncCallback): void -Obtains the capturer information of this **AudioCapturer** instance. This API uses an asynchronous callback to return the result. +Obtains the stream ID of this **AudioRenderer** instance. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| :------- | :-------------------------------- | :-------- | :------------------------------------------------ | -| callback | AsyncCallback | Yes | Callback used to return the capturer information. | +| Name | Type | Mandatory | Description | +| :------- | :--------------------- | :-------- | :------------------------------------- | +| callback | AsyncCallback | Yes | Callback used to return the stream ID. | **Example** ```js -audioCapturer.getCapturerInfo((err, capturerInfo) => { - if (err) { - console.error('Failed to get capture info'); - } else { - console.info('Capturer getCapturerInfo:'); - console.info(`Capturer source: ${capturerInfo.source}`); - console.info(`Capturer flags: ${capturerInfo.capturerFlags}`); - } +audioRenderer.getAudioStreamId((err, streamid) => { + console.info(`Renderer GetStreamId: ${streamid}`); }); ``` +### getAudioStreamId9+ -### getCapturerInfo8+ - -getCapturerInfo(): Promise +getAudioStreamId(): Promise -Obtains the capturer information of this **AudioCapturer** instance. This API uses a promise to return the result. +Obtains the stream ID of this **AudioRenderer** instance. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Return value** -| Type | Description | -| :------------------------------------------------ | :----------------------------------------------- | -| Promise<[AudioCapturerInfo](#audiocapturerinfo)\> | Promise used to return the capturer information. | +| Type | Description | +| :--------------- | :------------------------------------ | +| Promise | Promise used to return the stream ID. | **Example** ```js -audioCapturer.getCapturerInfo().then((audioParamsGet) => { - if (audioParamsGet != undefined) { - console.info('AudioFrameworkRecLog: Capturer CapturerInfo:'); - console.info(`AudioFrameworkRecLog: Capturer SourceType: ${audioParamsGet.source}`); - console.info(`AudioFrameworkRecLog: Capturer capturerFlags: ${audioParamsGet.capturerFlags}`); - } else { - console.info(`AudioFrameworkRecLog: audioParamsGet is : ${audioParamsGet}`); - console.info('AudioFrameworkRecLog: audioParams getCapturerInfo are incorrect'); - } +audioRenderer.getAudioStreamId().then((streamid) => { + console.info(`Renderer getAudioStreamId: ${streamid}`); }).catch((err) => { - console.error(`AudioFrameworkRecLog: CapturerInfo :ERROR: ${err}`); + console.error(`ERROR: ${err}`); }); ``` -### getStreamInfo8+ +### start8+ -getStreamInfo(callback: AsyncCallback): void +start(callback: AsyncCallback): void -Obtains the stream information of this **AudioCapturer** instance. This API uses an asynchronous callback to return the result. +Starts the renderer. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| :------- | :--------------------------------------------------- | :-------- | :---------------------------------------------- | -| callback | AsyncCallback<[AudioStreamInfo](#audiostreaminfo8)\> | Yes | Callback used to return the stream information. | +| Name | Type | Mandatory | Description | +| -------- | -------------------- | --------- | ----------------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result. | **Example** ```js -audioCapturer.getStreamInfo((err, streamInfo) => { +audioRenderer.start((err) => { if (err) { - console.error('Failed to get stream info'); + console.error('Renderer start failed.'); } else { - console.info('Capturer GetStreamInfo:'); - console.info(`Capturer sampling rate: ${streamInfo.samplingRate}`); - console.info(`Capturer channel: ${streamInfo.channels}`); - console.info(`Capturer format: ${streamInfo.sampleFormat}`); - console.info(`Capturer encoding type: ${streamInfo.encodingType}`); + console.info('Renderer start success.'); } }); ``` -### getStreamInfo8+ +### start8+ -getStreamInfo(): Promise +start(): Promise -Obtains the stream information of this **AudioCapturer** instance. This API uses a promise to return the result. +Starts the renderer. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Return value** -| Type | Description | -| :--------------------------------------------- | :--------------------------------------------- | -| Promise<[AudioStreamInfo](#audiostreaminfo8)\> | Promise used to return the stream information. | +| Type | Description | +| -------------- | ---------------------------------- | +| Promise\ | Promise used to return the result. | **Example** ```js -audioCapturer.getStreamInfo().then((audioParamsGet) => { - console.info('getStreamInfo:'); - console.info(`sampleFormat: ${audioParamsGet.sampleFormat}`); - console.info(`samplingRate: ${audioParamsGet.samplingRate}`); - console.info(`channels: ${audioParamsGet.channels}`); - console.info(`encodingType: ${audioParamsGet.encodingType}`); +audioRenderer.start().then(() => { + console.info('Renderer started'); }).catch((err) => { - console.error(`getStreamInfo :ERROR: ${err}`); + console.error(`ERROR: ${err}`); }); ``` -### getAudioStreamId9+ +### pause8+ -getAudioStreamId(callback: AsyncCallback): void +pause(callback: AsyncCallback\): void -Obtains the stream ID of this **AudioCapturer** instance. This API uses an asynchronous callback to return the result. +Pauses rendering. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| :------- | :--------------------- | :-------- | :------------------------------------- | -| callback | AsyncCallback | Yes | Callback used to return the stream ID. | +| Name | Type | Mandatory | Description | +| -------- | -------------------- | --------- | ----------------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result. | **Example** ```js -audioCapturer.getAudioStreamId((err, streamid) => { - console.info(`audioCapturer GetStreamId: ${streamid}`); +audioRenderer.pause((err) => { + if (err) { + console.error('Renderer pause failed'); + } else { + console.info('Renderer paused.'); + } }); ``` -### getAudioStreamId9+ +### pause8+ -getAudioStreamId(): Promise +pause(): Promise\ -Obtains the stream ID of this **AudioCapturer** instance. This API uses a promise to return the result. +Pauses rendering. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Return value** -| Type | Description | -| :--------------- | :------------------------------------ | -| Promise | Promise used to return the stream ID. | +| Type | Description | +| -------------- | ---------------------------------- | +| Promise\ | Promise used to return the result. | **Example** ```js -audioCapturer.getAudioStreamId().then((streamid) => { - console.info(`audioCapturer getAudioStreamId: ${streamid}`); +audioRenderer.pause().then(() => { + console.info('Renderer paused'); }).catch((err) => { console.error(`ERROR: ${err}`); }); ``` -### start8+ +### drain8+ -start(callback: AsyncCallback): void +drain(callback: AsyncCallback\): void -Starts capturing. This API uses an asynchronous callback to return the result. +Drains the playback buffer. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** | Name | Type | Mandatory | Description | -| :------- | :------------------- | :-------- | :---------------------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result. | +| -------- | -------------------- | --------- | ----------------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result. | **Example** ```js -audioCapturer.start((err) => { +audioRenderer.drain((err) => { if (err) { - console.error('Capturer start failed.'); + console.error('Renderer drain failed'); } else { - console.info('Capturer start success.'); + console.info('Renderer drained.'); } }); ``` +### drain8+ -### start8+ - -start(): Promise +drain(): Promise\ -Starts capturing. This API uses a promise to return the result. +Drains the playback buffer. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Return value** | Type | Description | -| :------------- | :--------------------------------- | -| Promise | Promise used to return the result. | +| -------------- | ---------------------------------- | +| Promise\ | Promise used to return the result. | **Example** ```js -audioCapturer.start().then(() => { - console.info('AudioFrameworkRecLog: ---------START---------'); - console.info('AudioFrameworkRecLog: Capturer started: SUCCESS'); - console.info(`AudioFrameworkRecLog: AudioCapturer: STATE: ${audioCapturer.state}`); - console.info('AudioFrameworkRecLog: Capturer started: SUCCESS'); - if ((audioCapturer.state == audio.AudioState.STATE_RUNNING)) { - console.info('AudioFrameworkRecLog: AudioCapturer is in Running State'); - } +audioRenderer.drain().then(() => { + console.info('Renderer drained successfully'); }).catch((err) => { - console.info(`AudioFrameworkRecLog: Capturer start :ERROR : ${err}`); + console.error(`ERROR: ${err}`); }); ``` ### stop8+ -stop(callback: AsyncCallback): void +stop(callback: AsyncCallback\): void -Stops capturing. This API uses an asynchronous callback to return the result. +Stops rendering. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** | Name | Type | Mandatory | Description | -| :------- | :------------------- | :-------- | :---------------------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result. | +| -------- | -------------------- | --------- | ----------------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result. | **Example** ```js -audioCapturer.stop((err) => { +audioRenderer.stop((err) => { if (err) { - console.error('Capturer stop failed'); + console.error('Renderer stop failed'); } else { - console.info('Capturer stopped.'); + console.info('Renderer stopped.'); } }); ``` - ### stop8+ -stop(): Promise +stop(): Promise\ -Stops capturing. This API uses a promise to return the result. +Stops rendering. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Return value** | Type | Description | -| :------------- | :--------------------------------- | -| Promise | Promise used to return the result. | +| -------------- | ---------------------------------- | +| Promise\ | Promise used to return the result. | **Example** ```js -audioCapturer.stop().then(() => { - console.info('AudioFrameworkRecLog: ---------STOP RECORD---------'); - console.info('AudioFrameworkRecLog: Capturer stopped: SUCCESS'); - if ((audioCapturer.state == audio.AudioState.STATE_STOPPED)){ - console.info('AudioFrameworkRecLog: State is Stopped:'); - } +audioRenderer.stop().then(() => { + console.info('Renderer stopped successfully'); }).catch((err) => { - console.info(`AudioFrameworkRecLog: Capturer stop: ERROR: ${err}`); + console.error(`ERROR: ${err}`); }); ``` ### release8+ -release(callback: AsyncCallback): void +release(callback: AsyncCallback\): void -Releases this **AudioCapturer** instance. This API uses an asynchronous callback to return the result. +Releases the renderer. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** | Name | Type | Mandatory | Description | -| :------- | :------------------- | :-------- | :---------------------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result. | +| -------- | -------------------- | --------- | ----------------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result. | **Example** ```js -audioCapturer.release((err) => { +audioRenderer.release((err) => { if (err) { - console.error('capturer release failed'); + console.error('Renderer release failed'); } else { - console.info('capturer released.'); + console.info('Renderer released.'); } }); ``` - ### release8+ -release(): Promise +release(): Promise\ -Releases this **AudioCapturer** instance. This API uses a promise to return the result. +Releases the renderer. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Return value** | Type | Description | -| :------------- | :--------------------------------- | -| Promise | Promise used to return the result. | +| -------------- | ---------------------------------- | +| Promise\ | Promise used to return the result. | **Example** ```js -let stateFlag; -audioCapturer.release().then(() => { - console.info('AudioFrameworkRecLog: ---------RELEASE RECORD---------'); - console.info('AudioFrameworkRecLog: Capturer release : SUCCESS'); - console.info(`AudioFrameworkRecLog: AudioCapturer : STATE : ${audioCapturer.state}`); - console.info(`AudioFrameworkRecLog: stateFlag : ${stateFlag}`); +audioRenderer.release().then(() => { + console.info('Renderer released successfully'); }).catch((err) => { - console.info(`AudioFrameworkRecLog: Capturer stop: ERROR: ${err}`); + console.error(`ERROR: ${err}`); }); ``` -### read8+ +### write8+ -read(size: number, isBlockingRead: boolean, callback: AsyncCallback): void +write(buffer: ArrayBuffer, callback: AsyncCallback\): void -Reads the buffer. This API uses an asynchronous callback to return the result. +Writes the buffer. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| :------------- | :-------------------------- | :-------- | :----------------------------------- | -| size | number | Yes | Number of bytes to read. | -| isBlockingRead | boolean | Yes | Whether to block the read operation. | -| callback | AsyncCallback | Yes | Callback used to return the buffer. | +| Name | Type | Mandatory | Description | +| -------- | ---------------------- | --------- | ------------------------------------------------------------ | +| buffer | ArrayBuffer | Yes | Buffer to be written. | +| callback | AsyncCallback\ | Yes | Callback used to return the result. If the operation is successful, the number of bytes written is returned; otherwise, an error code is returned. | **Example** ```js let bufferSize; -audioCapturer.getBufferSize().then((data) => { - console.info(`AudioFrameworkRecLog: getBufferSize: SUCCESS ${data}`); +audioRenderer.getBufferSize().then((data)=> { + console.info(`AudioFrameworkRenderLog: getBufferSize: SUCCESS ${data}`); bufferSize = data; }).catch((err) => { - console.error(`AudioFrameworkRecLog: getBufferSize: ERROR: ${err}`); + console.error(`AudioFrameworkRenderLog: getBufferSize: ERROR: ${err}`); }); -audioCapturer.read(bufferSize, true, async(err, buffer) => { - if (!err) { - console.info('Success in reading the buffer data'); +console.info(`Buffer size: ${bufferSize}`); +let context = featureAbility.getContext(); +let path; +async function getCacheDir(){ + path = await context.getCacheDir(); +} +let filePath = path + '/StarWars10s-2C-48000-4SW.wav'; +let ss = fileio.createStreamSync(filePath, 'r'); +let buf = new ArrayBuffer(bufferSize); +ss.readSync(buf); +audioRenderer.write(buf, (err, writtenbytes) => { + if (writtenbytes < 0) { + console.error('write failed.'); + } else { + console.info(`Actual written bytes: ${writtenbytes}`); } }); ``` -### read8+ - -read(size: number, isBlockingRead: boolean): Promise - -Reads the buffer. This API uses a promise to return the result. +### write8+ -**System capability**: SystemCapability.Multimedia.Audio.Capturer +write(buffer: ArrayBuffer): Promise\ -**Parameters** +Writes the buffer. This API uses a promise to return the result. -| Name | Type | Mandatory | Description | -| :------------- | :------ | :-------- | :----------------------------------- | -| size | number | Yes | Number of bytes to read. | -| isBlockingRead | boolean | Yes | Whether to block the read operation. | +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Return value** -| Type | Description | -| :-------------------- | :----------------------------------------------------------- | -| Promise | Promise used to return the result. If the operation is successful, the buffer data read is returned; otherwise, an error code is returned. | +| Type | Description | +| ---------------- | ------------------------------------------------------------ | +| Promise\ | Promise used to return the result. If the operation is successful, the number of bytes written is returned; otherwise, an error code is returned. | **Example** ```js let bufferSize; -audioCapturer.getBufferSize().then((data) => { - console.info(`AudioFrameworkRecLog: getBufferSize: SUCCESS ${data}`); +audioRenderer.getBufferSize().then((data) => { + console.info(`AudioFrameworkRenderLog: getBufferSize: SUCCESS ${data}`); bufferSize = data; }).catch((err) => { - console.info(`AudioFrameworkRecLog: getBufferSize: ERROR ${err}`); + console.info(`AudioFrameworkRenderLog: getBufferSize: ERROR: ${err}`); }); -console.info(`Buffer size: ${bufferSize}`); -audioCapturer.read(bufferSize, true).then((buffer) => { - console.info('buffer read successfully'); +console.info(`BufferSize: ${bufferSize}`); +let context = featureAbility.getContext(); +let path; +async function getCacheDir(){ + path = await context.getCacheDir(); +} +let filePath = path + '/StarWars10s-2C-48000-4SW.wav'; +let ss = fileio.createStreamSync(filePath, 'r'); +let buf = new ArrayBuffer(bufferSize); +ss.readSync(buf); +audioRenderer.write(buf).then((writtenbytes) => { + if (writtenbytes < 0) { + console.error('write failed.'); + } else { + console.info(`Actual written bytes: ${writtenbytes}`); + } }).catch((err) => { - console.info(`ERROR : ${err}`); + console.error(`ERROR: ${err}`); }); ``` ### getAudioTime8+ -getAudioTime(callback: AsyncCallback): void +getAudioTime(callback: AsyncCallback\): void Obtains the number of nanoseconds elapsed from the Unix epoch (January 1, 1970). This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| :------- | :--------------------- | :-------- | :---------------------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result. | +| Name | Type | Mandatory | Description | +| -------- | ---------------------- | --------- | -------------------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the timestamp. | **Example** ```js -audioCapturer.getAudioTime((err, timestamp) => { +audioRenderer.getAudioTime((err, timestamp) => { console.info(`Current timestamp: ${timestamp}`); }); @@ -4475,54 +4665,49 @@ audioCapturer.getAudioTime((err, timestamp) => { ### getAudioTime8+ -getAudioTime(): Promise +getAudioTime(): Promise\ Obtains the number of nanoseconds elapsed from the Unix epoch (January 1, 1970). This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Return value** | Type | Description | -| :--------------- | :------------------------------------ | -| Promise | Promise used to return the timestamp. | +| ---------------- | ------------------------------------- | +| Promise\ | Promise used to return the timestamp. | **Example** ```js -audioCapturer.getAudioTime().then((audioTime) => { - console.info(`AudioFrameworkRecLog: AudioCapturer getAudioTime : Success ${audioTime}`); +audioRenderer.getAudioTime().then((timestamp) => { + console.info(`Current timestamp: ${timestamp}`); }).catch((err) => { - console.info(`AudioFrameworkRecLog: AudioCapturer Created : ERROR : ${err}`); + console.error(`ERROR: ${err}`); }); ``` ### getBufferSize8+ -getBufferSize(callback: AsyncCallback): void +getBufferSize(callback: AsyncCallback\): void -Obtains a reasonable minimum buffer size in bytes for capturing. This API uses an asynchronous callback to return the result. +Obtains a reasonable minimum buffer size in bytes for rendering. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** | Name | Type | Mandatory | Description | -| :------- | :--------------------- | :-------- | :--------------------------------------- | -| callback | AsyncCallback | Yes | Callback used to return the buffer size. | +| -------- | ---------------------- | --------- | ---------------------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the buffer size. | **Example** ```js -audioCapturer.getBufferSize((err, bufferSize) => { - if (!err) { - console.info(`BufferSize : ${bufferSize}`); - audioCapturer.read(bufferSize, true).then((buffer) => { - console.info(`Buffer read is ${buffer}`); - }).catch((err) => { - console.error(`AudioFrameworkRecLog: AudioCapturer Created : ERROR : ${err}`); - }); +let bufferSize = audioRenderer.getBufferSize(async(err, bufferSize) => { + if (err) { + console.error('getBufferSize error'); } }); @@ -4530,1546 +4715,1425 @@ audioCapturer.getBufferSize((err, bufferSize) => { ### getBufferSize8+ -getBufferSize(): Promise +getBufferSize(): Promise\ -Obtains a reasonable minimum buffer size in bytes for capturing. This API uses a promise to return the result. +Obtains a reasonable minimum buffer size in bytes for rendering. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Return value** | Type | Description | -| :--------------- | :-------------------------------------- | -| Promise | Promise used to return the buffer size. | +| ---------------- | --------------------------------------- | +| Promise\ | Promise used to return the buffer size. | **Example** ```js let bufferSize; -audioCapturer.getBufferSize().then((data) => { - console.info(`AudioFrameworkRecLog: getBufferSize :SUCCESS ${data}`); +audioRenderer.getBufferSize().then((data) => { + console.info(`AudioFrameworkRenderLog: getBufferSize: SUCCESS ${data}`); bufferSize = data; }).catch((err) => { - console.info(`AudioFrameworkRecLog: getBufferSize :ERROR : ${err}`); + console.error(`AudioFrameworkRenderLog: getBufferSize: ERROR: ${err}`); }); ``` -### on('markReach')8+ +### setRenderRate8+ -on(type: "markReach", frame: number, callback: Callback<number>): void +setRenderRate(rate: AudioRendererRate, callback: AsyncCallback\): void -Subscribes to mark reached events. When the number of frames captured reaches the value of the **frame** parameter, a callback is invoked. +Sets the render rate. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| :------- | :---------------- | :-------- | :----------------------------------------------------------- | -| type | string | Yes | Event type. The value is fixed at **'markReach'**. | -| frame | number | Yes | Number of frames to trigger the event. The value must be greater than **0**. | -| callback | Callback\ | Yes | Callback invoked when the event is triggered. | +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | --------- | ----------------------------------- | +| rate | [AudioRendererRate](#audiorendererrate8) | Yes | Audio render rate. | +| callback | AsyncCallback\ | Yes | Callback used to return the result. | **Example** ```js -audioCapturer.on('markReach', 1000, (position) => { - if (position == 1000) { - console.info('ON Triggered successfully'); +audioRenderer.setRenderRate(audio.AudioRendererRate.RENDER_RATE_NORMAL, (err) => { + if (err) { + console.error('Failed to set params'); + } else { + console.info('Callback invoked to indicate a successful render rate setting.'); } }); ``` -### off('markReach')8+ - -off(type: 'markReach'): void - -Unsubscribes from mark reached events. - -**System capability**: SystemCapability.Multimedia.Audio.Capturer - -**Parameters** - -| Name | Type | Mandatory | Description | -| :--- | :----- | :-------- | :------------------------------------------------- | -| type | string | Yes | Event type. The value is fixed at **'markReach'**. | - -**Example** - -```js -audioCapturer.off('markReach'); - -``` - -### on('periodReach')8+ +### setRenderRate8+ -on(type: "periodReach", frame: number, callback: Callback<number>): void +setRenderRate(rate: AudioRendererRate): Promise\ -Subscribes to period reached events. When the number of frames captured reaches the value of the **frame** parameter, a callback is triggered and the specified value is returned. +Sets the render rate. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| :------- | :---------------- | :-------- | :----------------------------------------------------------- | -| type | string | Yes | Event type. The value is fixed at **'periodReach'**. | -| frame | number | Yes | Number of frames to trigger the event. The value must be greater than **0**. | -| callback | Callback\ | Yes | Callback invoked when the event is triggered. | +| Name | Type | Mandatory | Description | +| ---- | ---------------------------------------- | --------- | ------------------ | +| rate | [AudioRendererRate](#audiorendererrate8) | Yes | Audio render rate. | + +**Return value** + +| Type | Description | +| -------------- | ---------------------------------- | +| Promise\ | Promise used to return the result. | **Example** ```js -audioCapturer.on('periodReach', 1000, (position) => { - if (position == 1000) { - console.info('ON Triggered successfully'); - } +audioRenderer.setRenderRate(audio.AudioRendererRate.RENDER_RATE_NORMAL).then(() => { + console.info('setRenderRate SUCCESS'); +}).catch((err) => { + console.error(`ERROR: ${err}`); }); ``` -### off('periodReach')8+ +### getRenderRate8+ -off(type: 'periodReach'): void +getRenderRate(callback: AsyncCallback\): void -Unsubscribes from period reached events. +Obtains the current render rate. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| :--- | :----- | :-------- | :--------------------------------------------------- | -| type | string | Yes | Event type. The value is fixed at **'periodReach'**. | +| Name | Type | Mandatory | Description | +| -------- | ------------------------------------------------------- | --------- | ---------------------------------------------- | +| callback | AsyncCallback<[AudioRendererRate](#audiorendererrate8)> | Yes | Callback used to return the audio render rate. | **Example** ```js -audioCapturer.off('periodReach') +audioRenderer.getRenderRate((err, renderrate) => { + console.info(`getRenderRate: ${renderrate}`); +}); ``` -### on('stateChange')8+ +### getRenderRate8+ -on(type: 'stateChange', callback: Callback): void +getRenderRate(): Promise\ -Subscribes to state change events. +Obtains the current render rate. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Capturer +**System capability**: SystemCapability.Multimedia.Audio.Renderer -**Parameters** +**Return value** -| Name | Type | Mandatory | Description | -| :------- | :------------------------- | :-------- | :----------------------------------------------------------- | -| type | string | Yes | Event type. The value **stateChange** means the state change event. | -| callback | [AudioState](#audiostate8) | Yes | Callback used to return the state change. | +| Type | Description | +| ------------------------------------------------- | --------------------------------------------- | +| Promise<[AudioRendererRate](#audiorendererrate8)> | Promise used to return the audio render rate. | **Example** ```js -audioCapturer.on('stateChange', (state) => { - if (state == 1) { - console.info('audio capturer state is: STATE_PREPARED'); - } - if (state == 2) { - console.info('audio capturer state is: STATE_RUNNING'); - } +audioRenderer.getRenderRate().then((renderRate) => { + console.info(`getRenderRate: ${renderRate}`); +}).catch((err) => { + console.error(`ERROR: ${err}`); }); ``` -## ToneType9+ +### setInterruptMode9+ -Enumerates the tone types of the player. +setInterruptMode(mode: InterruptMode): Promise<void> -**System API**: This is a system API. +Sets the audio interruption mode for the application. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Tone +**System capability**: SystemCapability.Multimedia.Audio.Interrupt -| Name | Default Value | Description | -| :----------------------------------------------- | :------------ | :-------------------------------------------- | -| TONE_TYPE_DIAL_0 | 0 | DTMF tone of key 0. | -| TONE_TYPE_DIAL_1 | 1 | DTMF tone of key 1. | -| TONE_TYPE_DIAL_2 | 2 | DTMF tone of key 2. | -| TONE_TYPE_DIAL_3 | 3 | DTMF tone of key 3. | -| TONE_TYPE_DIAL_4 | 4 | DTMF tone of key 4. | -| TONE_TYPE_DIAL_5 | 5 | DTMF tone of key 5. | -| TONE_TYPE_DIAL_6 | 6 | DTMF tone of key 6. | -| TONE_TYPE_DIAL_7 | 7 | DTMF tone of key 7. | -| TONE_TYPE_DIAL_8 | 8 | DTMF tone of key 8. | -| TONE_TYPE_DIAL_9 | 9 | DTMF tone of key 9. | -| TONE_TYPE_DIAL_S | 10 | DTMF tone of the star key (*). | -| TONE_TYPE_DIAL_P | 11 | DTMF tone of the pound key (#). | -| TONE_TYPE_DIAL_A | 12 | DTMF tone of key A. | -| TONE_TYPE_DIAL_B | 13 | DTMF tone of key B. | -| TONE_TYPE_DIAL_C | 14 | DTMF tone of key C. | -| TONE_TYPE_DIAL_D | 15 | DTMF tone of key D. | -| TONE_TYPE_COMMON_SUPERVISORY_DIAL | 100 | Supervisory tone - dial tone. | -| TONE_TYPE_COMMON_SUPERVISORY_BUSY | 101 | Supervisory tone - busy. | -| TONE_TYPE_COMMON_SUPERVISORY_CONGESTION | 102 | Supervisory tone - congestion. | -| TONE_TYPE_COMMON_SUPERVISORY_RADIO_ACK | 103 | Supervisory tone - radio path acknowledgment. | -| TONE_TYPE_COMMON_SUPERVISORY_RADIO_NOT_AVAILABLE | 104 | Supervisory tone - radio path not available. | -| TONE_TYPE_COMMON_SUPERVISORY_CALL_WAITING | 106 | Supervisory tone - call waiting tone. | -| TONE_TYPE_COMMON_SUPERVISORY_RINGTONE | 107 | Supervisory tone - ringing tone. | -| TONE_TYPE_COMMON_PROPRIETARY_BEEP | 200 | Proprietary tone - beep tone. | -| TONE_TYPE_COMMON_PROPRIETARY_ACK | 201 | Proprietary tone - ACK. | -| TONE_TYPE_COMMON_PROPRIETARY_PROMPT | 203 | Proprietary tone - PROMPT. | -| TONE_TYPE_COMMON_PROPRIETARY_DOUBLE_BEEP | 204 | Proprietary tone - double beep tone. | +**Parameters** -## TonePlayer9+ +| Name | Type | Mandatory | Description | +| ---- | -------------------------------- | --------- | ------------------------ | +| mode | [InterruptMode](#interruptmode9) | Yes | Audio interruption mode. | -Provides APIs for playing and managing DTMF tones, such as dial tones, ringback tones, supervisory tones, and proprietary tones. +**Return value** -**System API**: This is a system API. +| Type | Description | +| ------------------- | ------------------------------------------------------------ | +| Promise<void> | Promise used to return the result. If the operation is successful, **undefined** is returned. Otherwise, **error** is returned. | -### load9+ +**Example** -load(type: ToneType, callback: AsyncCallback<void>): void +```js +let mode = 0; +audioRenderer.setInterruptMode(mode).then(data=>{ + console.info('setInterruptMode Success!'); +}).catch((err) => { + console.error(`setInterruptMode Fail: ${err}`); +}); -Loads the DTMF tone configuration. This API uses an asynchronous callback to return the result. +``` -**System capability**: SystemCapability.Multimedia.Audio.Tone +### setInterruptMode9+ + +setInterruptMode(mode: InterruptMode, callback: AsyncCallback\): void + +Sets the audio interruption mode for the application. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Multimedia.Audio.Interrupt **Parameters** -| Name | Type | Mandatory | Description | -| :------- | :--------------------- | :-------- | :---------------------------------- | -| type | [ToneType](#tonetype9) | Yes | Tone type. | -| callback | AsyncCallback | Yes | Callback used to return the result. | +| Name | Type | Mandatory | Description | +| -------- | -------------------------------- | --------- | ----------------------------------- | +| mode | [InterruptMode](#interruptmode9) | Yes | Audio interruption mode. | +| callback | AsyncCallback\ | Yes | Callback used to return the result. | **Example** ```js -tonePlayer.load(audio.ToneType.TONE_TYPE_DIAL_5, (err) => { - if (err) { - console.error(`callback call load failed error: ${err.message}`); - return; - } else { - console.info('callback call load success'); +let mode = 1; +audioRenderer.setInterruptMode(mode, (err, data)=>{ + if(err){ + console.error(`setInterruptMode Fail: ${err}`); } + console.info('setInterruptMode Success!'); }); ``` -### load9+ +### setVolume9+ -load(type: ToneType): Promise<void> +setVolume(volume: number): Promise<void> -Loads the DTMF tone configuration. This API uses a promise to return the result. +Sets the volume for the application. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Tone +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| :--- | :--------------------- | :-------- | ----------- | -| type | [ToneType](#tonetype9) | Yes | Tone type. | +| Name | Type | Mandatory | Description | +| ------ | ------ | --------- | ------------------------------------------------------------ | +| volume | number | Yes | Volume to set, which can be within the range from 0.0 to 1.0. | **Return value** -| Type | Description | -| :------------- | :--------------------------------- | -| Promise | Promise used to return the result. | +| Type | Description | +| ------------------- | ------------------------------------------------------------ | +| Promise<void> | Promise used to return the result. If the operation is successful, **undefined** is returned. Otherwise, **error** is returned. | **Example** ```js -tonePlayer.load(audio.ToneType.TONE_TYPE_DIAL_1).then(() => { - console.info('promise call load '); -}).catch(() => { - console.error('promise call load fail'); +audioRenderer.setVolume(0.5).then(data=>{ + console.info('setVolume Success!'); +}).catch((err) => { + console.error(`setVolume Fail: ${err}`); }); ``` -### start9+ +### setVolume9+ -start(callback: AsyncCallback<void>): void +setVolume(volume: number, callback: AsyncCallback\): void -Starts DTMF tone playing. This API uses an asynchronous callback to return the result. +Sets the volume for the application. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Tone +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| :------- | :------------------- | :-------- | :---------------------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result. | +| Name | Type | Mandatory | Description | +| -------- | -------------------- | --------- | ------------------------------------------------------------ | +| volume | number | Yes | Volume to set, which can be within the range from 0.0 to 1.0. | +| callback | AsyncCallback\ | Yes | Callback used to return the result. | **Example** ```js -tonePlayer.start((err) => { - if (err) { - console.error(`callback call start failed error: ${err.message}`); - return; - } else { - console.info('callback call start success'); +audioRenderer.setVolume(0.5, (err, data)=>{ + if(err){ + console.error(`setVolume Fail: ${err}`); } + console.info('setVolume Success!'); }); ``` -### start9+ +### on('audioInterrupt')9+ -start(): Promise<void> +on(type: 'audioInterrupt', callback: Callback\): void -Starts DTMF tone playing. This API uses a promise to return the result. +Subscribes to audio interruption events. This API uses a callback to get interrupt events. -**System capability**: SystemCapability.Multimedia.Audio.Tone +Same as [on('interrupt')](#oninterruptdeprecated), this API has obtained the focus before **start**, **pause**, or **stop** of **AudioRenderer** is called. Therefore, you do not need to request the focus. -**Return value** +**System capability**: SystemCapability.Multimedia.Audio.Interrupt -| Type | Description | -| :------------- | :--------------------------------- | -| Promise | Promise used to return the result. | +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | -------------------------------------------- | --------- | ------------------------------------------------------------ | +| type | string | Yes | Event type. The value **'audioInterrupt'** means the audio interruption event, which is triggered when audio playback is interrupted. | +| callback | Callback<[InterruptEvent](#interruptevent9)> | Yes | Callback used to return the audio interruption event. | + +**Error codes** + +For details about the error codes, see [Audio Error Codes](../errorcodes/errorcode-audio.md). + +| ID | Error Message | +| ------- | ------------------------------ | +| 6800101 | if input parameter value error | **Example** ```js -tonePlayer.start().then(() => { - console.info('promise call start'); -}).catch(() => { - console.error('promise call start fail'); -}); +let isPlay; +let started; +onAudioInterrupt(); + +async function onAudioInterrupt(){ + audioRenderer.on('audioInterrupt', async(interruptEvent) => { + if (interruptEvent.forceType == audio.InterruptForceType.INTERRUPT_FORCE) { + switch (interruptEvent.hintType) { + case audio.InterruptHint.INTERRUPT_HINT_PAUSE: + console.info('Force paused. Stop writing'); + isPlay = false; + break; + case audio.InterruptHint.INTERRUPT_HINT_STOP: + console.info('Force stopped. Stop writing'); + isPlay = false; + break; + } + } else if (interruptEvent.forceType == audio.InterruptForceType.INTERRUPT_SHARE) { + switch (interruptEvent.hintType) { + case audio.InterruptHint.INTERRUPT_HINT_RESUME: + console.info('Resume force paused renderer or ignore'); + await audioRenderer.start().then(async function () { + console.info('AudioInterruptMusic: renderInstant started :SUCCESS '); + started = true; + }).catch((err) => { + console.error(`AudioInterruptMusic: renderInstant start :ERROR : ${err}`); + started = false; + }); + if (started) { + isPlay = true; + console.info(`AudioInterruptMusic Renderer started : isPlay : ${isPlay}`); + } else { + console.error('AudioInterruptMusic Renderer start failed'); + } + break; + case audio.InterruptHint.INTERRUPT_HINT_PAUSE: + console.info('Choose to pause or ignore'); + if (isPlay == true) { + isPlay == false; + console.info('AudioInterruptMusic: Media PAUSE : TRUE'); + } else { + isPlay = true; + console.info('AudioInterruptMusic: Media PLAY : TRUE'); + } + break; + } + } + }); +} ``` -### stop9+ +### on('markReach')8+ -stop(callback: AsyncCallback<void>): void +on(type: "markReach", frame: number, callback: Callback<number>): void -Stops the tone that is being played. This API uses an asynchronous callback to return the result. +Subscribes to mark reached events. When the number of frames rendered reaches the value of the **frame** parameter, a callback is invoked. -**System capability**: SystemCapability.Multimedia.Audio.Tone +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| :------- | :------------------- | :-------- | :---------------------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result. | +| Name | Type | Mandatory | Description | +| :------- | :---------------- | :-------- | :----------------------------------------------------------- | +| type | string | Yes | Event type. The value is fixed at **'markReach'**. | +| frame | number | Yes | Number of frames to trigger the event. The value must be greater than **0**. | +| callback | Callback\ | Yes | Callback invoked when the event is triggered. | **Example** ```js -tonePlayer.stop((err) => { - if (err) { - console.error(`callback call stop error: ${err.message}`); - return; - } else { - console.error('callback call stop success '); +audioRenderer.on('markReach', 1000, (position) => { + if (position == 1000) { + console.info('ON Triggered successfully'); } }); ``` -### stop9+ -stop(): Promise<void> +### off('markReach') 8+ -Stops the tone that is being played. This API uses a promise to return the result. +off(type: 'markReach'): void -**System capability**: SystemCapability.Multimedia.Audio.Tone +Unsubscribes from mark reached events. -**Return value** +**System capability**: SystemCapability.Multimedia.Audio.Renderer -| Type | Description | -| :------------- | :--------------------------------- | -| Promise | Promise used to return the result. | +**Parameters** + +| Name | Type | Mandatory | Description | +| :--- | :----- | :-------- | :------------------------------------------------- | +| type | string | Yes | Event type. The value is fixed at **'markReach'**. | **Example** ```js -tonePlayer.stop().then(() => { - console.info('promise call stop finish'); -}).catch(() => { - console.error('promise call stop fail'); -}); +audioRenderer.off('markReach'); ``` -### release9+ +### on('periodReach') 8+ -release(callback: AsyncCallback<void>): void +on(type: "periodReach", frame: number, callback: Callback<number>): void -Releases the resources associated with the **TonePlayer** instance. This API uses an asynchronous callback to return the result. +Subscribes to period reached events. When the number of frames rendered reaches the value of the **frame** parameter, a callback is triggered and the specified value is returned. -**System capability**: SystemCapability.Multimedia.Audio.Tone +**System capability**: SystemCapability.Multimedia.Audio.Renderer **Parameters** -| Name | Type | Mandatory | Description | -| :------- | :------------------- | :-------- | :---------------------------------- | -| callback | AsyncCallback | Yes | Callback used to return the result. | +| Name | Type | Mandatory | Description | +| :------- | :---------------- | :-------- | :----------------------------------------------------------- | +| type | string | Yes | Event type. The value is fixed at **'periodReach'**. | +| frame | number | Yes | Number of frames to trigger the event. The value must be greater than **0**. | +| callback | Callback\ | Yes | Callback invoked when the event is triggered. | **Example** ```js -tonePlayer.release((err) => { - if (err) { - console.error(`callback call release failed error: ${err.message}`); - return; - } else { - console.info('callback call release success '); +audioRenderer.on('periodReach', 1000, (position) => { + if (position == 1000) { + console.info('ON Triggered successfully'); } }); ``` -### release9+ +### off('periodReach') 8+ -release(): Promise<void> +off(type: 'periodReach'): void -Releases the resources associated with the **TonePlayer** instance. This API uses a promise to return the result. +Unsubscribes from period reached events. -**System capability**: SystemCapability.Multimedia.Audio.Tone +**System capability**: SystemCapability.Multimedia.Audio.Renderer -**Return value** +**Parameters** -| Type | Description | -| :------------- | :--------------------------------- | -| Promise | Promise used to return the result. | +| Name | Type | Mandatory | Description | +| :--- | :----- | :-------- | :--------------------------------------------------- | +| type | string | Yes | Event type. The value is fixed at **'periodReach'**. | **Example** ```js -tonePlayer.release().then(() => { - console.info('promise call release'); -}).catch(() => { - console.error('promise call release fail'); -}); +audioRenderer.off('periodReach') ``` -## ActiveDeviceType(deprecated) - -Enumerates the active device types. - -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [CommunicationDeviceType](#communicationdevicetype9) instead. - -**System capability**: SystemCapability.Multimedia.Audio.Device - -| Name | Default Value | Description | -| ------------- | ------------- | ------------------------------------------------------------ | -| SPEAKER | 2 | Speaker. | -| BLUETOOTH_SCO | 7 | Bluetooth device using Synchronous Connection Oriented (SCO) links. | - -## InterruptActionType(deprecated) +### on('stateChange')8+ -Enumerates the returned event types for audio interruption events. +on(type: 'stateChange', callback: Callback): void -> **NOTE** -> This API is supported since API version 7 and deprecated since API version 9. +Subscribes to state change events. **System capability**: SystemCapability.Multimedia.Audio.Renderer -| Name | Default Value | Description | -| -------------- | ------------- | ------------------------- | -| TYPE_ACTIVATED | 0 | Focus gain event. | -| TYPE_INTERRUPT | 1 | Audio interruption event. | - -## AudioInterrupt(deprecated) +**Parameters** -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. +| Name | Type | Mandatory | Description | +| :------- | :------------------------------------ | :-------- | :----------------------------------------------------------- | +| type | string | Yes | Event type. The value **stateChange** means the state change event. | +| callback | Callback\<[AudioState](#audiostate8)> | Yes | Callback used to return the state change. | -Describes input parameters of audio interruption events. +**Example** -**System capability**: SystemCapability.Multimedia.Audio.Renderer +```js +audioRenderer.on('stateChange', (state) => { + if (state == 1) { + console.info('audio renderer state is: STATE_PREPARED'); + } + if (state == 2) { + console.info('audio renderer state is: STATE_RUNNING'); + } +}); -| Name | Type | Mandatory | Description | -| --------------- | --------------------------- | --------- | ------------------------------------------------------------ | -| streamUsage | [StreamUsage](#streamusage) | Yes | Audio stream usage. | -| contentType | [ContentType](#contenttype) | Yes | Audio content type. | -| pauseWhenDucked | boolean | Yes | Whether audio playback can be paused during audio interruption. The value **true** means that audio playback can be paused during audio interruption, and **false** means the opposite. | +``` -## InterruptAction(deprecated) +## AudioCapturer8+ -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. +Provides APIs for audio capture. Before calling any API in **AudioCapturer**, you must use [createAudioCapturer](#audiocreateaudiocapturer8) to create an **AudioCapturer** instance. -Describes the callback invoked for audio interruption or focus gain events. +### Attributes -**System capability**: SystemCapability.Multimedia.Audio.Renderer +**System capability**: SystemCapability.Multimedia.Audio.Capturer -| Name | Type | Mandatory | Description | -| ---------- | ------------------------------------------- | --------- | ------------------------------------------------------------ | -| actionType | [InterruptActionType](#interruptactiontype) | Yes | Returned event type. The value **TYPE_ACTIVATED** means the focus gain event, and **TYPE_INTERRUPT** means the audio interruption event. | -| type | [InterruptType](#interrupttype) | No | Type of the audio interruption event. | -| hint | [InterruptHint](#interrupthint) | No | Hint provided along with the audio interruption event. | -| activated | boolean | No | Whether the focus is gained or released. The value **true** means that the focus is gained or released, and **false** means that the focus fails to be gained or released. | +| Name | Type | Readable | Writable | Description | +| :----------------- | :------------------------- | :------- | :------- | :-------------------- | +| state8+ | [AudioState](#audiostate8) | Yes | No | Audio capturer state. | -### setVolume(deprecated) +**Example** -setVolume(volumeType: AudioVolumeType, volume: number, callback: AsyncCallback<void>): void +```js +let state = audioCapturer.state; -Sets the volume for a stream. This API uses an asynchronous callback to return the result. +``` -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [setVolume](#setvolume9) in **AudioVolumeGroupManager**. +### getCapturerInfo8+ -**Required permissions**: ohos.permission.ACCESS_NOTIFICATION_POLICY +getCapturerInfo(callback: AsyncCallback): void -This permission is required only for muting or unmuting the ringer when **volumeType** is set to **AudioVolumeType.RINGTONE**. +Obtains the capturer information of this **AudioCapturer** instance. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Volume +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Parameters** -| Name | Type | Mandatory | Description | -| ---------- | ----------------------------------- | --------- | ------------------------------------------------------------ | -| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | -| volume | number | Yes | Volume to set. The value range can be obtained by calling **getMinVolume** and **getMaxVolume**. | -| callback | AsyncCallback<void> | Yes | Callback used to return the result. | +| Name | Type | Mandatory | Description | +| :------- | :-------------------------------- | :-------- | :------------------------------------------------ | +| callback | AsyncCallback | Yes | Callback used to return the capturer information. | **Example** ```js -audioManager.setVolume(audio.AudioVolumeType.MEDIA, 10, (err) => { +audioCapturer.getCapturerInfo((err, capturerInfo) => { if (err) { - console.error(`Failed to set the volume. ${err}`); - return; + console.error('Failed to get capture info'); + } else { + console.info('Capturer getCapturerInfo:'); + console.info(`Capturer source: ${capturerInfo.source}`); + console.info(`Capturer flags: ${capturerInfo.capturerFlags}`); } - console.info('Callback invoked to indicate a successful volume setting.'); }); ``` -### setVolume(deprecated) - -setVolume(volumeType: AudioVolumeType, volume: number): Promise<void> - -Sets the volume for a stream. This API uses a promise to return the result. - -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [setVolume](#setvolume9) in **AudioVolumeGroupManager**. - -**Required permissions**: ohos.permission.ACCESS_NOTIFICATION_POLICY -This permission is required only for muting or unmuting the ringer when **volumeType** is set to **AudioVolumeType.RINGTONE**. +### getCapturerInfo8+ -**System capability**: SystemCapability.Multimedia.Audio.Volume +getCapturerInfo(): Promise -**Parameters** +Obtains the capturer information of this **AudioCapturer** instance. This API uses a promise to return the result. -| Name | Type | Mandatory | Description | -| ---------- | ----------------------------------- | --------- | ------------------------------------------------------------ | -| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | -| volume | number | Yes | Volume to set. The value range can be obtained by calling **getMinVolume** and **getMaxVolume**. | +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Return value** -| Type | Description | -| ------------------- | ---------------------------------- | -| Promise<void> | Promise used to return the result. | +| Type | Description | +| :------------------------------------------------ | :----------------------------------------------- | +| Promise<[AudioCapturerInfo](#audiocapturerinfo)\> | Promise used to return the capturer information. | **Example** ```js -audioManager.setVolume(audio.AudioVolumeType.MEDIA, 10).then(() => { - console.info('Promise returned to indicate a successful volume setting.'); +audioCapturer.getCapturerInfo().then((audioParamsGet) => { + if (audioParamsGet != undefined) { + console.info('AudioFrameworkRecLog: Capturer CapturerInfo:'); + console.info(`AudioFrameworkRecLog: Capturer SourceType: ${audioParamsGet.source}`); + console.info(`AudioFrameworkRecLog: Capturer capturerFlags: ${audioParamsGet.capturerFlags}`); + } else { + console.info(`AudioFrameworkRecLog: audioParamsGet is : ${audioParamsGet}`); + console.info('AudioFrameworkRecLog: audioParams getCapturerInfo are incorrect'); + } +}).catch((err) => { + console.error(`AudioFrameworkRecLog: CapturerInfo :ERROR: ${err}`); }); ``` -### getVolume(deprecated) - -getVolume(volumeType: AudioVolumeType, callback: AsyncCallback<number>): void +### getStreamInfo8+ -Obtains the volume of a stream. This API uses an asynchronous callback to return the result. +getStreamInfo(callback: AsyncCallback): void -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getVolume](#getvolume9) in **AudioVolumeGroupManager**. +Obtains the stream information of this **AudioCapturer** instance. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Volume +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Parameters** -| Name | Type | Mandatory | Description | -| ---------- | ----------------------------------- | --------- | ----------------------------------- | -| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | -| callback | AsyncCallback<number> | Yes | Callback used to return the volume. | +| Name | Type | Mandatory | Description | +| :------- | :--------------------------------------------------- | :-------- | :---------------------------------------------- | +| callback | AsyncCallback<[AudioStreamInfo](#audiostreaminfo8)\> | Yes | Callback used to return the stream information. | **Example** ```js -audioManager.getVolume(audio.AudioVolumeType.MEDIA, (err, value) => { +audioCapturer.getStreamInfo((err, streamInfo) => { if (err) { - console.error(`Failed to obtain the volume. ${err}`); - return; + console.error('Failed to get stream info'); + } else { + console.info('Capturer GetStreamInfo:'); + console.info(`Capturer sampling rate: ${streamInfo.samplingRate}`); + console.info(`Capturer channel: ${streamInfo.channels}`); + console.info(`Capturer format: ${streamInfo.sampleFormat}`); + console.info(`Capturer encoding type: ${streamInfo.encodingType}`); } - console.info('Callback invoked to indicate that the volume is obtained.'); }); ``` -### getVolume(deprecated) - -getVolume(volumeType: AudioVolumeType): Promise<number> - -Obtains the volume of a stream. This API uses a promise to return the result. - -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getVolume](#getvolume9) in **AudioVolumeGroupManager**. +### getStreamInfo8+ -**System capability**: SystemCapability.Multimedia.Audio.Volume +getStreamInfo(): Promise -**Parameters** +Obtains the stream information of this **AudioCapturer** instance. This API uses a promise to return the result. -| Name | Type | Mandatory | Description | -| ---------- | ----------------------------------- | --------- | ------------------ | -| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Return value** -| Type | Description | -| --------------------- | ---------------------------------- | -| Promise<number> | Promise used to return the volume. | +| Type | Description | +| :--------------------------------------------- | :--------------------------------------------- | +| Promise<[AudioStreamInfo](#audiostreaminfo8)\> | Promise used to return the stream information. | **Example** ```js -audioManager.getVolume(audio.AudioVolumeType.MEDIA).then((value) => { - console.info(`Promise returned to indicate that the volume is obtained ${value} .`); +audioCapturer.getStreamInfo().then((audioParamsGet) => { + console.info('getStreamInfo:'); + console.info(`sampleFormat: ${audioParamsGet.sampleFormat}`); + console.info(`samplingRate: ${audioParamsGet.samplingRate}`); + console.info(`channels: ${audioParamsGet.channels}`); + console.info(`encodingType: ${audioParamsGet.encodingType}`); +}).catch((err) => { + console.error(`getStreamInfo :ERROR: ${err}`); }); ``` -### getMinVolume(deprecated) - -getMinVolume(volumeType: AudioVolumeType, callback: AsyncCallback<number>): void +### getAudioStreamId9+ -Obtains the minimum volume allowed for a stream. This API uses an asynchronous callback to return the result. +getAudioStreamId(callback: AsyncCallback): void -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getMinVolume](#getminvolume9) in **AudioVolumeGroupManager**. +Obtains the stream ID of this **AudioCapturer** instance. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Volume +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Parameters** -| Name | Type | Mandatory | Description | -| ---------- | ----------------------------------- | --------- | ------------------------------------------- | -| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | -| callback | AsyncCallback<number> | Yes | Callback used to return the minimum volume. | +| Name | Type | Mandatory | Description | +| :------- | :--------------------- | :-------- | :------------------------------------- | +| callback | AsyncCallback | Yes | Callback used to return the stream ID. | **Example** ```js -audioManager.getMinVolume(audio.AudioVolumeType.MEDIA, (err, value) => { - if (err) { - console.error(`Failed to obtain the minimum volume. ${err}`); - return; - } - console.info(`Callback invoked to indicate that the minimum volume is obtained. ${value}`); +audioCapturer.getAudioStreamId((err, streamid) => { + console.info(`audioCapturer GetStreamId: ${streamid}`); }); -``` - -### getMinVolume(deprecated) - -getMinVolume(volumeType: AudioVolumeType): Promise<number> - -Obtains the minimum volume allowed for a stream. This API uses a promise to return the result. - -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getMinVolume](#getminvolume9) in **AudioVolumeGroupManager**. +``` -**System capability**: SystemCapability.Multimedia.Audio.Volume +### getAudioStreamId9+ -**Parameters** +getAudioStreamId(): Promise + +Obtains the stream ID of this **AudioCapturer** instance. This API uses a promise to return the result. -| Name | Type | Mandatory | Description | -| ---------- | ----------------------------------- | --------- | ------------------ | -| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Return value** -| Type | Description | -| --------------------- | ------------------------------------------ | -| Promise<number> | Promise used to return the minimum volume. | +| Type | Description | +| :--------------- | :------------------------------------ | +| Promise | Promise used to return the stream ID. | **Example** ```js -audioManager.getMinVolume(audio.AudioVolumeType.MEDIA).then((value) => { - console.info(`Promised returned to indicate that the minimum volume is obtained. ${value}`); +audioCapturer.getAudioStreamId().then((streamid) => { + console.info(`audioCapturer getAudioStreamId: ${streamid}`); +}).catch((err) => { + console.error(`ERROR: ${err}`); }); ``` -### getMaxVolume(deprecated) - -getMaxVolume(volumeType: AudioVolumeType, callback: AsyncCallback<number>): void +### start8+ -Obtains the maximum volume allowed for a stream. This API uses an asynchronous callback to return the result. +start(callback: AsyncCallback): void -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getMaxVolume](#getmaxvolume9) in **AudioVolumeGroupManager**. +Starts capturing. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Volume +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Parameters** -| Name | Type | Mandatory | Description | -| ---------- | ----------------------------------- | --------- | ------------------------------------------- | -| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | -| callback | AsyncCallback<number> | Yes | Callback used to return the maximum volume. | +| Name | Type | Mandatory | Description | +| :------- | :------------------- | :-------- | :---------------------------------- | +| callback | AsyncCallback | Yes | Callback used to return the result. | **Example** ```js -audioManager.getMaxVolume(audio.AudioVolumeType.MEDIA, (err, value) => { +audioCapturer.start((err) => { if (err) { - console.error(`Failed to obtain the maximum volume. ${err}`); - return; + console.error('Capturer start failed.'); + } else { + console.info('Capturer start success.'); } - console.info(`Callback invoked to indicate that the maximum volume is obtained. ${value}`); }); ``` -### getMaxVolume(deprecated) - -getMaxVolume(volumeType: AudioVolumeType): Promise<number> - -Obtains the maximum volume allowed for a stream. This API uses a promise to return the result. -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getMaxVolume](#getmaxvolume9) in **AudioVolumeGroupManager**. +### start8+ -**System capability**: SystemCapability.Multimedia.Audio.Volume +start(): Promise -**Parameters** +Starts capturing. This API uses a promise to return the result. -| Name | Type | Mandatory | Description | -| ---------- | ----------------------------------- | --------- | ------------------ | -| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Return value** -| Type | Description | -| --------------------- | ------------------------------------------ | -| Promise<number> | Promise used to return the maximum volume. | +| Type | Description | +| :------------- | :--------------------------------- | +| Promise | Promise used to return the result. | **Example** ```js -audioManager.getMaxVolume(audio.AudioVolumeType.MEDIA).then((data) => { - console.info('Promised returned to indicate that the maximum volume is obtained.'); +audioCapturer.start().then(() => { + console.info('AudioFrameworkRecLog: ---------START---------'); + console.info('AudioFrameworkRecLog: Capturer started: SUCCESS'); + console.info(`AudioFrameworkRecLog: AudioCapturer: STATE: ${audioCapturer.state}`); + console.info('AudioFrameworkRecLog: Capturer started: SUCCESS'); + if ((audioCapturer.state == audio.AudioState.STATE_RUNNING)) { + console.info('AudioFrameworkRecLog: AudioCapturer is in Running State'); + } +}).catch((err) => { + console.info(`AudioFrameworkRecLog: Capturer start :ERROR : ${err}`); }); ``` -### mute(deprecated) - -mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback<void>): void - -Mutes or unmutes a stream. This API uses an asynchronous callback to return the result. - -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [mute](#mute9) in **AudioVolumeGroupManager**. +### stop8+ -**Required permissions**: ohos.permission.ACCESS_NOTIFICATION_POLICY +stop(callback: AsyncCallback): void -This permission is required only for muting or unmuting the ringer when **volumeType** is set to **AudioVolumeType.RINGTONE**. +Stops capturing. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Volume +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Parameters** -| Name | Type | Mandatory | Description | -| ---------- | ----------------------------------- | --------- | ------------------------------------------------------------ | -| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | -| mute | boolean | Yes | Mute status to set. The value **true** means to mute the stream, and **false** means the opposite. | -| callback | AsyncCallback<void> | Yes | Callback used to return the result. | +| Name | Type | Mandatory | Description | +| :------- | :------------------- | :-------- | :---------------------------------- | +| callback | AsyncCallback | Yes | Callback used to return the result. | **Example** ```js -audioManager.mute(audio.AudioVolumeType.MEDIA, true, (err) => { +audioCapturer.stop((err) => { if (err) { - console.error(`Failed to mute the stream. ${err}`); - return; + console.error('Capturer stop failed'); + } else { + console.info('Capturer stopped.'); } - console.info('Callback invoked to indicate that the stream is muted.'); }); ``` -### mute(deprecated) - -mute(volumeType: AudioVolumeType, mute: boolean): Promise<void> - -Mutes or unmutes a stream. This API uses a promise to return the result. - -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [mute](#mute9) in **AudioVolumeGroupManager**. - -**Required permissions**: ohos.permission.ACCESS_NOTIFICATION_POLICY -This permission is required only for muting or unmuting the ringer when **volumeType** is set to **AudioVolumeType.RINGTONE**. +### stop8+ -**System capability**: SystemCapability.Multimedia.Audio.Volume +stop(): Promise -**Parameters** +Stops capturing. This API uses a promise to return the result. -| Name | Type | Mandatory | Description | -| ---------- | ----------------------------------- | --------- | ------------------------------------------------------------ | -| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | -| mute | boolean | Yes | Mute status to set. The value **true** means to mute the stream, and **false** means the opposite. | +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Return value** -| Type | Description | -| ------------------- | ---------------------------------- | -| Promise<void> | Promise used to return the result. | +| Type | Description | +| :------------- | :--------------------------------- | +| Promise | Promise used to return the result. | **Example** - ```js -audioManager.mute(audio.AudioVolumeType.MEDIA, true).then(() => { - console.info('Promise returned to indicate that the stream is muted.'); +audioCapturer.stop().then(() => { + console.info('AudioFrameworkRecLog: ---------STOP RECORD---------'); + console.info('AudioFrameworkRecLog: Capturer stopped: SUCCESS'); + if ((audioCapturer.state == audio.AudioState.STATE_STOPPED)){ + console.info('AudioFrameworkRecLog: State is Stopped:'); + } +}).catch((err) => { + console.info(`AudioFrameworkRecLog: Capturer stop: ERROR: ${err}`); }); ``` -### isMute(deprecated) - -isMute(volumeType: AudioVolumeType, callback: AsyncCallback<boolean>): void +### release8+ -Checks whether a stream is muted. This API uses an asynchronous callback to return the result. +release(callback: AsyncCallback): void -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [isMute](#ismute9) in **AudioVolumeGroupManager**. +Releases this **AudioCapturer** instance. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Volume +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Parameters** -| Name | Type | Mandatory | Description | -| ---------- | ----------------------------------- | --------- | ------------------------------------------------------------ | -| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | -| callback | AsyncCallback<boolean> | Yes | Callback used to return the mute status of the stream. The value **true** means that the stream is muted, and **false** means the opposite. | +| Name | Type | Mandatory | Description | +| :------- | :------------------- | :-------- | :---------------------------------- | +| callback | AsyncCallback | Yes | Callback used to return the result. | **Example** ```js -audioManager.isMute(audio.AudioVolumeType.MEDIA, (err, value) => { +audioCapturer.release((err) => { if (err) { - console.error(`Failed to obtain the mute status. ${err}`); - return; + console.error('capturer release failed'); + } else { + console.info('capturer released.'); } - console.info(`Callback invoked to indicate that the mute status of the stream is obtained. ${value}`); }); ``` -### isMute(deprecated) - -isMute(volumeType: AudioVolumeType): Promise<boolean> - -Checks whether a stream is muted. This API uses a promise to return the result. -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [isMute](#ismute9) in **AudioVolumeGroupManager**. +### release8+ -**System capability**: SystemCapability.Multimedia.Audio.Volume +release(): Promise -**Parameters** +Releases this **AudioCapturer** instance. This API uses a promise to return the result. -| Name | Type | Mandatory | Description | -| ---------- | ----------------------------------- | --------- | ------------------ | -| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Return value** -| Type | Description | -| ---------------------- | ------------------------------------------------------------ | -| Promise<boolean> | Promise used to return the mute status of the stream. The value **true** means that the stream is muted, and **false** means the opposite. | +| Type | Description | +| :------------- | :--------------------------------- | +| Promise | Promise used to return the result. | **Example** ```js -audioManager.isMute(audio.AudioVolumeType.MEDIA).then((value) => { - console.info(`Promise returned to indicate that the mute status of the stream is obtained ${value}.`); +let stateFlag; +audioCapturer.release().then(() => { + console.info('AudioFrameworkRecLog: ---------RELEASE RECORD---------'); + console.info('AudioFrameworkRecLog: Capturer release : SUCCESS'); + console.info(`AudioFrameworkRecLog: AudioCapturer : STATE : ${audioCapturer.state}`); + console.info(`AudioFrameworkRecLog: stateFlag : ${stateFlag}`); +}).catch((err) => { + console.info(`AudioFrameworkRecLog: Capturer stop: ERROR: ${err}`); }); ``` -### isActive(deprecated) - -isActive(volumeType: AudioVolumeType, callback: AsyncCallback<boolean>): void +### read8+ -Checks whether a stream is active. This API uses an asynchronous callback to return the result. +read(size: number, isBlockingRead: boolean, callback: AsyncCallback): void -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [isActive](#isactive9) in **AudioStreamManager**. +Reads the buffer. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Volume +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Parameters** -| Name | Type | Mandatory | Description | -| ---------- | ----------------------------------- | --------- | ------------------------------------------------------------ | -| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | -| callback | AsyncCallback<boolean> | Yes | Callback used to return the active status of the stream. The value **true** means that the stream is active, and **false** means the opposite. | +| Name | Type | Mandatory | Description | +| :------------- | :-------------------------- | :-------- | :----------------------------------- | +| size | number | Yes | Number of bytes to read. | +| isBlockingRead | boolean | Yes | Whether to block the read operation. | +| callback | AsyncCallback | Yes | Callback used to return the buffer. | **Example** ```js -audioManager.isActive(audio.AudioVolumeType.MEDIA, (err, value) => { - if (err) { - console.error(`Failed to obtain the active status of the stream. ${err}`); - return; +let bufferSize; +audioCapturer.getBufferSize().then((data) => { + console.info(`AudioFrameworkRecLog: getBufferSize: SUCCESS ${data}`); + bufferSize = data; + }).catch((err) => { + console.error(`AudioFrameworkRecLog: getBufferSize: ERROR: ${err}`); + }); +audioCapturer.read(bufferSize, true, async(err, buffer) => { + if (!err) { + console.info('Success in reading the buffer data'); } - console.info(`Callback invoked to indicate that the active status of the stream is obtained ${value}.`); }); ``` -### isActive(deprecated) - -isActive(volumeType: AudioVolumeType): Promise<boolean> +### read8+ -Checks whether a stream is active. This API uses a promise to return the result. +read(size: number, isBlockingRead: boolean): Promise -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [isActive](#isactive9) in **AudioStreamManager**. +Reads the buffer. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Volume +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Parameters** -| Name | Type | Mandatory | Description | -| ---------- | ----------------------------------- | --------- | ------------------ | -| volumeType | [AudioVolumeType](#audiovolumetype) | Yes | Audio stream type. | +| Name | Type | Mandatory | Description | +| :------------- | :------ | :-------- | :----------------------------------- | +| size | number | Yes | Number of bytes to read. | +| isBlockingRead | boolean | Yes | Whether to block the read operation. | **Return value** -| Type | Description | -| ---------------------- | ------------------------------------------------------------ | -| Promise<boolean> | Promise used to return the active status of the stream. The value **true** means that the stream is active, and **false** means the opposite. | +| Type | Description | +| :-------------------- | :----------------------------------------------------------- | +| Promise | Promise used to return the result. If the operation is successful, the buffer data read is returned; otherwise, an error code is returned. | **Example** ```js -audioManager.isActive(audio.AudioVolumeType.MEDIA).then((value) => { - console.info(`Promise returned to indicate that the active status of the stream is obtained ${value}.`); +let bufferSize; +audioCapturer.getBufferSize().then((data) => { + console.info(`AudioFrameworkRecLog: getBufferSize: SUCCESS ${data}`); + bufferSize = data; + }).catch((err) => { + console.info(`AudioFrameworkRecLog: getBufferSize: ERROR ${err}`); + }); +console.info(`Buffer size: ${bufferSize}`); +audioCapturer.read(bufferSize, true).then((buffer) => { + console.info('buffer read successfully'); +}).catch((err) => { + console.info(`ERROR : ${err}`); }); -``` - -### setRingerMode(deprecated) - -setRingerMode(mode: AudioRingMode, callback: AsyncCallback<void>): void - -Sets the ringer mode. This API uses an asynchronous callback to return the result. - -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [setRingerMode](#setringermode9) in **AudioVolumeGroupManager**. +``` -**Required permissions**: ohos.permission.ACCESS_NOTIFICATION_POLICY +### getAudioTime8+ -This permission is required only for muting or unmuting the ringer. +getAudioTime(callback: AsyncCallback): void -**System capability**: SystemCapability.Multimedia.Audio.Communication +Obtains the number of nanoseconds elapsed from the Unix epoch (January 1, 1970). This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ------------------------------- | --------- | ----------------------------------- | -| mode | [AudioRingMode](#audioringmode) | Yes | Ringer mode. | -| callback | AsyncCallback<void> | Yes | Callback used to return the result. | +| Name | Type | Mandatory | Description | +| :------- | :--------------------- | :-------- | :---------------------------------- | +| callback | AsyncCallback | Yes | Callback used to return the result. | **Example** ```js -audioManager.setRingerMode(audio.AudioRingMode.RINGER_MODE_NORMAL, (err) => { - if (err) { - console.error(`Failed to set the ringer mode.​ ${err}`); - return; - } - console.info('Callback invoked to indicate a successful setting of the ringer mode.'); +audioCapturer.getAudioTime((err, timestamp) => { + console.info(`Current timestamp: ${timestamp}`); }); ``` -### setRingerMode(deprecated) - -setRingerMode(mode: AudioRingMode): Promise<void> - -Sets the ringer mode. This API uses a promise to return the result. - -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [setRingerMode](#setringermode9) in **AudioVolumeGroupManager**. - -**Required permissions**: ohos.permission.ACCESS_NOTIFICATION_POLICY - -This permission is required only for muting or unmuting the ringer. +### getAudioTime8+ -**System capability**: SystemCapability.Multimedia.Audio.Communication +getAudioTime(): Promise -**Parameters** +Obtains the number of nanoseconds elapsed from the Unix epoch (January 1, 1970). This API uses a promise to return the result. -| Name | Type | Mandatory | Description | -| ---- | ------------------------------- | --------- | ------------ | -| mode | [AudioRingMode](#audioringmode) | Yes | Ringer mode. | +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Return value** -| Type | Description | -| ------------------- | ---------------------------------- | -| Promise<void> | Promise used to return the result. | +| Type | Description | +| :--------------- | :------------------------------------ | +| Promise | Promise used to return the timestamp. | **Example** ```js -audioManager.setRingerMode(audio.AudioRingMode.RINGER_MODE_NORMAL).then(() => { - console.info('Promise returned to indicate a successful setting of the ringer mode.'); +audioCapturer.getAudioTime().then((audioTime) => { + console.info(`AudioFrameworkRecLog: AudioCapturer getAudioTime : Success ${audioTime}`); +}).catch((err) => { + console.info(`AudioFrameworkRecLog: AudioCapturer Created : ERROR : ${err}`); }); ``` -### getRingerMode(deprecated) - -getRingerMode(callback: AsyncCallback<AudioRingMode>): void +### getBufferSize8+ -Obtains the ringer mode. This API uses an asynchronous callback to return the result. +getBufferSize(callback: AsyncCallback): void -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getRingerMode](#getringermode9) in **AudioVolumeGroupManager**. +Obtains a reasonable minimum buffer size in bytes for capturing. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Communication +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------------------------------------- | --------- | ---------------------------------------- | -| callback | AsyncCallback<[AudioRingMode](#audioringmode)> | Yes | Callback used to return the ringer mode. | +| Name | Type | Mandatory | Description | +| :------- | :--------------------- | :-------- | :--------------------------------------- | +| callback | AsyncCallback | Yes | Callback used to return the buffer size. | **Example** ```js -audioManager.getRingerMode((err, value) => { - if (err) { - console.error(`Failed to obtain the ringer mode.​ ${err}`); - return; +audioCapturer.getBufferSize((err, bufferSize) => { + if (!err) { + console.info(`BufferSize : ${bufferSize}`); + audioCapturer.read(bufferSize, true).then((buffer) => { + console.info(`Buffer read is ${buffer}`); + }).catch((err) => { + console.error(`AudioFrameworkRecLog: AudioCapturer Created : ERROR : ${err}`); + }); } - console.info(`Callback invoked to indicate that the ringer mode is obtained ${value}.`); }); ``` -### getRingerMode(deprecated) - -getRingerMode(): Promise<AudioRingMode> +### getBufferSize8+ -Obtains the ringer mode. This API uses a promise to return the result. +getBufferSize(): Promise -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getRingerMode](#getringermode9) in **AudioVolumeGroupManager**. +Obtains a reasonable minimum buffer size in bytes for capturing. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Audio.Communication +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Return value** -| Type | Description | -| ---------------------------------------------- | --------------------------------------- | -| Promise<[AudioRingMode](#audioringmode)> | Promise used to return the ringer mode. | +| Type | Description | +| :--------------- | :-------------------------------------- | +| Promise | Promise used to return the buffer size. | **Example** ```js -audioManager.getRingerMode().then((value) => { - console.info(`Promise returned to indicate that the ringer mode is obtained ${value}.`); +let bufferSize; +audioCapturer.getBufferSize().then((data) => { + console.info(`AudioFrameworkRecLog: getBufferSize :SUCCESS ${data}`); + bufferSize = data; +}).catch((err) => { + console.info(`AudioFrameworkRecLog: getBufferSize :ERROR : ${err}`); }); ``` -### getDevices(deprecated) - -getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback<AudioDeviceDescriptors>): void +### on('markReach')8+ -Obtains the audio devices with a specific flag. This API uses an asynchronous callback to return the result. +on(type: "markReach", frame: number, callback: Callback<number>): void -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getDevices](#getdevices9) in **AudioRoutingManager**. +Subscribes to mark reached events. When the number of frames captured reaches the value of the **frame** parameter, a callback is invoked. -**System capability**: SystemCapability.Multimedia.Audio.Device +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Parameters** -| Name | Type | Mandatory | Description | -| ---------- | ------------------------------------------------------------ | --------- | ---------------------------------------- | -| deviceFlag | [DeviceFlag](#deviceflag) | Yes | Audio device flag. | -| callback | AsyncCallback<[AudioDeviceDescriptors](#audiodevicedescriptors)> | Yes | Callback used to return the device list. | +| Name | Type | Mandatory | Description | +| :------- | :---------------- | :-------- | :----------------------------------------------------------- | +| type | string | Yes | Event type. The value is fixed at **'markReach'**. | +| frame | number | Yes | Number of frames to trigger the event. The value must be greater than **0**. | +| callback | Callback\ | Yes | Callback invoked when the event is triggered. | **Example** ```js -audioManager.getDevices(audio.DeviceFlag.OUTPUT_DEVICES_FLAG, (err, value) => { - if (err) { - console.error(`Failed to obtain the device list. ${err}`); - return; +audioCapturer.on('markReach', 1000, (position) => { + if (position == 1000) { + console.info('ON Triggered successfully'); } - console.info('Callback invoked to indicate that the device list is obtained.'); }); ``` -### getDevices(deprecated) - -getDevices(deviceFlag: DeviceFlag): Promise<AudioDeviceDescriptors> +### off('markReach')8+ -Obtains the audio devices with a specific flag. This API uses a promise to return the result. +off(type: 'markReach'): void -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [getDevices](#getdevices9) in **AudioRoutingManager**. +Unsubscribes from mark reached events. -**System capability**: SystemCapability.Multimedia.Audio.Device +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Parameters** -| Name | Type | Mandatory | Description | -| ---------- | ------------------------- | --------- | ------------------ | -| deviceFlag | [DeviceFlag](#deviceflag) | Yes | Audio device flag. | - -**Return value** - -| Type | Description | -| ------------------------------------------------------------ | --------------------------------------- | -| Promise<[AudioDeviceDescriptors](#audiodevicedescriptors)> | Promise used to return the device list. | +| Name | Type | Mandatory | Description | +| :--- | :----- | :-------- | :------------------------------------------------- | +| type | string | Yes | Event type. The value is fixed at **'markReach'**. | **Example** ```js -audioManager.getDevices(audio.DeviceFlag.OUTPUT_DEVICES_FLAG).then((data) => { - console.info('Promise returned to indicate that the device list is obtained.'); -}); +audioCapturer.off('markReach'); ``` -### setDeviceActive(deprecated) - -setDeviceActive(deviceType: ActiveDeviceType, active: boolean, callback: AsyncCallback<void>): void +### on('periodReach')8+ -Sets a device to the active state. This API uses an asynchronous callback to return the result. +on(type: "periodReach", frame: number, callback: Callback<number>): void -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [setCommunicationDevice](#setcommunicationdevice9) in **AudioRoutingManager**. +Subscribes to period reached events. When the number of frames captured reaches the value of the **frame** parameter, a callback is triggered and the specified value is returned. -**System capability**: SystemCapability.Multimedia.Audio.Device +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Parameters** -| Name | Type | Mandatory | Description | -| ---------- | ------------------------------------- | --------- | ------------------------------------------------------------ | -| deviceType | [ActiveDeviceType](#activedevicetype) | Yes | Audio device type. | -| active | boolean | Yes | Active state to set. The value **true** means to set the device to the active state, and **false** means the opposite. | -| callback | AsyncCallback<void> | Yes | Callback used to return the result. | +| Name | Type | Mandatory | Description | +| :------- | :---------------- | :-------- | :----------------------------------------------------------- | +| type | string | Yes | Event type. The value is fixed at **'periodReach'**. | +| frame | number | Yes | Number of frames to trigger the event. The value must be greater than **0**. | +| callback | Callback\ | Yes | Callback invoked when the event is triggered. | **Example** ```js -audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER, true, (err) => { - if (err) { - console.error(`Failed to set the active status of the device. ${err}`); - return; +audioCapturer.on('periodReach', 1000, (position) => { + if (position == 1000) { + console.info('ON Triggered successfully'); } - console.info('Callback invoked to indicate that the device is set to the active status.'); }); ``` -### setDeviceActive(deprecated) - -setDeviceActive(deviceType: ActiveDeviceType, active: boolean): Promise<void> +### off('periodReach')8+ -Sets a device to the active state. This API uses a promise to return the result. +off(type: 'periodReach'): void -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [setCommunicationDevice](#setcommunicationdevice9) in **AudioRoutingManager**. +Unsubscribes from period reached events. -**System capability**: SystemCapability.Multimedia.Audio.Device +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Parameters** -| Name | Type | Mandatory | Description | -| ---------- | ------------------------------------- | --------- | ------------------------------------------------------------ | -| deviceType | [ActiveDeviceType](#activedevicetype) | Yes | Audio device type. | -| active | boolean | Yes | Active state to set. The value **true** means to set the device to the active state, and **false** means the opposite. | - -**Return value** - -| Type | Description | -| ------------------- | ---------------------------------- | -| Promise<void> | Promise used to return the result. | +| Name | Type | Mandatory | Description | +| :--- | :----- | :-------- | :--------------------------------------------------- | +| type | string | Yes | Event type. The value is fixed at **'periodReach'**. | **Example** - ```js -audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER, true).then(() => { - console.info('Promise returned to indicate that the device is set to the active status.'); -}); +audioCapturer.off('periodReach') ``` -### isDeviceActive(deprecated) - -isDeviceActive(deviceType: ActiveDeviceType, callback: AsyncCallback<boolean>): void +### on('stateChange')8+ -Checks whether a device is active. This API uses an asynchronous callback to return the result. +on(type: 'stateChange', callback: Callback): void -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [isCommunicationDeviceActive](#iscommunicationdeviceactive9) in **AudioRoutingManager**. +Subscribes to state change events. -**System capability**: SystemCapability.Multimedia.Audio.Device +**System capability**: SystemCapability.Multimedia.Audio.Capturer **Parameters** -| Name | Type | Mandatory | Description | -| ---------- | ------------------------------------- | --------- | ------------------------------------------------------- | -| deviceType | [ActiveDeviceType](#activedevicetype) | Yes | Audio device type. | -| callback | AsyncCallback<boolean> | Yes | Callback used to return the active state of the device. | +| Name | Type | Mandatory | Description | +| :------- | :------------------------------------ | :-------- | :----------------------------------------------------------- | +| type | string | Yes | Event type. The value **stateChange** means the state change event. | +| callback | Callback\<[AudioState](#audiostate8)> | Yes | Callback used to return the state change. | **Example** ```js -audioManager.isDeviceActive(audio.ActiveDeviceType.SPEAKER, (err, value) => { - if (err) { - console.error(`Failed to obtain the active status of the device. ${err}`); - return; +audioCapturer.on('stateChange', (state) => { + if (state == 1) { + console.info('audio capturer state is: STATE_PREPARED'); + } + if (state == 2) { + console.info('audio capturer state is: STATE_RUNNING'); } - console.info('Callback invoked to indicate that the active status of the device is obtained.'); }); ``` -### isDeviceActive(deprecated) - -isDeviceActive(deviceType: ActiveDeviceType): Promise<boolean> - -Checks whether a device is active. This API uses a promise to return the result. - -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [isCommunicationDeviceActive](#iscommunicationdeviceactive9) in **AudioRoutingManager**. - -**System capability**: SystemCapability.Multimedia.Audio.Device - -**Parameters** +## ToneType9+ -| Name | Type | Mandatory | Description | -| ---------- | ------------------------------------- | --------- | ------------------ | -| deviceType | [ActiveDeviceType](#activedevicetype) | Yes | Audio device type. | +Enumerates the tone types of the player. -**Return value** +**System API**: This is a system API. -| Type | Description | -| ---------------------- | ------------------------------------------------------ | -| Promise<boolean> | Promise used to return the active state of the device. | +**System capability**: SystemCapability.Multimedia.Audio.Tone -**Example** +| Name | Value | Description | +| :----------------------------------------------- | :---- | :-------------------------------------------- | +| TONE_TYPE_DIAL_0 | 0 | DTMF tone of key 0. | +| TONE_TYPE_DIAL_1 | 1 | DTMF tone of key 1. | +| TONE_TYPE_DIAL_2 | 2 | DTMF tone of key 2. | +| TONE_TYPE_DIAL_3 | 3 | DTMF tone of key 3. | +| TONE_TYPE_DIAL_4 | 4 | DTMF tone of key 4. | +| TONE_TYPE_DIAL_5 | 5 | DTMF tone of key 5. | +| TONE_TYPE_DIAL_6 | 6 | DTMF tone of key 6. | +| TONE_TYPE_DIAL_7 | 7 | DTMF tone of key 7. | +| TONE_TYPE_DIAL_8 | 8 | DTMF tone of key 8. | +| TONE_TYPE_DIAL_9 | 9 | DTMF tone of key 9. | +| TONE_TYPE_DIAL_S | 10 | DTMF tone of the star key (*). | +| TONE_TYPE_DIAL_P | 11 | DTMF tone of the pound key (#). | +| TONE_TYPE_DIAL_A | 12 | DTMF tone of key A. | +| TONE_TYPE_DIAL_B | 13 | DTMF tone of key B. | +| TONE_TYPE_DIAL_C | 14 | DTMF tone of key C. | +| TONE_TYPE_DIAL_D | 15 | DTMF tone of key D. | +| TONE_TYPE_COMMON_SUPERVISORY_DIAL | 100 | Supervisory tone - dial tone. | +| TONE_TYPE_COMMON_SUPERVISORY_BUSY | 101 | Supervisory tone - busy. | +| TONE_TYPE_COMMON_SUPERVISORY_CONGESTION | 102 | Supervisory tone - congestion. | +| TONE_TYPE_COMMON_SUPERVISORY_RADIO_ACK | 103 | Supervisory tone - radio path acknowledgment. | +| TONE_TYPE_COMMON_SUPERVISORY_RADIO_NOT_AVAILABLE | 104 | Supervisory tone - radio path not available. | +| TONE_TYPE_COMMON_SUPERVISORY_CALL_WAITING | 106 | Supervisory tone - call waiting tone. | +| TONE_TYPE_COMMON_SUPERVISORY_RINGTONE | 107 | Supervisory tone - ringing tone. | +| TONE_TYPE_COMMON_PROPRIETARY_BEEP | 200 | Proprietary tone - beep tone. | +| TONE_TYPE_COMMON_PROPRIETARY_ACK | 201 | Proprietary tone - ACK. | +| TONE_TYPE_COMMON_PROPRIETARY_PROMPT | 203 | Proprietary tone - PROMPT. | +| TONE_TYPE_COMMON_PROPRIETARY_DOUBLE_BEEP | 204 | Proprietary tone - double beep tone. | -```js -audioManager.isDeviceActive(audio.ActiveDeviceType.SPEAKER).then((value) => { - console.info(`Promise returned to indicate that the active status of the device is obtained ${value}.`); -}); +## TonePlayer9+ -``` +Provides APIs for playing and managing DTMF tones, such as dial tones, ringback tones, supervisory tones, and proprietary tones. -### setMicrophoneMute(deprecated) +**System API**: This is a system API. -setMicrophoneMute(mute: boolean, callback: AsyncCallback<void>): void +### load9+ -Mutes or unmutes the microphone. This API uses an asynchronous callback to return the result. +load(type: ToneType, callback: AsyncCallback<void>): void -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [setMicrophoneMute](#setmicrophonemute9) in **AudioVolumeGroupManager**. +Loads the DTMF tone configuration. This API uses an asynchronous callback to return the result. -**Required permissions**: ohos.permission.MICROPHONE +**System API**: This is a system API. -**System capability**: SystemCapability.Multimedia.Audio.Device +**System capability**: SystemCapability.Multimedia.Audio.Tone **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ------------------------- | --------- | ------------------------------------------------------------ | -| mute | boolean | Yes | Mute status to set. The value **true** means to mute the microphone, and **false** means the opposite. | -| callback | AsyncCallback<void> | Yes | Callback used to return the result. | +| Name | Type | Mandatory | Description | +| :------- | :--------------------- | :-------- | :---------------------------------- | +| type | [ToneType](#tonetype9) | Yes | Tone type. | +| callback | AsyncCallback | Yes | Callback used to return the result. | **Example** ```js -audioManager.setMicrophoneMute(true, (err) => { +tonePlayer.load(audio.ToneType.TONE_TYPE_DIAL_5, (err) => { if (err) { - console.error(`Failed to mute the microphone. ${err}`); + console.error(`callback call load failed error: ${err.message}`); return; + } else { + console.info('callback call load success'); } - console.info('Callback invoked to indicate that the microphone is muted.'); }); ``` -### setMicrophoneMute(deprecated) - -setMicrophoneMute(mute: boolean): Promise<void> +### load9+ -Mutes or unmutes the microphone. This API uses a promise to return the result. +load(type: ToneType): Promise<void> -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [setMicrophoneMute](#setmicrophonemute9) in **AudioVolumeGroupManager**. +Loads the DTMF tone configuration. This API uses a promise to return the result. -**Required permissions**: ohos.permission.MICROPHONE +**System API**: This is a system API. -**System capability**: SystemCapability.Multimedia.Audio.Device +**System capability**: SystemCapability.Multimedia.Audio.Tone **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ------- | --------- | ------------------------------------------------------------ | -| mute | boolean | Yes | Mute status to set. The value **true** means to mute the microphone, and **false** means the opposite. | +| Name | Type | Mandatory | Description | +| :--- | :--------------------- | :-------- | ----------- | +| type | [ToneType](#tonetype9) | Yes | Tone type. | **Return value** -| Type | Description | -| ------------------- | ---------------------------------- | -| Promise<void> | Promise used to return the result. | +| Type | Description | +| :------------- | :--------------------------------- | +| Promise | Promise used to return the result. | **Example** ```js -audioManager.setMicrophoneMute(true).then(() => { - console.info('Promise returned to indicate that the microphone is muted.'); +tonePlayer.load(audio.ToneType.TONE_TYPE_DIAL_1).then(() => { + console.info('promise call load '); +}).catch(() => { + console.error('promise call load fail'); }); ``` -### isMicrophoneMute(deprecated) - -isMicrophoneMute(callback: AsyncCallback<boolean>): void +### start9+ -Checks whether the microphone is muted. This API uses an asynchronous callback to return the result. +start(callback: AsyncCallback<void>): void -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [isMicrophoneMute](#ismicrophonemute9) in **AudioVolumeGroupManager**. +Starts DTMF tone playing. This API uses an asynchronous callback to return the result. -**Required permissions**: ohos.permission.MICROPHONE +**System API**: This is a system API. -**System capability**: SystemCapability.Multimedia.Audio.Device +**System capability**: SystemCapability.Multimedia.Audio.Tone **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------------- | --------- | ------------------------------------------------------------ | -| callback | AsyncCallback<boolean> | Yes | Callback used to return the mute status of the microphone. The value **true** means that the microphone is muted, and **false** means the opposite. | +| Name | Type | Mandatory | Description | +| :------- | :------------------- | :-------- | :---------------------------------- | +| callback | AsyncCallback | Yes | Callback used to return the result. | **Example** ```js -audioManager.isMicrophoneMute((err, value) => { +tonePlayer.start((err) => { if (err) { - console.error(`Failed to obtain the mute status of the microphone. ${err}`); + console.error(`callback call start failed error: ${err.message}`); return; + } else { + console.info('callback call start success'); } - console.info(`Callback invoked to indicate that the mute status of the microphone is obtained ${value}.`); }); ``` -### isMicrophoneMute(deprecated) - -isMicrophoneMute(): Promise<boolean> +### start9+ -Checks whether the microphone is muted. This API uses a promise to return the result. +start(): Promise<void> -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [isMicrophoneMute](#ismicrophonemute9) in **AudioVolumeGroupManager**. +Starts DTMF tone playing. This API uses a promise to return the result. -**Required permissions**: ohos.permission.MICROPHONE +**System API**: This is a system API. -**System capability**: SystemCapability.Multimedia.Audio.Device +**System capability**: SystemCapability.Multimedia.Audio.Tone **Return value** -| Type | Description | -| ---------------------- | ------------------------------------------------------------ | -| Promise<boolean> | Promise used to return the mute status of the microphone. The value **true** means that the microphone is muted, and **false** means the opposite. | +| Type | Description | +| :------------- | :--------------------------------- | +| Promise | Promise used to return the result. | **Example** ```js -audioManager.isMicrophoneMute().then((value) => { - console.info(`Promise returned to indicate that the mute status of the microphone is obtained ${value}.`); +tonePlayer.start().then(() => { + console.info('promise call start'); +}).catch(() => { + console.error('promise call start fail'); }); ``` -### on('volumeChange')(deprecated) - -on(type: 'volumeChange', callback: Callback\): void +### stop9+ -> **NOTE** -> -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [on](#on9) in **AudioVolumeManager**. +stop(callback: AsyncCallback<void>): void -Subscribes to system volume change events. +Stops the tone that is being played. This API uses an asynchronous callback to return the result. **System API**: This is a system API. -Currently, when multiple **AudioManager** instances are used in a single process, only the subscription of the last instance takes effect, and the subscription of other instances is overwritten (even if the last instance does not initiate a subscription). Therefore, you are advised to use a single **AudioManager** instance. - -**System capability**: SystemCapability.Multimedia.Audio.Volume +**System capability**: SystemCapability.Multimedia.Audio.Tone **Parameters** -| Name | Type | Mandatory | Description | -| -------- | -------------------------------------- | --------- | ------------------------------------------------------------ | -| type | string | Yes | Event type. The value **'volumeChange'** means the system volume change event, which is triggered when a system volume change is detected. | -| callback | Callback<[VolumeEvent](#volumeevent8)> | Yes | Callback used to return the result. | +| Name | Type | Mandatory | Description | +| :------- | :------------------- | :-------- | :---------------------------------- | +| callback | AsyncCallback | Yes | Callback used to return the result. | **Example** ```js -audioManager.on('volumeChange', (volumeEvent) => { - console.info(`VolumeType of stream: ${volumeEvent.volumeType} `); - console.info(`Volume level: ${volumeEvent.volume} `); - console.info(`Whether to updateUI: ${volumeEvent.updateUi} `); +tonePlayer.stop((err) => { + if (err) { + console.error(`callback call stop error: ${err.message}`); + return; + } else { + console.error('callback call stop success '); + } }); ``` -### on('ringerModeChange')(deprecated) - -on(type: 'ringerModeChange', callback: Callback\): void +### stop9+ -Subscribes to ringer mode change events. +stop(): Promise<void> -> **NOTE** -> -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [on('ringerModeChange')](#onringermodechange9) in **AudioVolumeGroupManager**. +Stops the tone that is being played. This API uses a promise to return the result. **System API**: This is a system API. -**System capability**: SystemCapability.Multimedia.Audio.Communication +**System capability**: SystemCapability.Multimedia.Audio.Tone -**Parameters** +**Return value** -| Name | Type | Mandatory | Description | -| -------- | ----------------------------------------- | --------- | ------------------------------------------------------------ | -| type | string | Yes | Event type. The value **'ringerModeChange'** means the ringer mode change event, which is triggered when a ringer mode change is detected. | -| callback | Callback<[AudioRingMode](#audioringmode)> | Yes | Callback used to return the result. | +| Type | Description | +| :------------- | :--------------------------------- | +| Promise | Promise used to return the result. | **Example** ```js -audioManager.on('ringerModeChange', (ringerMode) => { - console.info(`Updated ringermode: ${ringerMode}`); +tonePlayer.stop().then(() => { + console.info('promise call stop finish'); +}).catch(() => { + console.error('promise call stop fail'); }); ``` -### on('deviceChange')(deprecated) +### release9+ -on(type: 'deviceChange', callback: Callback): void +release(callback: AsyncCallback<void>): void -Subscribes to device change events. When a device is connected or disconnected, registered clients will receive the callback. +Releases the resources associated with the **TonePlayer** instance. This API uses an asynchronous callback to return the result. -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [on](#on9) in **AudioRoutingManager**. +**System API**: This is a system API. -**System capability**: SystemCapability.Multimedia.Audio.Device +**System capability**: SystemCapability.Multimedia.Audio.Tone **Parameters** -| Name | Type | Mandatory | Description | -| :------- | :--------------------------------------------------- | :-------- | :----------------------------------------------------------- | -| type | string | Yes | Event type. The value **'deviceChange'** means the device change event, which is triggered when a device connection status change is detected. | -| callback | Callback<[DeviceChangeAction](#devicechangeaction)\> | Yes | Callback used to return the device update details. | +| Name | Type | Mandatory | Description | +| :------- | :------------------- | :-------- | :---------------------------------- | +| callback | AsyncCallback | Yes | Callback used to return the result. | **Example** ```js -audioManager.on('deviceChange', (deviceChanged) => { - console.info(`device change type : ${deviceChanged.type} `); - console.info(`device descriptor size : ${deviceChanged.deviceDescriptors.length} `); - console.info(`device change descriptor : ${deviceChanged.deviceDescriptors[0].deviceRole} `); - console.info(`device change descriptor : ${deviceChanged.deviceDescriptors[0].deviceType} `); +tonePlayer.release((err) => { + if (err) { + console.error(`callback call release failed error: ${err.message}`); + return; + } else { + console.info('callback call release success '); + } }); ``` -### off('deviceChange')(deprecated) +### release9+ -off(type: 'deviceChange', callback?: Callback): void +release(): Promise<void> -Unsubscribes from device change events. +Releases the resources associated with the **TonePlayer** instance. This API uses a promise to return the result. -> **NOTE** -> -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [off](#off9) in **AudioRoutingManager**. +**System API**: This is a system API. -**System capability**: SystemCapability.Multimedia.Audio.Device +**System capability**: SystemCapability.Multimedia.Audio.Tone -**Parameters** +**Return value** -| Name | Type | Mandatory | Description | -| -------- | --------------------------------------------------- | --------- | ------------------------------------------------------------ | -| type | string | Yes | Event type. The value **'deviceChange'** means the device change event, which is triggered when a device connection status change is detected. | -| callback | Callback<[DeviceChangeAction](#devicechangeaction)> | No | Callback used to return the device update details. | +| Type | Description | +| :------------- | :--------------------------------- | +| Promise | Promise used to return the result. | **Example** ```js -audioManager.off('deviceChange', (deviceChanged) => { - console.info('Should be no callback.'); +tonePlayer.release().then(() => { + console.info('promise call release'); +}).catch(() => { + console.error('promise call release fail'); }); + ``` -### on('interrupt')(deprecated) +## ActiveDeviceType(deprecated) -on(type: 'interrupt', interrupt: AudioInterrupt, callback: Callback\): void +Enumerates the active device types. -Subscribes to audio interruption events. When the application's audio is interrupted by another playback event, the application will receive the callback. +> **NOTE** +> +> This API is deprecated since API version 9. You are advised to use [CommunicationDeviceType](#communicationdevicetype9) instead. -Same as [on('audioInterrupt')](#onaudiointerrupt9), this API is used to listen for focus changes. However, this API is used in scenarios without audio streams (no **AudioRenderer** instance is created), such as frequency modulation (FM) and voice wakeup. +**System capability**: SystemCapability.Multimedia.Audio.Device + +| Name | Value | Description | +| ------------- | ----- | ------------------------------------------------------------ | +| SPEAKER | 2 | Speaker. | +| BLUETOOTH_SCO | 7 | Bluetooth device using Synchronous Connection Oriented (SCO) links. | + +## InterruptActionType(deprecated) + +Enumerates the returned event types for audio interruption events. > **NOTE** > @@ -6077,40 +6141,30 @@ Same as [on('audioInterrupt')](#onaudiointerrupt9), this API is used to listen f **System capability**: SystemCapability.Multimedia.Audio.Renderer -**Parameters** +| Name | Value | Description | +| -------------- | ----- | ------------------------- | +| TYPE_ACTIVATED | 0 | Focus gain event. | +| TYPE_INTERRUPT | 1 | Audio interruption event. | -| Name | Type | Mandatory | Description | -| --------- | --------------------------------------------- | --------- | ------------------------------------------------------------ | -| type | string | Yes | Event type. The value **'interrupt'** means the audio interruption event, which is triggered when the audio playback of the current application is interrupted by another application. | -| interrupt | AudioInterrupt | Yes | Audio interruption event type. | -| callback | Callback<[InterruptAction](#interruptaction)> | Yes | Callback invoked for the audio interruption event. | +## AudioInterrupt(deprecated) -**Example** +Describes input parameters of audio interruption events. -```js -let interAudioInterrupt = { - streamUsage:2, - contentType:0, - pauseWhenDucked:true -}; -audioManager.on('interrupt', interAudioInterrupt, (InterruptAction) => { - if (InterruptAction.actionType === 0) { - console.info('An event to gain the audio focus starts.'); - console.info(`Focus gain event: ${InterruptAction} `); - } - if (InterruptAction.actionType === 1) { - console.info('An audio interruption event starts.'); - console.info(`Audio interruption event: ${InterruptAction} `); - } -}); +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. -``` +**System capability**: SystemCapability.Multimedia.Audio.Renderer -### off('interrupt')(deprecated) +| Name | Type | Mandatory | Description | +| --------------- | --------------------------- | --------- | ------------------------------------------------------------ | +| streamUsage | [StreamUsage](#streamusage) | Yes | Audio stream usage. | +| contentType | [ContentType](#contenttype) | Yes | Audio content type. | +| pauseWhenDucked | boolean | Yes | Whether audio playback can be paused during audio interruption. The value **true** means that audio playback can be paused during audio interruption, and **false** means the opposite. | -off(type: 'interrupt', interrupt: AudioInterrupt, callback?: Callback\): void +## InterruptAction(deprecated) -Unsubscribes from audio interruption events. +Describes the callback invoked for audio interruption or focus gain events. > **NOTE** > @@ -6118,26 +6172,9 @@ Unsubscribes from audio interruption events. **System capability**: SystemCapability.Multimedia.Audio.Renderer -**Parameters** - -| Name | Type | Mandatory | Description | -| --------- | --------------------------------------------- | --------- | ------------------------------------------------------------ | -| type | string | Yes | Event type. The value **'interrupt'** means the audio interruption event, which is triggered when the audio playback of the current application is interrupted by another application. | -| interrupt | AudioInterrupt | Yes | Audio interruption event type. | -| callback | Callback<[InterruptAction](#interruptaction)> | No | Callback invoked for the audio interruption event. | - -**Example** - -```js -let interAudioInterrupt = { - streamUsage:2, - contentType:0, - pauseWhenDucked:true -}; -audioManager.off('interrupt', interAudioInterrupt, (InterruptAction) => { - if (InterruptAction.actionType === 0) { - console.info('An event to release the audio focus starts.'); - console.info(`Focus release event: ${InterruptAction} `); - } -}); -``` \ No newline at end of file +| Name | Type | Mandatory | Description | +| ---------- | ----------------------------------------------------- | --------- | ------------------------------------------------------------ | +| actionType | [InterruptActionType](#interruptactiontypedeprecated) | Yes | Returned event type. The value **TYPE_ACTIVATED** means the focus gain event, and **TYPE_INTERRUPT** means the audio interruption event. | +| type | [InterruptType](#interrupttype) | No | Type of the audio interruption event. | +| hint | [InterruptHint](#interrupthint) | No | Hint provided along with the audio interruption event. | +| activated | boolean | No | Whether the focus is gained or released. The value **true** means that the focus is gained or released, and **false** means that the focus fails to be gained or released. | \ No newline at end of file diff --git a/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md b/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md index c03f26ef70644a43ec969a5288843838b266f883..49032dcbd7b58a404bd779635fc109a5f2336c38 100644 --- a/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md +++ b/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md @@ -1,4 +1,4 @@ -# Background Task Management +# @ohos.backgroundTaskManager (Background Task Management) The **BackgroundTaskManager** module provides APIs to manage background tasks. @@ -161,7 +161,7 @@ Requests a continuous task from the system. This API uses an asynchronous callba | Name | Type | Mandatory | Description | | --------- | ---------------------------------- | ---- | ---------------------------------------- | -| context | Context | Yes | Application context.
For the application context of the FA model, see [Context](js-apis-Context.md).
For the application context of the stage model, see [Context](js-apis-ability-context.md).| +| context | Context | Yes | Application context.
For details about the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For details about the application context of the stage model, see [Context](js-apis-ability-context.md).| | bgMode | [BackgroundMode](#backgroundmode8) | Yes | Background mode requested. | | wantAgent | [WantAgent](js-apis-wantAgent.md) | Yes | Notification parameter, which is used to specify the target page that is redirected to when a continuous task notification is clicked. | | callback | AsyncCallback<void> | Yes | Callback used to return the result. | @@ -253,7 +253,7 @@ Requests a continuous task from the system. This API uses a promise to return th | Name | Type | Mandatory | Description | | --------- | ---------------------------------- | ---- | ---------------------------------------- | -| context | Context | Yes | Application context.
For the application context of the FA model, see [Context](js-apis-Context.md).
For the application context of the stage model, see [Context](js-apis-ability-context.md).| +| context | Context | Yes | Application context.
For details about the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For details about the application context of the stage model, see [Context](js-apis-ability-context.md).| | bgMode | [BackgroundMode](#backgroundmode8) | Yes | Background mode requested. | | wantAgent | [WantAgent](js-apis-wantAgent.md) | Yes | Notification parameter, which is used to specify the target page that is redirected to when a continuous task notification is clicked. | @@ -339,7 +339,7 @@ Requests to cancel a continuous task. This API uses an asynchronous callback to | Name | Type | Mandatory | Description | | -------- | ------------------------- | ---- | ---------------------------------------- | -| context | Context | Yes | Application context.
For the application context of the FA model, see [Context](js-apis-Context.md).
For the application context of the stage model, see [Context](js-apis-ability-context.md).| +| context | Context | Yes | Application context.
For details about the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For details about the application context of the stage model, see [Context](js-apis-ability-context.md).| | callback | AsyncCallback<void> | Yes | Callback used to return the result. | **Example** @@ -395,7 +395,7 @@ Requests to cancel a continuous task. This API uses a promise to return the resu | Name | Type | Mandatory | Description | | ------- | ------- | ---- | ---------------------------------------- | -| context | Context | Yes | Application context.
For the application context of the FA model, see [Context](js-apis-Context.md).
For the application context of the stage model, see [Context](js-apis-ability-context.md).| +| context | Context | Yes | Application context.
For details about the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For details about the application context of the stage model, see [Context](js-apis-ability-context.md).| **Return value** @@ -452,14 +452,14 @@ Provides the information about the suspension delay. **System capability**: SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask -| Name | Description | -| ----------------------- | --------------------- | -| DATA_TRANSFER | Data transfer. | -| AUDIO_PLAYBACK | Audio playback. | -| AUDIO_RECORDING | Audio recording. | -| LOCATION | Positioning and navigation. | -| BLUETOOTH_INTERACTION | Bluetooth-related task. | -| MULTI_DEVICE_CONNECTION | Multi-device connection. | -| WIFI_INTERACTION | WLAN-related (system API).| -| VOIP | Audio and video calls (system API). | -| TASK_KEEPING | Computing task (effective only for specific devices). | +| Name | Value | Description | +| ----------------------- | ---- | --------------------- | +| DATA_TRANSFER | 1 | Data transfer. | +| AUDIO_PLAYBACK | 2 | Audio playback. | +| AUDIO_RECORDING | 3 | Audio recording. | +| LOCATION | 4 | Positioning and navigation. | +| BLUETOOTH_INTERACTION | 5 | Bluetooth-related task. | +| MULTI_DEVICE_CONNECTION | 6 | Multi-device connection. | +| WIFI_INTERACTION | 7 | WLAN-related.
This is a system API.| +| VOIP | 8 | Audio and video calls.
This is a system API. | +| TASK_KEEPING | 9 | Computing task (effective only for specific devices). | diff --git a/en/application-dev/reference/apis/js-apis-battery-info.md b/en/application-dev/reference/apis/js-apis-battery-info.md index 2d7e9fab8a62e7d68dae92e66359a2704414bc01..197e25cfce48edc49798b438745adc13c35ab9d5 100644 --- a/en/application-dev/reference/apis/js-apis-battery-info.md +++ b/en/application-dev/reference/apis/js-apis-battery-info.md @@ -1,11 +1,10 @@ # Battery Info ->**NOTE** -> ->The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version. - The Battery Info module provides APIs for querying the charger type, battery health status, and battery charging status. +> **NOTE** +> The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version. + ## Modules to Import @@ -13,67 +12,100 @@ The Battery Info module provides APIs for querying the charger type, battery hea import batteryInfo from '@ohos.batteryInfo'; ``` -## System Capabilities - -SystemCapability.PowerManager.BatteryManager - ## Attributes Describes battery information. -| Name | Type | Readable | Writable | Description | -| ----------------------------- | ----------------------------------------- | -------- | -------- | ------------------------------------------------------------ | -| batterySOC | number | Yes | No | Battery state of charge (SoC) of the current device, in unit of percentage. | -| chargingStatus | [BatteryChargeState](#batterychargestate) | Yes | No | Battery charging state of the current device. | -| healthStatus | [BatteryHealthState](#batteryhealthstate) | Yes | No | Battery health state of the current device. | -| pluggedType | [BatteryPluggedType](#batterypluggedtype) | Yes | No | Charger type of the current device. | -| voltage | number | Yes | No | Battery voltage of the current device, in unit of microvolt. | -| technology | string | Yes | No | Battery technology of the current device. | -| batteryTemperature | number | Yes | No | Battery temperature of the current device, in unit of 0.1°C. | -| isBatteryPresent7+ | boolean | Yes | No | Whether the battery is supported or present. | - -**Example** - -```js -import batteryInfo from '@ohos.batteryInfo'; -var batterySoc = batteryInfo.batterySOC; -``` - +**System capability**: SystemCapability.PowerManager.BatteryManager.Core + +| Name | Type | Readable| Writable| Description | +| --------------- | ------------------- | ---- | ---- | ---------------------| +| batterySOC | number | Yes | No | Battery state of charge (SoC) of the device, in unit of percentage. | +| chargingStatus | [BatteryChargeState](#batterychargestate) | Yes | No | Battery charging state of the device. | +| healthStatus | [BatteryHealthState](#batteryhealthstate) | Yes | No | Battery health state of the device. | +| pluggedType | [BatteryPluggedType](#batterypluggedtype) | Yes | No | Charger type of the device. | +| voltage | number | Yes | No | Battery voltage of the device, in unit of microvolt. | +| technology | string | Yes | No | Battery technology of the device. | +| batteryTemperature | number | Yes | No | Battery temperature of the device, in unit of 0.1°C. | +| isBatteryPresent7+ | boolean | Yes | No | Whether the battery is supported or present. | +| batteryCapacityLevel9+ | [BatteryCapacityLevel](#batterycapacitylevel9) | Yes | No | Battery level of the device. | +| estimatedRemainingChargeTime9+ | number | Yes | No | Estimated time for fully charging the current device, in unit of milliseconds. | +| totalEnergy9+ | number | Yes | No | Total battery capacity of the device, in unit of mAh. This is a system API. | +| nowCurrent9+ | number | Yes | No | Battery current of the device, in unit of mA. This is a system API. | +| remainingEnergy9+ | number | Yes | No | Remaining battery capacity of the device, in unit of mAh. This is a system API.| ## BatteryPluggedType Enumerates charger types. -| Name | Default Value | Description | -| -------- | ------------- | ----------------- | -| NONE | 0 | Unknown type. | -| AC | 1 | AC charger. | -| USB | 2 | USB charger. | -| WIRELESS | 3 | Wireless charger. | +**System capability**: SystemCapability.PowerManager.BatteryManager.Core +| Name | Value | Description | +| -------- | ---- | ----------------- | +| NONE | 0 | Unknown type | +| AC | 1 | AC charger| +| USB | 2 | USB charger | +| WIRELESS | 3 | Wireless charger| ## BatteryChargeState Enumerates charging states. -| Name | Default Value | Description | -| ------- | ------------- | --------------------------------- | -| NONE | 0 | Unknown state. | -| ENABLE | 1 | The battery is being charged. | -| DISABLE | 2 | The battery is not being charged. | -| FULL | 3 | The battery is fully charged. | +**System capability**: SystemCapability.PowerManager.BatteryManager.Core +| Name | Value | Description | +| ------- | ---- | --------------- | +| NONE | 0 | Unknown state. | +| ENABLE | 1 | The battery is being charged. | +| DISABLE | 2 | The battery is not being charged. | +| FULL | 3 | The battery is fully charged.| ## BatteryHealthState Enumerates battery health states. -| Name | Default Value | Description | -| ----------- | ------------- | ------------------------------------ | -| UNKNOWN | 0 | Unknown state. | -| GOOD | 1 | The battery is in the healthy state. | -| OVERHEAT | 2 | The battery is overheated. | -| OVERVOLTAGE | 3 | The battery voltage is over high. | -| COLD | 4 | The battery temperature is low. | -| DEAD | 5 | The battery is dead. | - +**System capability**: SystemCapability.PowerManager.BatteryManager.Core + +| Name | Value | Description | +| ----------- | ---- | -------------- | +| UNKNOWN | 0 | Unknown state. | +| GOOD | 1 | The battery is in the healthy state. | +| OVERHEAT | 2 | The battery is overheated. | +| OVERVOLTAGE | 3 | The battery voltage is over high. | +| COLD | 4 | The battery temperature is low. | +| DEAD | 5 | The battery is dead.| + +## BatteryCapacityLevel9+ + +Enumerates battery levels. + +**System capability**: SystemCapability.PowerManager.BatteryManager.Core + +| Name | Value| Description | +| -------------- | ------ | ---------------------------- | +| LEVEL_NONE | 0 | Unknown battery level. | +| LEVEL_FULL | 1 | Full battery level. | +| LEVEL_HIGH | 2 | High battery level. | +| LEVEL_NORMAL | 3 | Normal battery level.| +| LEVEL_LOW | 4 | Low battery level. | +| LEVEL_CRITICAL | 5 | Ultra-low battery level.| + +## CommonEventBatteryChangedCode9+ + +Enumerates keys for querying the additional information about the **COMMON_EVENT_BATTERY_CHANGED** event. + +**System capability**: SystemCapability.PowerManager.BatteryManager.Core + +| Name | Value| Description | +| -------------------- | ------ | -------------------------------------------------- | +| EXTRA_SOC | 0 | Remaining battery level in percentage. | +| EXTRA_VOLTAGE | 1 | Battery voltage of the device. | +| EXTRA_TEMPERATURE | 2 | Battery temperature of the device. | +| EXTRA_HEALTH_STATE | 3 | Battery health status of the device. | +| EXTRA_PLUGGED_TYPE | 4 | Type of the charger connected to the device. | +| EXTRA_MAX_CURRENT | 5 | Maximum battery current of the device. | +| EXTRA_MAX_VOLTAGE | 6 | Maximum battery voltage of the device. | +| EXTRA_CHARGE_STATE | 7 | Battery charging status of the device. | +| EXTRA_CHARGE_COUNTER | 8 | Number of battery charging times of the device. | +| EXTRA_PRESENT | 9 | Whether the battery is supported by the device or installed.| +| EXTRA_TECHNOLOGY | 10 | Battery technology of the device. | diff --git a/en/application-dev/reference/apis/js-apis-batteryStatistics.md b/en/application-dev/reference/apis/js-apis-batteryStatistics.md new file mode 100644 index 0000000000000000000000000000000000000000..917bc81d2f3eecef3f25d609db686b0d9dae44a2 --- /dev/null +++ b/en/application-dev/reference/apis/js-apis-batteryStatistics.md @@ -0,0 +1,287 @@ +# Battery Statistics + +This module provides APIs for querying software and hardware power consumption statistics. + +> **NOTE** +> +> - The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> +> - The APIs provided by this module are system APIs. + +## Modules to Import + +```js +import batteryStats from '@ohos.batteryStatistics'; +``` + +## batteryStats.getBatteryStats + +getBatteryStats(): Promise + +Obtains the power consumption information list, using a promise to return the result. + +**System API**: This is a system API. + +**System capability**: SystemCapability.PowerManager.BatteryStatistics + +**Return value** + +| Type | Description | +| ----------------------------------------------------- | ------------------------------- | +| Promise> | Promise used to return the power consumption information list.| + +**Error codes** + +For details about the error codes, see [Thermal Manager Error Codes](../errorcodes/errorcode-batteryStatistics.md). + +| Code| Error Message | +| -------- | -------------- | +| 4600101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +batteryStats.getBatteryStats() +.then(data => { + console.info('battery statistics info: ' + data); +}) +.catch(err => { + console.error('get battery statisitics failed, err: ' + err); +}); +``` + +## batteryStats.getBatteryStats + +getBatteryStats(callback: AsyncCallback): void + +Obtains the power consumption information list. This API uses an asynchronous callback to return the result. + +**System API**: This is a system API. + +**System capability**: SystemCapability.PowerManager.BatteryStatistics + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ----------------------------------------------------------- | ---- | ------------------------------------------------------------ | +| callback | AsyncCallback> | Yes | Callback used to return the result. If the operation is successful, **err** is **undefined** and **data** is the array of power consumption information obtained. If the operation failed, **err** is an error object.| + +**Error codes** + +For details about the error codes, see [Thermal Manager Error Codes](../errorcodes/errorcode-batteryStatistics.md). + +| Code| Error Message | +| -------- | -------------- | +| 4600101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +batteryStats.getBatteryStats((err, data) => { + if (typeof err === 'undefined') { + console.info('battery statistics info: ' + data); + } else { + console.error('get battery statisitics failed, err: ' + err); + } +}); +``` + +## batteryStats.getAppPowerValue + +getAppPowerValue(uid: number): number + +Obtains the power consumption of an application. + +**System API**: This is a system API. + +**System capability**: SystemCapability.PowerManager.BatteryStatistics + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ----------- | +| uid | number | Yes | Application UID.| + +**Return value** + +| Type | Description | +| ------ | --------------------------------- | +| number | Power consumption of the application with this UID, in unit of mAh.| + +**Error codes** + +For details about the error codes, see [Thermal Manager Error Codes](../errorcodes/errorcode-batteryStatistics.md). + +| Code| Error Message | +| -------- | -------------- | +| 4600101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +try { + var value = batteryStats.getAppPowerValue(10021); + console.info('battery statistics value of app is: ' + value); +} catch(err) { + console.error('get battery statisitics value of app failed, err: ' + err); +} +``` + +## batteryStats.getAppPowerPercent + +getAppPowerPercent(uid: number): number + +Obtains the proportion of the power consumption of an application. + +**System API**: This is a system API. + +**System capability**: SystemCapability.PowerManager.BatteryStatistics + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ----------- | +| uid | number | Yes | Application UID.| + +**Return value** + +| Type | Description | +| ------ | ------------------------- | +| number | Proportion of the power consumption of an application with this UID.| + +**Error codes** + +For details about the error codes, see [Thermal Manager Error Codes](../errorcodes/errorcode-batteryStatistics.md). + +| Code| Error Message | +| -------- | -------------- | +| 4600101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +try { + var percent = batteryStats.getAppPowerPercent(10021); + console.info('battery statistics percent of app is: ' + percent); +} catch(err) { + console.error('get battery statisitics percent of app failed, err: ' + err); +} +``` + +## batteryStats.getHardwareUnitPowerValue + +getHardwareUnitPowerValue(type: ConsumptionType): number + +Obtains the power consumption of a hardware unit according to the consumption type. + +**System API**: This is a system API. + +**System capability**: SystemCapability.PowerManager.BatteryStatistics + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ----------------------------------- | ---- | -------------- | +| type | [ConsumptionType](#consumptiontype) | Yes | Power consumption type.| + +**Return value** + +| Type | Description | +| ------ | ------------------------------------------ | +| number | Power consumption of the hardware unit corresponding to the power consumption type, in unit of mAh.| + +**Error codes** + +For details about the error codes, see [Thermal Manager Error Codes](../errorcodes/errorcode-batteryStatistics.md). + +| Code| Error Message | +| -------- | -------------- | +| 4600101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +try { + var value = batteryStats.getHardwareUnitPowerValue(ConsumptionType.CONSUMPTION_TYPE_SCREEN); + console.info('battery statistics percent of hardware is: ' + percent); +} catch(err) { + console.error('get battery statisitics percent of hardware failed, err: ' + err); +} +``` + +## batteryStats.getHardwareUnitPowerPercent + +getHardwareUnitPowerPercent(type: ConsumptionType): number + +Obtains the proportion of the power consumption of a hardware unit according to the power consumption type. + +**System API**: This is a system API. + +**System capability**: SystemCapability.PowerManager.BatteryStatistics + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ----------------------------------- | ---- | -------------- | +| type | [ConsumptionType](#consumptiontype) | Yes | Power consumption type.| + +**Return value** + +| Type | Description | +| ------ | ---------------------------------- | +| number | Proportion of the power consumption of the hardware unit corresponding to the power consumption type.| + +**Error codes** + +For details about the error codes, see [Thermal Manager Error Codes](../errorcodes/errorcode-batteryStatistics.md). + +| Code| Error Message | +| -------- | -------------- | +| 4600101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +try { + var value = batteryStats.getHardwareUnitPowerPercent(ConsumptionType.CONSUMPTION_TYPE_SCREEN); + console.info('battery statistics percent of hardware is: ' + percent); +} catch(err) { + console.error('get battery statisitics percent of hardware failed, err: ' + err); +} +``` + +## BatteryStatsInfo + +Describes the device power consumption information. + +**System API**: This is a system API. + +**System capability**: SystemCapability.PowerManager.BatteryStatistics + +### Attributes + +| Name | Type | Readable| Writable| Description | +| ----- | ----------------------------------- | ---- | ---- | ---------------------- | +| uid | number | Yes | No | UID related to power consumption information. | +| type | [ConsumptionType](#consumptiontype) | Yes | No | Power consumption type. | +| power | number | Yes | No | Power consumption, in unit of mAh.| + +## ConsumptionType + +Enumerates power consumption types. + +**System API**: This is a system API. + +**System capability**: SystemCapability.PowerManager.BatteryStatistics + +| Name | Value | Description | +| -------------------------- | ---- | ----------------------------- | +| CONSUMPTION_TYPE_INVALID | -17 | Unknown type. | +| CONSUMPTION_TYPE_APP | -16 | Power consumption of an application. | +| CONSUMPTION_TYPE_BLUETOOTH | -15 | Power consumption of Bluetooth. | +| CONSUMPTION_TYPE_IDLE | -14 | Power consumption when the CPU is idle.| +| CONSUMPTION_TYPE_PHONE | -13 | Power consumption of a phone call. | +| CONSUMPTION_TYPE_RADIO | -12 | Power consumption of wireless communication. | +| CONSUMPTION_TYPE_SCREEN | -11 | Power consumption of the screen. | +| CONSUMPTION_TYPE_USER | -10 | Power consumption of the user. | +| CONSUMPTION_TYPE_WIFI | -9 | Power consumption of Wi-Fi. | diff --git a/en/application-dev/reference/apis/js-apis-bluetooth.md b/en/application-dev/reference/apis/js-apis-bluetooth.md index b852a673ab6ca120497e1c40443d19990cfbd74b..aa9e1937cd66e83262211280f42f11f468e2d200 100644 --- a/en/application-dev/reference/apis/js-apis-bluetooth.md +++ b/en/application-dev/reference/apis/js-apis-bluetooth.md @@ -1,8 +1,9 @@ -# Bluetooth +# @ohos.bluetooth The **Bluetooth** module provides classic Bluetooth capabilities and Bluetooth Low Energy (BLE) scan and advertising. -> **NOTE**
+> **NOTE** +> > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. @@ -202,7 +203,7 @@ Obtains the connection state of a profile. | Name | Type | Mandatory | Description | | --------- | --------- | ---- | ------------------------------------- | -| ProfileId | profileId | Yes | ID of the target profile, for example, **PROFILE_A2DP_SOURCE**.| +| ProfileId | profileId | Yes | ID of the profile to obtain, for example, **PROFILE_A2DP_SOURCE**.| **Return value** @@ -1280,10 +1281,6 @@ Obtains the connected devices. **System capability**: SystemCapability.Communication.Bluetooth.Core -**Parameters** - -No value is returned. - **Return value** | Type | Description | @@ -2695,8 +2692,6 @@ Obtains all services of the remote BLE device. This API uses a promise to return **System capability**: SystemCapability.Communication.Bluetooth.Core -**Parameters** - **Return value** | Type | Description | @@ -2830,7 +2825,7 @@ Reads the descriptor contained in the specific characteristic of the remote BLE | Name | Type | Mandatory | Description | | ---------- | ---------------------------------------- | ---- | ----------------------- | | descriptor | [BLEDescriptor](#bledescriptor) | Yes | Descriptor to read. | -| callback | AsyncCallback<[BLECharacteristic](#blecharacteristic)> | Yes | Callback invoked to return the descriptor read.| +| callback | AsyncCallback<[BLEDescriptor](#bledescriptor)> | Yes | Callback invoked to return the descriptor read.| **Return value** @@ -3309,7 +3304,7 @@ Enumerates the scan modes. **System capability**: SystemCapability.Communication.Bluetooth.Core -| Name | Default Value | Description | +| Name | Value | Description | | ---------------------------------------- | ---- | --------------- | | SCAN_MODE_NONE | 0 | No scan mode. | | SCAN_MODE_CONNECTABLE | 1 | Connectable mode. | @@ -3324,7 +3319,7 @@ Enumerates the pairing states. **System capability**: SystemCapability.Communication.Bluetooth.Core -| Name | Default Value | Description | +| Name | Value | Description | | ------------------ | ---- | ------ | | BOND_STATE_INVALID | 0 | Invalid pairing.| | BOND_STATE_BONDING | 1 | Pairing. | @@ -3350,7 +3345,7 @@ Enumerates the SPP link types. **System capability**: SystemCapability.Communication.Bluetooth.Core -| Name | Default Value | Description | +| Name | Value | Description | | ---------- | ---- | ------------- | | SPP_RFCOMM | 0 | Radio frequency communication (RFCOMM) link type.| @@ -3510,7 +3505,7 @@ Enumerates the profile connection states. **System capability**: SystemCapability.Communication.Bluetooth.Core -| Name | Default Value | Description | +| Name | Value | Description | | ------------------- | ---- | -------------- | | STATE_DISCONNECTED | 0 | Disconnected. | | STATE_CONNECTING | 1 | Connecting.| @@ -3558,7 +3553,7 @@ Enumerates the scan duty options. **System capability**: SystemCapability.Communication.Bluetooth.Core -| Name | Default Value | Description | +| Name | Value | Description | | --------------------- | ---- | ------------ | | SCAN_MODE_LOW_POWER | 0 | Low-power mode, which is the default value.| | SCAN_MODE_BALANCED | 1 | Balanced mode. | @@ -3571,7 +3566,7 @@ Enumerates the hardware match modes of BLE scan filters. **System capability**: SystemCapability.Communication.Bluetooth.Core -| Name | Default Value | Description | +| Name | Value | Description | | --------------------- | ---- | ---------------------------------------- | | MATCH_MODE_AGGRESSIVE | 1 | Hardware reports the scan result with a lower threshold of signal strength and few number of matches in a duration. This is the default value.| | MATCH_MODE_STICKY | 2 | Hardware reports the scan result with a higher threshold of signal strength and sightings. | @@ -3596,7 +3591,7 @@ Enumerates the Bluetooth states. **System capability**: SystemCapability.Communication.Bluetooth.Core -| Name | Default Value | Description | +| Name | Value | Description | | --------------------- | ---- | ------------------ | | STATE_OFF | 0 | Bluetooth is turned off. | | STATE_TURNING_ON | 1 | Bluetooth is being turned on. | @@ -3641,7 +3636,7 @@ Defines the content of a BLE advertisement packet. | Name | Type | Readable | Writable | Description | | ---------------- | ------------------- | ---- | ---- | ------------------ | -| manufactureId | Array<string> | Yes | Yes | Manufacturer ID allocated by the Bluetooth SIG.| +| manufactureId | number | Yes | Yes | Manufacturer ID allocated by the Bluetooth SIG.| | manufactureValue | ArrayBuffer | Yes | Yes | Manufacturer data. | @@ -3713,7 +3708,7 @@ Enumerates the major classes of Bluetooth devices. **System capability**: SystemCapability.Communication.Bluetooth.Core -| Name | Default Value | Description | +| Name | Value | Description | | ------------------- | ------ | ---------- | | MAJOR_MISC | 0x0000 | Miscellaneous device. | | MAJOR_COMPUTER | 0x0100 | Computer. | @@ -3734,7 +3729,7 @@ Enumerates the major and minor classes of Bluetooth devices. **System capability**: SystemCapability.Communication.Bluetooth.Core -| Name | Default Value | Description | +| Name | Value | Description | | ---------------------------------------- | ------ | --------------- | | COMPUTER_UNCATEGORIZED | 0x0100 | Unclassified computer. | | COMPUTER_DESKTOP | 0x0104 | Desktop computer. | @@ -3830,7 +3825,7 @@ Enumerates the A2DP playing states. **System capability**: SystemCapability.Communication.Bluetooth.Core -| Name | Default Value | Description | +| Name | Value | Description | | ----------------- | ------ | ------- | | STATE_NOT_PLAYING | 0x0000 | Not playing. | | STATE_PLAYING | 0x0001 | Playing.| @@ -3842,9 +3837,9 @@ Enumerates the Bluetooth profiles. API version 9 is added with **PROFILE_HID_HOS **System capability**: SystemCapability.Communication.Bluetooth.Core -| Name | Default Value | Description | +| Name | Value | Description | | -------------------------------- | ------ | --------------- | -| PROFILE_A2DP_SOURCE | 0x0001 | A2DP profile.| -| PROFILE_HANDS_FREE_AUDIO_GATEWAY | 0x0004 | HFP profile. | -| PROFILE_HID_HOST9+ | 0x0006 | Human Interface Device (HID) profile. | -| PROFILE_PAN_NETWORK9+ | 0x0007 | PAN profile. | +| PROFILE_A2DP_SOURCE | 1 | A2DP profile.| +| PROFILE_HANDS_FREE_AUDIO_GATEWAY | 4 | HFP profile. | +| PROFILE_HID_HOST9+ | 6 | Human Interface Device (HID) profile. | +| PROFILE_PAN_NETWORK9+ | 7 | PAN profile. | diff --git a/en/application-dev/reference/apis/js-apis-brightness.md b/en/application-dev/reference/apis/js-apis-brightness.md index 6bbea8b08a752972bcc9354b63841831ae837a88..df783bbda132f5da29e152e146cc6cb56316f083 100644 --- a/en/application-dev/reference/apis/js-apis-brightness.md +++ b/en/application-dev/reference/apis/js-apis-brightness.md @@ -1,10 +1,12 @@ -# Brightness - -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
-> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. +# Screen Brightness The Brightness module provides an API for setting the screen brightness. +> **NOTE** +> +> - The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> +> - The APIs provided by this module are system APIs. ## Modules to Import @@ -18,18 +20,30 @@ setValue(value: number): void Sets the screen brightness. -This is a system API and cannot be called by third-party applications. +**System API**: This is a system API. -**System capability:** SystemCapability.PowerManager.DisplayPowerManager +**System capability**: SystemCapability.PowerManager.DisplayPowerManager **Parameters** -| Name | Type | Mandatory | Description | -| ----- | ------ | ---- | ----------- | -| value | number | Yes | Brightness value, ranging from **0** to **255**.| +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ----------------------- | +| value | number | Yes | Brightness value. The value ranges from 0 to 255.| + +**Error codes** + +For details about the error codes, see [Screen Brightness Error Codes](../errorcodes/errorcode-brightness.md). + +| Code | Error Message | +|---------|---------| +| 4700101 | Operation failed. Cannot connect to service.| **Example** ```js -brightness.setValue(128); +try { + brightness.setValue(128); +} catch(err) { + console.error('set brightness failed, err: ' + err); +} ``` diff --git a/en/application-dev/reference/apis/js-apis-bundle-AbilityInfo.md b/en/application-dev/reference/apis/js-apis-bundle-AbilityInfo.md index 7f6d5b0196b97a252564d4c29f761aefa2117db3..315e7c0f045ba3b26520ed2a69f41f242872b8e6 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-AbilityInfo.md +++ b/en/application-dev/reference/apis/js-apis-bundle-AbilityInfo.md @@ -1,6 +1,6 @@ # AbilityInfo -Unless otherwise specified, ability information is obtained through **GET_BUNDLE_DEFAULT**. +The **AbilityInfo** module provides information about an ability. Unless otherwise specified, the information is obtained through [GET_BUNDLE_DEFAULT](js-apis-Bundle.md). > **NOTE** > @@ -8,13 +8,13 @@ Unless otherwise specified, ability information is obtained through **GET_BUNDLE ## AbilityInfo(deprecated) -> This API is deprecated since API version 9. You are advised to use [AbilityInfo](js-apis-bundleManager-abilityInfo.md) instead. +> This API is deprecated since API version 9. You are advised to use [bundleManager-AbilityInfo](js-apis-bundleManager-abilityInfo.md) instead. **System capability**: SystemCapability.BundleManager.BundleFramework | Name | Type | Readable| Writable| Description | | --------------------- | -------------------------------------------------------- | ---- | ---- | ----------------------------------------- | -| bundleName | string | Yes | No | Bundle name of the application. | +| bundleName | string | Yes | No | Bundle name. | | name | string | Yes | No | Ability name. | | label | string | Yes | No | Ability name visible to users. | | description | string | Yes | No | Ability description. | @@ -25,17 +25,17 @@ Unless otherwise specified, ability information is obtained through **GET_BUNDLE | process | string | Yes | No | Process in which the ability runs. If this parameter is not set, the bundle name is used.| | targetAbility | string | Yes | No | Target ability that the ability alias points to.
This attribute can be used only in the FA model.| | backgroundModes | number | Yes | No | Background service mode of the ability.
This attribute can be used only in the FA model. | -| isVisible | boolean | Yes | No | Whether the ability can be called by other applications. | +| isVisible | boolean | Yes | No | Whether the ability can be called by other bundles. | | formEnabled | boolean | Yes | No | Whether the ability provides the service widget capability.
This attribute can be used only in the FA model.| | type | AbilityType | Yes | No | Ability type.
This attribute can be used only in the FA model. | -| orientation | DisplayOrientation | Yes | No | Ability display orientation. | -| launchMode | LaunchMode | Yes | No | Ability launch mode. | +| orientation | [DisplayOrientation](js-apis-Bundle.md#displayorientationdeprecated) | Yes | No | Ability display orientation. | +| launchMode | [LaunchMode](js-apis-Bundle.md#launchmodedeprecated) | Yes | No | Ability launch mode. | | permissions | Array\ | Yes | No | Permissions required for other applications to call the ability.
The value is obtained by passing **GET_ABILITY_INFO_WITH_PERMISSION**.| | deviceTypes | Array\ | Yes | No | Device types supported by the ability. | | deviceCapabilities | Array\ | Yes | No | Device capabilities required for the ability. | | readPermission | string | Yes | No | Permission required for reading the ability data.
This attribute can be used only in the FA model.| | writePermission | string | Yes | No | Permission required for writing data to the ability.
This attribute can be used only in the FA model.| -| applicationInfo | [ApplicationInfo](js-apis-bundle-ApplicationInfo.md) | Yes | No | Application configuration information.
The value is obtained by passing **GET_ABILITY_INFO_WITH_APPLICATION**.| +| applicationInfo | [ApplicationInfo](js-apis-bundle-ApplicationInfo.md) | Yes | No | Application configuration information.
The value is obtained by passing [GET_ABILITY_INFO_WITH_APPLICATION](js-apis-Bundle.md).| | uri | string | Yes | No | URI of the ability.
This attribute can be used only in the FA model.| | labelId | number | Yes | No | Ability label ID. | | subType | AbilitySubType | Yes | No | Subtype of the template that can be used by the ability.
This attribute can be used only in the FA model.| diff --git a/en/application-dev/reference/apis/js-apis-bundle-ApplicationInfo.md b/en/application-dev/reference/apis/js-apis-bundle-ApplicationInfo.md index fb5aa288eaaf2f8eb65940f33902906c04c654c2..c1667a66eb011d24a1b7ce79061eab0f454604a3 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-ApplicationInfo.md +++ b/en/application-dev/reference/apis/js-apis-bundle-ApplicationInfo.md @@ -1,6 +1,6 @@ # ApplicationInfo -The **ApplicationInfo** module provides application information. Unless otherwise specified, all attributes are obtained through **GET_BUNDLE_DEFAULT**. +The **ApplicationInfo** module provides application information. Unless otherwise specified, the information is obtained through [GET_BUNDLE_DEFAULT](js-apis-Bundle.md). > **NOTE** > @@ -8,30 +8,30 @@ The **ApplicationInfo** module provides application information. Unless otherwis ## ApplicationInfo(deprecated) -> This API is deprecated since API version 9. You are advised to use [ApplicationInfo](js-apis-bundleManager-applicationInfo.md) instead. +> This API is deprecated since API version 9. You are advised to use [bundleManager-ApplicationInfo](js-apis-bundleManager-applicationInfo.md) instead. **System capability**: SystemCapability.BundleManager.BundleFramework -| Name | Type | Readable| Writable| Description | -| -------------------------- | ------------------------------------------------------------ | ---- | ---- | ------------------------------------------------------------ | -| name | string | Yes | No | Application name. | -| description | string | Yes | No | Application description. | -| descriptionId | number | Yes | No | Application description ID. | -| systemApp | boolean | Yes | No | Whether the application is a system application. The default value is **false**. | -| enabled | boolean | Yes | No | Whether the application is enabled. The default value is **true**. | -| label | string | Yes | No | Application label. | -| labelId(deprecated) | string | Yes | No | Application label ID.
\- **NOTE**: This attribute is deprecated from API version 9. Use **labelIndex** instead.| -| icon | string | Yes | No | Application icon. | -| iconId(deprecated) | string | Yes | No | Application icon ID.
\- **NOTE**: This attribute is deprecated from API version 9. Use **iconIndex** instead.| -| process | string | Yes | No | Process in which the application runs. If this parameter is not set, the bundle name is used. | -| supportedModes | number | Yes | No | Running modes supported by the application. | -| moduleSourceDirs | Array\ | Yes | No | Relative paths for storing application resources. | -| permissions | Array\ | Yes | No | Permissions required for accessing the application.
The value is obtained by passing **GET_APPLICATION_INFO_WITH_PERMISSION**.| -| moduleInfos | Array\<[ModuleInfo](js-apis-bundle-ModuleInfo.md)> | Yes | No | Application module information. | -| entryDir | string | Yes | No | Path for storing application files. | -| codePath8+ | string | Yes | No | Installation directory of the application. | -| metaData8+ | Map\> | Yes | No | Custom metadata of the application.
The value is obtained by passing **GET_APPLICATION_INFO_WITH_METADATA**.| -| removable8+ | boolean | Yes | No | Whether the application is removable. | -| accessTokenId8+ | number | Yes | No | Access token ID of the application. | -| uid8+ | number | Yes | No | UID of the application. | -| entityType8+ | string | Yes | No | Entity type of the application. | +| Name | Type | Readable | Writable | Description | +|----------------------------|------------------------------------------------------------------------|-----|-----|----------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| name | string | Yes | No | Application name. | +| description | string | Yes | No | Application description. | +| descriptionId | number | Yes | No | Application description ID. | +| systemApp | boolean | Yes | No | Whether the application is a system application. The default value is **false**. | +| enabled | boolean | Yes | No | Whether the application is enabled. The default value is **true**. | +| label | string | Yes | No | Application label. | +| labelId | string | Yes | No | Application label ID. | +| icon | string | Yes | No | Application icon. | +| iconId | string | Yes | No | Application icon ID. | +| process | string | Yes | No | Process in which the application runs. If this parameter is not set, the bundle name is used. | +| supportedModes | number | Yes | No | Modes supported by the application. Currently, only the **drive** mode is defined. This attribute applies only to head units. | +| moduleSourceDirs | Array\ | Yes | No | Relative paths for storing application resources. | +| permissions | Array\ | Yes | No | Permissions required for accessing the application.
The value is obtained by passing [GET_APPLICATION_INFO_WITH_PERMISSION](js-apis-Bundle.md). | +| moduleInfos | Array\<[ModuleInfo](js-apis-bundle-ModuleInfo.md)> | Yes | No | Application module information. | +| entryDir | string | Yes | No | Path for storing application files. | +| codePath8+ | string | Yes | No | Installation directory of the application. | +| metaData8+ | Map\> | Yes | No | Custom metadata of the application.
The value is obtained by passing [GET_APPLICATION_INFO_WITH_METADATA](js-apis-Bundle.md). | +| removable8+ | boolean | Yes | No | Whether the application is removable. | +| accessTokenId8+ | number | Yes | No | Access token ID of the application. | +| uid8+ | number | Yes | No | UID of the application. | +| entityType8+ | string | Yes | No | Category of the application, which can be **game**, **media**, **communication**, **news**, **travel**, **utility**, **shopping**, **education**, **kids**, **business**, and **photography**.| diff --git a/en/application-dev/reference/apis/js-apis-bundle-BundleInfo.md b/en/application-dev/reference/apis/js-apis-bundle-BundleInfo.md index f1d0240513193f217b71ccfc900acc5a211d07c3..c14419e736e1c2142fb47157826c42fb0d5cff34 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-BundleInfo.md +++ b/en/application-dev/reference/apis/js-apis-bundle-BundleInfo.md @@ -1,18 +1,16 @@ # BundleInfo -The **BundleInfo** module provides bundle information. Unless otherwise specified, all attributes are obtained through **GET_BUNDLE_DEFAULT**. +The **BundleInfo** module provides bundle information. Unless otherwise specified, the information is obtained through [GET_BUNDLE_DEFAULT](js-apis-Bundle.md). > **NOTE** > > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. - - ## BundleInfo(deprecated) -> This API is deprecated since API version 9. You are advised to use [BundleInfo](js-apis-bundleManager-bundleInfo.md) instead. +> This API is deprecated since API version 9. You are advised to use [bundleManager-BundleInfo](js-apis-bundleManager-bundleInfo.md) instead. - **System capability**: SystemCapability.BundleManager.BundleFramework +**System capability**: SystemCapability.BundleManager.BundleFramework | Name | Type | Readable| Writable| Description | | --------------------------------- | ------------------------------------------------------------ | ---- | ---- | ------------------------------------------------------------ | @@ -25,7 +23,7 @@ The **BundleInfo** module provides bundle information. Unless otherwise specifie | appInfo | [ApplicationInfo](js-apis-bundle-ApplicationInfo.md) | Yes | No | Application configuration information. | | abilityInfos | Array\<[AbilityInfo](js-apis-bundle-AbilityInfo.md)> | Yes | No | Ability configuration information.
The value is obtained by passing **GET_BUNDLE_WITH_ABILITIES**.| | reqPermissions | Array\ | Yes | No | Permissions to request from the system for running the application.
The value is obtained by passing **GET_BUNDLE_WITH_REQUESTED_PERMISSION**.| -| reqPermissionDetails | Array\<[ReqPermissionDetail](#reqpermissiondetail)> | Yes | No | Detailed information of the permissions to request from the system.
The value is obtained by passing **GET_BUNDLE_WITH_REQUESTED_PERMISSION**.| +| reqPermissionDetails | Array\<[ReqPermissionDetail](#reqpermissiondetaildeprecated)> | Yes | No | Detailed information of the permissions to request from the system.
The value is obtained by passing **GET_BUNDLE_WITH_REQUESTED_PERMISSION**.| | vendor | string | Yes | No | Vendor of the bundle. | | versionCode | number | Yes | No | Version number of the bundle. | | versionName | string | Yes | No | Version description of the bundle. | @@ -38,7 +36,7 @@ The **BundleInfo** module provides bundle information. Unless otherwise specifie | isSilentInstallation | string | Yes | No | Whether the application can be installed in silent mode. | | minCompatibleVersionCode | number | Yes | No | Earliest version compatible with the bundle in the distributed scenario. | | entryInstallationFree | boolean | Yes | No | Whether installation-free is supported for the entry module. | -| reqPermissionStates8+ | Array\ | Yes | No | Permission grant state. | +| reqPermissionStates8+ | Array\ | Yes | No | Permission grant state. The value **0** means that the request is successful, and **-1** means the opposite. | @@ -54,7 +52,7 @@ Provides the detailed information of the permissions to request from the system. | --------------------- | ----------------------- | ---- | ---- | ---------------------- | | name | string | Yes | Yes | Name of the permission to request. | | reason | string | Yes | Yes | Reason for requesting the permission. | -| usedScene | [UsedScene](#usedscene) | Yes | Yes | Application scenario and timing for using the permission.| +| usedScene | [UsedScene](#usedscenedeprecated) | Yes | Yes | Application scenario and timing for using the permission.| diff --git a/en/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md b/en/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md index 9ab7fb823fc00cc663c909c48fca2e6cee047545..0570453b5cb9c1bfa6a1e0f0acb9dda16562005e 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md +++ b/en/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md @@ -12,7 +12,7 @@ The **BundleInstaller** module provides APIs for you to install, uninstall, and install(bundleFilePaths: Array<string>, param: InstallParam, callback: AsyncCallback<InstallStatus>): void; -Installs a bundle. This API uses an asynchronous callback to return the result. +Installs a bundle. Multiple HAP files can be installed. This API uses an asynchronous callback to return the result. **Required permissions** @@ -28,9 +28,33 @@ SystemCapability.BundleManager.BundleFramework | Name | Type | Mandatory| Description | | --------------- | ---------------------------------------------------- | ---- | ------------------------------------------------------------ | -| bundleFilePaths | Array<string> | Yes | Paths where the HAP files of the bundle are stored. Each path should point to a relative directory of the current bundle's data directory.| -| param | [InstallParam](#installparam) | Yes | Parameters required for bundle installation. | -| callback | AsyncCallback<[InstallStatus](#installstatus)> | Yes | Callback used to return the installation status. | +| bundleFilePaths | Array<string> | Yes | Sandbox path where the HAP files of the bundle are stored. For details about how to obtain the sandbox path, see [Obtaining the Sandbox Path](#obtaining-the-sandbox-path).| +| param | [InstallParam](#installparamdeprecated) | Yes | Parameters required for bundle installation. | +| callback | AsyncCallback<[InstallStatus](#installstatusdeprecated)> | Yes | Callback used to return the installation status. | + +**Example** + +```ts +import bundle from '@ohos.bundle'; +let hapFilePaths = ['/data/storage/el2/base/haps/entry/files/']; +let installParam = { + userId: 100, + isKeepData: false, + installFlag: 1, +}; + +bundle.getBundleInstaller().then(installer=>{ + installer.install(hapFilePaths, installParam, err => { + if (err) { + console.error('install failed:' + JSON.stringify(err)); + } else { + console.info('install successfully.'); + } + }); +}).catch(error => { + console.error('getBundleInstaller failed. Cause: ' + error.message); +}); +``` ## BundleInstaller.uninstall(deprecated) @@ -55,16 +79,39 @@ SystemCapability.BundleManager.BundleFramework | Name | Type | Mandatory| Description | | ---------- | ---------------------------------------------------- | ---- | ---------------------------------------------- | | bundleName | string | Yes | Bundle name. | -| param | [InstallParam](#installparam) | Yes | Parameters required for bundle uninstall. | -| callback | AsyncCallback<[InstallStatus](#installstatus)> | Yes | Callback used to return the installation status.| - +| param | [InstallParam](#installparamdeprecated) | Yes | Parameters required for bundle uninstall. | +| callback | AsyncCallback<[InstallStatus](#installstatusdeprecated)> | Yes | Callback used to return the installation status.| + +**Example** + +```ts +import bundle from '@ohos.bundle'; +let bundleName = 'com.example.myapplication'; +let installParam = { + userId: 100, + isKeepData: false, + installFlag: 1, +}; + +bundle.getBundleInstaller().then(installer=>{ + installer.uninstall(bundleName, installParam, err => { + if (err) { + console.error('uninstall failed:' + JSON.stringify(err)); + } else { + console.info('uninstall successfully.'); + } + }); +}).catch(error => { + console.error('getBundleInstaller failed. Cause: ' + error.message); +}); +``` ## BundleInstaller.recover(deprecated) > This API is deprecated since API version 9. You are advised to use [recover](js-apis-installer.md) instead. recover(bundleName: string, param: InstallParam, callback: AsyncCallback<InstallStatus>): void; -Recovers a bundle. This API uses an asynchronous callback to return the result. +Recovers a bundle. This API uses an asynchronous callback to return the result. After a pre-installed bundle is uninstalled, you can call this API to recover it. **Required permissions** @@ -81,12 +128,37 @@ SystemCapability.BundleManager.BundleFramework | Name | Type | Mandatory| Description | | ---------- | ---------------------------------------------------- | ---- | ---------------------------------------------- | | bundleName | string | Yes | Bundle name. | -| param | [InstallParam](#installparam) | Yes | Parameters required for bundle recovering. | -| callback | AsyncCallback<[InstallStatus](#installstatus)> | Yes | Callback used to return the installation status.| +| param | [InstallParam](#installparamdeprecated) | Yes | Parameters required for bundle recovery. | +| callback | AsyncCallback<[InstallStatus](#installstatusdeprecated)> | Yes | Callback used to return the recovery status.| + +**Example** + +```ts +import bundle from '@ohos.bundle'; + +let bundleName = 'com.example.myapplication'; +let installParam = { + userId: 100, + isKeepData: false, + installFlag: 1, +}; + +bundle.getBundleInstaller().then(installer=>{ + installer.recover(bundleName, installParam, err => { + if (err) { + console.error('recover failed:' + JSON.stringify(err)); + } else { + console.info('recover successfully.'); + } + }); +}).catch(error => { + console.error('getBundleInstaller failed. Cause: ' + error.message); +}); +``` ## InstallParam(deprecated) -Describes the parameters required for bundle installation or uninstall. +Describes the parameters required for bundle installation, recovery, or uninstall. **System capability**: SystemCapability.BundleManager.BundleFramework @@ -100,7 +172,7 @@ Describes the parameters required for bundle installation or uninstall. ## InstallStatus(deprecated) -Describes the bundle installation status. +Describes the bundle installation or uninstall status. **System capability**: SystemCapability.BundleManager.BundleFramework @@ -110,3 +182,27 @@ Describes the bundle installation status. | ------------- | ------------------------------------------------------------ | ---- | ---- | ------------------------------ | | status | bundle.[InstallErrorCode](js-apis-Bundle.md#installerrorcode) | Yes | No | Installation or uninstall error code. | | statusMessage | string | Yes | No | Installation or uninstall status message.| + +## Obtaining the Sandbox Path +For the FA model, the sandbox path of a bundle can be obtained using the APIs in [Context](js-apis-inner-app-context.md). For the sage model, the sandbox path can be obtained using the attribute in [Context](js-apis-ability-context.md#abilitycontext). The following describes how to obtain the sandbox path. + +**Example** +``` ts +// Stage model +import Ability from '@ohos.application.Ability'; +class MainAbility extends Ability { + onWindowStageCreate(windowStage) { + let context = this.context; + let pathDir = context.filesDir; + console.info('sandbox path is ' + pathDir); + } +} + +// FA model +import featureAbility from '@ohos.ability.featureAbility'; +let context = featureAbility.getContext(); +context.getFilesDir().then((data) => { + let pathDir = data; + console.info('sandbox path is ' + pathDir); +}); +``` diff --git a/en/application-dev/reference/apis/js-apis-bundle-CustomizeData.md b/en/application-dev/reference/apis/js-apis-bundle-CustomizeData.md index 246f1420fbb328cab877fa7e83476a558530b9f9..e54a37c697a4b44df566aa8f517a4b0befd8297b 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-CustomizeData.md +++ b/en/application-dev/reference/apis/js-apis-bundle-CustomizeData.md @@ -14,6 +14,6 @@ The **CustomizeData** module provides custom metadata. | Name | Type | Readable| Writable| Description | | ------------------ | ------ | ---- | ---- | ---------------- | -| name | string | Yes | Yes | Custom metadata name.| -| value | string | Yes | Yes | Custom metadata value. | -| extra8+ | string | Yes | Yes | Custom metadata resources. | +| name | string | Yes | Yes | Key that identifies a data element.| +| value | string | Yes | Yes | Value of the data element. | +| extra8+ | string | Yes | Yes | Custom format of the data element. The value is an index to the resource that identifies the data. | diff --git a/en/application-dev/reference/apis/js-apis-bundle-ElementName.md b/en/application-dev/reference/apis/js-apis-bundle-ElementName.md index 54f43e7a56376caf4ea623d358fc27bec2d54dbc..b20de58d074a83dea5cb0992e21087ae64b990bb 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-ElementName.md +++ b/en/application-dev/reference/apis/js-apis-bundle-ElementName.md @@ -1,6 +1,6 @@ # ElementName -The **ElementName** module provides the element name information, which can be obtained through [Context.getElementName](js-apis-Context.md). +The **ElementName** module provides element name information, which can be obtained through [Context.getElementName](js-apis-inner-app-context.md). > **NOTE** > @@ -8,7 +8,9 @@ The **ElementName** module provides the element name information, which can be o ## ElementName(deprecated) -> This API is deprecated since API version 9. You are advised to use [ElementName](js-apis-bundleManager-elementName.md) instead. +> This API is deprecated since API version 9. You are advised to use [bundleManager-ElementName](js-apis-bundleManager-elementName.md) instead. + +Describes the element name information, which identifies the basic information about an ability and is obtained through [Context.getElementName](js-apis-inner-app-context.md). **System capability**: SystemCapability.BundleManager.BundleFramework diff --git a/en/application-dev/reference/apis/js-apis-bundle-HapModuleInfo.md b/en/application-dev/reference/apis/js-apis-bundle-HapModuleInfo.md index 0e252cc3fe46c45114a2d9cb9738c6ec3e0a9ffe..5540aa2bc56b9f8e34fda11d11048b8177816b95 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-HapModuleInfo.md +++ b/en/application-dev/reference/apis/js-apis-bundle-HapModuleInfo.md @@ -1,6 +1,6 @@ # HapModuleInfo -The **HapModuleInfo** module provides module information. Unless otherwise specified, all attributes are obtained through **GET_BUNDLE_DEFAULT**. +The **HapModuleInfo** module provides information about an HAP module. Unless otherwise specified, the information is obtained through [GET_BUNDLE_DEFAULT](js-apis-Bundle.md). > **NOTE** > @@ -8,7 +8,7 @@ The **HapModuleInfo** module provides module information. Unless otherwise speci ## HapModuleInfo(deprecated) -> This API is deprecated since API version 9. You are advised to use [HapModuleInfo](js-apis-bundleManager-hapModuleInfo.md) instead. +> This API is deprecated since API version 9. You are advised to use [bundleManager-HapModuleInfo](js-apis-bundleManager-hapModuleInfo.md) instead. **System capability**: SystemCapability.BundleManager.BundleFramework diff --git a/en/application-dev/reference/apis/js-apis-bundle-ModuleInfo.md b/en/application-dev/reference/apis/js-apis-bundle-ModuleInfo.md index 781b34f89b8a954c5f0be626fcbfe0d3fc5ab3f8..18707feeb05902b5740b00544b3a23a43c09acce 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-ModuleInfo.md +++ b/en/application-dev/reference/apis/js-apis-bundle-ModuleInfo.md @@ -7,10 +7,9 @@ The **ModuleInfo** module provides module information of an application. > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## ModuleInfo(deprecated) -> This API is deprecated since API version 9. You are advised to use [HapModuleInfo](js-apis-bundleManager-hapModuleInfo.md) instead. +> This API is deprecated since API version 9. You are advised to use [bundleManager-HapModuleInfo](js-apis-bundleManager-hapModuleInfo.md) instead. **System capability**: SystemCapability.BundleManager.BundleFramework - | Name | Type | Readable| Writable| Description | | --------------- | ------ | ---- | ---- | -------- | | moduleName | string | Yes | No | Module name.| diff --git a/en/application-dev/reference/apis/js-apis-bundle-PermissionDef.md b/en/application-dev/reference/apis/js-apis-bundle-PermissionDef.md index aa7b5da045a32bb53590a8b3a5f9ec1f3dffce0e..ded02c772794179d9e8276292ab1be939a208d8f 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-PermissionDef.md +++ b/en/application-dev/reference/apis/js-apis-bundle-PermissionDef.md @@ -8,7 +8,7 @@ The **PermissionDef** module provides permission details defined in the configur ## **PermissionDef**(deprecated) -> This API is deprecated since API version 9. You are advised to use [PermissionDef](js-apis-bundleManager-permissionDef.md) instead. +> This API is deprecated since API version 9. You are advised to use [bundleManager-PermissionDef](js-apis-bundleManager-permissionDef.md) instead. **System capability**: SystemCapability.BundleManager.BundleFramework @@ -17,6 +17,6 @@ The **PermissionDef** module provides permission details defined in the configur | Name | Type | Readable| Writable| Description | | -------------- | ------ | ---- | ---- | -------------- | | permissionName | string | Yes | No | Name of the permission. | -| grantMode | number | Yes | No | Grant mode of the permission.| +| grantMode | number | Yes | No | Grant mode of the permission. The value **0** means that the system automatically grants the permission after the application installation, and **1** means that the application needs to dynamically request the permission from the user.| | labelId | number | Yes | No | Label ID of the permission. | | descriptionId | number | Yes | No | Description ID of the permission. | diff --git a/en/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md b/en/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md index adf30d8b7442dd67e822f200a0114f93957bd892..1a603da33b3403dafbac79e1bfcd31c5dde9896c 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md +++ b/en/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md @@ -1,16 +1,14 @@ -# ShortcutInfo(deprecated) +# shortcutInfo -The **ShortcutInfo** module provides shortcut information defined in the configuration file. For details about the configuration in the FA model, see [config.json](../../quick-start/package-structure.md). For details about the configuration in the stage model, see [Internal Structure of the shortcuts Attribute](../../quick-start/stage-structure.md#internal-structure-of-the-shortcuts-attribute). +The **shortcutInfo** module defines shortcut information configured in the configuration file. For the FA model, the shortcut information is configured in the [config.json](../../quick-start/application-configuration-file-overview-fa.md) file. For the stage model, the information is configured in the configuration file under **resources/base/profile** in the development view. > **NOTE** > -> This module is deprecated since API version 9. You are advised to use [ShortcutInfo](js-apis-bundleManager-shortcutInfo.md) instead. -> > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## ShortcutWant(deprecated) -> This API is deprecated since API version 9. You are advised to use [ShortcutWant](js-apis-bundleManager-shortcutInfo.md) instead. +> This API is deprecated since API version 9. You are advised to use [bundleManager-ShortcutWant](js-apis-bundleManager-shortcutInfo.md) instead. **System capability**: SystemCapability.BundleManager.BundleFramework @@ -23,7 +21,7 @@ The **ShortcutInfo** module provides shortcut information defined in the configu ## ShortcutInfo(deprecated) -> This API is deprecated since API version 9. You are advised to use [ShortcutInfo](js-apis-bundleManager-shortcutInfo.md) instead. +> This API is deprecated since API version 9. You are advised to use [bundleManager-ShortcutInfo](js-apis-bundleManager-shortcutInfo.md) instead. **System capability**: SystemCapability.BundleManager.BundleFramework @@ -35,10 +33,12 @@ The **ShortcutInfo** module provides shortcut information defined in the configu | hostAbility | string | Yes | No | Local ability information of the shortcut. | | icon | string | Yes | No | Icon of the shortcut. | | iconId8+ | number | Yes | No | Icon ID of the shortcut. | -| label | string | Yes | No | Label of the shortcut. | -| labelId8+ | number | Yes | No | Label ID of the shortcut. | +| label | string | Yes | No | Name of the shortcut. | +| labelId8+ | number | Yes | No | Name ID of the shortcut. | | disableMessage | string | Yes | No | Message displayed when the shortcut is disabled. | -| wants | Array<[ShortcutWant](#shortcutwant)> | Yes | No | Want information required for the shortcut. | +| wants | Array<[ShortcutWant](#shortcutwant)> | Yes | No | Want list for the shortcut. | | isStatic | boolean | Yes | No | Whether the shortcut is static. | | isHomeShortcut | boolean | Yes | No | Whether the shortcut is a home shortcut.| | isEnabled | boolean | Yes | No | Whether the shortcut is enabled. | + + \ No newline at end of file diff --git a/en/application-dev/reference/apis/js-apis-bundle-remoteAbilityInfo.md b/en/application-dev/reference/apis/js-apis-bundle-remoteAbilityInfo.md index ffde8d4356caee1dde9f47bdbb424d2dbdda57bb..f95125fb1c7228f9eade37f423b624c3289c0e34 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-remoteAbilityInfo.md +++ b/en/application-dev/reference/apis/js-apis-bundle-remoteAbilityInfo.md @@ -8,7 +8,7 @@ The **RemoteAbilityInfo** module provides information about a remote ability. ## RemoteAbilityInfo(deprecated) -> This API is deprecated since API version 9. You are advised to use [RemoteAbilityInfo](js-apis-bundleManager-remoteAbilityInfo.md) instead. +> This API is deprecated since API version 9. You are advised to use [bundleManager-RemoteAbilityInfo](js-apis-bundleManager-remoteAbilityInfo.md) instead. **System capability**: SystemCapability.BundleManager.DistributedBundleFramework @@ -16,6 +16,6 @@ The **RemoteAbilityInfo** module provides information about a remote ability. | Name | Type | Readable| Writable| Description | | ----------- | -------------------------------------------- | ---- | ---- | ----------------------- | -| elementName | [ElementName](js-apis-bundle-ElementName.md) | Yes | No | Element name of the ability. | -| label | string | Yes | No | Label of the ability. | +| elementName | [ElementName](js-apis-bundle-ElementName.md) | Yes | No | Element name information of the ability. | +| label | string | Yes | No | Ability name. | | icon | string | Yes | No | Icon of the ability.| diff --git a/en/application-dev/reference/apis/js-apis-bundleManager-elementName.md b/en/application-dev/reference/apis/js-apis-bundleManager-elementName.md index 6948fac50faf7146b4bc0a8aabfb1eef2d1c719f..662f0e37640287de5e10273a45d8db327a4551da 100644 --- a/en/application-dev/reference/apis/js-apis-bundleManager-elementName.md +++ b/en/application-dev/reference/apis/js-apis-bundleManager-elementName.md @@ -1,6 +1,6 @@ # ElementName -The **ElementName** module provides information about an element name. The information can be obtained through [Context.getElementName](js-apis-Context.md). +The **ElementName** module provides element name information, which can be obtained through [Context.getElementName](js-apis-inner-app-context.md). > **NOTE** diff --git a/en/application-dev/reference/apis/js-apis-bundleManager-shortcutInfo.md b/en/application-dev/reference/apis/js-apis-bundleManager-shortcutInfo.md index 0f1d6b7e992484875d65479a3734b00484141d21..2c06d138b5bfda6383fabc14e28d3fb008af0bf0 100644 --- a/en/application-dev/reference/apis/js-apis-bundleManager-shortcutInfo.md +++ b/en/application-dev/reference/apis/js-apis-bundleManager-shortcutInfo.md @@ -1,10 +1,12 @@ # ShortcutInfo -The **ShortcutInfo** module provides shortcut information defined in the configuration file. For details about the configuration in the FA model, see [config.json](../../quick-start/package-structure.md). For details about the configuration in the stage model, see [Internal Structure of the shortcuts Attribute](../../quick-start/stage-structure.md#internal-structure-of-the-shortcuts-attribute). +The **ShortcutInfo** module defines shortcut information configured in the configuration file. The information can be obtained through [getShortcutInfo](js-apis-launcherBundleManager.md#launcherbundlemanagergetshortcutinfo9). > **NOTE** > > The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> +> For the FA model, the shortcut information is configured in the [config.json](../../quick-start/module-structure.md) file. For details about the shortcut information in the stage model, see [shortcuts](../../quick-start/module-configuration-file.md#shortcuts). ## ShortcutWant @@ -16,7 +18,7 @@ The **ShortcutInfo** module provides shortcut information defined in the configu | ------------------------- | ------ | ---- | ---- | -------------------- | | targetBundle | string | Yes | No | Target bundle name of the shortcut.| | targetModule | string | Yes | No | Target module name of the shortcut. | -| targetAbility | string | Yes | No | Target ability name of the shortcut.| +| targetAbility | string | Yes | No | Target ability name of the shortcut.| ## ShortcutInfo @@ -35,3 +37,5 @@ The **ShortcutInfo** module provides shortcut information defined in the configu | label | string | Yes | No | Label of the shortcut. | | labelId | number | Yes | No | Label ID of the shortcut. | | wants | Array\<[ShortcutWant](#shortcutwant)> | Yes | No | Want information required for the shortcut. | + + \ No newline at end of file diff --git a/en/application-dev/reference/apis/js-apis-bundleManager.md b/en/application-dev/reference/apis/js-apis-bundleManager.md index ef3ef84fab57b0ca3e10e2ea27aede219b2e4e6c..525f882052397b5d59e5d4a22c79dc013c847e6a 100644 --- a/en/application-dev/reference/apis/js-apis-bundleManager.md +++ b/en/application-dev/reference/apis/js-apis-bundleManager.md @@ -1,4 +1,4 @@ -# bundleManager +# @ohos.bundle.bundleManager The **bundleManager** module provides APIs for querying information about bundles, applications, abilities, Extension abilities, and more. @@ -96,10 +96,10 @@ Enumerates the types of Extension abilities. | Name| Value| Description| |:----------------:|:---:|-----| -| FORM | 0 | [FormExtensionAbility](../../ability/stage-formextension.md): provides APIs for widget development.| +| FORM | 0 | [FormExtensionAbility](../../application-models/widget-development-stage.md): provides APIs for widget development.| | WORK_SCHEDULER | 1 | [WorkSchedulerExtensionAbility](../../task-management/work-scheduler-dev-guide.md): enables applications to execute non-real-time tasks when the system is idle.| | INPUT_METHOD | 2 | [InputMethodExtensionAbility](js-apis-inputmethod-extension-ability.md): provides APIs for developing input method applications.| -| SERVICE | 3 | [ServiceExtensionAbility](../../ability/stage-serviceextension.md): enables applications to run in the background and provide services.| +| SERVICE | 3 | [ServiceExtensionAbility](../../application-models/serviceextensionability.md): enables applications to run in the background and provide services.| | ACCESSIBILITY | 4 | [AccessibilityExtensionAbility](js-apis-application-accessibilityExtensionAbility.md): provides accessibility for access to and operations on the UI.| | DATA_SHARE | 5 | [DataShareExtensionAbility](../../database/database-datashare-guidelines.md): enables applications to read and write data.| | FILE_SHARE | 6 | FileShareExtensionAbility: enables file sharing between applications. This ability is reserved.| @@ -2181,8 +2181,8 @@ For details about the error codes, see [Bundle Error Codes](../errorcodes/errorc | ID| Error Message | | -------- | ------------------------------------------------------------ | -| 17700002 | The specified moduleName is not existed. | -| 17700003 | The specified abilityName is not existed. | +| 17700002 | The specified moduleName does not exist. | +| 17700003 | The specified abilityName does not exist. | | 17700024 | Failed to get the profile because there is no profile in the HAP. | | 17700026 | The specified bundle is disabled. | | 17700029 | The specified ability is disabled. | @@ -2236,8 +2236,8 @@ For details about the error codes, see [Bundle Error Codes](../errorcodes/errorc | ID| Error Message | | -------- | ------------------------------------------------------------ | -| 17700002 | The specified moduleName is not existed. | -| 17700003 | The specified abilityName is not existed. | +| 17700002 | The specified moduleName does not exist. | +| 17700003 | The specified abilityName does not exist. | | 17700024 | Failed to get the profile because there is no profile in the HAP. | | 17700026 | The specified bundle is disabled. | | 17700029 | The specified ability is disabled. | @@ -2299,7 +2299,7 @@ For details about the error codes, see [Bundle Error Codes](../errorcodes/errorc | ID| Error Message | | -------- | ------------------------------------------------------------ | -| 17700002 | The specified moduleName is not existed. | +| 17700002 | The specified moduleName does not exist. | | 17700003 | The specified extensionAbilityName not existed. | | 17700024 | Failed to get the profile because there is no profile in the HAP. | | 17700026 | The specified bundle is disabled. | @@ -2353,7 +2353,7 @@ For details about the error codes, see [Bundle Error Codes](../errorcodes/errorc | ID| Error Message | | -------- | ------------------------------------------------------------ | -| 17700002 | The specified moduleName is not existed. | +| 17700002 | The specified moduleName does not exist. | | 17700003 | The specified extensionAbilityName not existed. | | 17700024 | Failed to get the profile because there is no profile in the HAP. | | 17700026 | The specified bundle is disabled. | @@ -2903,3 +2903,5 @@ try { console.error('getBundleInfoSync failed:' + err.message); } ``` + + \ No newline at end of file diff --git a/en/application-dev/reference/apis/js-apis-bundleMonitor.md b/en/application-dev/reference/apis/js-apis-bundleMonitor.md index ceef9d85218006916a52300887103c838d5bcd56..cf2d7aab46c5d8ea80d49fe66b61ae68e56885a0 100644 --- a/en/application-dev/reference/apis/js-apis-bundleMonitor.md +++ b/en/application-dev/reference/apis/js-apis-bundleMonitor.md @@ -1,4 +1,4 @@ -# Bundle.bundleMonitor +# @ohos.bundle.bundleMonitor The **Bundle.bundleMonitor** module provides APIs for listens for bundle installation, uninstall, and updates. @@ -18,7 +18,7 @@ import bundleMonitor from '@ohos.bundle.bundleMonitor'; | ------------------------------------ | ----------- | ------------------------------ | | ohos.permission.LISTEN_BUNDLE_CHANGE | system_core | Permission to listen for bundle installation, uninstall, and updates.| -For details, see [Permission Levels](../../security/accesstoken-overview.md#permission-levels). +For details, see [Permission Levels](../../security/accesstoken-overview.md). ## BundleChangeInfo @@ -50,10 +50,6 @@ Subscribes to bundle installation, uninstall, and update events. | BundleChangedEvent | string | Yes | Type of the event to subscribe to.| | Callback\ | callback | Yes | Callback used for the subscription.| -**Error codes** - -For details about the error codes, see [Bundle Error Codes](../errorcodes/errorcode-bundle.md). - **Example** ```ts @@ -87,10 +83,6 @@ Unsubscribes from bundle installation, uninstall, and update events. | BundleChangedEvent | string | Yes | Type of the event to unsubscribe from. | | Callback\ | callback | Yes | Callback used for the unsubscription. If this parameter is left empty, all callbacks of the current event are unsubscribed from.| -**Error codes** - -For details about the error codes, see [Bundle Error Codes](../errorcodes/errorcode-bundle.md). - **Example** ```ts diff --git a/en/application-dev/reference/apis/js-apis-cardEmulation.md b/en/application-dev/reference/apis/js-apis-cardEmulation.md index b4f3906b02b1dea7dabd558173010a37e65c2c19..329a2e6126de45fe401a748bd580a372cd1dc18e 100644 --- a/en/application-dev/reference/apis/js-apis-cardEmulation.md +++ b/en/application-dev/reference/apis/js-apis-cardEmulation.md @@ -1,11 +1,11 @@ -# Standard NFC Card Emulation +# @ohos.nfc.cardEmulation The **cardEmulation** module implements Near-Field Communication (NFC) card emulation. You can use the APIs provided by this module to determine the card emulation type supported and implement Host-based Card Emulation (HCE). -> **NOTE**
+> **NOTE** +> > The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version. - ## Modules to Import ``` @@ -18,7 +18,7 @@ Enumerates the NFC card emulation types. **System capability**: SystemCapability.Communication.NFC.Core -| Name| Default Value| Description| +| Name| Value| Description| | -------- | -------- | -------- | | HCE | 0 | HCE.| | UICC | 1 | Subscriber identity module (SIM) card emulation.| @@ -30,8 +30,6 @@ isSupported(feature: number): boolean Checks whether a certain type of card emulation is supported. -**Required permissions**: ohos.permission.NFC_CARD_EMULATION - **System capability**: SystemCapability.Communication.NFC.Core **Parameters** @@ -42,9 +40,9 @@ Checks whether a certain type of card emulation is supported. **Return value** - | **Type**| **Description**| - | -------- | -------- | - | boolean | Returns **true** if the card emulation type is supported; returns **false** otherwise.| +| **Type**| **Description**| +| -------- | -------- | +| boolean | Returns **true** if the card emulation type is supported; returns **false** otherwise.| ## HceService8+ diff --git a/en/application-dev/reference/apis/js-apis-commonEvent.md b/en/application-dev/reference/apis/js-apis-commonEvent.md index 5aaacbe7d104cf965d398240ff8e19468644713b..12fc260b45b0364ae5a4fc1218f45f6f2ed9df44 100644 --- a/en/application-dev/reference/apis/js-apis-commonEvent.md +++ b/en/application-dev/reference/apis/js-apis-commonEvent.md @@ -1,10 +1,10 @@ -# CommonEvent +# @ohos.commonEvent The **CommonEvent** module provides common event capabilities, including the capabilities to publish, subscribe to, and unsubscribe from common events, as well obtaining and setting the common event result code and result data. > **NOTE** -> -> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> - The APIs provided by this module are no longer maintained since API version 9. You are advised to use [@ohos.commonEventManager](js-apis-commonEventManager.md). +> - The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## Modules to Import @@ -14,7 +14,7 @@ import CommonEvent from '@ohos.commonEvent'; ## Support -Provides the event types supported by the **CommonEvent** module. The name and value indicate the macro and name of a common event, respectively. +The table below lists the event types supported by the **CommonEvent** module. The name and value indicate the macro and name of a common event, respectively. **System capability**: SystemCapability.Notification.CommonEvent @@ -167,8 +167,8 @@ Provides the event types supported by the **CommonEvent** module. The name and v | COMMON_EVENT_ACCOUNT_DELETED | usual.event.data.ACCOUNT_DELETED | ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS | Indicates the common event that the account was deleted. | | COMMON_EVENT_FOUNDATION_READY | usual.event.data.FOUNDATION_READY | ohos.permission.RECEIVER_STARTUP_COMPLETED | Indicates the common event that the foundation is ready. | | COMMON_EVENT_AIRPLANE_MODE_CHANGED | usual.event.AIRPLANE_MODE | - | Indicates the common event that the airplane mode of the device has changed. | -| COMMON_EVENT_SPLIT_SCREEN8+ | usual.event.SPLIT_SCREEN | - | Indicates the common event of screen splitting. | -| COMMON_EVENT_SLOT_CHANGE9+ | usual.event.SLOT_CHANGE | ohos.permission.NOTIFICATION_CONTROLLER | Indicates the common event that the notification slot has changed. | +| COMMON_EVENT_SPLIT_SCREEN8+ | usual.event.SPLIT_SCREEN | - | Indicates the common event of screen splitting. | +| COMMON_EVENT_SLOT_CHANGE9+ | usual.event.SLOT_CHANGE | ohos.permission.NOTIFICATION_CONTROLLER | Indicates the common event that the notification slot has been updated. | | COMMON_EVENT_SPN_INFO_CHANGED 9+ | usual.event.SPN_INFO_CHANGED | - | Indicates the common event that the SPN displayed has been updated. | | COMMON_EVENT_QUICK_FIX_APPLY_RESULT 9+ | usual.event.QUICK_FIX_APPLY_RESULT | - | Indicates the common event that a quick fix is applied to the application. | @@ -192,7 +192,7 @@ Publishes a common event. This API uses an asynchronous callback to return the r ```js // Callback for common event publication -function PublishCallBack(err) { +function publishCallBack(err) { if (err.code) { console.error("publish failed " + JSON.stringify(err)); } else { @@ -201,7 +201,7 @@ function PublishCallBack(err) { } // Publish a common event. -CommonEvent.publish("event", PublishCallBack); +CommonEvent.publish("event", publishCallBack); ``` @@ -234,7 +234,7 @@ let options = { } // Callback for common event publication -function PublishCallBack(err) { +function publishCallBack(err) { if (err.code) { console.error("publish failed " + JSON.stringify(err)); } else { @@ -243,7 +243,7 @@ function PublishCallBack(err) { } // Publish a common event. -CommonEvent.publish("event", options, PublishCallBack); +CommonEvent.publish("event", options, publishCallBack); ``` @@ -270,7 +270,7 @@ Publishes a common event to a specific user. This API uses an asynchronous callb ```js // Callback for common event publication -function PublishAsUserCallBack(err) { +function publishAsUserCallBack(err) { if (err.code) { console.error("publishAsUser failed " + JSON.stringify(err)); } else { @@ -282,7 +282,7 @@ function PublishAsUserCallBack(err) { let userId = 100; // Publish a common event. -CommonEvent.publishAsUser("event", userId, PublishAsUserCallBack); +CommonEvent.publishAsUser("event", userId, publishAsUserCallBack); ``` @@ -317,7 +317,7 @@ let options = { } // Callback for common event publication -function PublishAsUserCallBack(err) { +function publishAsUserCallBack(err) { if (err.code) { console.error("publishAsUser failed " + JSON.stringify(err)); } else { @@ -329,7 +329,7 @@ function PublishAsUserCallBack(err) { let userId = 100; // Publish a common event. -CommonEvent.publishAsUser("event", userId, options, PublishAsUserCallBack); +CommonEvent.publishAsUser("event", userId, options, publishAsUserCallBack); ``` @@ -361,7 +361,7 @@ let subscribeInfo = { }; // Callback for subscriber creation. -function CreateSubscriberCallBack(err, commonEventSubscriber) { +function createSubscriberCallBack(err, commonEventSubscriber) { if (err.code) { console.error("createSubscriber failed " + JSON.stringify(err)); } else { @@ -371,7 +371,7 @@ function CreateSubscriberCallBack(err, commonEventSubscriber) { } // Create a subscriber. -CommonEvent.createSubscriber(subscribeInfo, CreateSubscriberCallBack); +CommonEvent.createSubscriber(subscribeInfo, createSubscriberCallBack); ``` @@ -442,7 +442,7 @@ let subscribeInfo = { }; // Callback for common event subscription. -function SubscribeCallBack(err, data) { +function subscribeCallBack(err, data) { if (err.code) { console.error("subscribe failed " + JSON.stringify(err)); } else { @@ -451,19 +451,19 @@ function SubscribeCallBack(err, data) { } // Callback for subscriber creation. -function CreateSubscriberCallBack(err, commonEventSubscriber) { +function createSubscriberCallBack(err, commonEventSubscriber) { if (err.code) { console.error("createSubscriber failed " + JSON.stringify(err)); } else { console.info("createSubscriber"); subscriber = commonEventSubscriber; // Subscribe to a common event. - CommonEvent.subscribe(subscriber, SubscribeCallBack); + CommonEvent.subscribe(subscriber, subscribeCallBack); } } // Create a subscriber. -CommonEvent.createSubscriber(subscribeInfo, CreateSubscriberCallBack); +CommonEvent.createSubscriber(subscribeInfo, createSubscriberCallBack); ``` @@ -494,7 +494,7 @@ let subscribeInfo = { }; // Callback for common event subscription. -function SubscribeCallBack(err, data) { +function subscribeCallBack(err, data) { if (err.code) { console.info("subscribe failed " + JSON.stringify(err)); } else { @@ -503,19 +503,19 @@ function SubscribeCallBack(err, data) { } // Callback for subscriber creation. -function CreateSubscriberCallBack(err, commonEventSubscriber) { +function createSubscriberCallBack(err, commonEventSubscriber) { if (err.code) { console.info("createSubscriber failed " + JSON.stringify(err)); } else { console.info("createSubscriber"); subscriber = commonEventSubscriber; // Subscribe to a common event. - CommonEvent.subscribe(subscriber, SubscribeCallBack); + CommonEvent.subscribe(subscriber, subscribeCallBack); } } // Callback for common event unsubscription. -function UnsubscribeCallBack(err) { +function unsubscribeCallBack(err) { if (err.code) { console.info("unsubscribe failed " + JSON.stringify(err)); } else { @@ -524,10 +524,10 @@ function UnsubscribeCallBack(err) { } // Create a subscriber. -CommonEvent.createSubscriber(subscribeInfo, CreateSubscriberCallBack); +CommonEvent.createSubscriber(subscribeInfo, createSubscriberCallBack); // Unsubscribe from the common event. -CommonEvent.unsubscribe(subscriber, UnsubscribeCallBack); +CommonEvent.unsubscribe(subscriber, unsubscribeCallBack); ``` ## CommonEventSubscriber @@ -1233,39 +1233,45 @@ subscriber.finishCommonEvent().then(() => { ## CommonEventData +Describes the common event data body. + **System capability**: SystemCapability.Notification.CommonEvent -| Name | Readable| Writable| Type | Description | -| ---------- | ---- | ---- | -------------------- | ------------------------------------------------------- | -| event | Yes | No | string | Name of the common event that is being received. | -| bundleName | Yes | No | string | Bundle name. | -| code | Yes | No | number | Result code of the common event, which is used to transfer data of the int type. | -| data | Yes | No | string | Custom result data of the common event, which is used to transfer data of the string type.| -| parameters | Yes | No | {[key: string]: any} | Additional information about the common event. | +| Name | Type | Readable| Writable| Description | +| ---------- |-------------------- | ---- | ---- | ------------------------------------------------------- | +| event | string | Yes | No | Name of the common event that is being received. | +| bundleName | string | Yes | No | Bundle name. | +| code | number | Yes | No | Result code of the common event, which is used to transfer data of the int type. | +| data | string | Yes | No | Custom result data of the common event, which is used to transfer data of the string type.| +| parameters | {[key: string]: any} | Yes | No | Additional information about the common event. | ## CommonEventPublishData +Describes the data body published by a common event, including the common event content and attributes. + **System capability**: SystemCapability.Notification.CommonEvent -| Name | Readable| Writable| Type | Description | -| --------------------- | ---- | ---- | -------------------- | ---------------------------- | -| bundleName | Yes | No | string | Bundle name. | -| code | Yes | No | number | Result code of the common event. | -| data | Yes | No | string | Custom result data of the common event.| -| subscriberPermissions | Yes | No | Array\ | Permissions required for subscribers to receive the common event. | -| isOrdered | Yes | No | boolean | Whether the common event is an ordered one. | -| isSticky | Yes | No | boolean | Whether the common event is a sticky one. | -| parameters | Yes | No | {[key: string]: any} | Additional information about the common event. | +| Name | Type | Readable| Writable| Description | +| --------------------- | -------------------- | ---- | ---- | ---------------------------- | +| bundleName | string | Yes | No | Bundle name. | +| code | number | Yes | No | Result code of the common event. | +| data | string | Yes | No | Custom result data of the common event.| +| subscriberPermissions | Array\ | Yes | No | Permissions required for subscribers to receive the common event. | +| isOrdered | boolean | Yes | No | Whether the common event is an ordered one. | +| isSticky | boolean | Yes | No | Whether the common event is a sticky one. Only system applications and system services are allowed to send sticky events.| +| parameters | {[key: string]: any} | Yes | No | Additional information about the common event. | ## CommonEventSubscribeInfo +Provides the subscriber information. + **System capability**: SystemCapability.Notification.CommonEvent -| Name | Readable| Writable| Type | Description | -| ------------------- | ---- | ---- | -------------- | ------------------------------------------------------------ | -| events | Yes | No | Array\ | Name of the common event to publish. | -| publisherPermission | Yes | No | string | Permissions required for publishers to publish the common event. | -| publisherDeviceId | Yes | No | string | Device ID. The value must be the ID of an existing device on the same network. | -| userId | Yes | No | number | User ID. The default value is the ID of the current user. If this parameter is specified, the value must be an existing user ID in the system.| -| priority | Yes | No | number | Subscriber priority. The value ranges from -100 to 1000. | +| Name | Type | Readable| Writable| Description | +| ------------------- | -------------- | ---- | ---- | ------------------------------------------------------------ | +| events | Array\ | Yes | No | Name of the common event to publish. | +| publisherPermission | string | Yes | No | Permissions required for publishers to publish the common event. | +| publisherDeviceId | string | Yes | No | Device ID. The value must be the ID of an existing device on the same network. | +| userId | number | Yes | No | User ID. The default value is the ID of the current user. If this parameter is specified, the value must be an existing user ID in the system.| +| priority | number | Yes | No | Subscriber priority. The value ranges from -100 to +1000. | diff --git a/en/application-dev/reference/apis/js-apis-commonEventManager.md b/en/application-dev/reference/apis/js-apis-commonEventManager.md new file mode 100644 index 0000000000000000000000000000000000000000..502603da539a71e465fcfbffb8e69ba696d4e6ea --- /dev/null +++ b/en/application-dev/reference/apis/js-apis-commonEventManager.md @@ -0,0 +1,1353 @@ +# @ohos.commonEventManager + +The **CommonEventManager** module provides common event capabilities, including the capabilities to publish, subscribe to, and unsubscribe from common events, as well obtaining and setting the common event result code and result data. + +> **NOTE** +> +> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. + +## Modules to Import + +```ts +import CommonEventManager from '@ohos.commonEventManager'; +``` + +## Support + +The table below lists the event types supported by the **CommonEventManager** module. The name and value indicate the macro and name of a common event, respectively. + +**System capability**: SystemCapability.Notification.CommonEvent + +| Name | Value | Subscriber Permission | Description | +| ------------ | ------------------ | ---------------------- | -------------------- | +| COMMON_EVENT_BOOT_COMPLETED | usual.event.BOOT_COMPLETED | ohos.permission.RECEIVER_STARTUP_COMPLETED | Indicates the common event that the user has finished booting and the system has been loaded. | +| COMMON_EVENT_LOCKED_BOOT_COMPLETED | usual.event.LOCKED_BOOT_COMPLETED | ohos.permission.RECEIVER_STARTUP_COMPLETED | Indicates the common event that the user has finished booting and the system has been loaded but the screen is still locked. | +| COMMON_EVENT_SHUTDOWN | usual.event.SHUTDOWN | - | Indicates the common event that the device is being shut down and the final shutdown will proceed. | +| COMMON_EVENT_BATTERY_CHANGED | usual.event.BATTERY_CHANGED | - | Indicates the common event that the charging state, level, and other information about the battery have changed. | +| COMMON_EVENT_BATTERY_LOW | usual.event.BATTERY_LOW | - | Indicates the common event that the battery level is low. | +| COMMON_EVENT_BATTERY_OKAY | usual.event.BATTERY_OKAY | - | Indicates the common event that the battery exits the low state. | +| COMMON_EVENT_POWER_CONNECTED | usual.event.POWER_CONNECTED | - | Indicates the common event that the device is connected to an external power supply. | +| COMMON_EVENT_POWER_DISCONNECTED | usual.event.POWER_DISCONNECTED | - | Indicates the common event that the device is disconnected from the external power supply. | +| COMMON_EVENT_SCREEN_OFF | usual.event.SCREEN_OFF | - | Indicates the common event that the device screen is off and the device is sleeping. | +| COMMON_EVENT_SCREEN_ON | usual.event.SCREEN_ON | - | Indicates the common event that the device screen is on and the device is in interactive state. | +| COMMON_EVENT_THERMAL_LEVEL_CHANGED | usual.event.THERMAL_LEVEL_CHANGED | - | Indicates the common event that the device's thermal level has changed. | +| COMMON_EVENT_USER_PRESENT | usual.event.USER_PRESENT | - | Indicates the common event that the user unlocks the device. | +| COMMON_EVENT_TIME_TICK | usual.event.TIME_TICK | - | Indicates the common event that the system time has changed. | +| COMMON_EVENT_TIME_CHANGED | usual.event.TIME_CHANGED | - | Indicates the common event that the system time is set. | +| COMMON_EVENT_DATE_CHANGED | usual.event.DATE_CHANGED | - | Indicates the common event that the system time has changed. | +| COMMON_EVENT_TIMEZONE_CHANGED | usual.event.TIMEZONE_CHANGED | - | Indicates the common event that the system time zone has changed. | +| COMMON_EVENT_CLOSE_SYSTEM_DIALOGS | usual.event.CLOSE_SYSTEM_DIALOGS | - | Indicates the common event that a user closes a temporary system dialog box. | +| COMMON_EVENT_PACKAGE_ADDED | usual.event.PACKAGE_ADDED | - | Indicates the common event that a new application package has been installed on the device. | +| COMMON_EVENT_PACKAGE_REPLACED | usual.event.PACKAGE_REPLACED | - | Indicates the common event that a later version of an installed application package has replaced the previous one on the device. | +| COMMON_EVENT_MY_PACKAGE_REPLACED | usual.event.MY_PACKAGE_REPLACED | - | Indicates the common event that a later version of your application package has replaced the previous one. +| COMMON_EVENT_PACKAGE_REMOVED | usual.event.PACKAGE_REMOVED | - | Indicates the common event that an installed application has been uninstalled from the device with the application data retained. | +| COMMON_EVENT_BUNDLE_REMOVED | usual.event.BUNDLE_REMOVED | - | Indicates the common event that an installed bundle has been uninstalled from the device with the application data retained. | +| COMMON_EVENT_PACKAGE_FULLY_REMOVED | usual.event.PACKAGE_FULLY_REMOVED | - | Indicates the common event that an installed application, including both the application data and code, has been completely uninstalled from the device. | +| COMMON_EVENT_PACKAGE_CHANGED | usual.event.PACKAGE_CHANGED | - | Indicates the common event that an application package has been changed (for example, a component in the package has been enabled or disabled). | +| COMMON_EVENT_PACKAGE_RESTARTED | usual.event.PACKAGE_RESTARTED | - | Indicates the common event that the user has restarted the application package and killed all its processes. | +| COMMON_EVENT_PACKAGE_DATA_CLEARED | usual.event.PACKAGE_DATA_CLEARED | - | Indicates the common event that the user has cleared the application package data. | +| COMMON_EVENT_PACKAGE_CACHE_CLEARED9+ | usual.event.PACKAGE_CACHE_CLEARED | - | Indicates the common event that the user has cleared the application package data. | +| COMMON_EVENT_PACKAGES_SUSPENDED | usual.event.PACKAGES_SUSPENDED | - | Indicates the common event that application packages have been suspended. | +| COMMON_EVENT_PACKAGES_UNSUSPENDED | usual.event.PACKAGES_UNSUSPENDED | - | Indicates the common event that application package has not been suspended. | +| COMMON_EVENT_MY_PACKAGE_SUSPENDED | usual.event.MY_PACKAGE_SUSPENDED | - | Indicates the common event that an application package has been suspended. | +| COMMON_EVENT_MY_PACKAGE_UNSUSPENDED | usual.event.MY_PACKAGE_UNSUSPENDED | - | Indicates the common event that application package has not been suspended. | +| COMMON_EVENT_UID_REMOVED | usual.event.UID_REMOVED | - | Indicates the common event that a user ID has been removed from the system. | +| COMMON_EVENT_PACKAGE_FIRST_LAUNCH | usual.event.PACKAGE_FIRST_LAUNCH | - | Indicates the common event that an installed application is started for the first time. | +| COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION | usual.event.PACKAGE_NEEDS_VERIFICATION | - | Indicates the common event that an application requires system verification. | +| COMMON_EVENT_PACKAGE_VERIFIED | usual.event.PACKAGE_VERIFIED | - | Indicates the common event that an application has been verified by the system. | +| COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE | usual.event.EXTERNAL_APPLICATIONS_AVAILABLE | - | Indicates the common event that applications installed on the external storage become available for the system. | +| COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE | usual.event.EXTERNAL_APPLICATIONS_UNAVAILABLE | - | Indicates the common event that applications installed on the external storage become unavailable for the system. | +| COMMON_EVENT_CONFIGURATION_CHANGED | usual.event.CONFIGURATION_CHANGED | - | Indicates the common event that the device state (for example, orientation and locale) has changed. | +| COMMON_EVENT_LOCALE_CHANGED | usual.event.LOCALE_CHANGED | - | Indicates the common event that the device locale has changed. | +| COMMON_EVENT_MANAGE_PACKAGE_STORAGE | usual.event.MANAGE_PACKAGE_STORAGE | - | Indicates the common event that the device storage is insufficient. | +| COMMON_EVENT_DRIVE_MODE | common.event.DRIVE_MODE | - | Indicates the common event that the system is in driving mode. | +| COMMON_EVENT_HOME_MODE | common.event.HOME_MODE | - | Indicates the common event that the system is in home mode. | +| COMMON_EVENT_OFFICE_MODE | common.event.OFFICE_MODE | - | Indicates the common event that the system is in office mode. | +| COMMON_EVENT_USER_STARTED | usual.event.USER_STARTED | - | Indicates the common event that the user has been started. | +| COMMON_EVENT_USER_BACKGROUND | usual.event.USER_BACKGROUND | - | Indicates the common event that the user has been brought to the background. | +| COMMON_EVENT_USER_FOREGROUND | usual.event.USER_FOREGROUND | - | Indicates the common event that the user has been brought to the foreground. | +| COMMON_EVENT_USER_SWITCHED | usual.event.USER_SWITCHED | ohos.permission.MANAGE_LOCAL_ACCOUNTS | Indicates the common event that user switching is happening. | +| COMMON_EVENT_USER_STARTING | usual.event.USER_STARTING | ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS | Indicates the common event that the user is going to be started. | +| COMMON_EVENT_USER_UNLOCKED | usual.event.USER_UNLOCKED | - | Indicates the common event that the credential-encrypted storage has been unlocked for the current user when the device is unlocked after being restarted. | +| COMMON_EVENT_USER_STOPPING | usual.event.USER_STOPPING | ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS | Indicates the common event that the user is going to be stopped. | +| COMMON_EVENT_USER_STOPPED | usual.event.USER_STOPPED | - | Indicates the common event that the user has been stopped. | +| COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN | usual.event.DISTRIBUTED_ACCOUNT_LOGIN | - | Indicates the action of successful login using a distributed account. | +| COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT | usual.event.DISTRIBUTED_ACCOUNT_LOGOUT | - | Indicates the action of successful logout of a distributed account. | +| COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID | usual.event.DISTRIBUTED_ACCOUNT_TOKEN_INVALID | - | Indicates the action when the token of a distributed account is invalid. | +| COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF | usual.event.DISTRIBUTED_ACCOUNT_LOGOFF | - | Indicates the action of deregistering a distributed account. | +| COMMON_EVENT_WIFI_POWER_STATE | usual.event.wifi.POWER_STATE | - | Indicates the common event about the Wi-Fi network state, such as enabled and disabled. | +| COMMON_EVENT_WIFI_SCAN_FINISHED | usual.event.wifi.SCAN_FINISHED | ohos.permission.LOCATION | Indicates the common event that the Wi-Fi access point has been scanned and proven to be available. | +| COMMON_EVENT_WIFI_RSSI_VALUE | usual.event.wifi.RSSI_VALUE | ohos.permission.GET_WIFI_INFO | Indicates the common event that the Wi-Fi signal strength (RSSI) has changed. | +| COMMON_EVENT_WIFI_CONN_STATE | usual.event.wifi.CONN_STATE | - | Indicates the common event that the Wi-Fi connection state has changed. | +| COMMON_EVENT_WIFI_HOTSPOT_STATE | usual.event.wifi.HOTSPOT_STATE | - | Indicates the common event about the Wi-Fi hotspot state, such as enabled or disabled. | +| COMMON_EVENT_WIFI_AP_STA_JOIN | usual.event.wifi.WIFI_HS_STA_JOIN | ohos.permission.GET_WIFI_INFO | Indicates the common event that a client has joined the Wi-Fi hotspot of the current device. | +| COMMON_EVENT_WIFI_AP_STA_LEAVE | usual.event.wifi.WIFI_HS_STA_LEAVE | ohos.permission.GET_WIFI_INFO |Indicates the common event that a client has disconnected from the Wi-Fi hotspot of the current device. | +| COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE | usual.event.wifi.mplink.STATE_CHANGE | ohos.permission.MPLINK_CHANGE_STATE | Indicates the common event that the state of MPLINK (an enhanced Wi-Fi feature) has changed. | +| COMMON_EVENT_WIFI_P2P_CONN_STATE | usual.event.wifi.p2p.CONN_STATE_CHANGE | ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION | Indicates the common event that the Wi-Fi P2P connection state has changed. | +| COMMON_EVENT_WIFI_P2P_STATE_CHANGED | usual.event.wifi.p2p.STATE_CHANGE | ohos.permission.GET_WIFI_INFO | Indicates the common event about the Wi-Fi P2P state, such as enabled and disabled. | +| COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED | usual.event.wifi.p2p.DEVICES_CHANGE | ohos.permission.GET_WIFI_INFO | Indicates the common event about the status change of Wi-Fi P2P peer devices. | +| COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED | usual.event.wifi.p2p.PEER_DISCOVERY_STATE_CHANGE | ohos.permission.GET_WIFI_INFO | Indicates the common event about the Wi-Fi P2P discovery status change. | +| COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED | usual.event.wifi.p2p.CURRENT_DEVICE_CHANGE | ohos.permission.GET_WIFI_INFO | Indicates the common event about the status change of the Wi-Fi P2P local device. | +| COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED | usual.event.wifi.p2p.GROUP_STATE_CHANGED | ohos.permission.GET_WIFI_INFO | Indicates the common event that the Wi-Fi P2P group information has changed. | +| COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE | usual.event.bluetooth.handsfree.ag.CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | Indicates the common event about the connection state of Bluetooth handsfree communication. | +| COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE | usual.event.bluetooth.handsfree.ag.CURRENT_DEVICE_UPDATE | ohos.permission.USE_BLUETOOTH | Indicates the common event that the device connected to the Bluetooth handsfree is active. | +| COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE | usual.event.bluetooth.handsfree.ag.AUDIO_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | Indicates the common event that the connection state of Bluetooth A2DP has changed. | +| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE | usual.event.bluetooth.a2dpsource.CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | Indicates the common event about the connection state of Bluetooth A2DP. | +| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE | usual.event.bluetooth.a2dpsource.CURRENT_DEVICE_UPDATE | ohos.permission.USE_BLUETOOTH | Indicates the common event that the device connected using Bluetooth A2DP is active. | +| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE | usual.event.bluetooth.a2dpsource.PLAYING_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | Indicates the common event that the playing state of Bluetooth A2DP has changed. | +| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE | usual.event.bluetooth.a2dpsource.AVRCP_CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | Indicates the common event that the AVRCP connection state of Bluetooth A2DP has changed. | +| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE | usual.event.bluetooth.a2dpsource.CODEC_VALUE_UPDATE | ohos.permission.USE_BLUETOOTH | Indicates the common event that the audio codec state of Bluetooth A2DP has changed. | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED | usual.event.bluetooth.remotedevice.DISCOVERED | ohos.permission.LOCATION and ohos.permission.USE_BLUETOOTH | Indicates the common event that a remote Bluetooth device is discovered. | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE | usual.event.bluetooth.remotedevice.CLASS_VALUE_UPDATE | ohos.permission.USE_BLUETOOTH | Indicates the common event that the Bluetooth class of a remote Bluetooth device has changed. | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED | usual.event.bluetooth.remotedevice.ACL_CONNECTED | ohos.permission.USE_BLUETOOTH | Indicates the common event that a low-ACL connection has been established with a remote Bluetooth device. | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED | usual.event.bluetooth.remotedevice.ACL_DISCONNECTED | ohos.permission.USE_BLUETOOTH | Indicates the common event that a low-ACL connection has been disconnected from a remote Bluetooth device. | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE | usual.event.bluetooth.remotedevice.NAME_UPDATE | ohos.permission.USE_BLUETOOTH | Indicates the common event that the friendly name of a remote Bluetooth device is retrieved for the first time or is changed since the last retrieval. | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE | usual.event.bluetooth.remotedevice.PAIR_STATE | ohos.permission.USE_BLUETOOTH | Indicates the common event that the connection state of a remote Bluetooth device has changed. | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE | usual.event.bluetooth.remotedevice.BATTERY_VALUE_UPDATE | ohos.permission.USE_BLUETOOTH | Indicates the common event that the battery level of a remote Bluetooth device is retrieved for the first time or is changed since the last retrieval. | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT | usual.event.bluetooth.remotedevice.SDP_RESULT | - | Indicates the common event about the SDP state of a remote Bluetooth device. | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE | usual.event.bluetooth.remotedevice.UUID_VALUE | ohos.permission.DISCOVER_BLUETOOTH | Indicates the common event about the UUID connection state of a remote Bluetooth device. | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ | usual.event.bluetooth.remotedevice.PAIRING_REQ | ohos.permission.DISCOVER_BLUETOOTH | Indicates the common event about the pairing request from a remote Bluetooth device. | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL | usual.event.bluetooth.remotedevice.PAIRING_CANCEL | - | Indicates the common event that Bluetooth pairing is canceled. | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ | usual.event.bluetooth.remotedevice.CONNECT_REQ | - | Indicates the common event about the connection request from a remote Bluetooth device. | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY | usual.event.bluetooth.remotedevice.CONNECT_REPLY | - | Indicates the common event about the response to the connection request from a remote Bluetooth device. | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL | usual.event.bluetooth.remotedevice.CONNECT_CANCEL | - | Indicates the common event that the connection to a remote Bluetooth device has been canceled. | +| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE | usual.event.bluetooth.handsfreeunit.CONNECT_STATE_UPDATE | - | Indicates the common event that the connection state of a Bluetooth handsfree has changed. | +| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE | usual.event.bluetooth.handsfreeunit.AUDIO_STATE_UPDATE | - | Indicates the common event that the audio state of a Bluetooth handsfree has changed. | +| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT | usual.event.bluetooth.handsfreeunit.AG_COMMON_EVENT | - | Indicates the common event that the audio gateway state of a Bluetooth handsfree has changed. | +| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE | usual.event.bluetooth.handsfreeunit.AG_CALL_STATE_UPDATE | - | Indicates the common event that the calling state of a Bluetooth handsfree has changed. | +| COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE | usual.event.bluetooth.host.STATE_UPDATE | ohos.permission.USE_BLUETOOTH | Indicates the common event that the state of a Bluetooth adapter has been changed, for example, Bluetooth has been enabled or disabled. | +| COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE | usual.event.bluetooth.host.REQ_DISCOVERABLE | - | Indicates the common event about the request for the user to allow Bluetooth device scanning. | +| COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE | usual.event.bluetooth.host.REQ_ENABLE | ohos.permission.USE_BLUETOOTH | Indicates the common event about the request for the user to enable Bluetooth. | +| COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE | usual.event.bluetooth.host.REQ_DISABLE | ohos.permission.USE_BLUETOOTH | Indicates the common event about the request for the user to disable Bluetooth. | +| COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE | usual.event.bluetooth.host.SCAN_MODE_UPDATE | ohos.permission.USE_BLUETOOTH | Indicates the common event that the Bluetooth scanning mode of a device has changed. | +| COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED | usual.event.bluetooth.host.DISCOVERY_STARTED | ohos.permission.USE_BLUETOOTH | Indicates the common event that the Bluetooth scanning has been started on the device. | +| COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED | usual.event.bluetooth.host.DISCOVERY_FINISHED | ohos.permission.USE_BLUETOOTH | Indicates the common event that the Bluetooth scanning is finished on the device. | +| COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE | usual.event.bluetooth.host.NAME_UPDATE | ohos.permission.USE_BLUETOOTH | Indicates the common event that the Bluetooth adapter name of the device has changed. | +| COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE | usual.event.bluetooth.a2dpsink.CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | Indicates the common event that the connection state of Bluetooth A2DP Sink has changed. | +| COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE | usual.event.bluetooth.a2dpsink.PLAYING_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | Indicates the common event that the playing state of Bluetooth A2DP Sink has changed. | +| COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE | usual.event.bluetooth.a2dpsink.AUDIO_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | Indicates the common event that the audio state of Bluetooth A2DP Sink has changed. | +| COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED | usual.event.nfc.action.ADAPTER_STATE_CHANGED | - | Indicates the common event that the state of the device's NFC adapter has changed. | +| COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED | usual.event.nfc.action.RF_FIELD_ON_DETECTED | ohos.permission.MANAGE_SECURE_SETTINGS | Indicates the action of a common event that the NFC RF field is detected to be in the enabled state. | +| COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED | usual.event.nfc.action.RF_FIELD_OFF_DETECTED | ohos.permission.MANAGE_SECURE_SETTINGS | Indicates the common event that the NFC RF field is detected to be in the disabled state. | +| COMMON_EVENT_DISCHARGING | usual.event.DISCHARGING | - | Indicates the common event that the system stops charging the battery. | +| COMMON_EVENT_CHARGING | usual.event.CHARGING | - | Indicates the common event that the system starts charging the battery. | +| COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED | usual.event.DEVICE_IDLE_MODE_CHANGED | - | Indicates the common event that the system idle mode has changed. | +| COMMON_EVENT_POWER_SAVE_MODE_CHANGED | usual.event.POWER_SAVE_MODE_CHANGED | - | Indicates the common event that the power saving mode of the system has changed. | +| COMMON_EVENT_USER_ADDED | usual.event.USER_ADDED | ohos.permission.MANAGE_LOCAL_ACCOUNTS | Indicates the common event that a user has been added to the system. | +| COMMON_EVENT_USER_REMOVED | usual.event.USER_REMOVED | ohos.permission.MANAGE_LOCAL_ACCOUNTS | Indicates the common event that a user has been removed from the system. | +| COMMON_EVENT_ABILITY_ADDED | usual.event.ABILITY_ADDED | ohos.permission.LISTEN_BUNDLE_CHANGE | Indicates the common event that an ability has been added. | +| COMMON_EVENT_ABILITY_REMOVED | usual.event.ABILITY_REMOVED | ohos.permission.LISTEN_BUNDLE_CHANGE | Indicates the common event that an ability has been removed. | +| COMMON_EVENT_ABILITY_UPDATED | usual.event.ABILITY_UPDATED | ohos.permission.LISTEN_BUNDLE_CHANGE | Indicates the common event that an ability has been updated. | +| COMMON_EVENT_LOCATION_MODE_STATE_CHANGED | usual.event.location.MODE_STATE_CHANGED | - | Indicates the common event that the location mode of the system has changed. | +| COMMON_EVENT_IVI_SLEEP | common.event.IVI_SLEEP | - | Indicates the common event that the in-vehicle infotainment (IVI) system of a vehicle is sleeping. | +| COMMON_EVENT_IVI_PAUSE | common.event.IVI_PAUSE | - | Indicates the common event that the IVI system of a vehicle has entered sleep mode and the playing application is instructed to stop playback. | +| COMMON_EVENT_IVI_STANDBY | common.event.IVI_STANDBY | - | Indicates the common event that a third-party application is instructed to pause the current work. | +| COMMON_EVENT_IVI_LASTMODE_SAVE | common.event.IVI_LASTMODE_SAVE | - | Indicates the common event that a third-party application is instructed to save its last mode. | +| COMMON_EVENT_IVI_VOLTAGE_ABNORMAL | common.event.IVI_VOLTAGE_ABNORMAL | - | Indicates the common event that the voltage of the vehicle's power system is abnormal. | +| COMMON_EVENT_IVI_HIGH_TEMPERATURE | common.event.IVI_HIGH_TEMPERATURE | - | Indicates the common event that the temperature of the IVI system is high. | +| COMMON_EVENT_IVI_EXTREME_TEMPERATURE | common.event.IVI_EXTREME_TEMPERATURE | - | Indicates the common event that the temperature of the IVI system is extremely high. | +| COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL | common.event.IVI_TEMPERATURE_ABNORMAL | - | Indicates the common event that the IVI system has an extreme temperature. | +| COMMON_EVENT_IVI_VOLTAGE_RECOVERY | common.event.IVI_VOLTAGE_RECOVERY | - | Indicates the common event that the voltage of the vehicle's power system is restored to normal. | +| COMMON_EVENT_IVI_TEMPERATURE_RECOVERY | common.event.IVI_TEMPERATURE_RECOVERY | - | Indicates the common event that the temperature of the IVI system is restored to normal. | +| COMMON_EVENT_IVI_ACTIVE | common.event.IVI_ACTIVE | - | Indicates the common event that the battery service is active. | +|COMMON_EVENT_USB_STATE9+ | usual.event.hardware.usb.action.USB_STATE | - | Indicates a common event indicating that the USB device status changes. | +|COMMON_EVENT_USB_PORT_CHANGED9+ | usual.event.hardware.usb.action.USB_PORT_CHANGED | - | Indicates the public event that the USB port status of the user device changes. | +| COMMON_EVENT_USB_DEVICE_ATTACHED | usual.event.hardware.usb.action.USB_DEVICE_ATTACHED | - | Indicates the common event that a USB device has been attached when the user device functions as a USB host. | +| COMMON_EVENT_USB_DEVICE_DETACHED | usual.event.hardware.usb.action.USB_DEVICE_DETACHED | - | Indicates the common event that a USB device has been detached when the user device functions as a USB host. | +| COMMON_EVENT_USB_ACCESSORY_ATTACHED | usual.event.hardware.usb.action.USB_ACCESSORY_ATTACHED | - | Indicates the common event that a USB accessory was attached. | +| COMMON_EVENT_USB_ACCESSORY_DETACHED | usual.event.hardware.usb.action.USB_ACCESSORY_DETACHED | - | Indicates the common event that a USB accessory was detached. | +| COMMON_EVENT_DISK_REMOVED | usual.event.data.DISK_REMOVED | ohos.permission.STORAGE_MANAGER | Indicates the common event that an external storage device was removed. | +| COMMON_EVENT_DISK_UNMOUNTED | usual.event.data.DISK_UNMOUNTED | ohos.permission.STORAGE_MANAGER | Indicates the common event that an external storage device was unmounted. | +| COMMON_EVENT_DISK_MOUNTED | usual.event.data.DISK_MOUNTED | ohos.permission.STORAGE_MANAGER | Indicates the common event that an external storage device was mounted. | +| COMMON_EVENT_DISK_BAD_REMOVAL | usual.event.data.DISK_BAD_REMOVAL | ohos.permission.STORAGE_MANAGER | Indicates the common event that an external storage device was removed without being unmounted. | +| COMMON_EVENT_DISK_UNMOUNTABLE | usual.event.data.DISK_UNMOUNTABLE | ohos.permission.STORAGE_MANAGER | Indicates the common event that an external storage device becomes unmountable. | +| COMMON_EVENT_DISK_EJECT | usual.event.data.DISK_EJECT | ohos.permission.STORAGE_MANAGER | Indicates the common event that an external storage device was ejected. | +| COMMON_EVENT_VOLUME_REMOVED9+ | usual.event.data.VOLUME_REMOVED | ohos.permission.STORAGE_MANAGER | Indicates the common event that an external storage device was removed. | +| COMMON_EVENT_VOLUME_UNMOUNTED9+ | usual.event.data.VOLUME_UNMOUNTED | ohos.permission.STORAGE_MANAGER | Indicates the common event that an external storage device was unmounted. | +| COMMON_EVENT_VOLUME_MOUNTED9+ | usual.event.data.VOLUME_MOUNTED | ohos.permission.STORAGE_MANAGER | Indicates the common event that an external storage device was mounted. | +| COMMON_EVENT_VOLUME_BAD_REMOVAL9+ | usual.event.data.VOLUME_BAD_REMOVAL | ohos.permission.STORAGE_MANAGER | Indicates the common event that an external storage device was removed without being unmounted. | +| COMMON_EVENT_VOLUME_EJECT9+ | usual.event.data.VOLUME_EJECT | ohos.permission.STORAGE_MANAGER | Indicates the common event that an external storage device was ejected. | +| COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED | usual.event.data.VISIBLE_ACCOUNTS_UPDATED | ohos.permission.GET_APP_ACCOUNTS | Indicates the common event that the account visibility changed. | +| COMMON_EVENT_ACCOUNT_DELETED | usual.event.data.ACCOUNT_DELETED | ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS | Indicates the common event that the account was deleted. | +| COMMON_EVENT_FOUNDATION_READY | usual.event.data.FOUNDATION_READY | ohos.permission.RECEIVER_STARTUP_COMPLETED | Indicates the common event that the foundation is ready. | +| COMMON_EVENT_AIRPLANE_MODE_CHANGED | usual.event.AIRPLANE_MODE | - | Indicates the common event that the airplane mode of the device has changed. | +| COMMON_EVENT_SPLIT_SCREEN | usual.event.SPLIT_SCREEN | ohos.permission.RECEIVER_SPLIT_SCREEN | Indicates the common event of screen splitting. | +| COMMON_EVENT_SLOT_CHANGE9+ | usual.event.SLOT_CHANGE | ohos.permission.NOTIFICATION_CONTROLLER | Indicates the common event that the notification slot has been updated. | +| COMMON_EVENT_SPN_INFO_CHANGED 9+ | usual.event.SPN_INFO_CHANGED | - | Indicates the common event that the SPN displayed has been updated. | +| COMMON_EVENT_QUICK_FIX_APPLY_RESULT 9+ | usual.event.QUICK_FIX_APPLY_RESULT | - | Indicates the common event that a quick fix is applied to the application. | + + +## CommonEventManager.publish + +publish(event: string, callback: AsyncCallback\): void + +Publishes a common event. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ---------------------- | +| event | string | Yes | Name of the common event to publish.| +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Error codes** +For details about the error codes, see [Event Error Codes](../errorcodes/errorcode-CommonEventService.md). + +|ID |Error Message | +|-----------|--------------------| +|1500004 |not System services or System app| +|1500007 |message send error| +|1500008 |CEMS error| +|1500009 |system error| + +**Example** + +```ts +// Callback for common event publication +function publishCallBack(err) { + if (err) { + console.error("publish failed " + JSON.stringify(err)); + } else { + console.info("publish"); + } +} + +// Publish a common event. +try { + CommonEventManager.publish("event", publishCallBack); +} catch(err) { + console.error('publish failed, catch error' + JSON.stringify(err)); +} +``` + +## CommonEventManager.publish + +publish(event: string, options: CommonEventPublishData, callback: AsyncCallback\): void + +Publishes a common event with given attributes. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ---------------------- | ---- | ---------------------- | +| event | string | Yes | Name of the common event to publish. | +| options | [CommonEventPublishData](#commoneventpublishdata) | Yes | Attributes of the common event to publish.| +| callback | syncCallback\ | Yes | Callback used to return the result. | + +**Error codes** +|ID |Error Message | +|-----------|--------------------| +|1500004 |not System services or System app| +|1500007 |message send error| +|1500008 |CEMS error| +|1500009 |system error| + + +**Example** + + +```ts +// Attributes of a common event. +var options = { + code: 0, // Result code of the common event. + data: "initial data";// Result data of the common event. + isOrdered: true // The common event is an ordered one. +} + +// Callback for common event publication +function publishCallBack(err) { + if (err) { + console.error("publish failed " + JSON.stringify(err)); + } else { + console.info("publish"); + } +} + +// Publish a common event. +try { + CommonEventManager.publish("event", options, publishCallBack); +} catch (err) { + console.error('publish failed, catch error' + JSON.stringify(err)); +} +``` + + + +## CommonEventManager.publishAsUser + +publishAsUser(event: string, userId: number, callback: AsyncCallback\): void + +Publishes a common event to a specific user. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**System API**: This is a system API and cannot be called by third-party applications. + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ---------------------------------- | +| event | string | Yes | Name of the common event to publish. | +| userId | number | Yes | User ID.| +| callback | AsyncCallback\ | Yes | Callback used to return the result. | + +**Error codes** +|ID |Error Message | +|-----------|--------------------| +|1500004 |not System services or System app| +|1500007 |message send error| +|1500008 |CEMS error| +|1500009 |system error| + +**Example** + +```ts +// Callback for common event publication +function publishAsUserCallBack(err) { + if (err) { + console.error("publishAsUser failed " + JSON.stringify(err)); + } else { + console.info("publishAsUser"); + } +} + +// Specify the user to whom the common event will be published. +var userId = 100; + +// Publish a common event. +try { + CommonEventManager.publishAsUser("event", userId, publishAsUserCallBack); +} catch (err) { + console.error('publishAsUser failed, catch error' + JSON.stringify(err)); +} +``` + + + +## CommonEventManager.publishAsUser + +publishAsUser(event: string, userId: number, options: CommonEventPublishData, callback: AsyncCallback\): void + +Publishes a common event with given attributes to a specific user. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**System API**: This is a system API and cannot be called by third-party applications. + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ---------------------- | ---- | ---------------------- | +| event | string | Yes | Name of the common event to publish. | +| userId | number | Yes| User ID.| +| options | [CommonEventPublishData](#commoneventpublishdata) | Yes | Attributes of the common event to publish.| +| callback | AsyncCallback\ | Yes | Callback used to return the result. | + +**Error codes** +|ID |Error Message | +|-----------|--------------------| +|1500004 |not System services or System app| +|1500007 |message send error| +|1500008 |CEMS error| +|1500009 |system error| + +**Example** + + +```ts +// Attributes of a common event. +var options = { + code: 0, // Result code of the common event. + data: "initial data";// Result data of the common event. +} + +// Callback for common event publication +function publishAsUserCallBack(err) { + if (err) { + console.error("publishAsUser failed " + JSON.stringify(err)); + } else { + console.info("publishAsUser"); + } +} + +// Specify the user to whom the common event will be published. +var userId = 100; + +// Publish a common event. +try { + CommonEventManager.publishAsUser("event", userId, options, publishAsUserCallBack); +} catch (err) { + console.error('publishAsUser failed, catch error' + JSON.stringify(err)); +} +``` + + + +## CommonEventManager.createSubscriber + +createSubscriber(subscribeInfo: CommonEventSubscribeInfo, callback: AsyncCallback\): void + +Creates a subscriber. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name | Type | Mandatory| Description | +| ------------- | ------------------------------------------------------------ | ---- | -------------------------- | +| subscribeInfo | [CommonEventSubscribeInfo](#commoneventsubscribeinfo) | Yes | Subscriber information. | +| callback | AsyncCallback\<[CommonEventSubscriber](#commoneventsubscriber)> | Yes | Callback used to return the result.| + +**Example** + + +```ts +var subscriber; // Used to save the created subscriber object for subsequent subscription and unsubscription. + +// Subscriber information. +var subscribeInfo = { + events: ["event"] +}; + +// Callback for subscriber creation. +function createSubscriberCallBack(err, commonEventSubscriber) { + if(!err) { + console.info("createSubscriber"); + subscriber = commonEventSubscriber; + } else { + console.error("createSubscriber failed " + JSON.stringify(err)); + } +} + +// Create a subscriber. +try { + CommonEventManager.createSubscriber(subscribeInfo, createSubscriberCallBack); +} catch (err) { + console.error('createSubscriber failed, catch error' + JSON.stringify(err)); +} +``` + + + +## CommonEventManager.createSubscriber + +createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise\ + +Creates a subscriber. This API uses a promise to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name | Type | Mandatory| Description | +| ------------- | ----------------------------------------------------- | ---- | -------------- | +| subscribeInfo | [CommonEventSubscribeInfo](#commoneventsubscribeinfo) | Yes | Subscriber information.| + +**Return value** +| Type | Description | +| --------------------------------------------------------- | ---------------- | +| Promise\<[CommonEventSubscriber](#commoneventsubscriber)> | Promise used to return the subscriber object.| + +**Example** + +```ts +var subscriber; // Used to save the created subscriber object for subsequent subscription and unsubscription. + +// Subscriber information. +var subscribeInfo = { + events: ["event"] +}; + +// Create a subscriber. +try { + CommonEventManager.createSubscriber(subscribeInfo).then((commonEventSubscriber) => { + console.info("createSubscriber"); + subscriber = commonEventSubscriber; +}).catch((err) => { + console.error("createSubscriber failed " + JSON.stringify(err)); +}); +} catch(err) { + console.error('createSubscriber failed, catch error' + JSON.stringify(err)); +} + +``` + + + +## CommonEventManager.subscribe + +subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback\): void + +Subscribes to common events. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name | Type | Mandatory| Description | +| ---------- | ---------------------------------------------------- | ---- | -------------------------------- | +| subscriber | [CommonEventSubscriber](#commoneventsubscriber) | Yes | Subscriber object. | +| callback | AsyncCallback\<[CommonEventData](#commoneventdata)> | Yes | Callback used to return the result.| + +**Example** + +```ts +// Subscriber information. +var subscriber; // Used to save the created subscriber object for subsequent subscription and unsubscription. + +// Subscriber information. +var subscribeInfo = { + events: ["event"] +}; + +// Callback for common event subscription. +function SubscribeCallBack(err, data) { + if (err.code) { + console.error("subscribe failed " + JSON.stringify(err)); + } else { + console.info("subscribe "); + } +} + +// Callback for subscriber creation. +function createSubscriberCallBack(err, commonEventSubscriber) { + if(!err) { + console.info("createSubscriber"); + subscriber = commonEventSubscriber; + // Subscribe to a common event. + try { + CommonEventManager.subscribe(subscriber, SubscribeCallBack); + } catch (err) { + console.error("createSubscriber failed " + JSON.stringify(err)); + } + } else { + console.error("createSubscriber failed " + JSON.stringify(err)); + } +} + +// Create a subscriber. +try { + CommonEventManager.createSubscriber(subscribeInfo, createSubscriberCallBack); +} catch (err) { + console.error('createSubscriber failed, catch error' + JSON.stringify(err)); +} +``` + + + +## CommonEventManager.unsubscribe + +unsubscribe(subscriber: CommonEventSubscriber, callback?: AsyncCallback\): void + +Unsubscribes from common events. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name | Type | Mandatory| Description | +| ---------- | ----------------------------------------------- | ---- | ------------------------ | +| subscriber | [CommonEventSubscriber](#commoneventsubscriber) | Yes | Subscriber object. | +| callback | AsyncCallback\ | No | Callback used to return the result.| + +**Example** + +```ts +var subscriber; // Used to save the created subscriber object for subsequent subscription and unsubscription. +// Subscriber information. +var subscribeInfo = { + events: ["event"] +}; +// Callback for common event subscription. +function subscribeCallBack(err, data) { + if (err) { + console.info("subscribe failed " + JSON.stringify(err)); + } else { + console.info("subscribe"); + } +} +// Callback for subscriber creation. +function createSubscriberCallBack(err, commonEventSubscriber) { + if (err) { + console.info("createSubscriber failed " + JSON.stringify(err)); + } else { + console.info("createSubscriber"); + subscriber = commonEventSubscriber; + // Subscribe to a common event. + try { + CommonEventManager.subscribe(subscriber, subscribeCallBack); + } catch(err) { + console.info("subscribe failed " + JSON.stringify(err)); + } + } +} +// Callback for common event unsubscription. +function unsubscribeCallBack(err) { + if (err) { + console.info("unsubscribe failed " + JSON.stringify(err)); + } else { + console.info("unsubscribe"); + } +} +// Create a subscriber. +try { + CommonEventManager.createSubscriber(subscribeInfo, createSubscriberCallBack); +} catch (err) { + console.info("createSubscriber failed " + JSON.stringify(err)); +} + +// Unsubscribe from the common event. +try { + CommonEventManager.unsubscribe(subscriber, unsubscribeCallBack); +} catch (err) { + console.info("unsubscribe failed " + JSON.stringify(err)); +} +``` + +## CommonEventSubscriber + +### getCode + +getCode(callback: AsyncCallback\): void + +Obtains the result code of this common event. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ---------------------- | ---- | ------------------ | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +// Callback for result code obtaining of an ordered common event. +function getCodeCallback(err, Code) { + if (err.code) { + console.error("getCode failed " + JSON.stringify(err)); + } else { + console.info("getCode " + JSON.stringify(Code)); + } +} +subscriber.getCode(getCodeCallback); +``` + +### getCode + +getCode(): Promise\ + +Obtains the result code of this common event. This API uses a promise to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Return value** + +| Type | Description | +| ---------------- | -------------------- | +| Promise\ | Promise used to return the result.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +subscriber.getCode().then((Code) => { + console.info("getCode " + JSON.stringify(Code)); +}).catch((err) => { + console.error("getCode failed " + JSON.stringify(err)); +}); +``` + +### setCode + +setCode(code: number, callback: AsyncCallback\): void + +Sets the result code for this common event. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ---------------------- | +| code | number | Yes | Result code of the common event. | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +// Callback for result code setting of an ordered common event. +function setCodeCallback(err) { + if (err.code) { + console.error("setCode failed " + JSON.stringify(err)); + } else { + console.info("setCode"); + } +} +subscriber.setCode(1, setCodeCallback); +``` + +### setCode + +setCode(code: number): Promise\ + +Sets the result code for this common event. This API uses a promise to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------ | +| code | number | Yes | Result code of the common event.| + +**Return value** + +| Type | Description | +| ---------------- | -------------------- | +| Promise\ | Promise used to return the result.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +subscriber.setCode(1).then(() => { + console.info("setCode"); +}).catch((err) => { + console.error("setCode failed " + JSON.stringify(err)); +}); +``` + +### getData + +getData(callback: AsyncCallback\): void + +Obtains the result data of this common event. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ---------------------- | ---- | -------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result data.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +// Callback for result data obtaining of an ordered common event. +function getDataCallback(err, Data) { + if (err.code) { + console.error("getData failed " + JSON.stringify(err)); + } else { + console.info("getData " + JSON.stringify(Data)); + } +} +subscriber.getData(getDataCallback); +``` + +### getData + +getData(): Promise\ + +Obtains the result data of this common event. This API uses a promise to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Return value** + +| Type | Description | +| ---------------- | ------------------ | +| Promise\ | Promise used to return the result data.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +subscriber.getData().then((Data) => { + console.info("getData " + JSON.stringify(Data)); +}).catch((err) => { + console.error("getData failed " + JSON.stringify(err)); +}); +``` + +### setData + +setData(data: string, callback: AsyncCallback\): void + +Sets the result data for this common event. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | -------------------- | +| data | string | Yes | Result data of the common event. | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +// Callback for result data setting of an ordered common event +function setDataCallback(err) { + if (err.code) { + console.error("setData failed " + JSON.stringify(err)); + } else { + console.info("setData"); + } +} +subscriber.setData("publish_data_changed", setDataCallback); +``` + +### setData + +setData(data: string): Promise\ + +Sets the result data for this common event. This API uses a promise to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | -------------------- | +| data | string | Yes | Result data of the common event.| + +**Return value** + +| Type | Description | +| ---------------- | -------------------- | +| Promise\ | Promise used to return the result.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +subscriber.setData("publish_data_changed").then(() => { + console.info("setData"); +}).catch((err) => { + console.error("setData failed " + JSON.stringify(err)); +}); +``` + +### setCodeAndData + +setCodeAndData(code: number, data: string, callback:AsyncCallback\): void + +Sets the result code and result data for this common event. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ---------------------- | +| code | number | Yes | Result code of the common event. | +| data | string | Yes | Result data of the common event. | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +// Callback for result code and result data setting of an ordered common event. +function setCodeDataCallback(err) { + if (err.code) { + console.error("setCodeAndData failed " + JSON.stringify(err)); + } else { + console.info("setCodeDataCallback"); + } +} +subscriber.setCodeAndData(1, "publish_data_changed", setCodeDataCallback); +``` + +### setCodeAndData + +setCodeAndData(code: number, data: string): Promise\ + +Sets the result code and result data for this common event. This API uses a promise to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | -------------------- | +| code | number | Yes | Result code of the common event.| +| data | string | Yes | Result data of the common event.| + +**Return value** + +| Type | Description | +| ---------------- | -------------------- | +| Promise\ | Promise used to return the result.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +subscriber.setCodeAndData(1, "publish_data_changed").then(() => { + console.info("setCodeAndData"); +}).catch((err) => { + console.info("setCodeAndData failed " + JSON.stringify(err)); +}); +``` + +### isOrderedCommonEvent + +isOrderedCommonEvent(callback: AsyncCallback\): void + +Checks whether this common event is an ordered one. This API uses an asynchronous callback to return the result. + + + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ----------------------- | ---- | ---------------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result. The value **true** means that the common event is an ordered one; and **false** means the opposite.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +// Callback for checking whether the current common event is an ordered one. +function isOrderedCallback(err, isOrdered) { + if (err.code) { + console.error("isOrderedCommonEvent failed " + JSON.stringify(err)); + } else { + console.info("isOrdered " + JSON.stringify(isOrdered)); + } +} +subscriber.isOrderedCommonEvent(isOrderedCallback); +``` + +### isOrderedCommonEvent + +isOrderedCommonEvent(): Promise\ + +Checks whether this common event is an ordered one. This API uses a promise to return the result. + + + +**System capability**: SystemCapability.Notification.CommonEvent + +**Return value** + +| Type | Description | +| ----------------- | -------------------------------- | +| Promise\ | Promise used to return the result. The value **true** means that the common event is an ordered one; and **false** means the opposite.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +subscriber.isOrderedCommonEvent().then((isOrdered) => { + console.info("isOrdered " + JSON.stringify(isOrdered)); +}).catch((err) => { + console.error("isOrdered failed " + JSON.stringify(err)); +}); +``` + +### isStickyCommonEvent + +isStickyCommonEvent(callback: AsyncCallback\): void + +Checks whether this common event is a sticky one. This API uses an asynchronous callback to return the result. + + + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ----------------------- | ---- | ---------------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result. The value **true** means that the common event is a sticky one; and **false** means the opposite.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +// Callback for checking whether the current common event is a sticky one. +function isStickyCallback(err, isSticky) { + if (err.code) { + console.error("isStickyCommonEvent failed " + JSON.stringify(err)); + } else { + console.info("isSticky " + JSON.stringify(isSticky)); + } +} +subscriber.isStickyCommonEvent(isStickyCallback); +``` + +### isStickyCommonEvent + +isStickyCommonEvent(): Promise\ + +Checks whether this common event is a sticky one. This API uses a promise to return the result. + + + +**System capability**: SystemCapability.Notification.CommonEvent + +**Return value** + +| Type | Description | +| ----------------- | -------------------------------- | +| Promise\ | Promise used to return the result. The value **true** means that the common event is a sticky one; and **false** means the opposite.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +subscriber.isStickyCommonEvent().then((isSticky) => { + console.info("isSticky " + JSON.stringify(isSticky)); +}).catch((err) => { + console.error("isSticky failed " + JSON.stringify(err)); +}); +``` + +### abortCommonEvent + +abortCommonEvent(callback: AsyncCallback\): void + +Aborts this common event. After the abort, the common event is not sent to the next subscriber. This API takes effect only for ordered common events. It uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | -------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +// Callback for common event aborting. +function abortCallback(err) { + if (err.code) { + console.error("abortCommonEvent failed " + JSON.stringify(err)); + } else { + console.info("abortCommonEvent"); + } +} +subscriber.abortCommonEvent(abortCallback); +``` + +### abortCommonEvent + +abortCommonEvent(): Promise\ + +Aborts this common event. After the abort, the common event is not sent to the next subscriber. This API takes effect only for ordered common events. It uses a promise to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Return value** + +| Type | Description | +| ---------------- | -------------------- | +| Promise\ | Promise used to return the result.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +subscriber.abortCommonEvent().then(() => { + console.info("abortCommonEvent"); +}).catch((err) => { + console.error("abortCommonEvent failed " + JSON.stringify(err)); +}); +``` + +### clearAbortCommonEvent + +clearAbortCommonEvent(callback: AsyncCallback\): void + +Clears the aborted state of this common event. This API takes effect only for ordered common events. It uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | -------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +// Callback for clearing the aborted state of the current common event. +function clearAbortCallback(err) { + if (err.code) { + console.error("clearAbortCommonEvent failed " + JSON.stringify(err)); + } else { + console.info("clearAbortCommonEvent"); + } +} +subscriber.clearAbortCommonEvent(clearAbortCallback); +``` + +### clearAbortCommonEvent + +clearAbortCommonEvent(): Promise\ + +Clears the aborted state of this common event. This API takes effect only for ordered common events. It uses a promise to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Return value** + +| Type | Description | +| ---------------- | -------------------- | +| Promise\ | Promise used to return the result.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +subscriber.clearAbortCommonEvent().then(() => { + console.info("clearAbortCommonEvent"); +}).catch((err) => { + console.error("clearAbortCommonEvent failed " + JSON.stringify(err)); +}); +``` + +### getAbortCommonEvent + +getAbortCommonEvent(callback: AsyncCallback\): void + +Checks whether this common event is in the aborted state. This API takes effect only for ordered common events. It uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ----------------------- | ---- | ---------------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result. The value **true** means that the ordered common event is in the aborted state; and **false** means the opposite.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +// Callback for checking whether the current common event is in the aborted state. +function getAbortCallback(err, AbortCommonEvent) { + if (err.code) { + console.error("getAbortCommonEvent failed " + JSON.stringify(err)); + } else { + console.info("AbortCommonEvent " + AbortCommonEvent) + } +} +subscriber.getAbortCommonEvent(getAbortCallback); +``` + +### getAbortCommonEvent + +getAbortCommonEvent(): Promise\ + +Checks whether this common event is in the aborted state. This API takes effect only for ordered common events. It uses a promise to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Return value** + +| Type | Description | +| ----------------- | ---------------------------------- | +| Promise\ | Promise used to return the result. The value **true** means that the ordered common event is in the aborted state; and **false** means the opposite.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +subscriber.getAbortCommonEvent().then((AbortCommonEvent) => { + console.info("AbortCommonEvent " + JSON.stringify(AbortCommonEvent)); +}).catch((err) => { + console.error("getAbortCommonEvent failed " + JSON.stringify(err)); +}); +``` + +### getSubscribeInfo + +getSubscribeInfo(callback: AsyncCallback\): void + +Obtains the subscriber information. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------------------------------ | ---- | ---------------------- | +| callback | AsyncCallback\<[CommonEventSubscribeInfo](#commoneventsubscribeinfo)> | Yes | Callback used to return the subscriber information.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +// Callback for subscriber information obtaining. +function getSubscribeInfoCallback(err, SubscribeInfo) { + if (err.code) { + console.error("getSubscribeInfo failed " + JSON.stringify(err)); + } else { + console.info("SubscribeInfo " + JSON.stringify(SubscribeInfo)); + } +} +subscriber.getSubscribeInfo(getSubscribeInfoCallback); +``` + +### getSubscribeInfo + +getSubscribeInfo(): Promise\ + +Obtains the subscriber information. This API uses a promise to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Return value** + +| Type | Description | +| ------------------------------------------------------------ | ---------------------- | +| Promise\<[CommonEventSubscribeInfo](#commoneventsubscribeinfo)> | Promise used to return the subscriber information.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +subscriber.getSubscribeInfo().then((SubscribeInfo) => { + console.info("SubscribeInfo " + JSON.stringify(SubscribeInfo)); +}).catch((err) => { + console.error("getSubscribeInfo failed " + JSON.stringify(err)); +}); +``` + +### finishCommonEvent9+ + +finishCommonEvent(callback: AsyncCallback\): void + +Finishes this ordered common event. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | -------------------------------- | +| callback | AsyncCallback\ | Yes | Callback returned after the ordered common event is finished.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +// Callback for ordered common event finishing. +function finishCommonEventCallback(err) { + if (err.code) { + console.error("finishCommonEvent failed " + JSON.stringify(err)); +} else { + console.info("FinishCommonEvent"); +} +} +subscriber.finishCommonEvent(finishCommonEventCallback); +``` + +### finishCommonEvent9+ + +finishCommonEvent(): Promise\ + +Finishes this ordered common event. This API uses a promise to return the result. + +**System capability**: SystemCapability.Notification.CommonEvent + +**Return value** + +| Type | Description | +| ---------------- | -------------------- | +| Promise\ | Promise used to return the result.| + +**Example** + +```ts +var subscriber; // Subscriber object successfully created. + +subscriber.finishCommonEvent().then(() => { + console.info("FinishCommonEvent"); +}).catch((err) => { + console.error("finishCommonEvent failed " + JSON.stringify(err)); +}); +``` + +## CommonEventData + +**System capability**: SystemCapability.Notification.CommonEvent + +| Name | Type | Readable| Writable| Description | +| ---------- |-------------------- | ---- | ---- | ------------------------------------------------------- | +| event | string | Yes | No | Name of the common event that is being received. | +| bundleName | string | Yes | No | Bundle name. | +| code | number | Yes | No | Result code of the common event, which is used to transfer data of the int type. | +| data | string | Yes | No | Custom result data of the common event, which is used to transfer data of the string type.| +| parameters | {[key: string]: any} | Yes | No | Additional information about the common event. | + + +## CommonEventPublishData + +**System capability**: SystemCapability.Notification.CommonEvent + +| Name | Type | Readable| Writable| Description | +| --------------------- | -------------------- | ---- | ---- | ---------------------------- | +| bundleName | string | Yes | No | Bundle name. | +| code | number | Yes | No | Result code of the common event. | +| data | string | Yes | No | Custom result data of the common event.| +| subscriberPermissions | Array\ | Yes | No | Permissions required for subscribers to receive the common event. | +| isOrdered | boolean | Yes | No | Whether the common event is an ordered one. | +| isSticky | boolean | Yes | No | Whether the common event is a sticky one. Only system applications and system services are allowed to send sticky events.| +| parameters | {[key: string]: any} | Yes | No | Additional information about the common event. | + +## CommonEventSubscribeInfo + +**System capability**: SystemCapability.Notification.CommonEvent + +| Name | Type | Readable| Writable| Description | +| ------------------- | -------------- | ---- | ---- | ------------------------------------------------------------ | +| events | Array\ | Yes | No | Name of the common event to publish. | +| publisherPermission | string | Yes | No | Permissions required for publishers to publish the common event. | +| publisherDeviceId | string | Yes | No | Device ID. The value must be the ID of an existing device on the same network. | +| userId | number | Yes | No | User ID. The default value is the ID of the current user. If this parameter is specified, the value must be an existing user ID in the system.| +| priority | number | Yes | No | Subscriber priority. The value ranges from -100 to +1000. | diff --git a/en/application-dev/reference/apis/js-apis-configPolicy.md b/en/application-dev/reference/apis/js-apis-configPolicy.md index 4e541cbfe0022219d9ebf57b0502e82984c84384..af8d2ba8f5fa0aa614d55205d176ce49132f9068 100644 --- a/en/application-dev/reference/apis/js-apis-configPolicy.md +++ b/en/application-dev/reference/apis/js-apis-configPolicy.md @@ -1,4 +1,4 @@ -# Configuration Policy +# @ohos.configPolicy (Configuration Policy) The **configPolicy** module provides APIs for obtaining the custom configuration directory and file path based on the predefined custom configuration level. @@ -24,6 +24,7 @@ For example, if the **config.xml** file is stored in **/system/etc/config.xml** **System capability**: SystemCapability.Customization.ConfigPolicy **Parameters** + | Name | Type | Mandatory | Description | | -------- | --------------------------- | ---- | --------------------- | | relPath | string | Yes | Name of the configuration file. | @@ -50,11 +51,13 @@ Obtains the path of a configuration file with the specified name and highest pri **System capability**: SystemCapability.Customization.ConfigPolicy **Parameters** + | Name | Type | Mandatory | Description | | ------- | ------ | ---- | ----- | | relPath | string | Yes | Name of the configuration file.| **Return value** + | Type | Description | | --------------------- | ------------ | | Promise<string> | Promise used to return the path of the configuration file.| @@ -79,6 +82,7 @@ For example, if the **config.xml** file is stored in **/system/etc/config.xml** **System capability**: SystemCapability.Customization.ConfigPolicy **Parameters** + | Name | Type | Mandatory | Description | | -------- | ---------------------------------------- | ---- | ------------- | | relPath | string | Yes | Name of the configuration file. | @@ -105,11 +109,13 @@ Obtains a list of configuration files with the specified name, sorted in ascendi **System capability**: SystemCapability.Customization.ConfigPolicy **Parameters** + | Name | Type | Mandatory | Description | | ------- | ------ | ---- | ----- | | relPath | string | Yes | Name of the configuration file.| **Return value** + | Type | Description | | ---------------------------------- | ---- | | Promise<Array<string>> | Promise used to return the file list.| @@ -133,6 +139,7 @@ Obtains the list of configuration level directories. This API uses an asynchrono **System capability**: SystemCapability.Customization.ConfigPolicy **Parameters** + | Name | Type | Mandatory | Description | | -------- | ---------------------------------------- | ---- | ----------------- | | callback | AsyncCallback<Array<string>> | Yes | Callback used to return the configuration level directory list.| @@ -158,6 +165,7 @@ Obtains the list of configuration level directories. This API uses a promise to **System capability**: SystemCapability.Customization.ConfigPolicy **Return value** + | Type | Description | | ---------------------------------- | -------- | | Promise<Array<string>> | Promise used to return the configuration level directory list.| diff --git a/en/application-dev/reference/apis/js-apis-connectedTag.md b/en/application-dev/reference/apis/js-apis-connectedTag.md index 57cf8eadb5a07bcd3038c67d4d582ab4359d2ea2..1bfb1231c3c4584fe4d608891bdf2be54458e425 100644 --- a/en/application-dev/reference/apis/js-apis-connectedTag.md +++ b/en/application-dev/reference/apis/js-apis-connectedTag.md @@ -1,18 +1,17 @@ -# Active Tag +# @ohos.connectedTag -The **connectedTag** module provides methods for using active tags. You can use the APIs provided by this module to initialize the active tag chip and read and write active tags. +The **connectedTag** module provides APIs for using active tags. You can use the APIs to initialize the active tag chip and read and write active tags. -> **NOTE**
+> **NOTE** +> > The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. - ## Modules to Import -``` +```js import connectedTag from '@ohos.connectedTag'; ``` - ## connectedTag.init init(): boolean @@ -23,11 +22,11 @@ Initializes the active tag chip. **System capability**: SystemCapability.Communication.ConnectedTag -- Return value - | **Type**| **Description**| - | -------- | -------- | - | boolean | Returns **true** if the initialization is successful; returns **false** otherwise.| +**Return value** +| **Type**| **Description**| +| -------- | -------- | +| boolean | Returns **true** if the operation is successful; returns **false** otherwise.| ## connectedTag.uninit @@ -39,125 +38,136 @@ Uninitializes the active tag resources. **System capability**: SystemCapability.Communication.ConnectedTag -- Return value - | **Type**| **Description**| - | -------- | -------- | - | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| +**Return value** +| **Type**| **Description**| +| -------- | -------- | +| boolean | Returns **true** if the operation is successful; returns **false** otherwise.| ## connectedTag.readNdefTag readNdefTag(): Promise<string> -Reads the content of this active tag. This method uses a promise to return the result. +Reads the content of this active tag. This API uses a promise to return the result. **Required permissions**: ohos.permission.NFC_TAG **System capability**: SystemCapability.Communication.ConnectedTag -- Return value - | **Type**| **Description**| - | -------- | -------- | - | Promise<string> | Promise used to return the content of the active tag.| +**Return value** -- Example - ``` - import connectedTag from '@ohos.connectedTag'; +| **Type**| **Description**| +| -------- | -------- | +| Promise<string> | Promise used to return the content of the active tag.| - connectedTag.readNdefTag().then(result => { - console.log("promise recv ndef response: " + result); - }); - ``` +**Example** + +```js +import connectedTag from '@ohos.connectedTag'; + +connectedTag.readNdefTag().then((data) => { + console.log("connectedTag readNdefTag Promise data = " + data); +}).catch((err)=> { + console.log("connectedTag readNdefTag Promise err: " + err); +}); +``` ## connectedTag.readNdefTag readNdefTag(callback: AsyncCallback<string>): void -Reads the content of this active tag. This method uses an asynchronous callback to return the result. +Reads the content of this active tag. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.NFC_TAG **System capability**: SystemCapability.Communication.ConnectedTag -- Parameters - | **Name**| **Type**| **Mandatory**| **Description**| - | -------- | -------- | -------- | -------- | - | callback | AsyncCallback<string> | Yes| Callback invoked to return the active tag content obtained.| +**Parameters** -- Example - ``` - import connectedTag from '@ohos.connectedTag'; - - connectedTag.readNdefTag(result => { - console.log("callback recv ndef response: " + result); - }); - ``` +| **Name**| **Type**| **Mandatory**| **Description**| +| -------- | -------- | -------- | -------- | +| callback | AsyncCallback<string> | Yes| Callback invoked to return the active tag content obtained.| + +**Example** + +```js +import connectedTag from '@ohos.connectedTag'; + +connectedTag.readNdefTag((err, data)=> { + if (err) { + console.log("connectedTag readNdefTag AsyncCallback err: " + err); + } else { + console.log("connectedTag readNdefTag AsyncCallback data: " + data); + } +}); +``` ## connectedTag.writeNdefTag writeNdefTag(data: string): Promise<void> -Writes data to this active tag. This method uses a promise to return the result. +Writes data to this active tag. This API uses a promise to return the result. **Required permissions**: ohos.permission.NFC_TAG **System capability**: SystemCapability.Communication.ConnectedTag -- Parameters - | **Name**| **Type**| **Mandatory**| **Description**| - | -------- | -------- | -------- | -------- | - | data | string | Yes| Data to write. The maximum length is 1024 bytes.| - -- Return value - | **Type**| **Description**| - | -------- | -------- | - | Promise<void> | Promise used to return the result. This method returns no value.| - -- Example - ``` - import connectedTag from '@ohos.connectedTag'; - - writeNdefTag.write("010203") - .then((value) => { - // Data is written to the tag. - console.log(`success to write event: ${value}`); - }).catch((err) => { - // Failed to write data to the tag. - console.error(`failed to write event because ${err.code}`); - }); - ``` +**Parameters** + +| **Name**| **Type**| **Mandatory**| **Description**| +| -------- | -------- | -------- | -------- | +| data | string | Yes| Data to write. The maximum length is 1024 bytes.| + +**Return value** + +| **Type**| **Description**| +| -------- | -------- | +| Promise<void> | Promise that returns no value.| + +**Example** + +```js +import connectedTag from '@ohos.connectedTag'; + +var rawData = "010203"; // change it tobe correct. +connectedTag.writeNdefTag(rawData).then(() => { + console.log("connectedTag writeNdefTag Promise success."); +}).catch((err)=> { + console.log("connectedTag writeNdefTag Promise err: " + err); +}); +``` ## connectedTag.writeNdefTag writeNdefTag(data: string, callback: AsyncCallback<void>): void -Writes data to this active tag. This method uses an asynchronous callback to return the result. +Writes data to this active tag. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.NFC_TAG **System capability**: SystemCapability.Communication.ConnectedTag -- Parameters - | **Name**| **Type**| **Mandatory**| **Description**| - | -------- | -------- | -------- | -------- | - | data | string | Yes| Data to write. The maximum length is 1024 bytes.| - | callback | AsyncCallback<string> | Yes| Callback invoked to return the active tag content obtained.| - -- Example - ``` - import connectedTag from '@ohos.connectedTag'; - - connectedTag.writeNdefTag("010203", (err, value) => { - if (err) { - // Failed to write data to the tag. - console.error(`failed to write event because ${err.code}`); - return; - } - - // Data is written to the tag. - console.log(`success to write event: ${value}`); - }); - ``` +**Parameters** + +| **Name**| **Type**| **Mandatory**| **Description**| +| -------- | -------- | -------- | -------- | +| data | string | Yes| Data to write. The maximum length is 1024 bytes.| +| callback | AsyncCallback<void> | Yes| Callback invoked to return the active tag content obtained.| + +**Example** + +```js +import connectedTag from '@ohos.connectedTag'; + +var rawData = "010203"; // change it tobe correct. +connectedTag.writeNdefTag(rawData, (err)=> { + if (err) { + console.log("connectedTag writeNdefTag AsyncCallback err: " + err); + } else { + console.log("connectedTag writeNdefTag AsyncCallback success."); + } +}); +``` ## connectedTag.on('notify') @@ -169,18 +179,12 @@ Registers the NFC field strength state events. **System capability**: SystemCapability.Communication.ConnectedTag -- Parameters - | **Name**| **Type**| **Mandatory**| **Description**| - | -------- | -------- | -------- | -------- | - | type | string | Yes| Event type. The value is **notify**.| - | callback | Callback<number> | Yes| Callback invoked to return the field strength state.| - -- Enumerates the field strength states. - | **Value**| **Description**| - | -------- | -------- | - | 0 | Field off.| - | 1 | Field on.| +**Parameters** +| **Name**| **Type**| **Mandatory**| **Description**| +| -------- | -------- | -------- | -------- | +| type | string | Yes| Event type. The value is **notify**.| +| callback | Callback<number> | Yes| Callback used to return the [NfcRfType](#nfcrftype).| ## connectedTag.off('notify') @@ -192,36 +196,54 @@ Unregisters the NFC field strength state events. **System capability**: SystemCapability.Communication.ConnectedTag -- Parameters - | **Name**| **Type**| **Mandatory**| **Description**| - | -------- | -------- | -------- | -------- | - | type | string | Yes| Event type. The value is **notify**.| - | callback | Callback<number> | No| Callback used to return the field strength state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.| - -- Example - ``` - import connectedTag from '@ohos.connectedTag'; - - var NFC_RF_NOTIFY = "notify"; - - var recvNfcRfNotifyFunc = result => { - console.info("nfc rf receive state: " + result); - } - - // Register event notification. - connectedTag.on(NFC_RF_NOTIFY, recvNfcRfNotifyFunc); - - // Unregister event notification. - connectedTag.off(NFC_RF_NOTIFY, recvNfcRfNotifyFunc); - ``` +**Parameters** + +| **Name**| **Type**| **Mandatory**| **Description**| +| -------- | -------- | -------- | -------- | +| type | string | Yes| Event type. The value is **notify**.| +| callback | Callback<number> | No| Callback used to return the field strength state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.| + +**Example** + +```js +import connectedTag from '@ohos.connectedTag'; + +// Register the event. +connectedTag.on("notify", (err, rfState)=> { + if (err) { + console.log("connectedTag on Callback err: " + err); + } else { + console.log("connectedTag on Callback rfState: " + rfState); + } +}); + +var initStatus = connectedTag.init(); +console.log("connectedTag init status: " + initStatus); + +// Add nfc connecected tag business oprations here... +// connectedTag.writeNdefTag(rawData) +// connectedTag.readNdefTag() + +var uninitStatus = connectedTag.uninit(); +console.log("connectedTag uninit status: " + uninitStatus); + +// Unregister the event. +connectedTag.off("notify", (err, rfState)=> { + if (err) { + console.log("connectedTag off Callback err: " + err); + } else { + console.log("connectedTag off Callback rfState: " + rfState); + } +}); +``` ## NfcRfType -Enumerates the NFC states. +Enumerates the NFC field strength states. **System capability**: SystemCapability.Communication.ConnectedTag -| Name| Default Value| Description| +| Name| Value| Description| | -------- | -------- | -------- | -| NFC_RF_LEAVE | 0 | Field on.| +| NFC_RF_LEAVE | 0 | Field off.| | NFC_RF_ENTER | 1 | Field on.| diff --git a/en/application-dev/reference/apis/js-apis-convertxml.md b/en/application-dev/reference/apis/js-apis-convertxml.md index ab33a232ca03c9b8ee139f497cd6ea0f572debc7..70d35b6cb168e6f10b847a42bdefa8fd53eb3d40 100644 --- a/en/application-dev/reference/apis/js-apis-convertxml.md +++ b/en/application-dev/reference/apis/js-apis-convertxml.md @@ -1,4 +1,4 @@ -# XML-to-JavaScript Conversion +# @ohos.convertxml (XML-to-JavaScript Conversion) The **convertxml** module provides APIs for converting XML text into JavaScript objects. @@ -36,6 +36,14 @@ Converts an XML text into a JavaScript object. | ------ | ---------------------------- | | Object | JavaScript object.| +**Error codes** + +For details about the error codes, see [Utils Error Codes](../errorcodes/errorcode-utils.md). + +| ID| Error Message| +| -------- | -------- | +| 10200002 | Invalid xml string. | + **Example** ```js @@ -46,13 +54,13 @@ let xml = ' Work' + ' Play' + ''; -let conv = new convertxml.convertToJSObject(); +let conv = new convertxml.ConvertXML() let options = {trim : false, declarationKey:"_declaration", instructionKey : "_instruction", attributesKey : "_attributes", textKey : "_text", cdataKey:"_cdata", doctypeKey : "_doctype", commentKey : "_comment", parentKey : "_parent", typeKey : "_type", nameKey : "_name", elementsKey : "_elements"} -let result = JSON.stringify(conv.convert(xml, options)); +let result = JSON.stringify(conv.convertToJSObject(xml, options)); console.log(result); // Output (non-compact) // {"_declaration":{"_attributes":{"version":"1.0","encoding":"utf-8"}},"_elements":[{"_type":"element","_name":"note","_attributes":{"importance":"high","logged":"true"},"_elements":[{"_type":"element","_name":"title","_elements":[{"_type":"text","_text":"Happy"}]},{"_type":"element","_name":"todo","_elements":[{"_type":"text","_text":"Work"}]},{"_type":"element","_name":"todo","_elements":[{"_type":"text","_text":"Play"}]}]}]} @@ -60,14 +68,14 @@ console.log(result); ### convert(deprecated) -> **NOTE** -> -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [convertToJSObject9+](#converttojsobject9) instead. - convert(xml: string, options?: ConvertOptions) : Object Converts an XML text into a JavaScript object. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [convertToJSObject9+](#converttojsobject9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** diff --git a/en/application-dev/reference/apis/js-apis-data-ValuesBucket.md b/en/application-dev/reference/apis/js-apis-data-valuesBucket.md similarity index 97% rename from en/application-dev/reference/apis/js-apis-data-ValuesBucket.md rename to en/application-dev/reference/apis/js-apis-data-valuesBucket.md index 22ae3fc33e27b1dc0b859848fdb8e0ea6c6f2122..846f3f15481d700da9d738857bc217c64cbe6ac9 100644 --- a/en/application-dev/reference/apis/js-apis-data-ValuesBucket.md +++ b/en/application-dev/reference/apis/js-apis-data-valuesBucket.md @@ -1,4 +1,4 @@ -# Value Bucket +# @ohos.data.ValuesBucket The **ValueBucket** module holds data in key-value (KV) pairs. You can use it to insert data into a database. diff --git a/en/application-dev/reference/apis/js-apis-defaultAppManager.md b/en/application-dev/reference/apis/js-apis-defaultAppManager.md index 28830ea0737c3243e97dd2a02256b32f54616f6d..dd19bdb98680553ff3f66b3484ab95aa97b5b52d 100644 --- a/en/application-dev/reference/apis/js-apis-defaultAppManager.md +++ b/en/application-dev/reference/apis/js-apis-defaultAppManager.md @@ -1,4 +1,4 @@ -# DefaultAppManager +# @ohos.bundle.defaultAppManager (Default Application Management) The **DefaultAppManager** module provides APIs to query whether the current application is the default application of a specific type. @@ -18,25 +18,25 @@ import defaultAppMgr from '@ohos.bundle.defaultAppManager'; | --------------------------------------- | ----------- | ---------------- | | ohos.permission.GET_DEFAULT_APPLICATION | system_core | Permission related to the default application.| -For details, see in [Permission Levels](../../security/accesstoken-overview.md#permission-levels). +For details, see [Permission Levels](../../security/accesstoken-overview.md#permission-levels). ## defaultAppMgr.ApplicationType -Enumerates the application types. +Enumerates the default application types. **System capability**: SystemCapability.BundleManager.BundleFramework.DefaultApp -| Name | Type | Value | Description | -| -------- | -------- | -------------------------------------- | -------------------------------------- | -| BROWSER | string | Web Browser | Default browser. | -| IMAGE | string | Image Gallery | Default image viewer. | -| AUDIO | string | Audio Player | Default audio player. | -| VIDEO | string | Video Player | Default video player. | -| PDF | string | PDF Viewer | Default PDF reader. | -| WORD | string | Word Viewer | Default Word viewer. | -| EXCEL | string | Excel Viewer | Default Excel viewer. | -| PPT | string | PPT Viewer | Default PowerPoint viewer. | +| Name | Value| Description | +| -------- | -------------------------------------- | -------------------------------------- | +| BROWSER | "Web Browser" | Default browser. | +| IMAGE | "Image Gallery" | Default image viewer. | +| AUDIO | "Audio Player" | Default audio player. | +| VIDEO | "Video Player" | Default video player. | +| PDF | "PDF Viewer" | Default PDF reader. | +| WORD | "Word Viewer" | Default Word viewer. | +| EXCEL | "Excel Viewer" | Default Excel viewer. | +| PPT | "PPT Viewer" | Default PowerPoint viewer. | ## defaultAppMgr.isDefaultApplication @@ -58,10 +58,6 @@ Checks whether this application is the default application of a system-defined a | ------------------------- | ------------------ | | Promise\ | Promise used to return the result. If the application is the default application, `true` is returned; otherwise, `false` is returned.| -**Error codes** - -For details about the error codes, see [Bundle Error Codes](../errorcodes/errorcode-bundle.md). - **Example** @@ -90,13 +86,9 @@ Checks whether this application is the default application of a system-defined a | type | string | Yes | Type of the target application. It must be set to a value defined by [ApplicationType](#defaultappmgrapplicationtype). | | callback | AsyncCallback\ | Yes | Callback used to return the result. If the application is the default application, `true` is returned; otherwise, `false` is returned.| -**Error codes** - -For details about the error codes, see [Bundle Error Codes](../errorcodes/errorcode-bundle.md). - **Example** -```js +```ts import defaultAppMgr from '@ohos.bundle.defaultAppManager'; defaultAppMgr.isDefaultApplication(defaultAppMgr.ApplicationType.BROWSER, (err, data) => { if (err) { @@ -144,7 +136,7 @@ For details about the error codes, see [Bundle Error Codes](../errorcodes/errorc **Example** -```js +```ts import defaultAppMgr from '@ohos.bundle.defaultAppManager'; defaultAppMgr.getDefaultApplication(defaultAppMgr.ApplicationType.BROWSER) .then((data) => { @@ -195,7 +187,7 @@ For details about the error codes, see [Bundle Error Codes](../errorcodes/errorc **Example** -```js +```ts import defaultAppMgr from '@ohos.bundle.defaultAppManager'; let userId = 100; defaultAppMgr.getDefaultApplication(defaultAppMgr.ApplicationType.BROWSER, userId, (err, data) => { @@ -246,7 +238,7 @@ For details about the error codes, see [Bundle Error Codes](../errorcodes/errorc **Example** -```js +```ts import defaultAppMgr from '@ohos.bundle.defaultAppManager'; defaultAppMgr.getDefaultApplication(defaultAppMgr.ApplicationType.BROWSER, (err, data) => { if (err) { @@ -302,7 +294,7 @@ For details about the error codes, see [Bundle Error Codes](../errorcodes/errorc **Example** -```js +```ts import defaultAppMgr from '@ohos.bundle.defaultAppManager'; defaultAppMgr.setDefaultApplication(defaultAppMgr.ApplicationType.BROWSER, { bundleName: "com.test.app", @@ -369,7 +361,7 @@ For details about the error codes, see [Bundle Error Codes](../errorcodes/errorc **Example** -```js +```ts import defaultAppMgr from '@ohos.bundle.defaultAppManager'; let userId = 100; defaultAppMgr.setDefaultApplication(defaultAppMgr.ApplicationType.BROWSER, { @@ -486,7 +478,7 @@ For details about the error codes, see [Bundle Error Codes](../errorcodes/errorc **Example** -```js +```ts import defaultAppMgr from '@ohos.bundle.defaultAppManager'; let userId = 100; defaultAppMgr.resetDefaultApplication(defaultAppMgr.ApplicationType.BROWSER, userId) @@ -537,7 +529,7 @@ For details about the error codes, see [Bundle Error Codes](../errorcodes/errorc **Example** -```js +```ts import defaultAppMgr from '@ohos.bundle.defaultAppManager'; let userId = 100; defaultAppMgr.resetDefaultApplication(defaultAppMgr.ApplicationType.BROWSER, userId, (err, data) => { diff --git a/en/application-dev/reference/apis/js-apis-deque.md b/en/application-dev/reference/apis/js-apis-deque.md index 594984e1deb513a21c165c04d0d7d95a918a8766..e295a1cf9c72875727705c131b4342868daff54a 100644 --- a/en/application-dev/reference/apis/js-apis-deque.md +++ b/en/application-dev/reference/apis/js-apis-deque.md @@ -1,4 +1,4 @@ -# Linear Container Deque +# @ohos.util.Deque (Linear Container Deque) > **NOTE** > @@ -51,11 +51,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let deque = new Deque(); -try { - let deque2 = Deque(); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### insertFront @@ -91,11 +86,6 @@ deque.insertFront(b); let c = {name : "Dylon", age : "13"}; deque.insertFront(c); deque.insertFront(false); -try { - deque.insertFront.bind({}, "b")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### insertEnd @@ -131,11 +121,6 @@ deque.insertEnd(b); let c = {name : "Dylon", age : "13"}; deque.insertEnd(c); deque.insertEnd(false); -try { - deque.insertEnd.bind({}, "b")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### has @@ -173,11 +158,6 @@ let deque = new Deque(); let result = deque.has("squirrel"); deque.insertFront("squirrel"); let result1 = deque.has("squirrel"); -try { - deque.has.bind({}, "b")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### popFirst @@ -212,11 +192,6 @@ deque.insertEnd(5); deque.insertFront(2); deque.insertFront(4); let result = deque.popFirst(); -try { - deque.popFirst.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### popLast @@ -251,16 +226,11 @@ deque.insertFront(5); deque.insertFront(2); deque.insertFront(4); let result = deque.popLast(); -try { - deque.popLast.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### forEach -forEach(callbackfn: (value: T, index?: number, deque?: Deque<T>) => void, +forEach(callbackFn: (value: T, index?: number, deque?: Deque<T>) => void, thisArg?: Object): void Uses a callback to traverse the elements in this container and obtain their position indexes. @@ -271,7 +241,7 @@ Uses a callback to traverse the elements in this container and obtain their posi | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked to traverse the elements in the container.| +| callbackFn | function | Yes| Callback invoked to traverse the elements in the container.| | thisArg | Object | No| Value to use when the callback is invoked.| callbackfn @@ -301,13 +271,6 @@ deque.insertEnd(4); deque.forEach((value, index) => { console.log("value:" + value, index); }); -try { - deque.forEach.bind({}, (value, index) => { - console.log("value:" + value, index); - })(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### getFirst @@ -341,11 +304,6 @@ deque.insertEnd(4); deque.insertFront(5); deque.insertFront(4); let result = deque.getFirst(); -try { - deque.getFirst.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### getLast @@ -379,11 +337,6 @@ deque.insertFront(4); deque.insertFront(5); deque.insertFront(4); let result = deque.getLast(); -try { - deque.getLast.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### [Symbol.iterator] @@ -428,9 +381,4 @@ while(temp != undefined) { console.log("value:" + temp); temp = iter.next().value; } -try { - deque[Symbol.iterator].bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` diff --git a/en/application-dev/reference/apis/js-apis-deviceUsageStatistics.md b/en/application-dev/reference/apis/js-apis-deviceUsageStatistics.md index 935211cb5ead58fd8823c87358bafc9eebafc449..f9a998f37ca17b4d4c70342bc648ed519fbe1652 100644 --- a/en/application-dev/reference/apis/js-apis-deviceUsageStatistics.md +++ b/en/application-dev/reference/apis/js-apis-deviceUsageStatistics.md @@ -1,4 +1,4 @@ -# Device Usage Statistics +# @ohos.deviceUsageStatistics (Device Usage Statistics) This module provides APIs for collecting statistics on device usage. @@ -487,7 +487,7 @@ Enumerates the interval types for querying the application usage duration. **System capability**: SystemCapability.ResourceSchedule.UsageStatistics.App -| Name | Default Value | Description | +| Name | Value | Description | | ------------ | ---- | ---------------------------------------- | | BY_OPTIMIZED | 0 | The system obtains the application usage duration statistics in the specified time frame at the interval the system deems appropriate.| | BY_DAILY | 1 | The system obtains the application usage duration statistics in the specified time frame on a daily basis. | diff --git a/en/application-dev/reference/apis/js-apis-distributed-account.md b/en/application-dev/reference/apis/js-apis-distributed-account.md index 505587d21e4cd4b792ff97282b10ae1bc4662359..5a4a93c46fbe2492cecf4569f8e4e7db63469371 100644 --- a/en/application-dev/reference/apis/js-apis-distributed-account.md +++ b/en/application-dev/reference/apis/js-apis-distributed-account.md @@ -1,8 +1,8 @@ -# Distributed Account Management +# @ohos.account.distributedAccount -The **distributedAccount** module provides APIs for managing distributed accounts, including querying and updating account login status. +The **distributedAccount** module provides APIs for managing distributed accounts, including querying and updating account login states. -> **NOTE**
+> **NOTE** > > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. @@ -49,7 +49,7 @@ Obtains distributed account information. This API uses an asynchronous callback | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | - | callback | AsyncCallback<[DistributedInfo](#distributedinfo)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **undefined** and data is the distributed account information obtained. Otherwise, **err** is an error object.| + | callback | AsyncCallback<[DistributedInfo](#distributedinfo)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **undefined** and **data** is the distributed account information obtained. Otherwise, **err** is an error object.| **Error codes** @@ -124,7 +124,7 @@ Obtains distributed account information. This API uses an asynchronous callback | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | - | callback | AsyncCallback<[DistributedInfo](#distributedinfo)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **undefined** and data is the distributed account information obtained. Otherwise, **err** is an error object.| + | callback | AsyncCallback<[DistributedInfo](#distributedinfo)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **undefined** and **data** is the distributed account information obtained. Otherwise, **err** is an error object.| **Example** ```js @@ -181,7 +181,7 @@ Sets the distributed account information. This API uses an asynchronous callback | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | - | accountInfo | [DistributedInfo](#distributedinfo) | Yes| New distributed account information.| + | accountInfo | [DistributedInfo](#distributedinfo) | Yes| Distributed account information to set.| | callback | AsyncCallback<void> | Yes| Callback invoked to return the result. If the distributed account information is set successfully, **err** is **undefined**. Otherwise, **err** is an error object.| **Error codes** @@ -219,7 +219,7 @@ Sets the distributed account information. This API uses a promise to return the | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | - | accountInfo | [DistributedInfo](#distributedinfo) | Yes| New distributed account information.| + | accountInfo | [DistributedInfo](#distributedinfo) | Yes| Distributed account information to set.| **Return value** @@ -322,7 +322,7 @@ Defines distributed OS account information. | -------- | -------- | -------- | -------- | | name | string | Yes| Name of the distributed account. It must be a non-null string.| | id | string | Yes| UID of the distributed account. It must be a non-null string.| -| event | string | Yes| Login state of a distributed account. The state can be login, logout, token invalid, or logoff, which correspond to the following strings respectively:
- Ohos.account.event.LOGIN
- Ohos.account.event.LOGOUT
- Ohos.account.event.TOKEN_INVALID
- Ohos.account.event.LOGOFF | +| event | string | Yes| Login state of the distributed account. The state can be login, logout, token invalid, or logoff, which correspond to the following strings respectively:
- Ohos.account.event.LOGIN
- Ohos.account.event.LOGOUT
- Ohos.account.event.TOKEN_INVALID
- Ohos.account.event.LOGOFF | | nickname9+ | string | No| Nickname of the distributed account. It must be a non-null string.| | avatar9+ | string | No| Avatar of the distributed account. It must be a non-null string.| -| scalableData | object | No| Extended information about the distributed account, passed in key-value (KV) pairs.
**NOTE**
This parameter is reserved and not used in query and update methods.| +| scalableData | object | No| Extended information about the distributed account, passed in key-value (KV) pairs.
**NOTE**
This parameter is reserved and not used in the setters and getters.| diff --git a/en/application-dev/reference/apis/js-apis-distributedBundle.md b/en/application-dev/reference/apis/js-apis-distributedBundle.md index 98a15d818444aac4bd9c57e0eb270c7a3c36fbe0..2ddd4b91388067d0b301f8d7ba26bbf748eb15cb 100644 --- a/en/application-dev/reference/apis/js-apis-distributedBundle.md +++ b/en/application-dev/reference/apis/js-apis-distributedBundle.md @@ -1,4 +1,4 @@ -# distributedBundle +# @ohos.bundle.distributedBundle The **distributedBundle** module provides APIs for managing distributed bundles. diff --git a/en/application-dev/reference/apis/js-apis-emitter.md b/en/application-dev/reference/apis/js-apis-emitter.md index 0bc6f9c6a4c156cfa2d604885572fcbe4bdc41bc..a072663e8c5cf3f667860cd72d1ef50c2bb72334 100644 --- a/en/application-dev/reference/apis/js-apis-emitter.md +++ b/en/application-dev/reference/apis/js-apis-emitter.md @@ -1,4 +1,4 @@ -# Emitter +# @ohos.events.emitter The **Emitter** module provides APIs for sending and processing in-process events, including the APIs for processing events that are subscribed to in persistent or one-shot manner, unsubscribing from events, and emitting events to the event queue. diff --git a/en/application-dev/reference/apis/js-apis-freeInstall.md b/en/application-dev/reference/apis/js-apis-freeInstall.md index 44ecb706ffc98b8f7937574d3ab18812b76abece..94ab3e8ac8cad4c8a41a4820741e595535f388a3 100644 --- a/en/application-dev/reference/apis/js-apis-freeInstall.md +++ b/en/application-dev/reference/apis/js-apis-freeInstall.md @@ -1,4 +1,4 @@ -# Bundle.freeInstall +# @ohos.bundle.freeInstall The **Bundle.freeInstall** module provides APIs for setting and obtaining installation-free information and APIs for obtaining **BundlePackInfo** and **DispatchInfo**. diff --git a/en/application-dev/reference/apis/js-apis-geoLocationManager.md b/en/application-dev/reference/apis/js-apis-geoLocationManager.md new file mode 100644 index 0000000000000000000000000000000000000000..9c09d174723ca769e8b712a2e874c9b3c6f4f3a8 --- /dev/null +++ b/en/application-dev/reference/apis/js-apis-geoLocationManager.md @@ -0,0 +1,2208 @@ +# Geolocation Manager + +The Geolocation Manager module provides location service management functions. + +> **NOTE** +> +> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. + +## Applying for Permissions + +Before using basic location capabilities, check whether your application has been granted the permission to access the device location information. If not, your application needs to obtain the permission from the user as described below. + +The system provides the following location permissions: +- ohos.permission.LOCATION + +- ohos.permission.APPROXIMATELY_LOCATION + +- ohos.permission.LOCATION_IN_BACKGROUND + +If your application needs to access the device location information, it must first apply for required permissions. Specifically speaking: + +- API versions earlier than 9: Apply for **ohos.permission.LOCATION**. + +- API version 9 and later: Apply for **ohos.permission.APPROXIMATELY\_LOCATION**, or apply for **ohos.permission.APPROXIMATELY\_LOCATION** and **ohos.permission.LOCATION**. Note that **ohos.permission.LOCATION** cannot be applied for separately. + +| API Version| Location Permission| Permission Application Result| Location Accuracy| +| -------- | -------- | -------- | -------- | +| Earlier than 9| ohos.permission.LOCATION | Success| Location accurate to meters| +| 9 and later| ohos.permission.LOCATION | Failure| No location obtained| +| 9 and later| ohos.permission.APPROXIMATELY_LOCATION | Success| Location accurate to 5 kilometers| +| 9 and later| ohos.permission.APPROXIMATELY_LOCATION and ohos.permission.LOCATION| Success| Location accurate to meters| + +If your application needs to access the device location information when running in the background, it must be configured to be able to run in the background and be granted the **ohos.permission.LOCATION_IN_BACKGROUND** permission. In this way, the system continues to report device location information after your application moves to the background. + +You can declare the required permission in your application's configuration file. For details, see [Access Control (Permission) Development](../../security/accesstoken-guidelines.md). + + +## Modules to Import + +```ts +import geoLocationManager from '@ohos.geoLocationManager'; +``` + + +## geoLocationManager.on('locationChange') + +on(type: 'locationChange', request: LocationRequest, callback: Callback<Location>): void + +Registers a listener for location changes with a location request initiated. The location result is reported through [LocationRequest](#locationrequest). + +**Permission required**: ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Core + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value **locationChange** indicates a location change event.| + | request | [LocationRequest](#locationrequest) | Yes| Location request.| + | callback | Callback<[Location](#location)> | Yes| Callback used to return the location change event.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | +|3301200 | Failed to obtain the geographical location. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var requestInfo = {'priority': 0x203, 'scenario': 0x300, 'timeInterval': 0, 'distanceInterval': 0, 'maxAccuracy': 0}; + var locationChange = (location) => { + console.log('locationChanger: data: ' + JSON.stringify(location)); + }; + try { + geoLocationManager.on('locationChange', requestInfo, locationChange); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + + ``` + + +## geoLocationManager.off('locationChange') + +off(type: 'locationChange', callback?: Callback<Location>): void + +Unregisters the listener for location changes with the corresponding location request deleted. + +**Permission required**: ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Core + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value **locationChange** indicates a location change event.| + | callback | Callback<[Location](#location)> | No| Callback to unregister. If this parameter is not specified, all callbacks of the specified event type are unregistered.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | +|3301200 | Failed to obtain the geographical location. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var requestInfo = {'priority': 0x203, 'scenario': 0x300, 'timeInterval': 0, 'distanceInterval': 0, 'maxAccuracy': 0}; + var locationChange = (location) => { + console.log('locationChanger: data: ' + JSON.stringify(location)); + }; + try { + geoLocationManager.on('locationChange', requestInfo, locationChange); + geoLocationManager.off('locationChange', locationChange); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.on('locationEnabledChange') + +on(type: 'locationEnabledChange', callback: Callback<boolean>): void + +Registers a listener for location service status change events. + +**System capability**: SystemCapability.Location.Location.Core + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value **locationEnabledChange** indicates a location service status change event.| + | callback | Callback<boolean> | Yes| Callback used to return the location service status change event.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var locationEnabledChange = (state) => { + console.log('locationEnabledChange: ' + JSON.stringify(state)); + } + try { + geoLocationManager.on('locationEnabledChange', locationEnabledChange); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.off('locationEnabledChange') + +off(type: 'locationEnabledChange', callback?: Callback<boolean>): void; + +Unregisters the listener for location service status change events. + +**System capability**: SystemCapability.Location.Location.Core + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value **locationEnabledChange** indicates a location service status change event.| + | callback | Callback<boolean> | No| Callback to unregister. If this parameter is not specified, all callbacks of the specified event type are unregistered.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var locationEnabledChange = (state) => { + console.log('locationEnabledChange: state: ' + JSON.stringify(state)); + } + try { + geoLocationManager.on('locationEnabledChange', locationEnabledChange); + geoLocationManager.off('locationEnabledChange', locationEnabledChange); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.on('cachedGnssLocationsChange') + +on(type: 'cachedGnssLocationsChange', request: CachedGnssLocationsRequest, callback: Callback<Array<Location>>): void; + +Registers a listener for cached GNSS location reports. + +**Permission required**: ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Gnss + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value **cachedGnssLocationsChange** indicates reporting of cached GNSS locations.| + | request | [CachedGnssLocationsRequest](#cachedgnsslocationsrequest) | Yes| Request for reporting cached GNSS location.| + | callback | Callback<boolean> | Yes| Callback used to return cached GNSS locations.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | +|3301200 | Failed to obtain the geographical location. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var cachedLocationsCb = (locations) => { + console.log('cachedGnssLocationsChange: locations: ' + JSON.stringify(locations)); + } + var requestInfo = {'reportingPeriodSec': 10, 'wakeUpCacheQueueFull': true}; + try { + geoLocationManager.on('cachedGnssLocationsChange', requestInfo, cachedLocationsCb); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.off('cachedGnssLocationsChange') + +off(type: 'cachedGnssLocationsChange', callback?: Callback<Array<Location>>): void; + +Unregisters the listener for cached GNSS location reports. + +**Permission required**: ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Gnss + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value **cachedGnssLocationsChange** indicates reporting of cached GNSS locations.| + | callback | Callback<boolean> | No| Callback to unregister. If this parameter is not specified, all callbacks of the specified event type are unregistered.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | +|3301200 | Failed to obtain the geographical location. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var cachedLocationsCb = (locations) => { + console.log('cachedGnssLocationsChange: locations: ' + JSON.stringify(locations)); + } + var requestInfo = {'reportingPeriodSec': 10, 'wakeUpCacheQueueFull': true}; + try { + geoLocationManager.on('cachedGnssLocationsChange', requestInfo, cachedLocationsCb); + geoLocationManager.off('cachedGnssLocationsChange'); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.on('satelliteStatusChange') + +on(type: 'satelliteStatusChange', callback: Callback<SatelliteStatusInfo>): void; + +Registers a listener for GNSS satellite status change events. + +**Permission required**: ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Gnss + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value **satelliteStatusChange** indicates a GNSS satellite status change event.| + | callback | Callback<[SatelliteStatusInfo](#satellitestatusinfo)> | Yes| Callback used to return GNSS satellite status changes.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var gnssStatusCb = (satelliteStatusInfo) => { + console.log('satelliteStatusChange: ' + JSON.stringify(satelliteStatusInfo)); + } + + try { + geoLocationManager.on('satelliteStatusChange', gnssStatusCb); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.off('satelliteStatusChange') + +off(type: 'satelliteStatusChange', callback?: Callback<SatelliteStatusInfo>): void; + +Unregisters the listener for GNSS satellite status change events. + +**Permission required**: ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Gnss + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value **satelliteStatusChange** indicates a GNSS satellite status change event.| + | callback | Callback<[SatelliteStatusInfo](#satellitestatusinfo)> | No| Callback to unregister. If this parameter is not specified, all callbacks of the specified event type are unregistered.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | + + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var gnssStatusCb = (satelliteStatusInfo) => { + console.log('satelliteStatusChange: ' + JSON.stringify(satelliteStatusInfo)); + } + try { + geoLocationManager.on('satelliteStatusChange', gnssStatusCb); + geoLocationManager.off('satelliteStatusChange', gnssStatusCb); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.on('nmeaMessage') + +on(type: 'nmeaMessage', callback: Callback<string>): void; + +Registers a listener for GNSS NMEA message change events. + +**Permission required**: ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Gnss + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value **nmeaMessage** indicates a GNSS NMEA message change event.| + | callback | Callback<string> | Yes| Callback used to return GNSS NMEA message changes.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | + + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var nmeaCb = (str) => { + console.log('nmeaMessage: ' + JSON.stringify(str)); + } + + try { + geoLocationManager.on('nmeaMessage', nmeaCb ); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.off('nmeaMessage') + +off(type: 'nmeaMessage', callback?: Callback<string>): void; + +Unregisters the listener for GNSS NMEA message change events. + +**Permission required**: ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Gnss + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value **nmeaMessage** indicates a GNSS NMEA message change event.| + | callback | Callback<string> | No| Callback to unregister. If this parameter is not specified, all callbacks of the specified event type are unregistered.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | + + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var nmeaCb = (str) => { + console.log('nmeaMessage: ' + JSON.stringify(str)); + } + + try { + geoLocationManager.on('nmeaMessage', nmeaCb); + geoLocationManager.off('nmeaMessage', nmeaCb); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.on('gnssFenceStatusChange') + +on(type: 'gnssFenceStatusChange', request: GeofenceRequest, want: WantAgent): void; + +Registers a listener for status change events of the specified geofence. + +**Permission required**: ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Geofence + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value **gnssFenceStatusChange** indicates a geofence status change event.| + | request | [GeofenceRequest](#geofencerequest) | Yes| Geofencing request.| + | want | WantAgent | Yes| **WantAgent** used to return geofence (entrance or exit) events.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | +|3301600 | Failed to operate the geofence. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + import wantAgent from '@ohos.wantAgent'; + + let wantAgentInfo = { + wants: [ + { + bundleName: "com.example.myapplication", + abilityName: "com.example.myapplication.MainAbility", + action: "action1", + } + ], + operationType: wantAgent.OperationType.START_ABILITY, + requestCode: 0, + wantAgentFlags: [wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG], + }; + + wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => { + var requestInfo = {'priority': 0x201, 'scenario': 0x301, "geofence": {"latitude": 121, "longitude": 26, "radius": 100, "expiration": 10000}}; + try { + geoLocationManager.on('gnssFenceStatusChange', requestInfo, wantAgentObj); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + }); + ``` + + +## geoLocationManager.off('gnssFenceStatusChange') + +off(type: 'gnssFenceStatusChange', request: GeofenceRequest, want: WantAgent): void; + +Unregisters the listener for status change events of the specified geofence. + +**Permission required**: ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Geofence + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value **gnssFenceStatusChange** indicates a geofence status change event.| + | request | [GeofenceRequest](#geofencerequest) | Yes| Geofencing request.| + | want | WantAgent | Yes| **WantAgent** used to return geofence (entrance or exit) events.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | +|3301600 | Failed to operate the geofence. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + import wantAgent from '@ohos.wantAgent'; + + let wantAgentInfo = { + wants: [ + { + bundleName: "com.example.myapplication", + abilityName: "com.example.myapplication.MainAbility", + action: "action1", + } + ], + operationType: wantAgent.OperationType.START_ABILITY, + requestCode: 0, + wantAgentFlags: [wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] + }; + + wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => { + var requestInfo = {'priority': 0x201, 'scenario': 0x301, "geofence": {"latitude": 121, "longitude": 26, "radius": 100, "expiration": 10000}}; + try { + geoLocationManager.on('gnssFenceStatusChange', requestInfo, wantAgentObj); + geoLocationManager.off('gnssFenceStatusChange', requestInfo, wantAgentObj); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + }); + ``` + + +## geoLocationManager.on('countryCodeChange') + +on(type: 'countryCodeChange', callback: Callback<CountryCode>): void; + +Registers a listener for country code change events. + +**System capability**: SystemCapability.Location.Location.Core + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value **countryCodeChange** indicates a country code change event.| + | callback | Callback<[CountryCode](#countrycode)> | Yes| Callback used to return the country code change event.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | +|3301500 | Failed to query the area information. | + + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var callback = (code) => { + console.log('countryCodeChange: ' + JSON.stringify(code)); + } + + try { + geoLocationManager.on('countryCodeChange', callback); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.off('countryCodeChange') + +off(type: 'countryCodeChange', callback?: Callback<CountryCode>): void; + +Unregisters the listener for country code change events. + +**System capability**: SystemCapability.Location.Location.Core + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value **countryCodeChange** indicates a country code change event.| + | callback | Callback<[CountryCode](#countrycode)> | No| Callback to unregister. If this parameter is not specified, all callbacks of the specified event type are unregistered.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | +|3301500 | Failed to query the area information. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var callback = (code) => { + console.log('countryCodeChange: ' + JSON.stringify(code)); + } + + try { + geoLocationManager.on('countryCodeChange', callback); + geoLocationManager.off('countryCodeChange', callback); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + + +## geoLocationManager.getCurrentLocation + +getCurrentLocation(request: CurrentLocationRequest, callback: AsyncCallback<Location>): void + +Obtains the current location. This API uses an asynchronous callback to return the result. + +**Permission required**: ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Core + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | request | [CurrentLocationRequest](#currentlocationrequest) | Yes| Location request.| + | callback | AsyncCallback<[Location](#location)> | Yes| Callback used to return the current location.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | +|3301200 | Failed to obtain the geographical location. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var requestInfo = {'priority': 0x203, 'scenario': 0x300,'maxAccuracy': 0}; + var locationChange = (err, location) => { + if (err) { + console.log('locationChanger: err=' + JSON.stringify(err)); + } + if (location) { + console.log('locationChanger: location=' + JSON.stringify(location)); + } + }; + + try { + geoLocationManager.getCurrentLocation(requestInfo, locationChange); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + +## geoLocationManager.getCurrentLocation + +getCurrentLocation(callback: AsyncCallback<Location>): void; + +Obtains the current location. This API uses an asynchronous callback to return the result. + +**Permission required**: ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Core + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<[Location](#location)> | Yes| Callback used to return the current location.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | +|3301200 | Failed to obtain the geographical location. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var locationChange = (err, location) => { + if (err) { + console.log('locationChanger: err=' + JSON.stringify(err)); + } + if (location) { + console.log('locationChanger: location=' + JSON.stringify(location)); + } + }; + + try { + geoLocationManager.getCurrentLocation(locationChange); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + +## geoLocationManager.getCurrentLocation + +getCurrentLocation(request?: CurrentLocationRequest): Promise<Location> + +Obtains the current location. This API uses a promise to return the result. + +**Permission required**: ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Core + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | request | [CurrentLocationRequest](#currentlocationrequest) | No| Location request.| + +**Return value** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Promise<[Location](#location)> | [Location](#location) | NA | Promise used to return the current location.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | +|3301200 | Failed to obtain the geographical location. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var requestInfo = {'priority': 0x203, 'scenario': 0x300,'maxAccuracy': 0}; + try { + geoLocationManager.getCurrentLocation(requestInfo).then((result) => { + console.log('current location: ' + JSON.stringify(result)); + }) + .catch((error) => { + console.log('promise, getCurrentLocation: error=' + JSON.stringify(error)); + }); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.getLastLocation + +getLastLocation(): Location + +Obtains the last location. + +**Permission required**: ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Core + +**Return value** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Location | [Location](#location) | NA | Location information.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | +|3301200 |Failed to obtain the geographical location. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + var location = geoLocationManager.getLastLocation(); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.isLocationEnabled + +isLocationEnabled(): boolean + +Checks whether the location service is enabled. + +**System capability**: SystemCapability.Location.Location.Core + +**Return value** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | boolean | boolean | NA | Result indicating whether the location service is enabled.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + var locationEnabled = geoLocationManager.isLocationEnabled(); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.requestEnableLocation + +requestEnableLocation(callback: AsyncCallback<boolean>): void + +Requests to enable the location service. This API uses an asynchronous callback to return the result. + +**Permission required**: ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Core + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<boolean> | Yes| Callback used to return the result. The value **true** indicates that the user agrees to enable the location service, and the value **false** indicates the opposite.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301700 | No response to the request. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + geoLocationManager.requestEnableLocation((err, data) => { + if (err) { + console.log('requestEnableLocation: err=' + JSON.stringify(err)); + } + if (data) { + console.log('requestEnableLocation: data=' + JSON.stringify(data)); + } + }); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.requestEnableLocation + +requestEnableLocation(): Promise<boolean> + +Requests to enable the location service. This API uses a promise to return the result. + +**Permission required**: ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Core + +**Return value** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Promise<boolean> | boolean | NA | Promise used to return the result. The value **true** indicates that the user agrees to enable the location service, and the value **false** indicates the opposite.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301700 | No response to the request. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + geoLocationManager.requestEnableLocation().then((result) => { + console.log('promise, requestEnableLocation: ' + JSON.stringify(result)); + }) + .catch((error) => { + console.log('promise, requestEnableLocation: error=' + JSON.stringify(error)); + }); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.enableLocation + +enableLocation(callback: AsyncCallback<void>): void; + +Enables the location service. This API uses an asynchronous callback to return the result. + +**System API**: This is a system API and cannot be called by third-party applications. + +**Required permissions**: ohos.permission.MANAGE_SECURE_SETTINGS + +**System capability**: SystemCapability.Location.Location.Core + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<void> | Yes| Callback used to return the error message.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + geoLocationManager.enableLocation((err, data) => { + if (err) { + console.log('enableLocation: err=' + JSON.stringify(err)); + } + }); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.enableLocation + +enableLocation(): Promise<void> + +Enables the location service. This API uses a promise to return the result. + +**System API**: This is a system API and cannot be called by third-party applications. + +**Required permissions**: ohos.permission.MANAGE_SECURE_SETTINGS + +**System capability**: SystemCapability.Location.Location.Core + +**Return value** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Promise<void> | void | NA | Promise used to return the error message.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + geoLocationManager.enableLocation().then((result) => { + console.log('promise, enableLocation succeed'); + }) + .catch((error) => { + console.log('promise, enableLocation: error=' + JSON.stringify(error)); + }); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + +## geoLocationManager.disableLocation + +disableLocation(): void; + +Disables the location service. + +**System API**: This is a system API and cannot be called by third-party applications. + +**Required permissions**: ohos.permission.MANAGE_SECURE_SETTINGS + +**System capability**: SystemCapability.Location.Location.Core + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + geoLocationManager.disableLocation(); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + + +## geoLocationManager.getAddressesFromLocation + +getAddressesFromLocation(request: ReverseGeoCodeRequest, callback: AsyncCallback<Array<GeoAddress>>): void + +Converts coordinates into geographic description through reverse geocoding. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Location.Location.Geocoder + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | request | [ReverseGeoCodeRequest](#reversegeocoderequest) | Yes| Reverse geocoding request.| + | callback | AsyncCallback<Array<[GeoAddress](#geoaddress)>> | Yes| Callback used to return the reverse geocoding result.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301300 | Reverse geocoding query failed. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var reverseGeocodeRequest = {"latitude": 31.12, "longitude": 121.11, "maxItems": 1}; + try { + geoLocationManager.getAddressesFromLocation(reverseGeocodeRequest, (err, data) => { + if (err) { + console.log('getAddressesFromLocation: err=' + JSON.stringify(err)); + } + if (data) { + console.log('getAddressesFromLocation: data=' + JSON.stringify(data)); + } + }); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.getAddressesFromLocation + +getAddressesFromLocation(request: ReverseGeoCodeRequest): Promise<Array<GeoAddress>>; + +Converts coordinates into geographic description through reverse geocoding. This API uses a promise to return the result. + +**System capability**: SystemCapability.Location.Location.Geocoder + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | request | [ReverseGeoCodeRequest](#reversegeocoderequest) | Yes| Reverse geocoding request.| + +**Return value** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Promise<Array<[GeoAddress](#geoaddress)>> | Array<[GeoAddress](#geoaddress)> | NA | Promise used to return the reverse geocoding result.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301300 | Reverse geocoding query failed. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var reverseGeocodeRequest = {"latitude": 31.12, "longitude": 121.11, "maxItems": 1}; + try { + geoLocationManager.getAddressesFromLocation(reverseGeocodeRequest).then((data) => { + console.log('getAddressesFromLocation: ' + JSON.stringify(data)); + }) + .catch((error) => { + console.log('promise, getAddressesFromLocation: error=' + JSON.stringify(error)); + }); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.getAddressesFromLocationName + +getAddressesFromLocationName(request: GeoCodeRequest, callback: AsyncCallback<Array<GeoAddress>>): void + +Converts geographic description into coordinates through geocoding. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Location.Location.Geocoder + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | request | [GeoCodeRequest](#geocoderequest) | Yes| Geocoding request.| + | callback | AsyncCallback<Array<[GeoAddress](#geoaddress)>> | Yes| Callback used to return the geocoding result.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301400 | Geocoding query failed. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var geocodeRequest = {"description": "No. xx, xx Road, Pudong District, Shanghai", "maxItems": 1}; + try { + geoLocationManager.getAddressesFromLocationName(geocodeRequest, (err, data) => { + if (err) { + console.log('getAddressesFromLocationName: err=' + JSON.stringify(err)); + } + if (data) { + console.log('getAddressesFromLocationName: data=' + JSON.stringify(data)); + } + }); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.getAddressesFromLocationName + +getAddressesFromLocationName(request: GeoCodeRequest): Promise<Array<GeoAddress>> + +Converts geographic description into coordinates through geocoding. This API uses a promise to return the result. + +**System capability**: SystemCapability.Location.Location.Geocoder + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | request | [GeoCodeRequest](#geocoderequest) | Yes| Geocoding request.| + +**Return value** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Promise<Array<[GeoAddress](#geoaddress)>> | Array<[GeoAddress](#geoaddress)> | NA | Promise used to return the geocoding result.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301400 | Geocoding query failed. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var geocodeRequest = {"description": "No. xx, xx Road, Pudong District, Shanghai", "maxItems": 1}; + try { + geoLocationManager.getAddressesFromLocationName(geocodeRequest).then((result) => { + console.log('getAddressesFromLocationName: ' + JSON.stringify(result)); + }) + .catch((error) => { + console.log('promise, getAddressesFromLocationName: error=' + JSON.stringify(error)); + }); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + +## geoLocationManager.isGeocoderAvailable + +isGeocoderAvailable(): boolean; + +Obtains the (reverse) geocoding service status. + +**System capability**: SystemCapability.Location.Location.Geocoder + +**Return value** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | boolean | boolean | NA | Result indicating whether the (reverse) geocoding service is available.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + var isAvailable = geoLocationManager.isGeocoderAvailable(); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.getCachedGnssLocationsSize + +getCachedGnssLocationsSize(callback: AsyncCallback<number>): void; + +Obtains the number of cached GNSS locations. + +**Permission required**: ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Gnss + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<number> | Yes| Callback used to return the number of cached GNSS locations. | + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + geoLocationManager.getCachedGnssLocationsSize((err, size) => { + if (err) { + console.log('getCachedGnssLocationsSize: err=' + JSON.stringify(err)); + } + if (size) { + console.log('getCachedGnssLocationsSize: size=' + JSON.stringify(size)); + } + }); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.getCachedGnssLocationsSize + +getCachedGnssLocationsSize(): Promise<number>; + +Obtains the number of cached GNSS locations. + +**Permission required**: ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Gnss + +**Return value** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Promise<number> | number | NA | Promise used to return the number of cached GNSS locations.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + geoLocationManager.getCachedGnssLocationsSize().then((result) => { + console.log('promise, getCachedGnssLocationsSize: ' + JSON.stringify(result)); + }) + .catch((error) => { + console.log('promise, getCachedGnssLocationsSize: error=' + JSON.stringify(error)); + }); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.flushCachedGnssLocations + +flushCachedGnssLocations(callback: AsyncCallback<void>): void; + +Obtains all cached GNSS locations and clears the GNSS cache queue. + +**Permission required**: ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Gnss + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<void> | Yes| Callback used to return the error message.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | +|3301200 | Failed to obtain the geographical location. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + geoLocationManager.flushCachedGnssLocations((err, result) => { + if (err) { + console.log('flushCachedGnssLocations: err=' + JSON.stringify(err)); + } + }); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.flushCachedGnssLocations + +flushCachedGnssLocations(): Promise<void>; + +Obtains all cached GNSS locations and clears the GNSS cache queue. + +**Permission required**: ohos.permission.APPROXIMATELY_LOCATION + +**System capability**: SystemCapability.Location.Location.Gnss + +**Return value** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Promise<void> | void | NA | Promise used to return the error code.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off. | +|3301200 | Failed to obtain the geographical location. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + geoLocationManager.flushCachedGnssLocations().then((result) => { + console.log('promise, flushCachedGnssLocations success'); + }) + .catch((error) => { + console.log('promise, flushCachedGnssLocations: error=' + JSON.stringify(error)); + }); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.sendCommand + +sendCommand(command: LocationCommand, callback: AsyncCallback<void>): void; + +Sends an extended command to the location subsystem. + +**System capability**: SystemCapability.Location.Location.Core + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | command | [LocationCommand](#locationcommand) | Yes| Extended command (string) to be sent.| + | callback | AsyncCallback<void> | Yes| Callback used to return the error code.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var requestInfo = {'scenario': 0x301, 'command': "command_1"}; + try { + geoLocationManager.sendCommand(requestInfo, (err, result) => { + if (err) { + console.log('sendCommand: err=' + JSON.stringify(err)); + } + }); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.sendCommand + +sendCommand(command: LocationCommand): Promise<void>; + +Sends an extended command to the location subsystem. + +**System capability**: SystemCapability.Location.Location.Core + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | command | [LocationCommand](#locationcommand) | Yes| Extended command (string) to be sent.| + +**Return value** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Promise<void> | void | NA | Promise used to return the error code.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var requestInfo = {'scenario': 0x301, 'command': "command_1"}; + try { + geoLocationManager.sendCommand(requestInfo).then((result) => { + console.log('promise, sendCommand success'); + }) + .catch((error) => { + console.log('promise, sendCommand: error=' + JSON.stringify(error)); + }); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.getCountryCode + +getCountryCode(callback: AsyncCallback<CountryCode>): void; + +Obtains the current country code. + +**System capability**: SystemCapability.Location.Location.Core + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<[CountryCode](#countrycode)> | Yes| Callback used to return the country code.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301500 | Failed to query the area information.| + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + geoLocationManager.getCountryCode((err, result) => { + if (err) { + console.log('getCountryCode: err=' + JSON.stringify(err)); + } + if (result) { + console.log('getCountryCode: result=' + JSON.stringify(result)); + } + }); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.getCountryCode + +getCountryCode(): Promise<CountryCode>; + +Obtains the current country code. + +**System capability**: SystemCapability.Location.Location.Core + +**Return value** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Promise<[CountryCode](#countrycode)> | [CountryCode](#countrycode) | NA | Promise used to return the country code.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301500 | Failed to query the area information.| + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + geoLocationManager.getCountryCode() + .then((result) => { + console.log('promise, getCountryCode: result=' + JSON.stringify(result)); + }) + .catch((error) => { + console.log('promise, getCountryCode: error=' + JSON.stringify(error)); + }); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.enableLocationMock + +enableLocationMock(): void; + +Enables the mock location function. + +**System capability**: SystemCapability.Location.Location.Core + +**System API**: This is a system API and cannot be called by third-party applications. + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off.| + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + geoLocationManager.enableLocationMock(); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.disableLocationMock + +disableLocationMock(): void; + +Disables the mock location function. + +**System capability**: SystemCapability.Location.Location.Core + +**System API**: This is a system API and cannot be called by third-party applications. + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off.| + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + geoLocationManager.disableLocationMock(); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.setMockedLocations + +setMockedLocations(config: LocationMockConfig): void; + +Sets the mock location information. The mock locations will be reported at the interval specified in this API. + +**System capability**: SystemCapability.Location.Location.Core + +**System API**: This is a system API and cannot be called by third-party applications. + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | config | [LocationMockConfig](#locationmockconfig) | Yes| Mock location information, including the interval for reporting the mock locations and the array of the mock locations.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | +|3301100 | The location switch is off.| + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var locations = [ + {"latitude": 30.12, "longitude": 120.11, "altitude": 123, "accuracy": 1, "speed": 5.2, "timeStamp": 16594326109, "direction": 123.11, "timeSinceBoot": 1000000000, "additionSize": 0, "isFromMock": true}, + {"latitude": 31.13, "longitude": 121.11, "altitude": 123, "accuracy": 2, "speed": 5.2, "timeStamp": 16594326109, "direction": 123.11, "timeSinceBoot": 2000000000, "additionSize": 0, "isFromMock": true}, + {"latitude": 32.14, "longitude": 122.11, "altitude": 123, "accuracy": 3, "speed": 5.2, "timeStamp": 16594326109, "direction": 123.11, "timeSinceBoot": 3000000000, "additionSize": 0, "isFromMock": true}, + {"latitude": 33.15, "longitude": 123.11, "altitude": 123, "accuracy": 4, "speed": 5.2, "timeStamp": 16594326109, "direction": 123.11, "timeSinceBoot": 4000000000, "additionSize": 0, "isFromMock": true}, + {"latitude": 34.16, "longitude": 124.11, "altitude": 123, "accuracy": 5, "speed": 5.2, "timeStamp": 16594326109, "direction": 123.11, "timeSinceBoot": 5000000000, "additionSize": 0, "isFromMock": true} + ]; + var config = {"timeInterval": 5, "locations": locations}; + try { + geoLocationManager.setMockedLocations(config); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.enableReverseGeocodingMock + +enableReverseGeocodingMock(): void; + +Enables the mock reverse geocoding function. + +**System capability**: SystemCapability.Location.Location.Core + +**System API**: This is a system API and cannot be called by third-party applications. + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + geoLocationManager.enableReverseGeocodingMock(); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.disableReverseGeocodingMock + +disableReverseGeocodingMock(): void; + +Disables the mock geocoding function. + +**System capability**: SystemCapability.Location.Location.Core + +**System API**: This is a system API and cannot be called by third-party applications. + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + geoLocationManager.disableReverseGeocodingMock(); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.setReverseGeocodingMockInfo + +setReverseGeocodingMockInfo(mockInfos: Array<ReverseGeocodingMockInfo>): void; + +Sets information of the mock reverse geocoding function, including the mapping between a location and geographical name. If the location is contained in the configurations during reverse geocoding query, the corresponding geographical name will be returned. + +**System capability**: SystemCapability.Location.Location.Core + +**System API**: This is a system API and cannot be called by third-party applications. + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | mockInfos | Array<[ReverseGeocodingMockInfo](#reversegeocodingmockinfo)> | Yes| Array of information of the mock reverse geocoding function, including a location and a geographical name.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + var mockInfos = [ + {"location": {"locale": "zh", "latitude": 30.12, "longitude": 120.11, "maxItems": 1}, "geoAddress": {"locale": "zh", "latitude": 30.12, "longitude": 120.11, "maxItems": 1, "isFromMock": true}}, + {"location": {"locale": "zh", "latitude": 31.12, "longitude": 121.11, "maxItems": 1}, "geoAddress": {"locale": "zh", "latitude": 31.12, "longitude": 121.11, "maxItems": 1, "isFromMock": true}}, + {"location": {"locale": "zh", "latitude": 32.12, "longitude": 122.11, "maxItems": 1}, "geoAddress": {"locale": "zh", "latitude": 32.12, "longitude": 122.11, "maxItems": 1, "isFromMock": true}}, + {"location": {"locale": "zh", "latitude": 33.12, "longitude": 123.11, "maxItems": 1}, "geoAddress": {"locale": "zh", "latitude": 33.12, "longitude": 123.11, "maxItems": 1, "isFromMock": true}}, + {"location": {"locale": "zh", "latitude": 34.12, "longitude": 124.11, "maxItems": 1}, "geoAddress": {"locale": "zh", "latitude": 34.12, "longitude": 124.11, "maxItems": 1, "isFromMock": true}}, + ]; + try { + geoLocationManager.setReverseGeocodingMockInfo(mockInfos); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.isLocationPrivacyConfirmed + +isLocationPrivacyConfirmed(type: LocationPrivacyType): boolean; + +Checks whether a user agrees with the privacy statement of the location service. This API can only be called by system applications. + +**System API**: This is a system API and cannot be called by third-party applications. + +**System capability**: SystemCapability.Location.Location.Core + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | [LocationPrivacyType](#locationprivacytype)| Yes| Privacy statement type, for example, privacy statement displayed in the startup wizard or privacy statement displayed when the location service is enabled.| + +**Return value** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | boolean | boolean | NA | Callback used to return the result, which indicates whether the user agrees with the privacy statement.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + var isConfirmed = geoLocationManager.isLocationPrivacyConfirmed(1); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## geoLocationManager.setLocationPrivacyConfirmStatus + +setLocationPrivacyConfirmStatus(type: LocationPrivacyType, isConfirmed: boolean): void; + +Sets the user confirmation status for the privacy statement of the location service. This API can only be called by system applications. + +**System API**: This is a system API and cannot be called by third-party applications. + +**Required permissions**: ohos.permission.MANAGE_SECURE_SETTINGS + +**System capability**: SystemCapability.Location.Location.Core + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | type | [LocationPrivacyType](#locationprivacytype) | Yes| Privacy statement type, for example, privacy statement displayed in the startup wizard or privacy statement displayed when the location service is enabled.| + | isConfirmed | boolean | Yes| Callback used to return the result, which indicates whether the user agrees with the privacy statement.| + +**Error codes** + +For details about the following error codes, see [Location Error Codes](../errorcodes/errorcode-geoLocationManager.md). + +| ID| Error Message| +| -------- | ---------------------------------------- | +|3301000 | Location service is unavailable. | + +**Example** + + ```ts + import geoLocationManager from '@ohos.geoLocationManager'; + try { + geoLocationManager.setLocationPrivacyConfirmStatus(1, true); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` + + +## LocationRequestPriority + +Sets the priority of the location request. + +**System capability**: SystemCapability.Location.Location.Core + +| Name| Value| Description| +| -------- | -------- | -------- | +| UNSET | 0x200 | Priority unspecified.| +| ACCURACY | 0x201 | Location accuracy.| +| LOW_POWER | 0x202 | Power efficiency.| +| FIRST_FIX | 0x203 | Fast location. Use this option if you want to obtain a location as fast as possible.| + + +## LocationRequestScenario + + Sets the scenario of the location request. + +**System capability**: SystemCapability.Location.Location.Core + +| Name| Value| Description| +| -------- | -------- | -------- | +| UNSET | 0x300 | Scenario unspecified.| +| NAVIGATION | 0x301 | Navigation.| +| TRAJECTORY_TRACKING | 0x302 | Trajectory tracking.| +| CAR_HAILING | 0x303 | Ride hailing.| +| DAILY_LIFE_SERVICE | 0x304 | Daily life services.| +| NO_POWER | 0x305 | Power efficiency. Your application does not proactively start the location service. When responding to another application requesting the same location service, the system marks a copy of the location result to your application. In this way, your application will not consume extra power for obtaining the user location.| + + +## ReverseGeoCodeRequest + +Defines a reverse geocoding request. + +**System capability**: SystemCapability.Location.Location.Geocoder + +| Name| Type| Readable| Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| locale | string | Yes| Yes| Language used for the location description. **zh** indicates Chinese, and **en** indicates English.| +| latitude | number | Yes| Yes| Latitude information. A positive value indicates north latitude, and a negative value indicates south latitude.| +| longitude | number | Yes| Yes| Longitude information. A positive value indicates east longitude , and a negative value indicates west longitude .| +| maxItems | number | Yes| Yes| Maximum number of location records to be returned.| + + +## GeoCodeRequest + +Defines a geocoding request. + +**System capability**: SystemCapability.Location.Location.Geocoder + +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| locale | string | Yes| Yes| Language used for the location description. **zh** indicates Chinese, and **en** indicates English.| +| description | string | Yes| Yes| Location description, for example, **No. xx, xx Road, Pudong New District, Shanghai**.| +| maxItems | number | Yes| Yes| Maximum number of location records to be returned.| +| minLatitude | number | Yes| Yes| Minimum latitude. This parameter is used with **minLongitude**, **maxLatitude**, and **maxLongitude** to specify the latitude and longitude ranges.| +| minLongitude | number | Yes| Yes| Minimum longitude.| +| maxLatitude | number | Yes| Yes| Maximum latitude.| +| maxLongitude | number | Yes| Yes| Maximum longitude.| + + +## GeoAddress + +Defines a geographic location. + +**System capability**: SystemCapability.Location.Location.Geocoder + +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| latitude | number | Yes| No | Latitude information. A positive value indicates north latitude, and a negative value indicates south latitude.| +| longitude | number | Yes| No | Longitude information. A positive value indicates east longitude , and a negative value indicates west longitude .| +| locale | string | Yes| No | Language used for the location description. **zh** indicates Chinese, and **en** indicates English.| +| placeName | string | Yes| No | Landmark of the location.| +| countryCode | string | Yes| No | Country code.| +| countryName | string| Yes| No| Country name.| +| administrativeArea | string | Yes| No| Administrative region name.| +| subAdministrativeArea | string | Yes| No| Sub-administrative region name.| +| locality | string | Yes| No| Locality information.| +| subLocality | string | Yes| No| Sub-locality information.| +| roadName | string | Yes| No|Road name.| +| subRoadName | string | Yes| No| Auxiliary road information.| +| premises | string| Yes| No|House information.| +| postalCode | string | Yes| No| Postal code.| +| phoneNumber | string | Yes| No| Phone number.| +| addressUrl | string | Yes| No| Website URL.| +| descriptions | Array<string> | Yes| No| Additional descriptions.| +| descriptionsSize | number | Yes| No| Total number of additional descriptions.| +| isFromMock | Boolean | Yes| No| Whether the geographical name is from the mock reverse geocoding function.| + + +## LocationRequest + +Defines a location request. + +**System capability**: SystemCapability.Location.Location.Core + +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| priority | [LocationRequestPriority](#locationrequestpriority) | Yes| Yes| Priority of the location request.| +| scenario | [LocationRequestScenario](#locationrequestscenario) | Yes| Yes| Scenario of the location request.| +| timeInterval | number | Yes| Yes| Time interval at which location information is reported.| +| distanceInterval | number | Yes| Yes| Distance interval at which location information is reported.| +| maxAccuracy | number | Yes| Yes| Location accuracy. This parameter is valid only when the precise location function is enabled, and is invalid when the approximate location function is enabled.| + + +## CurrentLocationRequest + +Defines the current location request. + +**System capability**: SystemCapability.Location.Location.Core + +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| priority | [LocationRequestPriority](#locationrequestpriority) | Yes| Yes| Priority of the location request.| +| scenario | [LocationRequestScenario](#locationrequestscenario) | Yes| Yes| Scenario of the location request.| +| maxAccuracy | number | Yes| Yes| Location accuracy, in meters. This parameter is valid only when the precise location function is enabled, and is invalid when the approximate location function is enabled.| +| timeoutMs | number | Yes| Yes| Timeout duration, in milliseconds. The minimum value is **1000**.| + + +## SatelliteStatusInfo + +Defines the satellite status information. + +**System capability**: SystemCapability.Location.Location.Gnss + +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| satellitesNumber | number | Yes| No| Number of satellites.| +| satelliteIds | Array<number> | Yes| No| Array of satellite IDs.| +| carrierToNoiseDensitys | Array<number> | Yes| No| Carrier-to-noise density ratio, that is, **cn0**.| +| altitudes | Array<number> | Yes| No| Altitude information.| +| azimuths | Array<number> | Yes| No| Azimuth information.| +| carrierFrequencies | Array<number> | Yes| No| Carrier frequency.| + + +## CachedGnssLocationsRequest + +Represents a request for reporting cached GNSS locations. + +**System capability**: SystemCapability.Location.Location.Gnss + +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| reportingPeriodSec | number | Yes| Yes| Interval for reporting the cached GNSS locations, in milliseconds.| +| wakeUpCacheQueueFull | boolean | Yes| Yes | **true**: reports the cached GNSS locations to the application when the cache queue is full.
**false**: discards the cached GNSS locations when the cache queue is full.| + + +## Geofence + +Defines a GNSS geofence. Currently, only circular geofences are supported. + +**System capability**: SystemCapability.Location.Location.Geofence + +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| latitude | number | Yes| Yes|Latitude information.| +| longitude | number | Yes|Yes| Longitude information.| +| radius | number | Yes|Yes| Radius of a circular geofence.| +| expiration | number | Yes|Yes| Expiration period of a geofence, in milliseconds.| + + +## GeofenceRequest + +Represents a GNSS geofencing request. + +**System capability**: SystemCapability.Location.Location.Geofence + +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| scenario | [LocationRequestScenario](#locationrequestscenario) | Yes| Yes | Location scenario.| +| geofence | [Geofence](#geofence)| Yes| Yes | Geofence information.| + + +## LocationPrivacyType + +Defines the privacy statement type. + +**System capability**: SystemCapability.Location.Location.Core + +| Name| Value| Description| +| -------- | -------- | -------- | +| OTHERS | 0 | Other scenarios.| +| STARTUP | 1 | Privacy statement displayed in the startup wizard.| +| CORE_LOCATION | 2 | Privacy statement displayed when enabling the location service.| + + +## LocationCommand + +Defines an extended command. + +**System capability**: SystemCapability.Location.Location.Core + +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| scenario | [LocationRequestScenario](#locationrequestscenario) | Yes| Yes | Location scenario.| +| command | string | Yes| Yes | Extended command, in the string format.| + + +## Location + +Defines a location. + +**System capability**: SystemCapability.Location.Location.Core + +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| latitude | number| Yes| No| Latitude information. A positive value indicates north latitude, and a negative value indicates south latitude.| +| longitude | number| Yes| No| Longitude information. A positive value indicates east longitude , and a negative value indicates west longitude .| +| altitude | number | Yes| No| Location altitude, in meters.| +| accuracy | number | Yes| No| Location accuracy, in meters.| +| speed | number | Yes| No|Speed, in m/s.| +| timeStamp | number | Yes| No| Location timestamp in the UTC format.| +| direction | number | Yes| No| Direction information.| +| timeSinceBoot | number | Yes| No| Location timestamp since boot.| +| additions | Array<string> | Yes| No| Additional description.| +| additionSize | number | Yes| No| Number of additional descriptions.| +| isFromMock | Boolean | Yes| No| Whether the location information is from the mock location function.| + + +## ReverseGeocodingMockInfo + +Represents information of the mock reverse geocoding function. + +**System capability**: SystemCapability.Location.Location.Core + +**System API**: This is a system API and cannot be called by third-party applications. + +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| location | [ReverseGeoCodeRequest](#reversegeocoderequest) | Yes| Yes| Latitude and longitude information.| +| geoAddress | [GeoAddress](#geoaddress) | Yes| Yes|Geographical name.| + + +## LocationMockConfig + +Represents the information of the mock location function. + +**System capability**: SystemCapability.Location.Location.Core + +**System API**: This is a system API and cannot be called by third-party applications. + +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| timeInterval | number | Yes| Yes| Interval at which mock locations are reported, in seconds.| +| locations | Array<Location> | Yes| Yes| Array of mocked locations.| + + +## CountryCode + +Represents country code information. + +**System capability**: SystemCapability.Location.Location.Core + +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| country | string | Yes| No| Country code.| +| type | [CountryCodeType](#countrycodetype) | Yes| No| Country code source.| + + +## CountryCodeType + +Represents the country code source type. + +**System capability**: SystemCapability.Location.Location.Core + +| Name| Value| Description| +| -------- | -------- | -------- | +| COUNTRY_CODE_FROM_LOCALE | 1 | Country code obtained from the language configuration of the globalization module.| +| COUNTRY_CODE_FROM_SIM | 2 | Country code obtained from the SIM card.| +| COUNTRY_CODE_FROM_LOCATION | 3 | Country code obtained using the reverse geocoding function based on the user's location information.| +| COUNTRY_CODE_FROM_NETWORK | 4 | Country code obtained from the cellular network registration information.| diff --git a/en/application-dev/reference/apis/js-apis-geolocation.md b/en/application-dev/reference/apis/js-apis-geolocation.md index 92118167ad603189eac98eae73e156a794542f99..8bc027058b6d9bbda89636757219f83827029317 100644 --- a/en/application-dev/reference/apis/js-apis-geolocation.md +++ b/en/application-dev/reference/apis/js-apis-geolocation.md @@ -1,24 +1,56 @@ # Geolocation -Location services provide basic functions such as GNSS positioning, network positioning, geocoding, reverse geocoding, country code and geofencing. +The Geolocation module provides location services such as GNSS positioning, network positioning, geocoding, reverse geocoding, country code and geofencing. -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> **NOTE** > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> The APIs provided by this module are no longer maintained since API version 9. You are advised to use [geoLocationManager](js-apis-geoLocationManager.md) instead. + +## Applying for Permissions + +Before using basic location capabilities, check whether your application has been granted the permission to access the device location information. If not, your application needs to obtain the permission from the user as described below. + +The system provides the following location permissions: +- ohos.permission.LOCATION + +- ohos.permission.APPROXIMATELY_LOCATION + +- ohos.permission.LOCATION_IN_BACKGROUND + +If your application needs to access the device location information, it must first apply for required permissions. Specifically speaking: + +API versions earlier than 9: Apply for **ohos.permission.LOCATION**. + +API version 9 and later: Apply for **ohos.permission.APPROXIMATELY\_LOCATION**, or apply for **ohos.permission.APPROXIMATELY\_LOCATION** and **ohos.permission.LOCATION**. Note that **ohos.permission.LOCATION** cannot be applied for separately. + +| API Version| Location Permission| Permission Application Result| Location Accuracy| +| -------- | -------- | -------- | -------- | +| Earlier than 9| ohos.permission.LOCATION | Success| Location accurate to meters| +| 9 and later| ohos.permission.LOCATION | Failure| No location obtained| +| 9 and later| ohos.permission.APPROXIMATELY_LOCATION | Success| Location accurate to 5 kilometers| +| 9 and later| ohos.permission.APPROXIMATELY_LOCATION and ohos.permission.LOCATION| Success| Location accurate to meters| + +If your application needs to access the device location information when running in the background, it must be configured to be able to run in the background and be granted the **ohos.permission.LOCATION_IN_BACKGROUND** permission. In this way, the system continues to report device location information after your application moves to the background. + +You can declare the required permission in your application's configuration file. For details, see [Access Control (Permission) Development](../../security/accesstoken-guidelines.md). ## Modules to Import -```js +```ts import geolocation from '@ohos.geolocation'; ``` -## geolocation.on('locationChange') +## geolocation.on('locationChange')(deprecated) on(type: 'locationChange', request: LocationRequest, callback: Callback<Location>): void -Registers a listener for location changes with a location request initiated. +Registers a listener for location changes with a location request initiated. The location result is reported through [LocationRequest](#locationrequest). + +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.on('locationChange')](js-apis-geoLocationManager.md#geolocationmanageronlocationchange). -**Permission required**: ohos.permission.LOCATION +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core @@ -27,13 +59,14 @@ Registers a listener for location changes with a location request initiated. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | type | string | Yes| Event type. The value **locationChange** indicates a location change event.| - | request | LocationRequest | Yes| Location request.| + | request | [LocationRequest](#locationrequest) | Yes| Location request.| | callback | Callback<[Location](#location)> | Yes| Callback used to return the location change event.| + **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; var requestInfo = {'priority': 0x203, 'scenario': 0x300, 'timeInterval': 0, 'distanceInterval': 0, 'maxAccuracy': 0}; var locationChange = (location) => { @@ -43,13 +76,16 @@ Registers a listener for location changes with a location request initiated. ``` -## geolocation.off('locationChange') +## geolocation.off('locationChange')(deprecated) off(type: 'locationChange', callback?: Callback<Location>): void Unregisters the listener for location changes with the corresponding location request deleted. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.off('locationChange')](js-apis-geoLocationManager.md#geolocationmanagerofflocationchange). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core @@ -58,12 +94,12 @@ Unregisters the listener for location changes with the corresponding location re | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | type | string | Yes| Event type. The value **locationChange** indicates a location change event.| - | callback | Callback<[Location](#location)> | No| Callback used to return the location change event.| + | callback | Callback<[Location](#location)> | No| Callback to unregister. If this parameter is not specified, all callbacks of the specified event type are unregistered.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; var requestInfo = {'priority': 0x203, 'scenario': 0x300, 'timeInterval': 0, 'distanceInterval': 0, 'maxAccuracy': 0}; var locationChange = (location) => { @@ -74,13 +110,16 @@ Unregisters the listener for location changes with the corresponding location re ``` -## geolocation.on('locationServiceState') +## geolocation.on('locationServiceState')(deprecated) on(type: 'locationServiceState', callback: Callback<boolean>): void Registers a listener for location service status change events. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.on('locationEnabledChange')](js-apis-geoLocationManager.md#geolocationmanageronlocationenabledchange). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core @@ -93,8 +132,8 @@ Registers a listener for location service status change events. **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; var locationServiceState = (state) => { console.log('locationServiceState: ' + JSON.stringify(state)); @@ -103,13 +142,16 @@ Registers a listener for location service status change events. ``` -## geolocation.off('locationServiceState') +## geolocation.off('locationServiceState')(deprecated) off(type: 'locationServiceState', callback?: Callback<boolean>): void; Unregisters the listener for location service status change events. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.off('locationEnabledChange')](js-apis-geoLocationManager.md#geolocationmanagerofflocationenabledchange). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core @@ -118,12 +160,12 @@ Unregisters the listener for location service status change events. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | type | string | Yes| Event type. The value **locationServiceState** indicates a location service status change event.| - | callback | Callback<boolean> | No| Callback used to return the location service status change event.| + | callback | Callback<boolean> | No| Callback to unregister. If this parameter is not specified, all callbacks of the specified event type are unregistered.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; var locationServiceState = (state) => { console.log('locationServiceState: state: ' + JSON.stringify(state)); @@ -133,13 +175,17 @@ Unregisters the listener for location service status change events. ``` -## geolocation.on('cachedGnssLocationsReporting')8+ +## geolocation.on('cachedGnssLocationsReporting')(deprecated) on(type: 'cachedGnssLocationsReporting', request: CachedGnssLocationsRequest, callback: Callback<Array<Location>>): void; Registers a listener for cached GNSS location reports. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.on('cachedGnssLocationsChange')](js-apis-geoLocationManager.md#geolocationmanageroncachedgnsslocationschange). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Gnss @@ -148,13 +194,13 @@ Registers a listener for cached GNSS location reports. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | type | string | Yes| Event type. The value **cachedGnssLocationsReporting** indicates reporting of cached GNSS locations.| - | request | CachedGnssLocationsRequest | Yes| Request for reporting cached GNSS location.| - | callback | Callback<boolean> | Yes| Callback used to return cached GNSS locations.| + | request | [CachedGnssLocationsRequest](#cachedgnsslocationsrequest) | Yes| Request for reporting cached GNSS location.| + | callback | Callback<Array<[Location](#location)>> | Yes| Callback used to return cached GNSS locations.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; var cachedLocationsCb = (locations) => { console.log('cachedGnssLocationsReporting: locations: ' + JSON.stringify(locations)); @@ -164,13 +210,17 @@ Registers a listener for cached GNSS location reports. ``` -## geolocation.off('cachedGnssLocationsReporting')8+ +## geolocation.off('cachedGnssLocationsReporting')(deprecated) off(type: 'cachedGnssLocationsReporting', callback?: Callback<Array<Location>>): void; Unregisters the listener for cached GNSS location reports. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.off('cachedGnssLocationsChange')](js-apis-geoLocationManager.md#geolocationmanageroffcachedgnsslocationschange). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Gnss @@ -179,12 +229,12 @@ Unregisters the listener for cached GNSS location reports. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | type | string | Yes| Event type. The value **cachedGnssLocationsReporting** indicates reporting of cached GNSS locations.| - | callback | Callback<boolean> | No| Callback used to return cached GNSS locations.| + | callback | Callback<Array<[Location](#location)>> | No| Callback to unregister. If this parameter is not specified, all callbacks of the specified event type are unregistered.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; var cachedLocationsCb = (locations) => { console.log('cachedGnssLocationsReporting: locations: ' + JSON.stringify(locations)); @@ -195,13 +245,17 @@ Unregisters the listener for cached GNSS location reports. ``` -## geolocation.on('gnssStatusChange')8+ +## geolocation.on('gnssStatusChange')(deprecated) on(type: 'gnssStatusChange', callback: Callback<SatelliteStatusInfo>): void; Registers a listener for GNSS satellite status change events. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.on('satelliteStatusChange')](js-apis-geoLocationManager.md#geolocationmanageronsatellitestatuschange). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Gnss @@ -210,12 +264,12 @@ Registers a listener for GNSS satellite status change events. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | type | string | Yes| Event type. The value **gnssStatusChange** indicates a GNSS satellite status change.| - | callback | Callback<SatelliteStatusInfo> | Yes| Callback used to return GNSS satellite status changes.| + | callback | Callback<[SatelliteStatusInfo](#satellitestatusinfo)> | Yes| Callback used to return GNSS satellite status changes.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; var gnssStatusCb = (satelliteStatusInfo) => { console.log('gnssStatusChange: ' + JSON.stringify(satelliteStatusInfo)); @@ -224,13 +278,17 @@ Registers a listener for GNSS satellite status change events. ``` -## geolocation.off('gnssStatusChange')8+ +## geolocation.off('gnssStatusChange')(deprecated) off(type: 'gnssStatusChange', callback?: Callback<SatelliteStatusInfo>): void; Unregisters the listener for GNSS satellite status change events. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.off('satelliteStatusChange')](js-apis-geoLocationManager.md#geolocationmanageroffsatellitestatuschange). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Gnss @@ -239,11 +297,11 @@ Unregisters the listener for GNSS satellite status change events. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | type | string | Yes| Event type. The value **gnssStatusChange** indicates a GNSS satellite status change.| - | callback | Callback<SatelliteStatusInfo> | No| Callback used to return GNSS satellite status changes.| + | callback | Callback<[SatelliteStatusInfo](#satellitestatusinfo)> | No| Callback to unregister. If this parameter is not specified, all callbacks of the specified event type are unregistered.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; var gnssStatusCb = (satelliteStatusInfo) => { console.log('gnssStatusChange: ' + JSON.stringify(satelliteStatusInfo)); @@ -253,13 +311,17 @@ Unregisters the listener for GNSS satellite status change events. ``` -## geolocation.on('nmeaMessageChange')8+ +## geolocation.on('nmeaMessageChange')(deprecated) on(type: 'nmeaMessageChange', callback: Callback<string>): void; Registers a listener for GNSS NMEA message change events. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.on('nmeaMessage')](js-apis-geoLocationManager.md#geolocationmanageronnmeamessage). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Gnss @@ -272,8 +334,8 @@ Registers a listener for GNSS NMEA message change events. **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; var nmeaCb = (str) => { console.log('nmeaMessageChange: ' + JSON.stringify(str)); @@ -282,13 +344,17 @@ Registers a listener for GNSS NMEA message change events. ``` -## geolocation.off('nmeaMessageChange')8+ +## geolocation.off('nmeaMessageChange')(deprecated) off(type: 'nmeaMessageChange', callback?: Callback<string>): void; Unregisters the listener for GNSS NMEA message change events. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.off('nmeaMessage')](js-apis-geoLocationManager.md#geolocationmanageroffnmeamessage). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Gnss @@ -297,12 +363,12 @@ Unregisters the listener for GNSS NMEA message change events. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | type | string | Yes| Event type. The value **nmeaMessageChange** indicates a GNSS NMEA message change.| - | callback | Callback<string> | No| Callback used to return GNSS NMEA message changes.| + | callback | Callback<string> | No| Callback to unregister. If this parameter is not specified, all callbacks of the specified event type are unregistered.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; var nmeaCb = (str) => { console.log('nmeaMessageChange: ' + JSON.stringify(str)); @@ -312,13 +378,17 @@ Unregisters the listener for GNSS NMEA message change events. ``` -## geolocation.on('fenceStatusChange')8+ +## geolocation.on('fenceStatusChange')(deprecated) on(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent): void; Registers a listener for status change events of the specified geofence. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.on('gnssFenceStatusChange')](js-apis-geoLocationManager.md#geolocationmanagerongnssfencestatuschange). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Geofence @@ -327,13 +397,13 @@ Registers a listener for status change events of the specified geofence. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | type | string | Yes| Event type. The value **fenceStatusChange** indicates a geofence status change.| - | request | GeofenceRequest | Yes| Geofencing request.| + | request | [GeofenceRequest](#geofencerequest) | Yes| Geofencing request.| | want | WantAgent | Yes| **WantAgent** used to return geofence (entrance or exit) events.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; import wantAgent from '@ohos.wantAgent'; @@ -357,13 +427,17 @@ Registers a listener for status change events of the specified geofence. ``` -## geolocation.off('fenceStatusChange')8+ +## geolocation.off('fenceStatusChange')(deprecated) off(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent): void; Unregisters the listener for status change events of the specified geofence. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.off('gnssFenceStatusChange')](js-apis-geoLocationManager.md#geolocationmanageroffgnssfencestatuschange). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Geofence @@ -372,12 +446,12 @@ Unregisters the listener for status change events of the specified geofence. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | type | string | Yes| Event type. The value **fenceStatusChange** indicates a geofence status change.| - | request | GeofenceRequest | Yes| Geofencing request.| + | request | [GeofenceRequest](#geofencerequest) | Yes| Geofencing request.| | want | WantAgent | Yes| **WantAgent** used to return geofence (entrance or exit) events.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; import wantAgent from '@ohos.wantAgent'; @@ -402,14 +476,16 @@ Unregisters the listener for status change events of the specified geofence. ``` -## geolocation.getCurrentLocation +## geolocation.getCurrentLocation(deprecated) getCurrentLocation(request: CurrentLocationRequest, callback: AsyncCallback<Location>): void - Obtains the current location. This API uses an asynchronous callback to return the result. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getCurrentLocation](js-apis-geoLocationManager.md#geolocationmanagergetcurrentlocation). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core @@ -417,12 +493,12 @@ Obtains the current location. This API uses an asynchronous callback to return t | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | - | request | [CurrentLocationRequest](#currentlocationrequest) | No| Location request.| + | request | [CurrentLocationRequest](#currentlocationrequest) | Yes| Location request.| | callback | AsyncCallback<[Location](#location)> | Yes| Callback used to return the current location.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; var requestInfo = {'priority': 0x203, 'scenario': 0x300,'maxAccuracy': 0}; var locationChange = (err, location) => { @@ -434,18 +510,55 @@ Obtains the current location. This API uses an asynchronous callback to return t } }; geolocation.getCurrentLocation(requestInfo, locationChange); + ``` + + +## geolocation.getCurrentLocation(deprecated) + +getCurrentLocation(callback: AsyncCallback<Location>): void + + +Obtains the current location. This API uses an asynchronous callback to return the result. + +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getCurrentLocation](js-apis-geoLocationManager.md#geolocationmanagergetcurrentlocation). + +**Required permissions**: ohos.permission.LOCATION + +**System capability**: SystemCapability.Location.Location.Core + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<[Location](#location)> | Yes| Callback used to return the current location.| + +**Example** + + ```ts + import geolocation from '@ohos.geolocation'; + var locationChange = (err, location) => { + if (err) { + console.log('locationChanger: err=' + JSON.stringify(err)); + } + if (location) { + console.log('locationChanger: location=' + JSON.stringify(location)); + } + }; geolocation.getCurrentLocation(locationChange); ``` -## geolocation.getCurrentLocation +## geolocation.getCurrentLocation(deprecated) getCurrentLocation(request?: CurrentLocationRequest): Promise<Location> - Obtains the current location. This API uses a promise to return the result. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getCurrentLocation](js-apis-geoLocationManager.md#geolocationmanagergetcurrentlocation-2). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core @@ -457,14 +570,14 @@ Obtains the current location. This API uses a promise to return the result. **Return value** - | Name| Description| - | -------- | -------- | - | Promise<[Location](#location)> | Promise used to return the current location.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Promise<[Location](#location)> |[Location](#location)|NA| Promise used to return the current location.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; var requestInfo = {'priority': 0x203, 'scenario': 0x300,'maxAccuracy': 0}; geolocation.getCurrentLocation(requestInfo).then((result) => { @@ -473,13 +586,16 @@ Obtains the current location. This API uses a promise to return the result. ``` -## geolocation.getLastLocation +## geolocation.getLastLocation(deprecated) getLastLocation(callback: AsyncCallback<Location>): void Obtains the previous location. This API uses an asynchronous callback to return the result. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getLastLocation](js-apis-geoLocationManager.md#geolocationmanagergetlastlocation). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core @@ -491,8 +607,8 @@ Obtains the previous location. This API uses an asynchronous callback to return **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; geolocation.getLastLocation((err, data) => { if (err) { @@ -505,26 +621,29 @@ Obtains the previous location. This API uses an asynchronous callback to return ``` -## geolocation.getLastLocation +## geolocation.getLastLocation(deprecated) getLastLocation(): Promise<Location> Obtains the previous location. This API uses a promise to return the result. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getLastLocation](js-apis-geoLocationManager.md#geolocationmanagergetlastlocation). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core **Return value** - | Name| Description| - | -------- | -------- | - | Promise<[Location](#location)> | Promise used to return the previous location.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Promise<[Location](#location)> | [Location](#location)|NA|Promise used to return the previous location.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; geolocation.getLastLocation().then((result) => { console.log('getLastLocation: result: ' + JSON.stringify(result)); @@ -532,14 +651,16 @@ Obtains the previous location. This API uses a promise to return the result. ``` -## geolocation.isLocationEnabled +## geolocation.isLocationEnabled(deprecated) isLocationEnabled(callback: AsyncCallback<boolean>): void - Checks whether the location service is enabled. This API uses an asynchronous callback to return the result. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.isLocationEnabled](js-apis-geoLocationManager.md#geolocationmanagerislocationenabled). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core @@ -550,8 +671,8 @@ Checks whether the location service is enabled. This API uses an asynchronous ca | callback | AsyncCallback<boolean> | Yes| Callback used to return the location service status.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; geolocation.isLocationEnabled((err, data) => { if (err) { @@ -564,25 +685,28 @@ Checks whether the location service is enabled. This API uses an asynchronous ca ``` -## geolocation.isLocationEnabled +## geolocation.isLocationEnabled(deprecated) isLocationEnabled(): Promise<boolean> Checks whether the location service is enabled. This API uses a promise to return the result. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.isLocationEnabled](js-apis-geoLocationManager.md#geolocationmanagerislocationenabled). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core **Return value** - | Name| Description| - | -------- | -------- | - | Promise<boolean> | Promise used to return the location service status.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Promise<boolean> | boolean|NA|Promise used to return the location service status.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; geolocation.isLocationEnabled().then((result) => { console.log('promise, isLocationEnabled: ' + JSON.stringify(result)); @@ -590,14 +714,16 @@ Checks whether the location service is enabled. This API uses a promise to retur ``` -## geolocation.requestEnableLocation +## geolocation.requestEnableLocation(deprecated) requestEnableLocation(callback: AsyncCallback<boolean>): void - Requests to enable the location service. This API uses an asynchronous callback to return the result. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.requestEnableLocation](js-apis-geoLocationManager.md#geolocationmanagerrequestenablelocation). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core @@ -608,8 +734,8 @@ Requests to enable the location service. This API uses an asynchronous callback | callback | AsyncCallback<boolean> | Yes| Callback used to return the location service status.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; geolocation.requestEnableLocation((err, data) => { if (err) { @@ -622,159 +748,45 @@ Requests to enable the location service. This API uses an asynchronous callback ``` -## geolocation.requestEnableLocation +## geolocation.requestEnableLocation(deprecated) requestEnableLocation(): Promise<boolean> Requests to enable the location service. This API uses a promise to return the result. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.requestEnableLocation](js-apis-geoLocationManager.md#geolocationmanagerrequestenablelocation-1). -**System capability**: SystemCapability.Location.Location.Core - -**Return value** - - | Name| Description| - | -------- | -------- | - | Promise<boolean> | Promise used to return the location service status.| - -**Example** - - ```js - import geolocation from '@ohos.geolocation'; - geolocation.requestEnableLocation().then((result) => { - console.log('promise, requestEnableLocation: ' + JSON.stringify(result)); - }); - ``` - - -## geolocation.enableLocation - -enableLocation(callback: AsyncCallback<boolean>): void; - -Enables the location service. This API uses an asynchronous callback to return the result. - -**System API**: This is a system API and cannot be called by third-party applications. - -**Permission required**: ohos.permission.MANAGE_SECURE_SETTINGS - -**System capability**: SystemCapability.Location.Location.Core - -**Parameters** - - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | callback | AsyncCallback<boolean> | Yes| Callback used to return the location service status.| - -**Example** - - ```js - import geolocation from '@ohos.geolocation'; - geolocation.enableLocation((err, data) => { - if (err) { - console.log('enableLocation: err=' + JSON.stringify(err)); - } - if (data) { - console.log('enableLocation: data=' + JSON.stringify(data)); - } - }); - ``` - - -## geolocation.enableLocation - -enableLocation(): Promise<boolean> - -Enables the location service. This API uses a promise to return the result. - -**System API**: This is a system API and cannot be called by third-party applications. - -**Permission required**: ohos.permission.MANAGE_SECURE_SETTINGS +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core **Return value** - | Name| Description| - | -------- | -------- | - | Promise<boolean> | Promise used to return the location service status.| - -**Example** - - ```js - import geolocation from '@ohos.geolocation'; - geolocation.enableLocation().then((result) => { - console.log('promise, enableLocation: ' + JSON.stringify(result)); - }); - ``` - -## geolocation.disableLocation - -disableLocation(callback: AsyncCallback<boolean>): void; - -Disables the location service. This API uses an asynchronous callback to return the result. - -**System API**: This is a system API and cannot be called by third-party applications. - -**Permission required**: ohos.permission.MANAGE_SECURE_SETTINGS - -**System capability**: SystemCapability.Location.Location.Core - -**Parameters** - | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | - | callback | AsyncCallback<boolean> | Yes| Callback used to return the location service status.| + | Promise<boolean> | boolean|NA|Promise used to return the location service status.| **Example** - - ```js - import geolocation from '@ohos.geolocation'; - geolocation.disableLocation((err, data) => { - if (err) { - console.log('disableLocation: err=' + JSON.stringify(err)); - } - if (data) { - console.log('disableLocation: data=' + JSON.stringify(data)); - } - }); - ``` - - -## geolocation.disableLocation - -disableLocation(): Promise<boolean> - -Disables the location service. This API uses a promise to return the result. - -**System API**: This is a system API and cannot be called by third-party applications. - -**Permission required**: ohos.permission.MANAGE_SECURE_SETTINGS - -**System capability**: SystemCapability.Location.Location.Core -**Return value** - - | Name| Description| - | -------- | -------- | - | Promise<boolean> | Promise used to return the location service status.| - -**Example** - - ```js + ```ts import geolocation from '@ohos.geolocation'; - geolocation.disableLocation().then((result) => { - console.log('promise, disableLocation: ' + JSON.stringify(result)); + geolocation.requestEnableLocation().then((result) => { + console.log('promise, requestEnableLocation: ' + JSON.stringify(result)); }); ``` -## geolocation.isGeoServiceAvailable + +## geolocation.isGeoServiceAvailable(deprecated) isGeoServiceAvailable(callback: AsyncCallback<boolean>): void Checks whether the (reverse) geocoding service is available. This API uses an asynchronous callback to return the result. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.isGeocoderAvailable](js-apis-geoLocationManager.md#geolocationmanagerisgeocoderavailable). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Geocoder @@ -785,8 +797,8 @@ Checks whether the (reverse) geocoding service is available. This API uses an as | callback | AsyncCallback<boolean> | Yes| Callback used to return the (reverse) geocoding service status.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; geolocation.isGeoServiceAvailable((err, data) => { if (err) { @@ -799,25 +811,28 @@ Checks whether the (reverse) geocoding service is available. This API uses an as ``` -## geolocation.isGeoServiceAvailable +## geolocation.isGeoServiceAvailable(deprecated) isGeoServiceAvailable(): Promise<boolean> Checks whether the (reverse) geocoding service is available. This API uses a promise to return the result. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.isGeocoderAvailable](js-apis-geoLocationManager.md#geolocationmanagerisgeocoderavailable). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Geocoder **Return value** - | Name| Description| - | -------- | -------- | - | Promise<boolean> | Promise used to return the (reverse) geocoding service status.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Promise<boolean> |boolean|NA| Promise used to return the (reverse) geocoding service status.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; geolocation.isGeoServiceAvailable().then((result) => { console.log('promise, isGeoServiceAvailable: ' + JSON.stringify(result)); @@ -825,13 +840,16 @@ Checks whether the (reverse) geocoding service is available. This API uses a pro ``` -## geolocation.getAddressesFromLocation +## geolocation.getAddressesFromLocation(deprecated) getAddressesFromLocation(request: ReverseGeoCodeRequest, callback: AsyncCallback<Array<GeoAddress>>): void Converts coordinates into geographic description through reverse geocoding. This API uses an asynchronous callback to return the result. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getAddressesFromLocation](js-apis-geoLocationManager.md#geolocationmanagergetaddressesfromlocation). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Geocoder @@ -843,8 +861,8 @@ Converts coordinates into geographic description through reverse geocoding. This | callback | AsyncCallback<Array<[GeoAddress](#geoaddress)>> | Yes| Callback used to return the reverse geocoding result.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; var reverseGeocodeRequest = {"latitude": 31.12, "longitude": 121.11, "maxItems": 1}; geolocation.getAddressesFromLocation(reverseGeocodeRequest, (err, data) => { @@ -858,13 +876,16 @@ Converts coordinates into geographic description through reverse geocoding. This ``` -## geolocation.getAddressesFromLocation +## geolocation.getAddressesFromLocation(deprecated) getAddressesFromLocation(request: ReverseGeoCodeRequest): Promise<Array<GeoAddress>>; Converts coordinates into geographic description through reverse geocoding. This API uses a promise to return the result. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getAddressesFromLocation](js-apis-geoLocationManager.md#geolocationmanagergetaddressesfromlocation-1). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Geocoder @@ -876,13 +897,13 @@ Converts coordinates into geographic description through reverse geocoding. This **Return value** - | Name| Description| - | -------- | -------- | - | Promise<Array<[GeoAddress](#geoaddress)>> | Promise used to return the reverse geocoding result.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Promise<Array<[GeoAddress](#geoaddress)>> | Array<[GeoAddress](#geoaddress)>|NA|Promise used to return the reverse geocoding result.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; var reverseGeocodeRequest = {"latitude": 31.12, "longitude": 121.11, "maxItems": 1}; geolocation.getAddressesFromLocation(reverseGeocodeRequest).then((data) => { @@ -891,13 +912,16 @@ Converts coordinates into geographic description through reverse geocoding. This ``` -## geolocation.getAddressesFromLocationName +## geolocation.getAddressesFromLocationName(deprecated) getAddressesFromLocationName(request: GeoCodeRequest, callback: AsyncCallback<Array<GeoAddress>>): void Converts geographic description into coordinates through geocoding. This API uses an asynchronous callback to return the result. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getAddressesFromLocationName](js-apis-geoLocationManager.md#geolocationmanagergetaddressesfromlocationname). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Geocoder @@ -909,8 +933,8 @@ Converts geographic description into coordinates through geocoding. This API use | callback | AsyncCallback<Array<[GeoAddress](#geoaddress)>> | Yes| Callback used to return the geocoding result.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; var geocodeRequest = {"description": "No. xx, xx Road, Pudong District, Shanghai", "maxItems": 1}; geolocation.getAddressesFromLocationName(geocodeRequest, (err, data) => { @@ -924,13 +948,16 @@ Converts geographic description into coordinates through geocoding. This API use ``` -## geolocation.getAddressesFromLocationName +## geolocation.getAddressesFromLocationName(deprecated) getAddressesFromLocationName(request: GeoCodeRequest): Promise<Array<GeoAddress>> Converts geographic description into coordinates through geocoding. This API uses a promise to return the result. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getAddressesFromLocationName](js-apis-geoLocationManager.md#geolocationmanagergetaddressesfromlocationname-1). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Geocoder @@ -942,13 +969,13 @@ Converts geographic description into coordinates through geocoding. This API use **Return value** - | Name| Description| - | -------- | -------- | - | Promise<Array<[GeoAddress](#geoaddress)>> | Callback used to return the geocoding result.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Promise<Array<[GeoAddress](#geoaddress)>> | Array<[GeoAddress](#geoaddress)>|NA|Callback used to return the geocoding result.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; var geocodeRequest = {"description": "No. xx, xx Road, Pudong District, Shanghai", "maxItems": 1}; geolocation.getAddressesFromLocationName(geocodeRequest).then((result) => { @@ -957,13 +984,17 @@ Converts geographic description into coordinates through geocoding. This API use ``` -## geolocation.getCachedGnssLocationsSize8+ +## geolocation.getCachedGnssLocationsSize(deprecated) getCachedGnssLocationsSize(callback: AsyncCallback<number>): void; Obtains the number of cached GNSS locations. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getCachedGnssLocationsSize](js-apis-geoLocationManager.md#geolocationmanagergetcachedgnsslocationssize). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Gnss @@ -974,8 +1005,8 @@ Obtains the number of cached GNSS locations. | callback | AsyncCallback<number> | Yes| Callback used to return the number of cached GNSS locations. | **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; geolocation.getCachedGnssLocationsSize((err, size) => { if (err) { @@ -988,25 +1019,29 @@ Obtains the number of cached GNSS locations. ``` -## geolocation.getCachedGnssLocationsSize8+ +## geolocation.getCachedGnssLocationsSize(deprecated) getCachedGnssLocationsSize(): Promise<number>; Obtains the number of cached GNSS locations. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getCachedGnssLocationsSize](js-apis-geoLocationManager.md#geolocationmanagergetcachedgnsslocationssize-1). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Gnss **Return value** - | Name| Description| - | -------- | -------- | - | Promise<number> | Promise used to return the number of cached GNSS locations.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Promise<number> | number|NA|Promise used to return the number of cached GNSS locations.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; geolocation.getCachedGnssLocationsSize().then((result) => { console.log('promise, getCachedGnssLocationsSize: ' + JSON.stringify(result)); @@ -1014,13 +1049,17 @@ Obtains the number of cached GNSS locations. ``` -## geolocation.flushCachedGnssLocations8+ +## geolocation.flushCachedGnssLocations(deprecated) flushCachedGnssLocations(callback: AsyncCallback<boolean>): void; Obtains all cached GNSS locations and clears the GNSS cache queue. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.flushCachedGnssLocations](js-apis-geoLocationManager.md#geolocationmanagerflushcachedgnsslocations). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Gnss @@ -1031,8 +1070,8 @@ Obtains all cached GNSS locations and clears the GNSS cache queue. | callback | AsyncCallback<boolean> | Yes| Callback used to return the operation result.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; geolocation.flushCachedGnssLocations((err, result) => { if (err) { @@ -1045,25 +1084,29 @@ Obtains all cached GNSS locations and clears the GNSS cache queue. ``` -## geolocation.flushCachedGnssLocations8+ +## geolocation.flushCachedGnssLocations(deprecated) flushCachedGnssLocations(): Promise<boolean>; Obtains all cached GNSS locations and clears the GNSS cache queue. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.flushCachedGnssLocations](js-apis-geoLocationManager.md#geolocationmanagerflushcachedgnsslocations-1). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Gnss **Return value** - | Name| Description| - | -------- | -------- | - | Promise<boolean> | Promise used to return the operation result.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Promise<boolean> |boolean|NA| Promise used to return the operation result.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; geolocation.flushCachedGnssLocations().then((result) => { console.log('promise, flushCachedGnssLocations: ' + JSON.stringify(result)); @@ -1071,13 +1114,17 @@ Obtains all cached GNSS locations and clears the GNSS cache queue. ``` -## geolocation.sendCommand8+ +## geolocation.sendCommand(deprecated) sendCommand(command: LocationCommand, callback: AsyncCallback<boolean>): void; -Sends an extended command to the location subsystem. This API can only be called by system applications. +Sends an extended command to the location subsystem. + +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.sendCommand](js-apis-geoLocationManager.md#geolocationmanagersendcommand). -**Permission required**: ohos.permission.LOCATION +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core @@ -1085,12 +1132,12 @@ Sends an extended command to the location subsystem. This API can only be called | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | - | command | LocationCommand | Yes| Extended command (string) to be sent.| + | command | [LocationCommand](#locationcommand) | Yes| Extended command (string) to be sent.| | callback | AsyncCallback<boolean> | Yes| Callback used to return the operation result.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; var requestInfo = {'scenario': 0x301, 'command': "command_1"}; geolocation.sendCommand(requestInfo, (err, result) => { @@ -1104,13 +1151,17 @@ Sends an extended command to the location subsystem. This API can only be called ``` -## geolocation.sendCommand8+ +## geolocation.sendCommand(deprecated) sendCommand(command: LocationCommand): Promise<boolean>; -Sends an extended command to the location subsystem. This API can only be called by system applications. +Sends an extended command to the location subsystem. + +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.sendCommand](js-apis-geoLocationManager.md#geolocationmanagersendcommand). -**Permission required**: ohos.permission.LOCATION +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core @@ -1118,17 +1169,17 @@ Sends an extended command to the location subsystem. This API can only be called | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | - | command | LocationCommand | Yes| Extended command (string) to be sent.| + | command | [LocationCommand](#locationcommand) | Yes| Extended command (string) to be sent.| **Return value** - | Name| Description| - | -------- | -------- | - | Promise<boolean> | Callback used to return the operation result.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | Promise<boolean> |boolean|NA| Callback used to return the operation result.| **Example** - - ```js + + ```ts import geolocation from '@ohos.geolocation'; var requestInfo = {'scenario': 0x301, 'command': "command_1"}; geolocation.sendCommand(requestInfo).then((result) => { @@ -1137,15 +1188,18 @@ Sends an extended command to the location subsystem. This API can only be called ``` -## LocationRequestPriority +## LocationRequestPriority(deprecated) Sets the priority of the location request. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.LocationRequestPriority](js-apis-geoLocationManager.md#locationrequestpriority). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core -| Name| Default Value| Description| +| Name| Value| Description| | -------- | -------- | -------- | | UNSET | 0x200 | Priority unspecified.| | ACCURACY | 0x201 | Location accuracy.| @@ -1153,15 +1207,18 @@ Sets the priority of the location request. | FIRST_FIX | 0x203 | Fast location. Use this option if you want to obtain a location as fast as possible.| -## LocationRequestScenario +## LocationRequestScenario(deprecated) Sets the scenario of the location request. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.LocationRequestScenario](js-apis-geoLocationManager.md#locationrequestscenario). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core -| Name| Default Value| Description| +| Name| Value| Description| | -------- | -------- | -------- | | UNSET | 0x300 | Scenario unspecified.| | NAVIGATION | 0x301 | Navigation.| @@ -1171,15 +1228,18 @@ Sets the priority of the location request. | NO_POWER | 0x305 | Power efficiency. Your application does not proactively start the location service. When responding to another application requesting the same location service, the system marks a copy of the location result to your application. In this way, your application will not consume extra power for obtaining the user location.| -## GeoLocationErrorCode +## GeoLocationErrorCode(deprecated) Enumerates error codes of the location service. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core -| Name| Default Value| Description| +| Name| Value| Description| | -------- | -------- | -------- | | INPUT_PARAMS_ERROR7+ | 101 | Incorrect input parameters.| | REVERSE_GEOCODE_ERROR7+ | 102 | Failed to call the reverse geocoding API.| @@ -1190,213 +1250,255 @@ Enumerates error codes of the location service. | LOCATION_REQUEST_TIMEOUT_ERROR7+ | 107 | Failed to obtain the location within the specified time.| -## ReverseGeoCodeRequest +## ReverseGeoCodeRequest(deprecated) Defines a reverse geocoding request. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.ReverseGeoCodeRequest](js-apis-geoLocationManager.md#reversegeocoderequest). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Geocoder -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| locale | string | No| Language used for the location description. **zh** indicates Chinese, and **en** indicates English.| -| latitude | number | Yes| Latitude information. A positive value indicates north latitude, and a negative value indicates south latitude.| -| longitude | number | Yes| Longitude information. A positive value indicates east longitude , and a negative value indicates west longitude .| -| maxItems | number | No| Maximum number of location records to be returned.| +| Name| Type| Readable| Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| locale | string | Yes| Yes| Language used for the location description. **zh** indicates Chinese, and **en** indicates English.| +| latitude | number | Yes| Yes| Latitude information. A positive value indicates north latitude, and a negative value indicates south latitude.| +| longitude | number | Yes| Yes| Longitude information. A positive value indicates east longitude , and a negative value indicates west longitude .| +| maxItems | number | Yes| Yes| Maximum number of location records to be returned.| -## GeoCodeRequest +## GeoCodeRequest(deprecated) Defines a geocoding request. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.GeoCodeRequest](js-apis-geoLocationManager.md#geocoderequest). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Geocoder -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| locale | string | No| Language used for the location description. **zh** indicates Chinese, and **en** indicates English.| -| description | number | Yes| Location description, for example, No. xx, xx Road, Pudong New District, Shanghai.| -| maxItems | number | No| Maximum number of location records to be returned.| -| minLatitude | number | No| Minimum latitude. This parameter is used with minLongitude, maxLatitude, and maxLongitude to specify the latitude and longitude ranges.| -| minLongitude | number | No| Minimum longitude.| -| maxLatitude | number | No| Maximum latitude.| -| maxLongitude | number | No| Maximum longitude.| +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| locale | string | Yes| Yes| Language used for the location description. **zh** indicates Chinese, and **en** indicates English.| +| description | string | Yes| Yes| Location description, for example, **No. xx, xx Road, Pudong New District, Shanghai**.| +| maxItems | number | Yes| Yes| Maximum number of location records to be returned.| +| minLatitude | number | Yes| Yes| Minimum latitude. This parameter is used with **minLongitude**, **maxLatitude**, and **maxLongitude** to specify the latitude and longitude ranges.| +| minLongitude | number | Yes| Yes| Minimum longitude.| +| maxLatitude | number | Yes| Yes| Maximum latitude.| +| maxLongitude | number | Yes| Yes| Maximum longitude.| -## GeoAddress +## GeoAddress(deprecated) Defines a geographic location. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.GeoAddress](js-apis-geoLocationManager.md#geoaddress). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Geocoder -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| latitude7+ | number | No| Latitude information. A positive value indicates north latitude, and a negative value indicates south latitude.| -| longitude7+ | number | No| Longitude information. A positive value indicates east longitude , and a negative value indicates west longitude .| -| locale7+ | string | No| Language used for the location description. **zh** indicates Chinese, and **en** indicates English.| -| placeName7+ | string | No| Landmark of the location.| -| countryCode7+ | string | No| Country code.| -| countryName7+ | string | No| Country name.| -| administrativeArea7+ | string | No| Administrative region name.| -| subAdministrativeArea7+ | string | No| Sub-administrative region name.| -| locality7+ | string | No| Locality information. | -| subLocality7+ | string | No| Sub-locality information. | -| roadName7+ | string | No| Road name.| -| subRoadName7+ | string | No| Auxiliary road information.| -| premises7+ | string | No| House information.| -| postalCode7+ | string | No| Postal code.| -| phoneNumber7+ | string | No| Phone number.| -| addressUrl7+ | string | No| Website URL.| -| descriptions7+ | Array<string> | No| Additional description.| -| descriptionsSize7+ | number | No| Total number of additional descriptions.| - - -## LocationRequest +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| latitude7+ | number | Yes| No| Latitude information. A positive value indicates north latitude, and a negative value indicates south latitude.| +| longitude7+ | number | Yes| No| Longitude information. A positive value indicates east longitude , and a negative value indicates west longitude .| +| locale7+ | string | Yes| No| Language used for the location description. **zh** indicates Chinese, and **en** indicates English.| +| placeName7+ | string | Yes| No| Landmark of the location.| +| countryCode7+ | string | Yes| No| Country code.| +| countryName7+ | string | Yes| No| Country name.| +| administrativeArea7+ | string | Yes| No| Administrative region name.| +| subAdministrativeArea7+ | string | Yes| No| Sub-administrative region name.| +| locality7+ | string | Yes| No| Locality information.| +| subLocality7+ | string | Yes| No| Sub-locality information.| +| roadName7+ | string | Yes| No| Road name.| +| subRoadName7+ | string | Yes| No| Auxiliary road information.| +| premises7+ | string | Yes| No| House information.| +| postalCode7+ | string | Yes| No| Postal code.| +| phoneNumber7+ | string | Yes| No| Phone number.| +| addressUrl7+ | string | Yes| No| Website URL.| +| descriptions7+ | Array<string> | Yes| No| Additional descriptions.| +| descriptionsSize7+ | number | Yes| No| Total number of additional descriptions.| + + +## LocationRequest(deprecated) Defines a location request. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.LocationRequest](js-apis-geoLocationManager.md#locationrequest). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| priority | [LocationRequestPriority](#locationrequestpriority) | No| Priority of the location request.| -| scenario | [LocationRequestScenario](#locationrequestscenario) | Yes| Scenario of the location request.| -| timeInterval | number | No| Time interval at which location information is reported.| -| distanceInterval | number | No| Distance interval at which location information is reported.| -| maxAccuracy | number | No| Location accuracy.| +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| priority | [LocationRequestPriority](#locationrequestpriority) | Yes| Yes| Priority of the location request.| +| scenario | [LocationRequestScenario](#locationrequestscenario) | Yes| Yes| Scenario of the location request.| +| timeInterval | number | Yes| Yes| Time interval at which location information is reported.| +| distanceInterval | number | Yes| Yes| Distance interval at which location information is reported.| +| maxAccuracy | number | Yes| Yes| Location accuracy. This parameter is valid only when the precise location function is enabled, and is invalid when the approximate location function is enabled.| -## CurrentLocationRequest +## CurrentLocationRequest(deprecated) Defines the current location request. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.CurrentLocationRequest](js-apis-geoLocationManager.md#currentlocationrequest). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| priority | [LocationRequestPriority](#locationrequestpriority) | No| Priority of the location request.| -| scenario | [LocationRequestScenario](#locationrequestscenario) | No| Scenario of the location request.| -| maxAccuracy | number | No| Location accuracy, in meters.| -| timeoutMs | number | No| Timeout duration, in milliseconds. The minimum value is 1000.| +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| priority | [LocationRequestPriority](#locationrequestpriority) | Yes| Yes| Priority of the location request.| +| scenario | [LocationRequestScenario](#locationrequestscenario) | Yes| Yes| Scenario of the location request.| +| maxAccuracy | number | Yes| Yes| Location accuracy, in meters. This parameter is valid only when the precise location function is enabled, and is invalid when the approximate location function is enabled.| +| timeoutMs | number | Yes| Yes| Timeout duration, in milliseconds. The minimum value is **1000**.| -## SatelliteStatusInfo8+ +## SatelliteStatusInfo(deprecated) Defines the satellite status information. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.SatelliteStatusInfo](js-apis-geoLocationManager.md#satellitestatusinfo). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Gnss -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| satellitesNumber | number | Yes| Number of satellites.| -| satelliteIds | Array<number> | Yes| Array of satellite IDs.| -| carrierToNoiseDensitys | Array<number> | Yes| Carrier-to-noise density ratio, that is, **cn0**.| -| altitudes | Array<number> | Yes| Altitude information.| -| azimuths | Array<number> | Yes| Azimuth information.| -| carrierFrequencies | Array<number> | Yes| Carrier frequency.| +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| satellitesNumber | number | Yes| No| Number of satellites.| +| satelliteIds | Array<number> | Yes| No| Array of satellite IDs.| +| carrierToNoiseDensitys | Array<number> | Yes| No| Carrier-to-noise density ratio, that is, **cn0**.| +| altitudes | Array<number> | Yes| No| Altitude information.| +| azimuths | Array<number> | Yes| No| Azimuth information.| +| carrierFrequencies | Array<number> | Yes| No| Carrier frequency.| -## CachedGnssLocationsRequest8+ +## CachedGnssLocationsRequest(deprecated) Represents a request for reporting cached GNSS locations. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.CachedGnssLocationsRequest](js-apis-geoLocationManager.md#cachedgnsslocationsrequest). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Gnss -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| reportingPeriodSec | number | Yes| Interval for reporting the cached GNSS locations, in milliseconds.| -| wakeUpCacheQueueFull | boolean | Yes| **true**: reports the cached GNSS locations to the application when the cache queue is full.
**false**: discards the cached GNSS locations when the cache queue is full.| +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| reportingPeriodSec | number | Yes| Yes| Interval for reporting the cached GNSS locations, in milliseconds.| +| wakeUpCacheQueueFull | boolean | Yes| Yes | **true**: reports the cached GNSS locations to the application when the cache queue is full.
**false**: discards the cached GNSS locations when the cache queue is full.| -## Geofence8+ +## Geofence(deprecated) Defines a GNSS geofence. Currently, only circular geofences are supported. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.Geofence](js-apis-geoLocationManager.md#geofence). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Geofence -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| latitude | number | Yes| Latitude information.| -| longitude | number | Yes| Longitude information.| -| radius | number | Yes| Radius of a circular geofence.| -| expiration | number | Yes| Expiration period of a geofence, in milliseconds.| +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| latitude | number | Yes| Yes | Latitude information.| +| longitude | number | Yes| Yes | Longitude information.| +| radius | number | Yes| Yes | Radius of a circular geofence.| +| expiration | number | Yes| Yes | Expiration period of a geofence, in milliseconds.| -## GeofenceRequest8+ +## GeofenceRequest(deprecated) Represents a GNSS geofencing request. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.GeofenceRequest](js-apis-geoLocationManager.md#geofencerequest). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Geofence -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| priority | LocationRequestPriority | Yes| Priority of the location information.| -| scenario | LocationRequestScenario | Yes| Location scenario.| -| geofence | Geofence | Yes| Geofence information.| +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| priority | [LocationRequestPriority](#locationrequestpriority) | Yes| Yes | Priority of the location information.| +| scenario | [LocationRequestScenario](#locationrequestscenario) | Yes| Yes | Location scenario.| +| geofence | [Geofence](#geofence)| Yes| Yes | Geofence information.| -## LocationPrivacyType8+ +## LocationPrivacyType(deprecated) Defines the privacy statement type. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.LocationPrivacyType](js-apis-geoLocationManager.md#locationprivacytype). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core -| Name| Default Value| Description| +| Name| Value| Description| | -------- | -------- | -------- | | OTHERS | 0 | Other scenarios.| | STARTUP | 1 | Privacy statement displayed in the startup wizard.| | CORE_LOCATION | 2 | Privacy statement displayed when enabling the location service.| -## LocationCommand8+ +## LocationCommand(deprecated) Defines an extended command. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is supported since API version 8. +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.LocationCommand](js-apis-geoLocationManager.md#locationcommand). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| scenario | LocationRequestScenario | Yes| Location scenario.| -| command | string | Yes| Extended command, in the string format.| +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| scenario | [LocationRequestScenario](#locationrequestscenario) | Yes| Yes | Location scenario.| +| command | string | Yes| Yes | Extended command, in the string format.| -## Location +## Location(deprecated) Defines a location. -**Permission required**: ohos.permission.LOCATION +> **NOTE** +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.Location](js-apis-geoLocationManager.md#location). + +**Required permissions**: ohos.permission.LOCATION **System capability**: SystemCapability.Location.Location.Core -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| latitude7+ | number | Yes| Latitude information. A positive value indicates north latitude, and a negative value indicates south latitude.| -| longitude7+ | number | Yes| Longitude information. A positive value indicates east longitude , and a negative value indicates west longitude .| -| altitude7+ | number | Yes| Location altitude, in meters.| -| accuracy7+ | number | Yes| Location accuracy, in meters.| -| speed7+ | number | Yes| Speed, in m/s.| -| timeStamp7+ | number | Yes| Location timestamp in the UTC format.| -| direction7+ | number | Yes| Direction information.| -| timeSinceBoot7+ | number | Yes| Location timestamp since boot.| -| additions7+ | Array<string> | No| Additional information.| -| additionSize7+ | number | No| Number of additional descriptions.| +| Name| Type| Readable|Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| latitude7+ | number | Yes| No| Latitude information. A positive value indicates north latitude, and a negative value indicates south latitude.| +| longitude7+ | number | Yes| No| Longitude information. A positive value indicates east longitude , and a negative value indicates west longitude .| +| altitude7+ | number | Yes| No| Location altitude, in meters.| +| accuracy7+ | number | Yes| No| Location accuracy, in meters.| +| speed7+ | number | Yes| No| Speed, in m/s.| +| timeStamp7+ | number | Yes| No| Location timestamp in the UTC format.| +| direction7+ | number | Yes| No| Direction information.| +| timeSinceBoot7+ | number | Yes| No| Location timestamp since boot.| +| additions7+ | Array<string> | Yes| No| Additional description.| +| additionSize7+ | number | Yes| No| Number of additional descriptions.| diff --git a/en/application-dev/reference/apis/js-apis-hashmap.md b/en/application-dev/reference/apis/js-apis-hashmap.md index f3deddcc499cfa9cb3b32c5b3951664dfa3d44cb..d8da0f628f90a5090e9b2ccf0576b6ffb03ff69d 100644 --- a/en/application-dev/reference/apis/js-apis-hashmap.md +++ b/en/application-dev/reference/apis/js-apis-hashmap.md @@ -1,4 +1,4 @@ -# Nonlinear Container HashMap +# @ohos.util.HashMap (Nonlinear Container HashMap) > **NOTE** > @@ -53,11 +53,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let hashMap = new HashMap(); -try { - let hashMap2 = HashMap(); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -88,11 +83,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts const hashMap = new HashMap(); let result = hashMap.isEmpty(); -try { - hashMap.isEmpty.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -131,11 +121,6 @@ let hashMap = new HashMap(); let result = hashMap.hasKey("squirrel"); hashMap.set("squirrel", 123); let result1 = hashMap.hasKey("squirrel"); -try { - hashMap.hasKey.bind({}, "squirrel")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -174,11 +159,6 @@ let hashMap = new HashMap(); let result = hashMap.hasValue(123); hashMap.set("squirrel", 123); let result1 = hashMap.hasValue(123); -try { - hashMap.hasValue.bind({}, 123)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -217,11 +197,6 @@ let hashMap = new HashMap(); hashMap.set("squirrel", 123); hashMap.set("sparrow", 356); let result = hashMap.get("sparrow"); -try { - hashMap.get.bind({}, "sparrow")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -255,11 +230,6 @@ hashMap.set("squirrel", 123); hashMap.set("sparrow", 356); let newHashMap = new HashMap(); hashMap.setAll(newHashMap); -try { - hashMap.setAll.bind({}, newHashMap)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -297,11 +267,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let hashMap = new HashMap(); let result = hashMap.set("squirrel", 123); -try { - hashMap.set.bind({}, "squirrel", 123)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -340,11 +305,6 @@ let hashMap = new HashMap(); hashMap.set("squirrel", 123); hashMap.set("sparrow", 356); let result = hashMap.remove("sparrow"); -try { - hashMap.remove.bind({}, "sparrow")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -371,11 +331,6 @@ let hashMap = new HashMap(); hashMap.set("squirrel", 123); hashMap.set("sparrow", 356); hashMap.clear(); -try { - hashMap.clear.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -413,11 +368,6 @@ while(temp != undefined) { console.log("value:" + temp); temp = iter.next().value; } -try { - hashMap.keys.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -455,11 +405,6 @@ while(temp != undefined) { console.log("value:" + temp); temp = iter.next().value; } -try { - hashMap.values.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -498,17 +443,12 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er let hashMap = new HashMap(); hashMap.set("sparrow", 123); let result = hashMap.replace("sparrow", 357); -try { - hashMap.replace.bind({}, "sparrow", 357)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### forEach -forEach(callbackfn: (value?: V, key?: K, map?: HashMap) => void, thisArg?: Object): void +forEach(callbackFn: (value?: V, key?: K, map?: HashMap) => void, thisArg?: Object): void Uses a callback to traverse the elements in this container and obtain their position indexes. @@ -518,7 +458,7 @@ Uses a callback to traverse the elements in this container and obtain their posi | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked to traverse the elements in the container.| +| callbackFn | function | Yes| Callback invoked to traverse the elements in the container.| | thisArg | Object | No| Value to use when the callback is invoked.| callbackfn @@ -545,13 +485,6 @@ hashMap.set("gull", 357); hashMap.forEach((value, key) => { console.log("value:" + value, key); }); -try { - hashMap.forEach.bind({}, (value, key) => { - console.log("value:" + value, key); - })(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -590,11 +523,6 @@ while(temp != undefined) { console.log("value:" + temp[1]); temp = iter.next().value; } -try { - hashMap.entries.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -621,6 +549,7 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | 10200011 | The Symbol.iterator method cannot be bound. | **Example** + ```ts let hashMap = new HashMap(); hashMap.set("squirrel", 123); @@ -640,9 +569,4 @@ while(temp != undefined) { console.log("value:" + temp[1]); temp = iter.next().value; } -try { - hashMap[Symbol.iterator].bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` diff --git a/en/application-dev/reference/apis/js-apis-hashset.md b/en/application-dev/reference/apis/js-apis-hashset.md index 09cd4c914ad0c512f65f7ad05c1552ef6b29f90a..2c52b1268a1ee4d61f3c89c26949823baa28e566 100644 --- a/en/application-dev/reference/apis/js-apis-hashset.md +++ b/en/application-dev/reference/apis/js-apis-hashset.md @@ -1,4 +1,4 @@ -# Nonlinear Container HashSet +# @ohos.util.HashSet (Nonlinear Container HashSet) > **NOTE** > @@ -61,11 +61,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let hashSet = new HashSet(); -try { - let hashSet2 = HashSet(); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -96,11 +91,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts const hashSet = new HashSet(); let result = hashSet.isEmpty(); -try { - hashSet.isEmpty.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -139,11 +129,6 @@ let hashSet = new HashSet(); let result = hashSet.has("squirrel"); hashSet.add("squirrel"); let result1 = hashSet.has("squirrel"); -try { - hashSet.has.bind({}, "squirrel")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -180,11 +165,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let hashSet = new HashSet(); let result = hashSet.add("squirrel"); -try { - hashSet.add.bind({}, "squirrel")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -223,11 +203,6 @@ let hashSet = new HashSet(); hashSet.add("squirrel"); hashSet.add("sparrow"); let result = hashSet.remove("sparrow"); -try { - hashSet.remove.bind({}, "sparrow")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -254,11 +229,6 @@ let hashSet = new HashSet(); hashSet.add("squirrel"); hashSet.add("sparrow"); hashSet.clear(); -try { - hashSet.remove.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -296,17 +266,12 @@ while(temp != undefined) { console.log("value:" + temp); temp = iter.next().value; } -try { - hashSet.values.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### forEach -forEach(callbackfn: (value?: T, key?: T, set?: HashSet<T>) => void, thisArg?: Object): void +forEach(callbackFn: (value?: T, key?: T, set?: HashSet<T>) => void, thisArg?: Object): void Uses a callback to traverse the elements in this container and obtain their position indexes. @@ -316,7 +281,7 @@ Uses a callback to traverse the elements in this container and obtain their posi | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked to traverse the elements in the container.| +| callbackFn | function | Yes| Callback invoked to traverse the elements in the container.| | thisArg | Object | No| Value to use when the callback is invoked.| callbackfn @@ -324,7 +289,7 @@ callbackfn | -------- | -------- | -------- | -------- | | value | T | No| Value of the element that is currently traversed.| | key | T | No| Key of the element that is currently traversed (same as **value**).| -| set | HashSet<T> | No| Instance that invokes the **forEach** method.| +| set | HashSet<T> | No| Instance that invokes the **forEach** API.| **Error codes** @@ -343,13 +308,6 @@ hashSet.add("squirrel"); hashSet.forEach((value, key) => { console.log("value:" + value, key); }); -try { - hashSet.forEach.bind({}, (value, key) => { - console.log("value:" + value, key); - })(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -387,11 +345,6 @@ while(temp != undefined) { console.log("value:" + temp[1]); temp = iter.next().value; } -try { - hashSet.entries.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -436,9 +389,4 @@ while(temp != undefined) { console.log("value: " + temp); temp = iter.next().value; } -try { - hashSet[Symbol.iterator].bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` diff --git a/en/application-dev/reference/apis/js-apis-image.md b/en/application-dev/reference/apis/js-apis-image.md index 1bf548153ad9837dc60e7a655852a33987b22871..16b144f78ec85198dfc570336fcf021a9bc86028 100644 --- a/en/application-dev/reference/apis/js-apis-image.md +++ b/en/application-dev/reference/apis/js-apis-image.md @@ -1,4 +1,4 @@ -# Image Processing +# @ohos.multimedia.image (Image Processing) The **Image** module provides APIs for image processing. You can use the APIs to create a **PixelMap** object with specified properties or read image pixel data (even in an area). @@ -22,7 +22,7 @@ Creates a **PixelMap** object with the default BGRA_8888 format and pixel proper **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | ------- | ------------------------------------------------ | ---- | ---------------------------------------------------------------- | | colors | ArrayBuffer | Yes | Color array in BGRA_8888 format. | | options | [InitializationOptions](#initializationoptions8) | Yes | Pixel properties, including the alpha type, size, scale mode, pixel format, and editable.| @@ -57,7 +57,7 @@ Creates a **PixelMap** object with the default BGRA_8888 format and pixel proper **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | -------- | ------------------------------------------------ | ---- | -------------------------- | | colors | ArrayBuffer | Yes | Color array in BGRA_8888 format. | | options | [InitializationOptions](#initializationoptions8) | Yes | Pixel properties. | @@ -907,7 +907,7 @@ Releases this **PixelMap** object. This API uses an asynchronous callback to ret **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ------------------ | | callback | AsyncCallback\ | Yes | Callback used to return the result.| @@ -1077,9 +1077,9 @@ const data = new ArrayBuffer(112); const imageSourceApi = image.createImageSource(data); ``` -## image.createIncrementalSource9+ +## image.CreateIncrementalSource9+ -createIncrementalSource(buf: ArrayBuffer): ImageSource +CreateIncrementalSource(buf: ArrayBuffer): ImageSource Creates an **ImageSource** instance in incremental mode based on the buffers. @@ -1101,12 +1101,12 @@ Creates an **ImageSource** instance in incremental mode based on the buffers. ```js const buf = new ArrayBuffer(96); // 96 is the size of the pixel map buffer to create. The value is calculated as follows: height x width x 4. -const imageSourceIncrementalSApi = image.createIncrementalSource(buf); +const imageSourceIncrementalSApi = image.CreateIncrementalSource(buf); ``` -## image.createIncrementalSource9+ +## image.CreateIncrementalSource9+ -createIncrementalSource(buf: ArrayBuffer, options?: SourceOptions): ImageSource +CreateIncrementalSource(buf: ArrayBuffer, options?: SourceOptions): ImageSource Creates an **ImageSource** instance in incremental mode based on the buffers. @@ -1129,7 +1129,7 @@ Creates an **ImageSource** instance in incremental mode based on the buffers. ```js const buf = new ArrayBuffer(96); // 96 is the size of the pixel map buffer to create. The value is calculated as follows: height x width x 4. -const imageSourceIncrementalSApi = image.createIncrementalSource(buf); +const imageSourceIncrementalSApi = image.CreateIncrementalSource(buf); ``` ## ImageSource @@ -1181,7 +1181,7 @@ Obtains information about this image. This API uses an asynchronous callback to **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | -------- | -------------------------------------- | ---- | ---------------------------------------- | | callback | AsyncCallback<[ImageInfo](#imageinfo)> | Yes | Callback used to return the image information.| @@ -1203,7 +1203,7 @@ Obtains information about an image with the specified index. This API uses a pro **Parameters** -| Name | Type | Mandatory| Description | +| Name| Type | Mandatory| Description | | ----- | ------ | ---- | ------------------------------------- | | index | number | No | Index of the image. If this parameter is not set, the default value **0** is used.| @@ -1234,7 +1234,7 @@ Obtains the value of a property with the specified index in this image. This API **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | ------- | ---------------------------------------------------- | ---- | ------------------------------------ | | key | string | Yes | Name of the property. | | options | [GetImagePropertyOptions](#getimagepropertyoptions7) | No | Image properties, including the image index and default property value.| @@ -1372,12 +1372,12 @@ Updates incremental data. This API uses a promise to return the result. **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | ---------- | ----------- | ---- | ------------ | | buf | ArrayBuffer | Yes | Incremental data. | | isFinished | boolean | Yes | Whether the update is complete.| -| value | number | No | Offset for data reading. | -| length | number | No | Array length. | +| value | number | Yes | Offset for data reading. | +| length | number | Yes | Array length. | **Return value** @@ -1405,12 +1405,12 @@ Updates incremental data. This API uses an asynchronous callback to return the r **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | ---------- | ------------------- | ---- | -------------------- | | buf | ArrayBuffer | Yes | Incremental data. | | isFinished | boolean | Yes | Whether the update is complete. | -| value | number | No | Offset for data reading. | -| length | number | No | Array length. | +| value | number | Yes | Offset for data reading. | +| length | number | Yes | Array length. | | callback | AsyncCallback\ | Yes | Callback used to return the result.| **Example** @@ -1434,7 +1434,7 @@ Creates a **PixelMap** object based on image decoding parameters. This API uses **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | ------- | ------------------------------------ | ---- | ---------- | | options | [DecodingOptions](#decodingoptions7) | No | Image decoding parameters.| @@ -1486,7 +1486,7 @@ Creates a **PixelMap** object based on image decoding parameters. This API uses **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | -------- | ------------------------------------- | ---- | -------------------------- | | options | [DecodingOptions](#decodingoptions7) | Yes | Image decoding parameters. | | callback | AsyncCallback<[PixelMap](#pixelmap7)> | Yes | Callback used to return the **PixelMap** object.| @@ -1518,7 +1518,7 @@ Releases this **ImageSource** instance. This API uses an asynchronous callback t **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ---------------------------------- | | callback | AsyncCallback\ | Yes | Callback invoked for instance release. If the operation fails, an error message is returned.| @@ -1768,11 +1768,11 @@ Creates an **ImageReceiver** instance by specifying the image width, height, for **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | -------- | ------ | ---- | ---------------------- | | width | number | Yes | Default image width. | | height | number | Yes | Default image height. | -| format | number | Yes | Image format, which is a constant of [ImageFormat](#imageformat9). (Currently, the value of this parameter is agreed between the user and camera. In the future, there may be other application scenarios. The receiver is used only for transfer. Currently, only **ImageFormat:JPEG** is supported.) | +| format | number | Yes | Image format, which is a constant of [ImageFormat](#imageformat9). (Only ImageFormat:JPEG and 4 are supported.) | | capacity | number | Yes | Maximum number of images that can be accessed at the same time.| **Return value** @@ -1813,7 +1813,7 @@ Obtains a surface ID for the camera or other components. This API uses an asynch **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | -------- | ---------------------- | ---- | -------------------------- | | callback | AsyncCallback\ | Yes | Callback used to return the surface ID.| @@ -1913,7 +1913,7 @@ Reads the next image from the **ImageReceiver** instance. This API uses an async **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | -------- | ------------------------------- | ---- | -------------------------- | | callback | AsyncCallback<[Image](#image9)> | Yes | Callback used to return the next image.| @@ -1963,7 +1963,7 @@ Listens for image arrival events. **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ------------------------------------------------------ | | type | string | Yes | Type of event to listen for. The value is fixed at **imageArrival**, which is triggered when an image is received.| | callback | AsyncCallback\ | Yes | Callback invoked for the event. | @@ -1984,7 +1984,7 @@ Releases this **ImageReceiver** instance. This API uses an asynchronous callback **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | ------------------------ | | callback | AsyncCallback\ | Yes | Callback used to return the result.| @@ -2028,7 +2028,7 @@ Creates an **ImageCreator** instance by specifying the image width, height, form **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | -------- | ------ | ---- | ---------------------- | | width | number | Yes | Default image width. | | height | number | Yes | Default image height. | @@ -2071,7 +2071,7 @@ Obtains an image buffer from the idle queue and writes image data into it. This **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | ------------- | ---------------------------------------| ---- | -------------------- | | callback | AsyncCallback\ | Yes | Callback used to return the drawn image.| @@ -2080,9 +2080,9 @@ Obtains an image buffer from the idle queue and writes image data into it. This ```js creator.dequeueImage((err, img) => { if (err) { - console.info('dequeueImage succeeded.'); + console.info('dequeueImage failed.'); } - console.info('dequeueImage failed.'); + console.info('dequeueImage succeeded.'); }); ``` @@ -2120,7 +2120,7 @@ Places the drawn image in the dirty queue. This API uses an asynchronous callbac **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | ------------- | -------------------------| ---- | -------------------- | | interface | Image | Yes | Drawn image.| | callback | AsyncCallback\ | Yes | Callback used to return the result. If the operation fails, an error message is returned.| @@ -2128,12 +2128,25 @@ Places the drawn image in the dirty queue. This API uses an asynchronous callbac **Example** ```js -creator.queueImage(img, (err) => { - if (err) { - console.info('dequeueImage failed: ' + err); - } - console.info('dequeueImage succeeded'); +creator.dequeueImage().then(img => { + // Draw the image. + img.getComponent(4).then(component => { + var bufferArr = new Uint8Array(component.byteBuffer); + for (var i = 0; i < bufferArr.length; i += 4) { + bufferArr[i] = 0; //B + bufferArr[i + 1] = 0; //G + bufferArr[i + 2] = 255; //R + bufferArr[i + 3] = 255; //A + } + }) + creator.queueImage(img, (err) => { + if (err) { + console.info('queueImage failed: ' + err); + } + console.info('queueImage succeeded'); + }) }) + ``` ### queueImage9+ @@ -2159,11 +2172,24 @@ Places the drawn image in the dirty queue. This API uses a promise to return the **Example** ```js -creator.queueImage(img).then(() => { - console.info('dequeueImage succeeded.'); -}).catch(error => { - console.info('dequeueImage failed: ' + error); +creator.dequeueImage().then(img => { + // Draw the image. + img.getComponent(4).then(component => { + var bufferArr = new Uint8Array(component.byteBuffer); + for (var i = 0; i < bufferArr.length; i += 4) { + bufferArr[i] = 0; //B + bufferArr[i + 1] = 0; //G + bufferArr[i + 2] = 255; //R + bufferArr[i + 3] = 255; //A + } + }) + creator.queueImage(img).then(() => { + console.info('queueImage succeeded.'); + }).catch(error => { + console.info('queueImage failed: ' + error); + }) }) + ``` ### on9+ @@ -2176,7 +2202,7 @@ Listens for image release events. This API uses an asynchronous callback to retu **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | ------------- | -------------------------| ---- | -------------------- | | type | string | Yes | Type of event, which is **'imageRelease'**.| | callback | AsyncCallback\ | Yes | Callback used to return the result. If the operation fails, an error message is returned.| @@ -2264,7 +2290,7 @@ Obtains the component buffer from the **Image** instance based on the color comp **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | ------------- | --------------------------------------- | ---- | -------------------- | | componentType | [ComponentType](#componenttype9) | Yes | Color component type of the image. | | callback | AsyncCallback<[Component](#component9)> | Yes | Callback used to return the component buffer.| @@ -2291,7 +2317,7 @@ Obtains the component buffer from the **Image** instance based on the color comp **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | ------------- | -------------------------------- | ---- | ---------------- | | componentType | [ComponentType](#componenttype9) | Yes | Color component type of the image.| @@ -2319,7 +2345,7 @@ The corresponding resources must be released before another image arrives. **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | -------- | -------------------- | ---- | -------------- | | callback | AsyncCallback\ | Yes | Callback used to return the result.| @@ -2398,7 +2424,7 @@ Enumerates the pixel formats of images. **System capability**: SystemCapability.Multimedia.Image.Core -| Name | Default Value| Description | +| Name | Value | Description | | ---------------------- | ------ | ----------------- | | UNKNOWN | 0 | Unknown format. | | RGB_565 | 2 | RGB_565. | @@ -2416,7 +2442,7 @@ Enumerates the alpha types of images. **System capability**: SystemCapability.Multimedia.Image.Core -| Name | Default Value| Description | +| Name | Value | Description | | -------- | ------ | ----------------------- | | UNKNOWN | 0 | Unknown alpha type. | | OPAQUE | 1 | There is no alpha or the image is opaque.| @@ -2429,7 +2455,7 @@ Enumerates the scale modes of images. **System capability**: SystemCapability.Multimedia.Image.Core -| Name | Default Value| Description | +| Name | Value | Description | | --------------- | ------ | -------------------------------------------------- | | CENTER_CROP | 1 | Scales the image so that it fills the requested bounds of the target and crops the extra.| | FIT_TARGET_SIZE | 0 | Reduces the image size to the dimensions of the target. | @@ -2519,7 +2545,7 @@ Describes the exchangeable image file format (EXIF) information of an image. **System capability**: SystemCapability.Multimedia.Image.Core -| Name | Default Value | Description | +| Name | Value | Description | | ----------------- | ----------------------- | ------------------------ | | BITS_PER_SAMPLE | "BitsPerSample" | Number of bits per pixel. | | ORIENTATION | "Orientation" | Image orientation. | @@ -2542,7 +2568,7 @@ Enumerates the image formats. **System capability**: SystemCapability.Multimedia.Image.Core -| Name | Default Value| Description | +| Name | Value | Description | | ------------ | ------ | -------------------- | | YCBCR_422_SP | 1000 | YCBCR422 semi-planar format.| | JPEG | 2000 | JPEG encoding format. | @@ -2553,7 +2579,7 @@ Enumerates the color component types of images. **System capability**: SystemCapability.Multimedia.Image.ImageReceiver -| Name | Default Value| Description | +| Name | Value | Description | | ----- | ------ | ----------- | | YUV_Y | 1 | Luminance component. | | YUV_U | 2 | Chrominance component. | diff --git a/en/application-dev/reference/apis/js-apis-inner-application-accessibilityExtensionContext.md b/en/application-dev/reference/apis/js-apis-inner-application-accessibilityExtensionContext.md new file mode 100644 index 0000000000000000000000000000000000000000..ada115441c19e1a39cad20d3989ad581943a0d7d --- /dev/null +++ b/en/application-dev/reference/apis/js-apis-inner-application-accessibilityExtensionContext.md @@ -0,0 +1,1159 @@ +# AccessibilityExtensionContext + +The **AccessibilityExtensionContext** module, inherited from **ExtensionContext**, provides context for **Accessibility Extension** abilities. + +You can use the APIs of this module to configure the concerned information, obtain root information, and inject gestures. + +> **NOTE** +> +> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> +> The APIs of this module can be used only in the stage model. + +## Usage + +Before using the **AccessibilityExtensionContext** module, you must define a child class that inherits from **AccessibilityExtensionAbility**. + +```ts +import AccessibilityExtensionAbility from '@ohos.application.AccessibilityExtensionAbility' +let axContext; +class MainAbility extends AccessibilityExtensionAbility { + onConnect(): void { + console.log('AxExtensionAbility onConnect'); + axContext = this.context; + } +} +``` + +## FocusDirection + +Enumerates the focus directions. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +| Name | Description | +| -------- | ------- | +| up | Search for the next focusable item above the current item in focus.| +| down | Search for the next focusable item below the current item in focus.| +| left | Search for the next focusable item on the left of the current item in focus.| +| right | Search for the next focusable item on the right of the current item in focus.| +| forward | Search for the next focusable item before the current item in focus.| +| backward | Search for the next focusable item after the current item in focus.| + +## FocusType + +Enumerates the focus types. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +| Name | Description | +| ------------- | ----------- | +| accessibility | Accessibility focus.| +| normal | Normal focus. | + +## Rect + +Defines a rectangle. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +| Name | Type | Readable | Writable | Description | +| ------ | ------ | ---- | ---- | --------- | +| left | number | Yes | No | Left boundary of the rectangle.| +| top | number | Yes | No | Top boundary of the rectangle.| +| width | number | Yes | No | Width of the rectangle. | +| height | number | Yes | No | Height of the rectangle. | + +## WindowType + +Enumerates the window types. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +| Name | Description | +| ----------- | --------- | +| application | Application window.| +| system | System window.| + +## AccessibilityExtensionContext.setTargetBundleName + +setTargetBundleName(targetNames: Array\): Promise\; + +Sets the concerned target bundle. This API uses a promise to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ------------------- | ---- | -------- | +| targetNames | Array<string> | Yes | Name of the target bundle.| + +**Return value** + +| Type | Description | +| ---------------------- | --------------------- | +| Promise<void> | Promise that returns no value.| + +**Example** + +```ts +let targetNames = ['com.ohos.xyz']; +try { + axContext.setTargetBundleName(targetNames).then(() => { + console.info('set target bundle names success'); + }).catch((err) => { + console.error('failed to set target bundle names, because ' + JSON.stringify(err)); + }); +} catch (exception) { + console.error('failed to set target bundle names, because ' + JSON.stringify(exception)); +}; +``` + +## AccessibilityExtensionContext.setTargetBundleName + +setTargetBundleName(targetNames: Array\, callback: AsyncCallback\): void; + +Sets the concerned target bundle. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ------------------- | ---- | -------- | +| targetNames | Array<string> | Yes | Name of the target bundle.| +| callback | AsyncCallback<void> | Yes | Callback used to return the result. If the operation fails, **error** that contains data is returned.| + +**Example** + +```ts +let targetNames = ['com.ohos.xyz']; +try { + axContext.setTargetBundleName(targetNames, (err, data) => { + if (err) { + console.error('failed to set target bundle names, because ' + JSON.stringify(err)); + return; + } + console.info('set target bundle names success'); + }); +} catch (exception) { + console.error('failed to set target bundle names, because ' + JSON.stringify(exception)); +}; +``` + +## AccessibilityExtensionContext.getFocusElement + +getFocusElement(isAccessibilityFocus?: boolean): Promise\; + +Obtains the focus element. This API uses a promise to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------------------- | ------- | ---- | ------------------- | +| isAccessibilityFocus | boolean | No | Whether the obtained focus element is an accessibility focus. The default value is **false**.| + +**Return value** + +| Type | Description | +| ----------------------------------- | ---------------------- | +| Promise<AccessibilityElement> | Promise used to return the current focus element.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300003 | Do not have accessibility right for this operation. | + +**Example** + +```ts +let focusElement; +try { + axContext.getFocusElement().then((data) => { + focusElement = data; + console.log('get focus element success'); + }).catch((err) => { + console.error('failed to get focus element, because ' + JSON.stringify(err)); + }); +} catch (exception) { + console.error('failed to get focus element, because ' + JSON.stringify(exception)); +} +``` + +## AccessibilityExtensionContext.getFocusElement + +getFocusElement(callback: AsyncCallback\): void; + +Obtains the focus element. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| callback | AsyncCallback<AccessibilityElement> | Yes | Callback used to return the current focus element.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300003 | Do not have accessibility right for this operation. | + +**Example** + +```ts +let focusElement; +try { + axContext.getFocusElement((err, data) => { + if (err) { + console.error('failed to get focus element, because ' + JSON.stringify(err)); + return; + } + focusElement = data; + console.info('get focus element success'); + }); +} catch (exception) { + console.error('failed to get focus element, because ' + JSON.stringify(exception)); +} +``` + +## AccessibilityExtensionContext.getFocusElement + +getFocusElement(isAccessibilityFocus: boolean, callback: AsyncCallback\): void; + +Obtains the focus element. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------------------- | ------- | ---- | ------------------- | +| isAccessibilityFocus | boolean | Yes | Whether the obtained focus element is an accessibility focus.| +| callback | AsyncCallback<AccessibilityElement> | Yes | Callback used to return the current focus element.| + +**Example** + +```ts +let focusElement; +let isAccessibilityFocus = true; +try { + axContext.getFocusElement(isAccessibilityFocus, (err, data) => { + if (err) { + console.error('failed to get focus element, because ' + JSON.stringify(err)); + return; + } + focusElement = data; + console.info('get focus element success'); +}); +} catch (exception) { + console.error('failed to get focus element, because ' + JSON.stringify(exception)); +} +``` +## AccessibilityExtensionContext.getWindowRootElement + +getWindowRootElement(windowId?: number): Promise\; + +Obtains the root element of a window. This API uses a promise to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------------------- | ------- | ---- | ------------------- | +| windowId | number | No | Window for which you want to obtain the root element. If this parameter is not specified, it indicates the current active window.| + +**Return value** + +| Type | Description | +| ----------------------------------- | ---------------------- | +| Promise<AccessibilityElement> | Promise used to return the root element.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300003 | Do not have accessibility right for this operation. | + +**Example** + +```ts +let rootElement; +try { + axContext.getWindowRootElement().then((data) => { + rootElement = data; + console.log('get root element of the window success'); + }).catch((err) => { + console.error('failed to get root element of the window, because ' + JSON.stringify(err)); + }); +} catch (exception) { + console.error('failed to get root element of the window, ' + JSON.stringify(exception)); +} +``` + +## AccessibilityExtensionContext.getWindowRootElement + +getWindowRootElement(callback: AsyncCallback\): void; + +Obtains the root element of a window. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| callback | AsyncCallback<AccessibilityElement> | Yes | Callback used to return the root element.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300003 | Do not have accessibility right for this operation. | + +**Example** + +```ts +let rootElement; +try { + axContext.getWindowRootElement((err, data) => { + if (err) { + console.error('failed to get root element of the window, because ' + JSON.stringify(err)); + return; + } + rootElement = data; + console.info('get root element of the window success'); +}); +} catch (exception) { + console.error('failed to get root element of the window, because ' + JSON.stringify(exception)); +} +``` + +## AccessibilityExtensionContext.getWindowRootElement + +getWindowRootElement(windowId: number, callback: AsyncCallback\): void; + +Obtains the root element of a window. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------------------- | ------- | ---- | ------------------- | +| windowId | number | Yes | Window for which you want to obtain the root element. If this parameter is not specified, it indicates the current active window.| +| callback | AsyncCallback<AccessibilityElement> | Yes | Callback used to return the root element.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300003 | Do not have accessibility right for this operation. | + +**Example** + +```ts +let rootElement; +let windowId = 10; +try { + axContext.getWindowRootElement(windowId, (err, data) => { + if (err) { + console.error('failed to get root element of the window, because ' + JSON.stringify(err)); + return; + } + rootElement = data; + console.info('get root element of the window success'); +}); +} catch (exception) { + console.error('failed to get root element of the window, because ' + JSON.stringify(exception)); +} +``` + +## AccessibilityExtensionContext.getWindows + +getWindows(displayId?: number): Promise\>; + +Obtains the list of windows on a display. This API uses a promise to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------------------- | ------- | ---- | ------------------- | +| displayId | number | No | ID of the display from which the window information is obtained. If this parameter is not specified, it indicates the default main display.| + +**Return value** + +| Type | Description | +| ----------------------------------- | ---------------------- | +| Promise<Array<AccessibilityElement>> | Promise used to return the window list.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300003 | Do not have accessibility right for this operation. | + +**Example** + +```ts +let windows; +try { + axContext.getWindows().then((data) => { + windows = data; + console.log('get windows success'); + }).catch((err) => { + console.error('failed to get windows, because ' + JSON.stringify(err)); + }); +} catch (exception) { + console.error('failed to get windows, because ' + JSON.stringify(exception)); +} +``` + +## AccessibilityExtensionContext.getWindows + +getWindows(callback: AsyncCallback\>): void; + +Obtains the list of windows on a display. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| callback | AsyncCallback<Array<AccessibilityElement>> | Yes | Callback used to return the window list.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300003 | Do not have accessibility right for this operation. | + +**Example** + +```ts +let windows; +try { + axContext.getWindows((err, data) => { + if (err) { + console.error('failed to get windows, because ' + JSON.stringify(err)); + return; + } + windows = data; + console.info('get windows success'); + }); +} catch (exception) { + console.error('failed to get windows, because ' + JSON.stringify(exception)); +} +``` + +## AccessibilityExtensionContext.getWindows + +getWindows(displayId: number, callback: AsyncCallback\>): void; + +Obtains the list of windows on a display. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------------------- | ------- | ---- | ------------------- | +| displayId | number | Yes | ID of the display from which the window information is obtained. If this parameter is not specified, it indicates the default main display.| +| callback | AsyncCallback<Array<AccessibilityElement>> | Yes | Callback used to return the window list.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300003 | Do not have accessibility right for this operation. | + +**Example** + +```ts +let windows; +let displayId = 10; +try { + axContext.getWindows(displayId, (err, data) => { + if (err) { + console.error('failed to get windows, because ' + JSON.stringify(err)); + return; + } + windows = data; + console.info('get windows success'); + }); +} catch (exception) { + console.error('failed to get windows, because ' + JSON.stringify(exception)); +} +``` + +## AccessibilityExtensionContext.injectGesture + +injectGesture(gesturePath: GesturePath): Promise\; + +Inject a gesture. This API uses a promise to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ---------------------------------------- | ---- | -------------- | +| gesturePath | [GesturePath](js-apis-accessibility-GesturePath.md#gesturepath) | Yes | Path of the gesture to inject. | + +**Return value** + +| Type | Description | +| ----------------------------------- | ---------------------- | +| Promise<void> | Promise that returns no value.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300003 | Do not have accessibility right for this operation. | + +**Example** + +```ts +import GesturePath from "@ohos.accessibility.GesturePath"; +import GesturePoint from '@ohos.accessibility.GesturePoint'; +let gesturePath = new GesturePath.GesturePath(100); +try { + for (let i = 0; i < 10; i++) { + let gesturePoint = new GesturePoint.GesturePoint(100, i * 200); + gesturePath.points.push(gesturePoint); + } + axContext.injectGesture(gesturePath).then(() => { + console.info('inject gesture success'); + }).catch((err) => { + console.error('failed to inject gesture, because ' + JSON.stringify(err)); + }); +} catch (exception) { + console.error('failed to inject gesture, because ' + JSON.stringify(exception)); +} +``` +## AccessibilityExtensionContext.injectGesture + +injectGesture(gesturePath: GesturePath, callback: AsyncCallback\): void + +Inject a gesture. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ---------------------------------------- | ---- | -------------- | +| gesturePath | [GesturePath](js-apis-accessibility-GesturePath.md#gesturepath) | Yes | Path of the gesture to inject. | +| callback | AsyncCallback<void> | Yes | Callback used to return the result.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300003 | Do not have accessibility right for this operation. | + +**Example** + +```ts +import GesturePath from "@ohos.accessibility.GesturePath"; +import GesturePoint from '@ohos.accessibility.GesturePoint'; +let gesturePath = new GesturePath.GesturePath(100); +try { + for (let i = 0; i < 10; i++) { + let gesturePoint = new GesturePoint.GesturePoint(100, i * 200); + gesturePath.points.push(gesturePoint); + } + axContext.injectGesture(gesturePath, (err, data) => { + if (err) { + console.error('failed to inject gesture, because ' + JSON.stringify(err)); + return; + } + console.info('inject gesture success'); + }); +} catch (exception) { + console.error('failed to inject gesture, because ' + JSON.stringify(exception)); +} +``` +## AccessibilityElement9+ + +Defines the accessibilityelement. Before calling APIs of **AccessibilityElement**, you must call [AccessibilityExtensionContext.getFocusElement()](#accessibilityextensioncontextgetfocuselement) or [AccessibilityExtensionContext.getWindowRootElement()](#accessibilityextensioncontextgetwindowrootelement) to obtain an **AccessibilityElement** instance. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +## attributeNames + +attributeNames\(): Promise\>; + +Obtains all attribute names of this element. This API uses a promise to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Return value** + +| Type | Description | +| ---------------------------------------- | ------------------------ | +| Promise<Array<T>> | Promise used to return all attribute names of the element.| + +**Example** + +```ts +let rootElement; +let attributeNames; +rootElement.attributeNames().then((data) => { + console.log('get attribute names success'); + attributeNames = data; +}).catch((err) => { + console.log('failed to get attribute names, because ' + JSON.stringify(err)); +}); +``` +## attributeNames + +attributeNames\(callback: AsyncCallback\>): void; + +Obtains all attribute names of this element. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ---------------------------------------- | ---- | -------------- | +| callback | AsyncCallback<Array<T>> | Yes | Callback used to return all attribute names of the element.| + +**Example** + +```ts +let rootElement; +let attributeNames; +rootElement.attributeNames((err, data) => { + if (err) { + console.error('failed to get attribute names, because ' + JSON.stringify(err)); + return; + } + attributeNames = data; + console.info('get attribute names success'); +}); +``` +## AccessibilityElement.attributeValue + +attributeValue\(attributeName: T): Promise\; + +Obtains the attribute value based on an attribute name. This API uses a promise to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ---------------------------------------- | ---- | -------------- | +| attributeName | T | Yes | Attribute name. | + +**Return value** + +| Type | Description | +| ---------------------------------------- | ------------------------ | +| Promise<ElementAttributeValues[T]> | Promise used to return the attribute value.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300004 | This property does not exist. | + +**Example** + +```ts +let attributeName = 'name'; +let attributeValue; +let rootElement; +try { + rootElement.attributeValue(attributeName).then((data) => { + console.log('get attribute value by name success'); + attributeValue = data; + }).catch((err) => { + console.log('failed to get attribute value, because ' + JSON.stringify(err)); + }); +} catch (exception) { + console.log('failed to get attribute value, because ' + JSON.stringify(exception)); +} +``` +## AccessibilityElement.attributeValue + +attributeValue\(attributeName: T, + callback: AsyncCallback\): void; + +Obtains the attribute value based on an attribute name. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ---------------------------------------- | ---- | -------------- | +| attributeName | T | Yes | Attribute name. | +| callback | AsyncCallback<ElementAttributeValues[T]> | Yes | Callback used to return the attribute value.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300004 | This property does not exist. | + +**Example** + +```ts +let rootElement; +let attributeValue; +let attributeName = 'name'; +try { + rootElement.attributeValue(attributeName, (err, data) => { + if (err) { + console.error('failed to get attribute value, because ' + JSON.stringify(err)); + return; + } + attributeValue = data; + console.info('get attribute value success'); + }); +} catch (exception) { + console.log('failed to get attribute value, because ' + JSON.stringify(exception)); +} +``` +## actionNames + +actionNames(): Promise\>; + +Obtains the names of all actions supported by this element. This API uses a promise to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Return value** + +| Type | Description | +| ---------------------------------------- | ------------------------ | +| Promise<Array<string>> | Promise used to return the names of all actions supported by the element.| + +**Example** + +```ts +let rootElement; +let actionNames; +rootElement.actionNames().then((data) => { + console.log('get action names success'); + actionNames = data; +}).catch((err) => { + console.log('failed to get action names because ' + JSON.stringify(err)); +}); +``` +## actionNames + +actionNames(callback: AsyncCallback\>): void; + +Obtains the names of all actions supported by this element. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ---------------------------------------- | ---- | -------------- | +| callback | AsyncCallback<Array<string>> | Yes | Callback used to return the names of all actions supported by the element.| + +**Example** + +```ts +let rootElement; +let actionNames; +rootElement.actionNames((err, data) => { + if (err) { + console.error('failed to get action names, because ' + JSON.stringify(err)); + return; + } + actionNames = data; + console.info('get action names success'); +}); +``` +## performAction + +performAction(actionName: string, parameters?: object): Promise\; + +Performs an action based on the specified action name. This API uses a promise to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ---------------------------------------- | ---- | -------------- | +| actionName | string | Yes | Action name. | +| parameters | object | No | Parameter required for performing the target action. | + +**Return value** + +| Type | Description | +| ---------------------------------------- | ------------------------ | +| Promise<void> | Promise that returns no value.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300005 | This action is not supported. | + +**Example** + +```ts +let rootElement; +try { + rootElement.performAction('action').then((data) => { + console.info('perform action success'); + }).catch((err) => { + console.log('failed to perform action, because ' + JSON.stringify(err)); + }); +} catch (exception) { + console.log('failed to perform action, because ' + JSON.stringify(exception)); +} +``` +## performAction + +performAction(actionName: string, callback: AsyncCallback\): void; + +Performs an action based on the specified action name. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ---------------------------------------- | ---- | -------------- | +| actionName | string | Yes | Attribute name. | +| callback | AsyncCallback<void> | Yes | Callback used to return the result.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300005 | This action is not supported. | + +**Example** + +```ts +let rootElement; +try { + rootElement.performAction('action', (err, data) => { + if (err) { + console.error('failed to perform action, because ' + JSON.stringify(err)); + return; + } + console.info('perform action success'); + }); +} catch (exception) { + console.log('failed to perform action, because ' + JSON.stringify(exception)); +} +``` +## performAction + +performAction(actionName: string, parameters: object, callback: AsyncCallback\): void; + +Performs an action based on the specified action name. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ---------------------------------------- | ---- | -------------- | +| actionName | string | Yes | Action name. | +| parameters | object | Yes | Parameter required for performing the target action. | +| callback | AsyncCallback<void> | Yes | Callback used to return the result.| + +**Error codes** + +For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md). + +| ID| Error Message| +| ------- | -------------------------------- | +| 9300005 | This action is not supported. | + +**Example** + +```ts +let rootElement; +let actionName = 'action'; +let parameters = { + 'setText': 'test text' +}; +try { + rootElement.performAction(actionName, parameters, (err, data) => { + if (err) { + console.error('failed to perform action, because ' + JSON.stringify(err)); + return; + } + console.info('perform action success'); + }); +} catch (exception) { + console.log('failed to perform action, because ' + JSON.stringify(exception)); +} +``` +## findElement('content') + +findElement(type: 'content', condition: string): Promise\>; + +Queries the element information of the **content** type. This API uses a promise to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ---------------------------------------- | ---- | -------------- | +| type | string | Yes | Information type. The value is fixed at **'content'**. | +| condition | string | Yes | Search criteria. | + +**Return value** + +| Type | Description | +| ---------------------------------------- | ------------------------ | +| Promise<Array<AccessibilityElement>> | Promise used to return the result.| + +**Example** + +```ts +let rootElement; +let type = 'content'; +let condition = 'keyword'; +let elements; +try { + rootElement.findElement(type, condition).then((data) => { + elements = data; + console.log('find element success'); + }).catch((err) => { + console.log('failed to find element, because ' + JSON.stringify(err)); + }); +} catch (exception) { + console.log('failed to find element, because ' + JSON.stringify(exception)); +} +``` +## findElement('content') + +findElement(type: 'content', condition: string, callback: AsyncCallback\>): void; + +Queries the element information of the **content** type. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ---------------------------------------- | ---- | -------------- | +| type | string | Yes | Information type. The value is fixed at **'content'**. | +| condition | string | Yes | Search criteria. | +| callback | AsyncCallback<Array<AccessibilityElement>> | Yes | Callback used to return the result.| + +**Example** + +```ts +let rootElement; +let type = 'content'; +let condition = 'keyword'; +let elements; +try { + rootElement.findElement(type, condition, (err, data) => { + if (err) { + console.error('failed to find element, because ' + JSON.stringify(err)); + return; + } + elements = data; + console.info('find element success'); + }); +} catch (exception) { + console.log('failed to find element, because ' + JSON.stringify(exception)); +} +``` +## findElement('focusType') + +findElement(type: 'focusType', condition: FocusType): Promise\; + +Queries the element information of the **focusType** type. This API uses a promise to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ---------------------------------------- | ---- | -------------- | +| type | string | Yes | Information type. The value is fixed at **'focusType'**. | +| condition | [FocusType](#focustype) | Yes | Enumerates the focus types. | + +**Return value** + +| Type | Description | +| ---------------------------------------- | ------------------------ | +| Promise<AccessibilityElement> | Promise used to return the result.| + +**Example** + +```ts +let rootElement; +let type = 'focusType'; +let condition = 'normal'; +let element; +try { + rootElement.findElement(type, condition).then((data) => { + element = data; + console.log('find element success'); + }).catch((err) => { + console.log('failed to find element, because ' + JSON.stringify(err)); + }); +} catch (exception) { + console.log('failed to find element, because ' + JSON.stringify(exception)); +} +``` +## findElement('focusType') + +findElement(type: 'focusType', condition: FocusType, callback: AsyncCallback\): void; + +Queries the element information of the **focusType** type. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ---------------------------------------- | ---- | -------------- | +| type | string | Yes | Information type. The value is fixed at **'focusType'**. | +| condition | [FocusType](#focustype) | Yes | Enumerates the focus types. | +| callback | AsyncCallback<AccessibilityElement> | Yes | Callback used to return the result.| + +**Example** + +```ts +let rootElement; +let type = 'focusType'; +let condition = 'normal'; +let element; +try { + rootElement.findElement(type, condition, (err, data) => { + if (err) { + console.error('failed to find element, because ' + JSON.stringify(err)); + return; + } + element = data; + console.info('find element success'); + }); +} catch (exception) { + console.log('failed to find element, because ' + JSON.stringify(exception)); +} +``` +## findElement('focusDirection') + +findElement(type: 'focusDirection', condition: FocusDirection): Promise\; + +Queries the element information of the **focusDirection** type. This API uses a promise to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ---------------------------------------- | ---- | -------------- | +| type | string | Yes | Information type. The value is fixed at **'focusDirection'**. | +| condition | [FocusDirection](#focusdirection) | Yes | Enumerates the focus directions. | + +**Return value** + +| Type | Description | +| ---------------------------------------- | ------------------------ | +| Promise<AccessibilityElement> | Promise used to return the result.| + +**Example** + +```ts +let rootElement; +let type = 'focusDirection'; +let condition = 'up'; +let element; +try { + rootElement.findElement(type, condition).then((data) => { + element = data; + console.log('find element success'); + }).catch((err) => { + console.log('failed to find element, because ' + JSON.stringify(err)); + }); +} catch (exception) { + console.log('failed to find element, because ' + JSON.stringify(exception)); +} +``` +## findElement('focusDirection') + +findElement(type: 'focusDirection', condition: FocusDirection, callback: AsyncCallback\): void; + +Queries the element information of the **focusDirection** type. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.BarrierFree.Accessibility.Core + +**Parameters** + +| Name | Type | Mandatory | Description | +| ----------- | ---------------------------------------- | ---- | -------------- | +| type | string | Yes | Information type. The value is fixed at **'focusDirection'**. | +| condition | [FocusDirection](#focusdirection) | Yes | Direction of the next focus element. | +| callback | AsyncCallback<AccessibilityElement> | Yes | Callback used to return the result.| + +**Example** + +```ts +let rootElement; +let type = 'focusDirection'; +let condition = 'up'; +let elements; +try { + rootElement.findElement(type, condition, (err, data) => { + if (err) { + console.error('failed to find element, because ' + JSON.stringify(err)); + return; + } + elements = data; + console.info('find element success'); + }); +} catch (exception) { + console.log('failed to find element, because ' + JSON.stringify(exception)); +} +``` diff --git a/en/application-dev/reference/apis/js-apis-installer.md b/en/application-dev/reference/apis/js-apis-installer.md index 557e655b82ab9195e2217b69ed68e8d5de0ef534..0c3651fc6add2e830f9a8e3eeb5ccabddb122e2e 100644 --- a/en/application-dev/reference/apis/js-apis-installer.md +++ b/en/application-dev/reference/apis/js-apis-installer.md @@ -1,9 +1,8 @@ -# BundleInstaller +# @ohos.bundle.installer -The **BundleInstaller** module provides APIs for you to install, uninstall, and recover bundles on devices. +The **bundle.installer** module provides APIs for you to install, uninstall, and recover bundles on devices. > **NOTE** -> > The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## Modules to Import diff --git a/en/application-dev/reference/apis/js-apis-keycode.md b/en/application-dev/reference/apis/js-apis-keycode.md index dd4ac0b22afb7e0101579db5b6d639504f58197d..6680ea14f2ea3daa0d9144013469cf094c4904d2 100644 --- a/en/application-dev/reference/apis/js-apis-keycode.md +++ b/en/application-dev/reference/apis/js-apis-keycode.md @@ -8,7 +8,7 @@ The Keycode module provides keycodes for a key device. ## Modules to Import ```js -import {KeyCode} from '@ohos.multimodalInput.keyCode' +import {KeyCode} from '@ohos.multimodalInput.keyCode'; ``` ## KeyCode diff --git a/en/application-dev/reference/apis/js-apis-keyevent.md b/en/application-dev/reference/apis/js-apis-keyevent.md index 33d9daa72dd0c570d04d11b5eedf16f96e37dc7c..3cfb2440033aa8043801e986ade5b0bd28c475d3 100644 --- a/en/application-dev/reference/apis/js-apis-keyevent.md +++ b/en/application-dev/reference/apis/js-apis-keyevent.md @@ -1,6 +1,6 @@ # Key Event -Represents key events reported by an input device. +The Key Event module provides key events reported by an input device. > **NOTE** > diff --git a/en/application-dev/reference/apis/js-apis-launcherBundleManager.md b/en/application-dev/reference/apis/js-apis-launcherBundleManager.md index f149c30d7a93f9adaaa68c03edea7426a8882531..505c29ae0ef6cc18404767eaa4a4b4ac88296651 100644 --- a/en/application-dev/reference/apis/js-apis-launcherBundleManager.md +++ b/en/application-dev/reference/apis/js-apis-launcherBundleManager.md @@ -1,6 +1,6 @@ -# Bundle.launcherBundleManager +# @ohos.bundle.launcherBundleManager -The **Bundle.launcherBundleManager** module providers APIs for the **Home Screen** application to obtain the launcher ability information and shortcut information. +The **bundle.launcherBundleManager** module providers APIs for the **Home Screen** application to obtain the launcher ability information and shortcut information. > **NOTE** > @@ -27,7 +27,7 @@ Obtains the launcher ability information based on the given bundle name and user **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | ---------- | ------ | ---- | -------------- | | bundleName | string | Yes | Bundle name of the application.| | userId | number | Yes | User ID.| @@ -78,7 +78,7 @@ Obtains the launcher ability information based on the given bundle name and user **Parameters** -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | ---------- | ------ | ---- | -------------- | | bundleName | string | Yes | Bundle name of the application.| | userId | number | Yes | User ID.| @@ -128,7 +128,7 @@ Obtains the launcher ability information of all applications based on the given **Parameters** -| Name| Type | Mandatory| Description | +| Name| Type | Mandatory| Description | | ------ | ------ | ---- | -------------- | | userId | number | Yes | User ID.| @@ -176,7 +176,7 @@ Obtains the launcher ability information of all applications based on the given **Parameters** -| Name| Type | Mandatory| Description | +| Name| Type | Mandatory| Description | | ------ | ------ | ---- | -------------- | | userId | number | Yes | User ID.| @@ -222,7 +222,7 @@ Obtains the shortcut information of the current user based on the given bundle n **System capability**: SystemCapability.BundleManager.BundleFramework.Launcher -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | ---------- | ------ | ---- | -------------- | | bundleName | string | Yes | Bundle name of the application.| @@ -269,13 +269,13 @@ Obtains the shortcut information of the current user based on the given bundle n **System capability**: SystemCapability.BundleManager.BundleFramework.Launcher -| Name | Type | Mandatory| Description | +| Name | Type | Mandatory| Description | | ---------- | ------ | ---- | -------------- | | bundleName | string | Yes | Bundle name of the application.| **Return value** -| Template | Description | +| Type | Description | | ---------------------- | ----------------------------------------------- | | Promise\> | Promise used to return the **ShortcutInfo** object obtained.| diff --git a/en/application-dev/reference/apis/js-apis-lightweightmap.md b/en/application-dev/reference/apis/js-apis-lightweightmap.md index f2ab94b72b0538f83cd21642081172cfb19b3cb1..1e966a2b659551a35649c3c087330e7d3059e182 100644 --- a/en/application-dev/reference/apis/js-apis-lightweightmap.md +++ b/en/application-dev/reference/apis/js-apis-lightweightmap.md @@ -1,4 +1,4 @@ -# Nonlinear Container LightWeightMap +# @ohos.util.LightWeightMap (Nonlinear Container LightWeightMap) > **NOTE** > @@ -54,11 +54,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let lightWeightMap = new LightWeightMap(); -try { - let lightWeightMap2 = LightWeightMap(); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -89,11 +84,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts const lightWeightMap = new LightWeightMap(); let result = lightWeightMap.isEmpty(); -try { - lightWeightMap.isEmpty.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -134,11 +124,6 @@ lightWeightMap.set("sparrow", 356); let map = new LightWeightMap(); map.set("sparrow", 356); let result = lightWeightMap.hasAll(map); -try { - lightWeightMap.hasAll.bind({}, map)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -178,11 +163,6 @@ let result = lightWeightMap.hasKey; lightWeightMap.hasKey("squirrel"); lightWeightMap.set("squirrel", 123); let result1 = lightWeightMap.hasKey("squirrel"); -try { - lightWeightMap.hasKey.bind({}, "squirrel")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -221,11 +201,6 @@ let lightWeightMap = new LightWeightMap(); let result = lightWeightMap.hasValue(123); lightWeightMap.set("squirrel", 123); let result1 = lightWeightMap.hasValue(123); -try { - lightWeightMap.hasValue.bind({}, 123)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -256,11 +231,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let lightWeightMap = new LightWeightMap(); lightWeightMap.increaseCapacityTo(10); -try { - lightWeightMap.increaseCapacityTo.bind({}, 10)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -299,11 +269,6 @@ let lightWeightMap = new LightWeightMap(); lightWeightMap.set("squirrel", 123); lightWeightMap.set("sparrow", 356); let result = lightWeightMap.get("sparrow"); -try { - lightWeightMap.get.bind({}, "sparrow")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -342,11 +307,6 @@ let lightWeightMap = new LightWeightMap(); lightWeightMap.set("squirrel", 123); lightWeightMap.set("sparrow", 356); let result = lightWeightMap.getIndexOfKey("sparrow"); -try { - lightWeightMap.getIndexOfKey.bind({}, "sparrow")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -385,11 +345,6 @@ let lightWeightMap = new LightWeightMap(); lightWeightMap.set("squirrel", 123); lightWeightMap.set("sparrow", 356); let result = lightWeightMap.getIndexOfValue(123); -try { - lightWeightMap.getIndexOfValue.bind({}, 123)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -420,7 +375,7 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The getKeyAt method cannot be bound. | -| 10200001 | The value of parameters are out of range. | +| 10200001 | The parameter value is out of range. | **Example** @@ -429,16 +384,6 @@ let lightWeightMap = new LightWeightMap(); lightWeightMap.set("squirrel", 123); lightWeightMap.set("sparrow", 356); let result = lightWeightMap.getKeyAt(1); -try { - lightWeightMap.getKeyAt.bind({}, 1)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - lightWeightMap.getKeyAt(6)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -472,11 +417,6 @@ lightWeightMap.set("squirrel", 123); lightWeightMap.set("sparrow", 356); let map = new LightWeightMap(); lightWeightMap.setAll(map); -try { - lightWeightMap.setAll.bind({}, map)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -513,11 +453,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let lightWeightMap = new LightWeightMap(); let result = lightWeightMap.set("squirrel", 123); -try { - lightWeightMap.set.bind({}, "squirrel", 123)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -556,11 +491,6 @@ let lightWeightMap = new LightWeightMap(); lightWeightMap.set("squirrel", 123); lightWeightMap.set("sparrow", 356); lightWeightMap.remove("sparrow"); -try { - lightWeightMap.remove.bind({}, "sparrow")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -599,11 +529,6 @@ let lightWeightMap = new LightWeightMap(); lightWeightMap.set("squirrel", 123); lightWeightMap.set("sparrow", 356); let result = lightWeightMap.removeAt(1); -try { - lightWeightMap.removeAt.bind({}, 1)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -635,7 +560,7 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The setValueAt method cannot be bound. | -| 10200001 | The value of parameters are out of range. | +| 10200001 | The parameter value is out of range. | **Example** @@ -644,16 +569,6 @@ let lightWeightMap = new LightWeightMap(); lightWeightMap.set("squirrel", 123); lightWeightMap.set("sparrow", 356); lightWeightMap.setValueAt(1, 3546); -try { - lightWeightMap.setValueAt.bind({}, 1, 3546)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - lightWeightMap.setValueAt(6, 3546); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -684,7 +599,7 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The getValueAt method cannot be bound. | -| 10200001 | The value of parameters are out of range. | +| 10200001 | The parameter value is out of range. | **Example** @@ -693,16 +608,6 @@ let lightWeightMap = new LightWeightMap(); lightWeightMap.set("squirrel", 123); lightWeightMap.set("sparrow", 356); let result = lightWeightMap.getValueAt(1); -try { - lightWeightMap.getValueAt.bind({}, 1)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - lightWeightMap.getValueAt(6); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -729,11 +634,6 @@ let lightWeightMap = new LightWeightMap(); lightWeightMap.set("squirrel", 123); lightWeightMap.set("sparrow", 356); lightWeightMap.clear(); -try { - lightWeightMap.clear.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -771,11 +671,6 @@ while(temp != undefined) { console.log("value:" + temp); temp = iter.next().value; } -try { - lightWeightMap.keys.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -813,17 +708,12 @@ while(temp != undefined) { console.log("value:" + temp); temp = iter.next().value; } -try { - lightWeightMap.values.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### forEach -forEach(callbackfn: (value?: V, key?: K, map?: LightWeightMap) => void, thisArg?: Object): void +forEach(callbackFn: (value?: V, key?: K, map?: LightWeightMap) => void, thisArg?: Object): void Uses a callback to traverse the elements in this container and obtain their position indexes. @@ -833,7 +723,7 @@ Uses a callback to traverse the elements in this container and obtain their posi | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked to traverse the elements in the container.| +| callbackFn | function | Yes| Callback invoked to traverse the elements in the container.| | thisArg | Object | No| Value to use when the callback is invoked.| callbackfn @@ -860,13 +750,6 @@ lightWeightMap.set("gull", 357); lightWeightMap.forEach((value, key) => { console.log("value:" + value, key); }); -try { - lightWeightMap.forEach.bind({}, (value, key) => { - console.log("value:" + value, key); - })(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -905,11 +788,6 @@ while(temp != undefined) { console.log("value:" + temp[1]); temp = iter.next().value; } -try { - lightWeightMap.entries.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### toString @@ -941,11 +819,6 @@ let lightWeightMap = new LightWeightMap(); lightWeightMap.set("squirrel", 123); lightWeightMap.set("sparrow", 356); let iter = lightWeightMap.toString(); -try { - lightWeightMap.toString.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### [Symbol.iterator] @@ -991,9 +864,4 @@ while(temp != undefined) { console.log("value:" + temp[1]); temp = iter.next().value; } -try { - lightWeightMap[Symbol.iterator].bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` diff --git a/en/application-dev/reference/apis/js-apis-lightweightset.md b/en/application-dev/reference/apis/js-apis-lightweightset.md index f5cfbde6cb11daf8884e3c5cf5818fbccc9475a6..0953c12b1a012870147f5be3481de8cd28f9edd6 100644 --- a/en/application-dev/reference/apis/js-apis-lightweightset.md +++ b/en/application-dev/reference/apis/js-apis-lightweightset.md @@ -1,4 +1,4 @@ -# Nonlinear Container LightWeightSet +# @ohos.util.LightWeightSet (Nonlinear Container LightWeightSet) > **NOTE** > @@ -23,8 +23,6 @@ This topic uses the following to identify the use of generics: import LightWeightSet from '@ohos.util.LightWeightSet'; ``` - - ## LightWeightSet ### Attributes @@ -56,11 +54,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let lightWeightSet = new LightWeightSet(); -try { - let lightWeightSet2 = LightWeightSet(); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -91,11 +84,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts const lightWeightSet = new LightWeightSet(); let result = lightWeightSet.isEmpty(); -try { - lightWeightSet.isEmpty.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### add @@ -131,11 +119,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let lightWeightSet = new LightWeightSet(); let result = lightWeightSet.add("squirrel"); -try { - lightWeightSet.add.bind({}, "squirrel")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -170,11 +153,6 @@ lightWeightSet.add("sparrow"); let set = new LightWeightSet(); set.add("gull"); let result = lightWeightSet.addAll(set); -try { - lightWeightSet.addAll.bind({}, set)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -215,11 +193,6 @@ lightWeightSet.add("sparrow"); let set = new LightWeightSet(); set.add("sparrow"); let result = lightWeightSet.hasAll(set); -try { - lightWeightSet.hasAll.bind({}, set)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -258,11 +231,6 @@ let lightWeightSet = new LightWeightSet(); let result = lightWeightSet.has(123); lightWeightSet.add(123); result = lightWeightSet.has(123); -try { - lightWeightSet.has.bind({}, 123)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -302,11 +270,6 @@ lightWeightSet.add("squirrel"); lightWeightSet.add("sparrow"); let obj = ["squirrel", "sparrow"]; let result = lightWeightSet.equal(obj); -try { - lightWeightSet.equal.bind({}, obj)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -331,23 +294,13 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The increaseCapacityTo method cannot be bound. | -| 10200001 | The value of parameters are out of range. | +| 10200001 | The parameter value is out of range. | **Example** ```ts let lightWeightSet = new LightWeightSet(); lightWeightSet.increaseCapacityTo(10); -try { - lightWeightSet.increaseCapacityTo.bind({}, 10)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - lightWeightSet.increaseCapacityTo(2); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -386,11 +339,6 @@ let lightWeightSet = new LightWeightSet(); lightWeightSet.add("squirrel"); lightWeightSet.add("sparrow"); let result = lightWeightSet.getIndexOf("sparrow"); -try { - lightWeightSet.getIndexOf.bind({}, "sparrow")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -429,11 +377,6 @@ let lightWeightSet = new LightWeightSet(); lightWeightSet.add("squirrel"); lightWeightSet.add("sparrow"); let result = lightWeightSet.remove("sparrow"); -try { - lightWeightSet.remove.bind({}, "sparrow")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -472,11 +415,6 @@ let lightWeightSet = new LightWeightSet(); lightWeightSet.add("squirrel"); lightWeightSet.add("sparrow"); let result = lightWeightSet.removeAt(1); -try { - lightWeightSet.removeAt.bind({}, 1)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -515,11 +453,6 @@ let lightWeightSet = new LightWeightSet(); lightWeightSet.add("squirrel"); lightWeightSet.add("sparrow"); let result = lightWeightSet.getValueAt(1); -try { - lightWeightSet.getValueAt.bind({}, 1)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -546,11 +479,6 @@ let lightWeightSet = new LightWeightSet(); lightWeightSet.add("squirrel"); lightWeightSet.add("sparrow"); lightWeightSet.clear(); -try { - lightWeightSet.clear.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -583,11 +511,6 @@ let lightWeightSet = new LightWeightSet(); lightWeightSet.add("squirrel"); lightWeightSet.add("sparrow"); let result = lightWeightSet.toString(); -try { - lightWeightSet.toString.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -620,11 +543,6 @@ let lightWeightSet = new LightWeightSet(); lightWeightSet.add("squirrel"); lightWeightSet.add("sparrow"); let result = lightWeightSet.toArray(); -try { - lightWeightSet.toArray.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -662,17 +580,12 @@ while(index < lightWeightSet.length) { console.log(JSON.stringify(iter.next().value)); index++; } -try { - lightWeightSet.values.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### forEach -forEach(callbackfn: (value?: T, key?: T, set?: LightWeightSet<T>) => void, thisArg?: Object): void +forEach(callbackFn: (value?: T, key?: T, set?: LightWeightSet<T>) => void, thisArg?: Object): void Uses a callback to traverse the elements in this container and obtain their position indexes. @@ -682,7 +595,7 @@ Uses a callback to traverse the elements in this container and obtain their posi | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked to traverse the elements in the container.| +| callbackFn | function | Yes| Callback invoked to traverse the elements in the container.| | thisArg | Object | No| Value to use when the callback is invoked.| callbackfn @@ -709,13 +622,6 @@ lightWeightSet.add("gull"); lightWeightSet.forEach((value, key) => { console.log("value:" + value, key); }); -try { - lightWeightSet.forEach.bind({}, (value, key) => { - console.log("value:" + value, key); - })(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -753,11 +659,6 @@ while(index < lightWeightSet.length) { console.log(JSON.stringify(iter.next().value)); index++; } -try { - lightWeightSet.entries.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -802,9 +703,4 @@ while(temp != undefined) { console.log("value:" + temp); temp = iter.next().value; } -try { - lightWeightSet[Symbol.iterator].bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` diff --git a/en/application-dev/reference/apis/js-apis-linkedlist.md b/en/application-dev/reference/apis/js-apis-linkedlist.md index 81b7ee076547f3ac3acd72fb3267d8e84265e2b3..1eda96e1205a256960c8a03f28ee60080850d22c 100644 --- a/en/application-dev/reference/apis/js-apis-linkedlist.md +++ b/en/application-dev/reference/apis/js-apis-linkedlist.md @@ -1,4 +1,4 @@ -# Linear Container LinkedList +# @ohos.util.LinkedList (Linear Container LinkedList) > **NOTE** > @@ -21,9 +21,6 @@ This topic uses the following to identify the use of generics: import LinkedList from '@ohos.util.LinkedList'; ``` - - - ## LinkedList ### Attributes @@ -56,11 +53,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let linkedList = new LinkedList(); -try { - let linkedList2 = LinkedList(); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -103,11 +95,6 @@ let result2 = linkedList.add(b); let c = {name : "Dylon", age : "13"}; let result3 = linkedList.add(c); let result4 = linkedList.add(false); -try { - linkedList.add.bind({}, "b")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### addFirst @@ -143,11 +130,6 @@ linkedList.addFirst(b); let c = {name : "Dylon", age : "13"}; linkedList.addFirst(c); linkedList.addFirst(false); -try { - linkedList.addFirst.bind({}, "b")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### insert @@ -172,7 +154,7 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The insert method cannot be bound. | -| 10200001 | The value of parameters are out of range. | +| 10200001 | The parameter value is out of range. | **Example** @@ -181,16 +163,6 @@ let linkedList = new LinkedList(); linkedList.insert(0, "A"); linkedList.insert(1, 0); linkedList.insert(2, true); -try { - linkedList.insert.bind({}, 3, "b")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - linkedList.insert(6, "b"); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### has @@ -228,11 +200,6 @@ let linkedList = new LinkedList(); let result1 = linkedList.has("squirrel"); linkedList.add("squirrel"); let result = linkedList.has("squirrel"); -try { - linkedList.has.bind({}, "squirrel")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### get @@ -275,11 +242,6 @@ linkedList.add(1); linkedList.add(2); linkedList.add(4); let result = linkedList.get(2); -try { - linkedList.get.bind({}, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### getLastIndexOf @@ -322,11 +284,6 @@ linkedList.add(1); linkedList.add(2); linkedList.add(4); let result = linkedList.getLastIndexOf(2); -try { - linkedList.getLastIndexOf.bind({}, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### getIndexOf @@ -369,11 +326,6 @@ linkedList.add(1); linkedList.add(2); linkedList.add(4); let result = linkedList.getIndexOf(2); -try { - linkedList.getIndexOf.bind({}, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### removeByIndex @@ -403,7 +355,7 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The removeByIndex method cannot be bound. | -| 10200001 | The value of parameters are out of range. | +| 10200001 | The parameter value is out of range. | **Example** @@ -415,16 +367,6 @@ linkedList.add(5); linkedList.add(2); linkedList.add(4); let result = linkedList.removeByIndex(2); -try { - linkedList.removeByIndex.bind({}, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - linkedList.removeByIndex(8); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### removeFirst @@ -448,28 +390,18 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The removeFirst method cannot be bound. | -| 10200010 | Container is empty. | +| 10200010 | The container is empty. | **Example** ```ts let linkedList = new LinkedList(); -try { - linkedList.removeFirst(); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} linkedList.add(2); linkedList.add(4); linkedList.add(5); linkedList.add(2); linkedList.add(4); let result = linkedList.removeFirst(); -try { - linkedList.removeFirst.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### removeLast @@ -493,28 +425,18 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The removeLast method cannot be bound. | -| 10200010 | Container is empty. | +| 10200010 | The container is empty. | **Example** ```ts let linkedList = new LinkedList(); -try { - linkedList.removeLast(); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} linkedList.add(2); linkedList.add(4); linkedList.add(5); linkedList.add(2); linkedList.add(4); let result = linkedList.removeLast(); -try { - linkedList.removeLast.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### remove @@ -554,11 +476,6 @@ linkedList.add(4); linkedList.add(5); linkedList.add(4); let result = linkedList.remove(2); -try { - linkedList.remove.bind({}, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### removeFirstFound @@ -588,27 +505,17 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The removeFirstFound method cannot be bound. | -| 10200010 | Container is empty. | +| 10200010 | The container is empty. | **Example** ```ts let linkedList = new LinkedList(); -try { - linkedList.removeFirstFound(4); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} linkedList.add(2); linkedList.add(4); linkedList.add(5); linkedList.add(4); let result = linkedList.removeFirstFound(4); -try { - linkedList.removeFirstFound.bind({}, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### removeLastFound @@ -638,27 +545,17 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The removeLastFound method cannot be bound. | -| 10200010 | Container is empty. | +| 10200010 | The container is empty. | **Example** ```ts let linkedList = new LinkedList(); -try { - linkedList.removeLastFound(); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} linkedList.add(2); linkedList.add(4); linkedList.add(5); linkedList.add(4); let result = linkedList.removeLastFound(4); -try { - linkedList.removeLastFound.bind({}, 4)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### clone @@ -692,16 +589,11 @@ linkedList.add(4); linkedList.add(5); linkedList.add(4); let result = linkedList.clone(); -try { - linkedList.clone.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### forEach -forEach(callbackfn: (value: T, index?: number, LinkedList?: LinkedList<T>) => void, +forEach(callbackFn: (value: T, index?: number, LinkedList?: LinkedList<T>) => void, thisArg?: Object): void Uses a callback to traverse the elements in this container and obtain their position indexes. @@ -712,7 +604,7 @@ Uses a callback to traverse the elements in this container and obtain their posi | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked to traverse the elements in the container.| +| callbackFn | function | Yes| Callback invoked to traverse the elements in the container.| | thisArg | Object | No| Value to use when the callback is invoked.| callbackfn @@ -742,13 +634,6 @@ linkedList.add(4); linkedList.forEach((value, index) => { console.log("value:" + value, index); }); -try { - linkedList.forEach.bind({}, (value, index) => { - console.log("value:" + value, index); - })(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### clear @@ -776,11 +661,6 @@ linkedList.add(4); linkedList.add(5); linkedList.add(4); linkedList.clear(); -try { - linkedList.clear.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### set @@ -811,7 +691,7 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The set method cannot be bound. | -| 10200001 | The value of parameters are out of range. | +| 10200001 | The parameter value is out of range. | **Example** @@ -822,16 +702,6 @@ linkedList.add(4); linkedList.add(5); linkedList.add(4); let result = linkedList.set(2, "b"); -try { - linkedList.set.bind({}, 2, "b")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - linkedList.set(8, "b"); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### convertToArray @@ -864,11 +734,6 @@ linkedList.add(4); linkedList.add(5); linkedList.add(4); let result = linkedList.convertToArray(); -try { - linkedList.convertToArray.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### getFirst @@ -902,11 +767,6 @@ linkedList.add(4); linkedList.add(5); linkedList.add(4); let result = linkedList.getFirst(); -try { - linkedList.getFirst.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### getLast @@ -940,11 +800,6 @@ linkedList.add(4); linkedList.add(5); linkedList.add(4); linkedList.getLast(); -try { - linkedList.getLast.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### [Symbol.iterator] @@ -990,9 +845,4 @@ while(temp != undefined) { console.log("value:" + temp); temp = iter.next().value; } -try { - linkedList[Symbol.iterator].bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` diff --git a/en/application-dev/reference/apis/js-apis-list.md b/en/application-dev/reference/apis/js-apis-list.md index 181febf4ebe037fe37ec061efe832bd4f9a387cd..2c657bc20289e50af9edda35a739f8fd8c3b0896 100644 --- a/en/application-dev/reference/apis/js-apis-list.md +++ b/en/application-dev/reference/apis/js-apis-list.md @@ -1,4 +1,4 @@ -# Linear Container List +# @ohos.util.List (Linear Container List) > **NOTE** > @@ -51,11 +51,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let list = new List(); -try { - let list2 = List(); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -98,11 +93,6 @@ let result3 = list.add(b); let c = {name : "Dylon", age : "13"}; let result4 = list.add(c); let result5 = list.add(false); -try { - list.add.bind({}, "b")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### insert @@ -127,7 +117,7 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The insert method cannot be bound. | -| 10200001 | The value of parameters are out of range. | +| 10200001 | The parameter value is out of range. | **Example** @@ -136,16 +126,6 @@ let list = new List(); list.insert("A", 0); list.insert(0, 1); list.insert(true, 2); -try { - list.insert.bind({}, "b", 3)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - list.insert("b", 6); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### has @@ -183,11 +163,6 @@ let list = new List(); let result = list.has("squirrel"); list.add("squirrel"); let result1 = list.has("squirrel"); -try { - list.has.bind({}, "squirrel")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### get @@ -230,11 +205,6 @@ list.add(1); list.add(2); list.add(4); let result = list.get(2); -try { - list.get.bind({}, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### getLastIndexOf @@ -277,11 +247,6 @@ list.add(1); list.add(2); list.add(4); let result = list.getLastIndexOf(2); -try { - list.getLastIndexOf.bind({}, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### getIndexOf @@ -325,11 +290,6 @@ list.add(2); list.add(4); list.getIndexOf(2); let result = list.getIndexOf(2); -try { - list.getIndexOf.bind({}, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### equal @@ -375,11 +335,6 @@ obj1.add(5); list.equal(obj1); let obj2 = {name : "Dylon", age : "13"}; let result = list.equal(obj2); -try { - list.equal.bind({}, obj2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### removeByIndex @@ -409,7 +364,7 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The removeByIndex method cannot be bound. | -| 10200001 | The value of parameters are out of range. | +| 10200001 | The parameter value is out of range. | **Example** @@ -421,16 +376,6 @@ list.add(5); list.add(2); list.add(4); let result = list.removeByIndex(2); -try { - list.removeByIndex.bind({}, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - list.removeByIndex(8); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### remove @@ -470,16 +415,11 @@ list.add(4); list.add(5); list.add(4); let result = list.remove(2); -try { - list.remove.bind({}, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### replaceAllElements -replaceAllElements(callbackfn: (value: T, index?: number, list?: List<T>) => T, +replaceAllElements(callbackFn: (value: T, index?: number, list?: List<T>) => T, thisArg?: Object): void Replaces all elements in this container with new elements, and returns the new ones. @@ -490,7 +430,7 @@ Replaces all elements in this container with new elements, and returns the new o | Name| Value Type | Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked for the replacement.| +| callbackFn | function | Yes| Callback invoked for the replacement.| | thisArg | Object | No| Value to use when the callback is invoked.| callbackfn @@ -523,18 +463,11 @@ list.replaceAllElements((value: number, index: number) => { list.replaceAllElements((value: number, index: number) => { return value = value - 2; }); -try { - list.replaceAllElements.bind({}, (value: number, index: number) => { - return value = 2 * value; - })(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### forEach -forEach(callbackfn: (value: T, index?: number, List?: List<T>) => void, +forEach(callbackFn: (value: T, index?: number, List?: List<T>) => void, thisArg?: Object): void Uses a callback to traverse the elements in this container and obtain their position indexes. @@ -545,7 +478,7 @@ Uses a callback to traverse the elements in this container and obtain their posi | Name| Value Type | Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked to traverse the elements in the container.| +| callbackFn | function | Yes| Callback invoked to traverse the elements in the container.| | thisArg | Object | No| Value to use when the callback is invoked.| callbackfn @@ -575,14 +508,6 @@ list.add(4); list.forEach((value, index) => { console.log("value: " + value, index); }); -try { - list.forEach.bind({}, (value, index) => { - console.log("value: " + value, index); - })(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} - ``` ### sort @@ -624,11 +549,6 @@ list.add(5); list.add(4); list.sort((a: number, b: number) => a - b); list.sort((a: number, b: number) => b - a); -try { - list.sort.bind({}, (a: number, b: number) => b - a)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### getSubList @@ -659,7 +579,7 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The getSubList method cannot be bound. | -| 10200001 | The value of parameters are out of range. | +| 10200001 | The parameter value is out of range. | **Example** @@ -672,16 +592,6 @@ list.add(4); let result = list.getSubList(2, 4); let result1 = list.getSubList(4, 3); let result2 = list.getSubList(2, 6); -try { - list.getSubList.bind({}, 2, 4)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - list.getSubList(2, 10); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### clear @@ -709,11 +619,6 @@ list.add(4); list.add(5); list.add(4); list.clear(); -try { - list.clear.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### set @@ -744,7 +649,7 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The set method cannot be bound. | -| 10200001 | The value of parameters are out of range. | +| 10200001 | The parameter value is out of range. | **Example** @@ -755,16 +660,6 @@ list.add(4); list.add(5); list.add(4); list.set(2, "b"); -try { - list.set.bind({}, 3, "b")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - list.set(8, "b"); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### convertToArray @@ -798,11 +693,6 @@ list.add(4); list.add(5); list.add(4); let result = list.convertToArray(); -try { - list.convertToArray.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### isEmpty @@ -836,11 +726,6 @@ list.add(4); list.add(5); list.add(4); let result = list.isEmpty(); -try { - list.isEmpty.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### getFirst @@ -874,11 +759,6 @@ list.add(4); list.add(5); list.add(4); let result = list.getFirst(); -try { - list.getFirst.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### getLast @@ -912,11 +792,6 @@ list.add(4); list.add(5); list.add(4); let result = list.getLast(); -try { - list.getLast.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### [Symbol.iterator] @@ -962,9 +837,4 @@ while(temp != undefined) { console.log("value: " + temp); temp = iter.next().value; } -try { - list[Symbol.iterator].bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` diff --git a/en/application-dev/reference/apis/js-apis-nfcTag.md b/en/application-dev/reference/apis/js-apis-nfcTag.md index 2f3a208fe1f95b2c4f936709d047fa4c9581f8b6..91ef73c07db34721d0cc0f964bb992ce37669ae3 100644 --- a/en/application-dev/reference/apis/js-apis-nfcTag.md +++ b/en/application-dev/reference/apis/js-apis-nfcTag.md @@ -1,8 +1,9 @@ -# NFC Tags +# @ohos.nfc.tag The **nfcTag** module provides APIs for managing Near-Field Communication (NFC) tags. -> **NOTE**
+> **NOTE** +> > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## **Declaration** @@ -47,12 +48,10 @@ Before developing applications related to tag read and write, you must declare N } ``` > **CAUTION**
-> -> - The **actions** field is mandatory. It must be **ohos.nfc.tag.action.TAG_FOUND** and cannot be changed. -> - The **name** field of **metadata** is mandatory. It must be **tag-tech** and cannot be changed. -> - The **value** field of **metadata** is mandatory. It can be **NfcA**, **NfcB**, **NfcF**, **NfcV**, **IsoDep**, **Ndef**, **MifareClassic**, **MifareUL**, **NdefFormatable** or their combinations. Incorrect setting of this field will cause a parsing failure. -> - The **name** field of **requestPermissions** is mandatory. It must be **ohos.permission.NFC_TAG** and cannot be changed. - +1. The **actions** field is mandatory. It must be **ohos.nfc.tag.action.TAG_FOUND** and cannot be changed. +2. The **name** field under **metadata** is mandatory. It must be **tag-tech** and cannot be changed. +3. The **value** field under **metadata** is mandatory. It can be **NfcA**, **NfcB**, **NfcF**, **NfcV**, **IsoDep**, **Ndef**, **MifareClassic**, **MifareUL**, **NdefFormatable** or any of their combinations. Incorrect settings of this field will cause a parsing failure. +4. The **name** field under **requestPermissions** is mandatory. It must be **ohos.permission.NFC_TAG** and cannot be changed. ## **Modules to Import** @@ -61,34 +60,63 @@ import tag from '@ohos.nfc.tag'; ``` ## **tag.TagInfo** -Before reading or writing data to a card with tags, the application must obtain **TagInfo** to determine the tag technologies supported by the card. Then, the application can invoke the correct API to communicate with the card. + +Before a card with tags is read or written, **TagInfo** must be obtained to determine the tag technologies supported by the card. In this way, the application can invoke the correct API to communicate with the card. ```js import tag from '@ohos.nfc.tag'; onCreate(want, launchParam) { // Add other code here. - // want is initialized by the NFC service and contains taginfo. - var tagInfo = tag.getTagInfo(want); - if (tagInfo == undefined) { + // want is initialized by the NFC service and contains tagInfo. + var tagInfo; + try { + tagInfo = tag.getTagInfo(want); + } catch (error) { + console.log("tag.getTagInfo catched error: " + error); + } + if (tagInfo == null || tagInfo == undefined) { console.log("no TagInfo to be created, ignore it."); return; } + + // get the supported technologies for this found tag. var isNfcATag = false; + var isIsoDepTag = false; for (var i = 0; i < tagInfo.technology.length; i++) { if (tagInfo.technology[i] == tag.NFC_A) { isNfcATag = true; - break; + } + + if (tagInfo.technology[i] == tag.ISO_DEP) { + isIsoDepTag = true; } // Also check for technology tag.NFC_B, NFC_F, NFC_V, ISO_DEP, NDEF, MIFARE_CLASSIC, MIFARE_ULTRALIGHT, and NDEF_FORMATABLE. } + + // use NfcA APIs to access the found tag. if (isNfcATag) { - var nfcA = tag.getNfcATag(taginfo); + var nfcA; + try { + nfcA = tag.getNfcATag(taginfo); + } catch (error) { + console.log("tag.getNfcATag catched error: " + error); + } + // Other code to read or write this tag. + } + + // use getIsoDep APIs to access the found tag. + if (isIsoDepTag) { + var isoDep; + try { + isoDep = tag.getIsoDep(taginfo); + } catch (error) { + console.log("tag.getIsoDep catched error: " + error); + } // Other code to read or write this tag. } - // use the same code to handle "NfcA/NfcB/NfcF/NfcV/IsoDep/Ndef/MifareClassic/MifareUL/NdefFormatable", such as, - // var isoDep = tag.getIsoDepTag(taginfo); + // Use the same code to handle "NfcA/NfcB/NfcF/NfcV/Ndef/MifareClassic/MifareUL/NdefFormatable". } ``` @@ -156,78 +184,122 @@ Obtains an **NfcVTag** object, which allows access to the tags that use the NFC- | -------- | ---------------- | | [NfcVTag](js-apis-nfctech.md#nfcvtag) | **NfcVTag** object obtained.| -## tag.getIsoDepTag9+ +## tag.getIsoDep9+ -getIsoDepTag(tagInfo: [TagInfo](#taginfo)): [IsoDepTag](js-apis-nfctech.md#isoDepTag9 ) +getIsoDep(tagInfo: [TagInfo](#taginfo)): [IsoDepTag](js-apis-nfctech.md#isoDepTag9 ) Obtains an **IsoDepTag** object, which allows access to the tags that use the ISO-DEP technology. -**Required permissions**: ohos.permission.NFC_TAG - **System capability**: SystemCapability.Communication.NFC.Core +**Parameters** + +| Name | Type | Mandatory | Description | +| --------- | ------------------------- | ---- | ---------------------------------------- | +| taginfo | [TagInfo](#taginfo) | Yes| Tag information including the technology type and related parameters, which are obtained from **tag.getTagInfo(want: Want)**. | + **Return value** | **Type**| **Description** | | ---------- | ------------------| | [IsoDepTag](js-apis-nfctech.md#isodeptag9) | **IsoDepTag** object obtained.| -## tag.getNdefTag9+ +**Error codes** -getNdefTag(tagInfo: [TagInfo](#taginfo)): [NdefTag](js-apis-nfctech.md#ndeftag9) +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). -Obtains an **NdefTag** object, which allows access to the tags in the NFC Data Exchange Format (NDEF). +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | +## tag.getNdef9+ -**Required permissions**: ohos.permission.NFC_TAG +getNdef(tagInfo: [TagInfo](#taginfo)): [NdefTag](js-apis-nfctech.md#ndeftag9) + +Obtains an **NdefTag** object, which allows access to the tags in the NFC Data Exchange Format (NDEF). **System capability**: SystemCapability.Communication.NFC.Core +**Parameters** + +| Name | Type | Mandatory | Description | +| --------- | ------------------------- | ---- | ---------------------------------------- | +| taginfo | [TagInfo](#taginfo) | Yes | Tag information including the technology type and related parameters, which are obtained from **tag.getTagInfo(want: Want)**. | + **Return value** | **Type**| **Description** | | ---------| -------------- | | [NdefTag](js-apis-nfctech.md#ndeftag9) | **NdefTag** object obtained.| -## tag.getMifareClassicTag9+ +**Error codes** -getMifareClassicTag(tagInfo: [TagInfo](#taginfo)): [MifareClassicTag](js-apis-nfctech.md#mifareclassictag-9) +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). -Obtains a **MifareClassicTag** object, which allows access to the tags that use MIFARE Classic. +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | -**Required permissions**: ohos.permission.NFC_TAG +## tag.getMifareClassic9+ + +getMifareClassic(tagInfo: [TagInfo](#taginfo)): [MifareClassicTag](js-apis-nfctech.md#mifareclassictag-9) + +Obtains a **MifareClassicTag** object, which allows access to the tags that use MIFARE Classic. **System capability**: SystemCapability.Communication.NFC.Core +**Parameters** + +| Name | Type | Mandatory | Description | +| --------- | ------------------------- | ---- | ---------------------------------------- | +| taginfo | [TagInfo](#taginfo) | Yes | Tag information including the technology type and related parameters, which are obtained from **tag.getTagInfo(want: Want)**. | + **Return value** | **Type**| **Description** | | ----------------- | ------------------------| | [MifareClassicTag](js-apis-nfctech.md#mifareclassictag-9) | **MifareClassicTag** object obtained.| -## tag.getMifareUltralightTag9+ +**Error codes** -getMifareUltralightTag(tagInfo: [TagInfo](#taginfo)): [MifareUltralightTag](js-apis-nfctech.md#mifareultralighttag9) +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). -Obtains a **MifareUltralightTag** object, which allows access to the tags that use MIFARE Ultralight. +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | -**Required permissions**: ohos.permission.NFC_TAG +## tag.getMifareUltralight9+ + +getMifareUltralight(tagInfo: [TagInfo](#taginfo)): [MifareUltralightTag](js-apis-nfctech.md#mifareultralighttag9) + +Obtains a **MifareUltralightTag** object, which allows access to the tags that use MIFARE Ultralight. **System capability**: SystemCapability.Communication.NFC.Core +**Parameters** +| Name | Type | Mandatory | Description | +| --------- | ------------------------- | ---- | ---------------------------------------- | +| taginfo | [TagInfo](#taginfo) | Yes | Tag information including the technology type and related parameters, which are obtained from **tag.getTagInfo(want: Want)**. | + **Return value** | **Type**| **Description** | | -------------------- | ---------------------------| | [MifareUltralightTag](js-apis-nfctech.md#mifareultralighttag9) | **MifareUltralightTag** object obtained.| -## tag.getNdefFormatableTag9+ +**Error codes** -getNdefFormatableTag(tagInfo: [TagInfo](#taginfo)): [NdefFormatableTag](js-apis-nfctech.md#ndefformatabletag9) +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). -Obtains an **NdefFormatableTag** object, which allows access to the tags that are NDEF formattable. +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | -**Required permissions**: ohos.permission.NFC_TAG +## tag.getNdefFormatable9+ + +getNdefFormatable(tagInfo: [TagInfo](#taginfo)): [NdefFormatableTag](js-apis-nfctech.md#ndefformatabletag9) + +Obtains an **NdefFormatableTag** object, which allows access to the tags that are NDEF formattable. **System capability**: SystemCapability.Communication.NFC.Core @@ -237,89 +309,376 @@ Obtains an **NdefFormatableTag** object, which allows access to the tags that ar | ------------------ | --------------------------| | [NdefFormatableTag](js-apis-nfctech.md#ndefformatabletag) | **NdefFormatableTag** object obtained.| +**Error codes** + +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | + ## tag.getTagInfo9+ -getTagInfo(want: Want): [TagInfo](#taginfo) +getTagInfo(want: [Want](js-apis-app-ability-want.md#Want)): [TagInfo](#taginfo) Obtains **TagInfo** from **Want**, which is initialized by the NFC service and contains the attributes required by **TagInfo**. -**Required permissions**: ohos.permission.NFC_TAG - **System capability**: SystemCapability.Communication.NFC.Core +**Parameters** + +| Name | Type | Mandatory | Description | +| --------- | ------------------------- | ---- | ---------------------------------------- | +| want | [Want](js-apis-app-ability-want.md#Want) | Yes | Data obtained from the parameters of the **onCreate** entry function when an ability is dispatched. | + **Return value** | **Type**| **Description** | | ------------------ | --------------------------| | [TagInfo](#taginfo) | **TagInfo** object obtained.| -## TagInfo -Defines the **TagInfo** object, which provides information about the tag technologies supported by a card. +## tag.ndef.makeUriRecord9+ -**Required permissions**: ohos.permission.NFC_TAG +makeUriRecord(uri: string): [NdefRecord](#ndefrecord9); + +Creates an NDEF record based on the specified URI. **System capability**: SystemCapability.Communication.NFC.Core -| **Name**| **Type**| **Description**| -| -------- | -------- | -------- | -| uid9+ | number[] | Tag unique identifier (UID). Each number of the UID is a hexadecimal number ranging from **0x00** to **0xFF**.| -| technology9+ | number[] | Supported technologies. Each number is a constant indicating the supported technology.| -| supportedProfiles | number[] | Supported technologies. This parameter is not supported since API version 9 and is replaced by **technology**.| +**Parameters** -## NdefRecord9+ -Defines an NDEF tag record. For details, see *NFCForum-TS-NDEF_1.0*. +| Name | Type | Mandatory| Description | +| -------- | ----------------------- | ---- | -------------------------------------- | +| uri | string | Yes| Data to write to the NDEF record.| + +**Return value** + +| **Type**| **Description** | +| ------------------ | --------------------------| +| [NdefRecord](#ndefrecord9) | NDEF record created. For details, see *NFCForum-TS-NDEF_1.0*.| + +**Example** + +```js +import tag from '@ohos.nfc.tag'; + +try { + let uri = "https://gitee.com/openharmony"; // change it to be correct. + let ndefRecord = tag.ndef.makeUriRecord(uri); + if (ndefRecord != undefined) { + console.log("ndefMessage makeUriRecord rtdType: " + ndefRecord.rtdType); + console.log("ndefMessage makeUriRecord payload: " + ndefRecord.payload); + } else { + console.log("ndefMessage makeUriRecord ndefRecord: " + ndefRecord); + } +} catch (busiError) { + console.log("ndefMessage makeUriRecord catched busiError: " + busiError); +} +``` + +## tag.ndef.makeTextRecord9+ + +makeTextRecord(text: string, locale: string): [NdefRecord](#ndefrecord9); + +Creates an NDEF record based on the specified text data and encoding type. + +**System capability**: SystemCapability.Communication.NFC.Core + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ----------------------- | ---- | -------------------------------------- | +| text | string | Yes | Text to write to the NDEF record.| +| locale | string | Yes | Encoding mode of the text.| + +**Return value** + +| **Type**| **Description** | +| ------------------ | --------------------------| +| [NdefRecord](#ndefrecord9) | NDEF record created. For details, see *NFCForum-TS-NDEF_1.0*.| + +**Example** + +```js +import tag from '@ohos.nfc.tag'; + +try { + let text = "Hello World"; // change it to be correct. + let locale = "en"; // change it to be correct. + let ndefRecord = tag.ndef.makeTextRecord(text, locale); + if (ndefRecord != undefined) { + console.log("ndefMessage makeTextRecord rtdType: " + ndefRecord.rtdType); + console.log("ndefMessage makeTextRecord payload: " + ndefRecord.payload); + } else { + console.log("ndefMessage makeTextRecord ndefRecord: " + ndefRecord); + } +} catch (busiError) { + console.log("ndefMessage makeTextRecord catched busiError: " + busiError); +} +``` + + +## tag.ndef.makeMimeRecord9+ + +makeMimeRecord(mimeType: string, mimeData: number[]): [NdefRecord](#ndefrecord9); + +Creates an NDEF record based on the specified MIME data and type. + +**System capability**: SystemCapability.Communication.NFC.Core + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ----------------------- | ---- | -------------------------------------- | +| mimeType | string | Yes | MIME type that complies with RFC rules, for example, **text/plain** or **image/jpeg**.| +| mimeData | number[] | Yes | MIME data, which consists of hexadecimal numbers ranging from **0x00** to **0xFF**.| + +**Return value** + +| **Type**| **Description** | +| ------------------ | --------------------------| +| [NdefRecord](#ndefrecord9) | NDEF record created. For details, see *NFCForum-TS-NDEF_1.0*.| + +**Example** + +```js +import tag from '@ohos.nfc.tag'; + +try { + let mimeType = "text/plain"; // change it to be correct. + let mimeData = [0x01, 0x02, 0x03, 0x04]; // change it to be correct. + let ndefRecord = tag.ndef.makeMimeRecord(mimeType, mimeData); + if (ndefRecord != undefined) { + console.log("ndefMessage makeMimeRecord rtdType: " + ndefRecord.rtdType); + console.log("ndefMessage makeMimeRecord payload: " + ndefRecord.payload); + } else { + console.log("ndefMessage makeMimeRecord ndefRecord: " + ndefRecord); + } +} catch (busiError) { + console.log("ndefMessage makeMimeRecord catched busiError: " + busiError); +} +``` +## tag.ndef.makeExternalRecord9+ + +makeExternalRecord(domainName: string, type: string, externalData: number[]): [NdefRecord](#ndefrecord9); + +Creates an NDEF record based on application-specific data. + +**System capability**: SystemCapability.Communication.NFC.Core + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ----------------------- | ---- | -------------------------------------- | +| domainName | string | Yes | Bundle name of the application or domain name of the organization that releases the applications.| +| type | string | Yes | Type of the application data.| +| externalData | number[] | Yes | Application data, which consists of hexadecimal numbers ranging from **0x00** to **0xFF**.| + +**Return value** + +| **Type**| **Description** | +| ------------------ | --------------------------| +| [NdefRecord](#ndefrecord9) | NDEF record created. For details, see *NFCForum-TS-NDEF_1.0*.| + +**Example** + +```js +import tag from '@ohos.nfc.tag'; + +try { + let domainName = "ohos.nfc.application"; // change it to be correct. + let type = "test"; // change it to be correct. + let externalData = [0x01, 0x02, 0x03, 0x04]; // change it to be correct. + let ndefRecord = tag.ndef.makeExternalRecord(domainName, type, externalData); + if (ndefRecord != undefined) { + console.log("ndefMessage makeExternalRecord rtdType: " + ndefRecord.rtdType); + console.log("ndefMessage makeExternalRecord payload: " + ndefRecord.payload); + } else { + console.log("ndefMessage makeExternalRecord ndefRecord: " + ndefRecord); + } +} catch (busiError) { + console.log("ndefMessage makeExternalRecord catched busiError: " + busiError); +} +``` + +## tag.ndef.messageToBytes9+ + +messageToBytes(ndefMessage: [NdefMessage](js-apis-nfctech.md#ndefmessage9)): number[]; + +Converts an NDEF message to bytes. + +**System capability**: SystemCapability.Communication.NFC.Core + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ----------------------- | ---- | -------------------------------------- | +| ndefMessage | [NdefMessage](js-apis-nfctech.md#ndefmessage9) | Yes | NDEF message to convert.| + +**Return value** + +| **Type**| **Description** | +| ------------------ | --------------------------| +| number[] | NDEF message in bytes, which consists of hexadecimal numbers ranging from **0x00** to **0xFF**.| + +**Example** + +```js +import tag from '@ohos.nfc.tag'; + +let rawData = [0xD1, 0x01, 0x03, 0x54, 0x4E, 0x46, 0x43]; // MUST can be parsed as NDEF Record. +let ndefMessage; +try { + ndefMessage = tag.ndef.createNdefMessage(rawData); + console.log("ndef createNdefMessage, ndefMessage: " + ndefMessage); +} catch (busiError) { + console.log("ndef createNdefMessage busiError: " + busiError); +} + +try { + let rawData2 = tag.ndef.messageToBytes(ndefMessage); + console.log("ndefMessage messageToBytes rawData2: " + rawData2); +} catch (busiError) { + console.log("ndefMessage messageToBytes catched busiError: " + busiError); +} +``` +## tag.ndef.createNdefMessage9+ + +createNdefMessage(data: number[]): [NdefMessage](js-apis-nfctech.md#ndefmessage9) + +Creates an NDEF message from raw byte data. The data must comply with the NDEF record format. Otherwise, the NDE record list contained in the **NdefMessage** object will be empty. + +**System capability**: SystemCapability.Communication.NFC.Core + +**Parameters** + +| **Name**| **Type**| **Mandatory**| **Description**| +| -------- | -------- | -------- | -------- | +| data | number[] | Yes| Raw byte data, which consists of hexadecimal numbers ranging from **0x00** to **0xFF**. The data must comply with the NDEF record format.| + +**Return value** + +| **Type**| **Description** | +| ------------------ | --------------------------| +| [NdefMessage](js-apis-nfctech.md#ndefmessage9) | NDEF message created. For details, see *NFCForum-TS-NDEF_1.0*.| + +**Example** +```js +import tag from '@ohos.nfc.tag'; + +let rawData = [0xD1, 0x01, 0x03, 0x54, 0x4E, 0x46, 0x43]; // MUST can be parsed as NDEF Record. +let ndefMessage; +try { + ndefMessage = tag.ndef.createNdefMessage(rawData); + console.log("ndef createNdefMessage, ndefMessage: " + ndefMessage); +} catch (busiError) { + console.log("ndef createNdefMessage busiError: " + busiError); +} +``` + +## tag.ndef.createNdefMessage9+ + +createNdefMessage(ndefRecords: NdefRecord[]): [NdefMessage](js-apis-nfctech.md#ndefmessage9) + +Creates an NDEF message from the NDEF records list. + +**System capability**: SystemCapability.Communication.NFC.Core + +**Parameters** + +| **Name**| **Type**| **Mandatory**| **Description**| +| -------- | -------- | -------- | -------- | +| ndefRecords | [NdefRecord](js-apis-nfcTag.md#ndefrecord9)[] | Yes| NDEF record list used to create the NDEF message. For details, see *NFCForum-TS-NDEF_1.0*.| + +**Return value** + +| **Type**| **Description** | +| ------------------ | --------------------------| +| [NdefMessage](js-apis-nfctech.md#ndefmessage9) | NDEF message created. For details, see *NFCForum-TS-NDEF_1.0*.| + +**Example** + +```js +import tag from '@ohos.nfc.tag'; + +let uriRecord = tag.ndef.makeUriRecord("https://gitee.com/openharmony"); +let textRecord = tag.ndef.makeTextRecord("Hello World", "en"); +let ndefRecords = [uriRecord, textRecord]; +let ndefMessage; +try { + ndefMessage = tag.ndef.createNdefMessage(ndefRecords); + console.log("ndef createNdefMessage ndefMessage: " + ndefMessage); +} catch (busiError) { + console.log("ndef createNdefMessage busiError: " + busiError); +} +``` + +## TagInfo + +Defines the **TagInfo** object, which provides information about the tag technologies supported by a card. + +**System capability**: SystemCapability.Communication.NFC.Core **Required permissions**: ohos.permission.NFC_TAG +| **Name**| **Type**| **Readable**| **Writable**| **Description**| +| -------- | -------- | -------- | -------- | -------- | +| uid9+ | number[] | Yes| No| Tag unique identifier (UID), which consists of hexadecimal numbers ranging from **0x00** to **0xFF**.| +| technology9+ | number[] | Yes| No| Supported technologies. Each number is a constant indicating the supported technology.| +| supportedProfiles | number[] | Yes| No| Supported profiles. This parameter is not supported since API version 9. Use [tag.TagInfo#technology](#taginfo) instead.| +| extrasData9+ | [PacMap](js-apis-inner-ability-dataAbilityHelper.md#pacmap)[] | Yes| No| Extended attribute value of the tag technology.
**System API**: This is a system API.| +| tagRfDiscId9+ | number | Yes| No| ID allocated when the tag is discovered.
**System API**: This is a system API.| +| remoteTagService9+ | [rpc.RemoteObject](js-apis-rpc.md#remoteobject) | Yes| No| Remote object of the NFC service process used for interface communication between the client and the service.
**System API**: This is a system API.| +## NdefRecord9+ +Defines an NDEF record. For details, see *NFCForum-TS-NDEF_1.0*. + **System capability**: SystemCapability.Communication.NFC.Core -| **Name**| **Type**| **Description**| -| -------- | -------- | -------- | -| tnf | number | Type name field (TNF) of an NDEF record.| -| rtdType| number[] | Record type definition (RTD) of an NDEF record. Each number is a hexadecimal number ranging from **0x00** to **0xFF**.| -| id | number[] | ID of an NDEF record. Each number is a hexadecimal number ranging from **0x00** to **0xFF**.| -| payload | number[] | Payload of an NDEF record. Each number is a hexadecimal number ranging from **0x00** to **0xFF**.| + +| **Name**| **Type**| **Readable**| **Writable**| **Description**| +| -------- | -------- | -------- | -------- | -------- | +| tnf | number | Yes| No| Type name field (TNF) of the NDEF record.| +| rtdType| number[] | Yes| No| Record type definition (RTD) of the NDEF record. It consists of hexadecimal numbers ranging from **0x00** to **0xFF**.| +| id | number[] | Yes| No| NDEF record ID, which consists of hexadecimal numbers ranging from **0x00** to **0xFF**.| +| payload | number[] | Yes| No| NDEF payload, which consists of hexadecimal numbers ranging from **0x00** to **0xFF**.| ## Technology Type Definition Enumerates the tag technology types. -**Required permissions**: ohos.permission.NFC_TAG - **System capability**: SystemCapability.Communication.NFC.Core + | **Name**| **Value**| **Description**| | -------- | -------- | -------- | | NFC_A | 1 | NFC-A (ISO 14443-3A).| -| NFC_B | 2 | NFC-A (ISO 14443-3B).| +| NFC_B | 2 | NFC-B (ISO 14443-3B).| | ISO_DEP | 3 | ISO-DEP (ISO 14443-4).| | NFC_F | 4 | NFC-F (JIS 6319-4).| | NFC_V | 5 | NFC-V (ISO 15693).| | NDEF | 6 | NDEF.| +| NDEF_FORMATABLE9+ | 7 | NDEF formattable.| | MIFARE_CLASSIC | 8 | MIFARE Classic.| | MIFARE_ULTRALIGHT | 9 | MIFARE Ultralight.| -| NDEF_FORMATABLE9+ | 10 | NDEF formattable.| ## TnfType9+ Enumerates the TNF types. For details, see *NFCForum-TS-NDEF_1.0*. -**Required permissions**: ohos.permission.NFC_TAG - **System capability**: SystemCapability.Communication.NFC.Core + | **Name**| **Value**| **Description**| | -------- | -------- | -------- | | TNF_EMPTY | 0x0 | Empty.| -| TNF_WELL_KNOWN | 0x01 | NFC Forum Well Known Type [NFC RTD].| -| TNF_MEDIA | 0x02 | Media-type as defined in RFC 2046 [RFC 2046].| -| TNF_ABSOLUTE_URI | 0x03 | Absolute URI as defined in RFC 3986 [RFC 3986].| -| TNF_EXT_APP | 0x04 | NFC Forum external type [NFC RTD].| -| TNF_UNKNOWN | 0x05 | Unknown.| -| TNF_UNCHANGED | 0x06 | Unchanged (see section 2.3.3).| +| TNF_WELL_KNOWN | 0x1 | NFC Forum Well Known Type [NFC RTD].| +| TNF_MEDIA | 0x2 | Media-type as defined in RFC 2046 [RFC 2046].| +| TNF_ABSOLUTE_URI | 0x3 | Absolute URI as defined in RFC 3986 [RFC 3986].| +| TNF_EXT_APP | 0x4 | NFC Forum external type [NFC RTD].| +| TNF_UNKNOWN | 0x5 | Unknown.| +| TNF_UNCHANGED | 0x6 | Unchanged (see section 2.3.3 in *NFCForum-TS-NDEF_1.0*).| ## NDEF Record RTD Enumerates the NDEF record types. For details about the RTD, see *NFCForum-TS-NDEF_1.0*. -**Required permissions**: ohos.permission.NFC_TAG - **System capability**: SystemCapability.Communication.NFC.Core + | **Name**| **Value**| **Description**| | -------- | -------- | -------- | | RTD_TEXT9+ | [0x54] | NDEF record of the text type.| @@ -328,36 +687,33 @@ Enumerates the NDEF record types. For details about the RTD, see *NFCForum-TS-ND ## NfcForumType9+ Enumerates the NFC Forum tag types. -**Required permissions**: ohos.permission.NFC_TAG - **System capability**: SystemCapability.Communication.NFC.Core + | **Name**| **Value**| **Description**| | -------- | -------- | -------- | | NFC_FORUM_TYPE_1 | 1 | NFC Forum tag type 1.| | NFC_FORUM_TYPE_2 | 2 | NFC Forum tag type 2.| | NFC_FORUM_TYPE_3 | 3 | NFC Forum tag type 3.| | NFC_FORUM_TYPE_4 | 4 | NFC Forum tag type 4.| -| MIFARE_CLASSIC | 101 | MIFARE Classic type.| +| MIFARE_CLASSIC | 101 | MIFARE Classic.| ## MifareClassicType9+ Enumerates the MIFARE Classic tag types. -**Required permissions**: ohos.permission.NFC_TAG - **System capability**: SystemCapability.Communication.NFC.Core + | **Name**| **Value**| **Description**| | -------- | -------- | -------- | -| TYPE_UNKNOWN | -1 | Unknown type.| -| TYPE_CLASSIC | 0 | MIFARE Classic.| -| TYPE_PLUS | 1 | MIFARE Plus.| -| TYPE_PRO | 2 | MIFARE Pro.| +| TYPE_UNKNOWN | 0 | Unknown type.| +| TYPE_CLASSIC | 1 | MIFARE Classic.| +| TYPE_PLUS | 2 | MIFARE Plus.| +| TYPE_PRO | 3 | MIFARE Pro.| ## MifareClassicSize9+ -Enumerates the storage sizes of MIFARE Classic tags. - -**Required permissions**: ohos.permission.NFC_TAG +Enumerates the sizes of MIFARE Classic tags. **System capability**: SystemCapability.Communication.NFC.Core + | **Name**| **Value**| **Description**| | -------- | -------- | -------- | | MC_SIZE_MINI | 320 | Each tag has 5 sectors, and each sector has 4 blocks.| @@ -365,15 +721,14 @@ Enumerates the storage sizes of MIFARE Classic tags. | MC_SIZE_2K | 2048 | Each tag has 32 sectors, and each sector has 4 blocks.| | MC_SIZE_4K | 4096 | Each tag has 40 sectors, and each sector has 4 blocks.| -### MifareUltralightType9+ +## MifareUltralightType9+ Enumerates the MIFARE Ultralight tag types. -**Required permissions**: ohos.permission.NFC_TAG - **System capability**: SystemCapability.Communication.NFC.Core + | **Name**| **Value**| **Description**| | -------- | -------- | -------- | -| TYPE_UNKOWN | -1 | Unknown type.| +| TYPE_UNKNOWN | 0 | Unknown type.| | TYPE_ULTRALIGHT | 1 | MIFARE Ultralight.| | TYPE_ULTRALIGHT_C | 2 | MIFARE Ultralight C.| diff --git a/en/application-dev/reference/apis/js-apis-nfctech.md b/en/application-dev/reference/apis/js-apis-nfctech.md index 9817e5fd5c1f2a7f797f2c20fa7b6eff18dc25a5..e28864fc7bd2002838b7ae982bcb7b5269e2c086 100644 --- a/en/application-dev/reference/apis/js-apis-nfctech.md +++ b/en/application-dev/reference/apis/js-apis-nfctech.md @@ -1,11 +1,12 @@ -# NFC Tag Technologies +# nfctech The **nfctech** module provides APIs for reading and writing tags that use different Near-Field Communication (NFC) technologies. > **NOTE** +> > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. -## **Modules to Import** +## Modules to Import ```js import tag from '@ohos.nfc.tag'; @@ -13,11 +14,11 @@ import tag from '@ohos.nfc.tag'; ## NfcATag -Provides access to NFC-A (ISO 14443-3A) properties and I/O operations. This class inherits from **TagSession**. +Provides APIs to access NFC-A (ISO 14443-3A) properties and perform I/O operations on a tag. This class inherits from **[TagSession](js-apis-tagSession.md)**. **TagSession** is the base class of all NFC tag technologies. It provides common interfaces for establishing connections and transferring data. For more details, see [TagSession](js-apis-tagSession.md). -The following describes the unique interfaces of **NfcATag**. +The following describes the unique APIs of **NfcATag**. ### NfcATag.getSak @@ -40,8 +41,7 @@ Obtains the SAK value of this NFC-A tag. ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'nfcA' correctly. - +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'nfcA' correctly. let sak = nfcA.getSak(); console.log("nfcA sak: " + sak); ``` @@ -67,18 +67,18 @@ Obtains the ATQA value of this NFC-A tag. ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'nfcA' correctly. +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'nfcA' correctly. let atqa = nfcA.getAtqa(); console.log("nfcA atqa: " + atqa); ``` ## NfcBTag -Provides access to NFC-B (ISO 14443-3B) properties and I/O operations. This class inherits from **TagSession**. +Provides APIs to access NFC-B (ISO 14443-3B) properties and perform I/O operations on a tag. This class inherits from **TagSession**. **TagSession** is the base class of all NFC tag technologies. It provides common interfaces for establishing connections and transferring data. For more details, see [TagSession](js-apis-tagSession.md). -The following describes the unique interfaces of **NfcBTag**. +The following describes the unique APIs of **NfcBTag**. ### NfcBTag.getRespAppData @@ -94,14 +94,14 @@ Obtains the application data of this NFC-B tag. | **Type**| **Description** | | ------------------ | --------------------------| -| number[] | Application data obtained. Each number in the return result is a hexadecimal number ranging from **0x00** to **0xFF**.| +| number[] | Application data obtained, which consists of hexadecimal numbers ranging from **0x00** to **0xFF**.| **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'nfcB' correctly. +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'nfcB' correctly. let respAppData = nfcB.getRespAppData(); console.log("nfcB respAppData: " + respAppData); ``` @@ -120,25 +120,25 @@ Obtains the protocol information of this NFC-B tag. | **Type**| **Description** | | ------------------ | --------------------------| -| number[] | Protocol information obtained. Each number in the return result is a hexadecimal number ranging from **0x00** to **0xFF**.| +| number[] | Protocol information obtained, which consists of hexadecimal numbers ranging from **0x00** to **0xFF**.| **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'nfcB' correctly. +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'nfcB' correctly. let respProtocol = nfcB.getRespProtocol(); console.log("nfcB respProtocol: " + respProtocol); ``` ## NfcFTag -Provides access to NFC-F (JIS 6319-4) properties and I/O operations. This class inherits from **TagSession**. +Provides APIs to access NFC-F (JIS 6319-4) properties and perform I/O operations on a tag. This class inherits from **TagSession**. **TagSession** is the base class of all NFC tag technologies. It provides common interfaces for establishing connections and transferring data. For more details, see [TagSession](js-apis-tagSession.md). -The following describes the unique interfaces of **NfcFTag**. +The following describes the unique APIs of **NfcFTag**. ### NfcFTag.getSystemCode @@ -154,14 +154,14 @@ Obtains the system code from this NFC-F tag. | **Type**| **Description** | | ------------------ | --------------------------| -| number[] | System code obtained. Each number in the system code is a hexadecimal number ranging from **0x00** to **0xFF**.| +| number[] | System code obtained, which consists of hexadecimal numbers ranging from **0x00** to **0xFF**.| **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'nfcF' correctly. +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'nfcF' correctly. let systemCode = nfcF.getSystemCode(); console.log("nfcF systemCode: " + systemCode); ``` @@ -174,31 +174,31 @@ Obtains the PMm (consisting of the IC code and manufacturer parameters) informat **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Return value** | **Type**| **Description** | | ------------------ | --------------------------| -| number[] | PMm information obtained. Each number in the return result is a hexadecimal number ranging from **0x00** to **0xFF**.| +| number[] | PMm information obtained, which consists of hexadecimal numbers ranging from **0x00** to **0xFF**.| **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'nfcF' correctly. +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'nfcF' correctly. let pmm = nfcF.getPmm(); console.log("nfcF pmm: " + pmm); ``` ## NfcVTag -Provides access to NFC-V (ISO 15693) properties and I/O operations. This class inherits from **TagSession**. +Provides APIs to access NFC-V (ISO 15693) properties and perform I/O operations on a tag. This class inherits from **TagSession**. **TagSession** is the base class of all NFC tag technologies. It provides common interfaces for establishing connections and transferring data. For more details, see [TagSession](js-apis-tagSession.md). -The following describes the unique interfaces of **NfcVTag**. +The following describes the unique APIs of **NfcVTag**. ### NfcvTag.getResponseFlags @@ -208,20 +208,20 @@ Obtains the response flags from this NFC-V tag. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Return value** | **Type**| **Description** | | ------------------ | --------------------------| -| number | Response flags obtained. The value is a hexadecimal number ranging from **0x00** to **0xFF**.| +| number | Response flags obtained, which consist of hexadecimal numbers ranging from **0x00** to **0xFF**.| **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'nfcV' correctly. +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'nfcV' correctly. let responseFlags = nfcV.getResponseFlags(); console.log("nfcV responseFlags: " + responseFlags); ``` @@ -234,54 +234,52 @@ Obtains the data storage format identifier (DSFID) from this NFC-V tag. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Return value** | **Type**| **Description** | | ------------------ | --------------------------| -| number | DSFID obtained. The value is a hexadecimal number ranging from **0x00** to **0xFF**.| +| number | DSFID obtained, which consists of hexadecimal numbers ranging from **0x00** to **0xFF**.| **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'nfcV' correctly. +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'nfcV' correctly. let dsfId = nfcV.getDsfId(); console.log("nfcV dsfId: " + dsfId); ``` ## IsoDepTag9+ -Provides access to ISO-DEP (ISO 14443-4) properties and I/O operations. This class inherits from **TagSession**. +Provides APIs to access ISO-DEP (ISO 14443-4) properties and I/O operations on a tag. This class inherits from **TagSession**. **TagSession** is the base class of all NFC tag technologies. It provides common interfaces for establishing connections and transferring data. For more details, see [TagSession](js-apis-tagSession.md). -The following describes the unique interfaces of **IsoDepTag**. +The following describes the unique APIs of **IsoDepTag**. ### IsoDepTag.getHistoricalBytes9+ getHistoricalBytes(): number[] -Obtains the historical bytes of this tag. - -**Required permissions**: ohos.permission.NFC_TAG +Obtains the historical bytes for the given tag. This API applies only to the IsoDep cards that use the NFC-A technology. -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Return value** | **Type**| **Description** | | ------------------ | --------------------------| -| number[] | Historical bytes obtained. Each number in the return result is a hexadecimal number ranging from **0x00** to **0xFF**.| +| number[] | Historical bytes obtained, which consist of hexadecimal numbers ranging from **0x00** to **0xFF**. If the IsoDep tag uses the NFC-B technology, **null** will be returned.| **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'isoDep' correctly. +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'isoDep' correctly. let historicalBytes = isoDep.getHistoricalBytes(); console.log("isoDep historicalBytes: " + historicalBytes); ``` @@ -290,24 +288,22 @@ console.log("isoDep historicalBytes: " + historicalBytes); getHiLayerResponse(): number[] -Obtains the HiLayer response of this tag. - -**Required permissions**: ohos.permission.NFC_TAG +Obtains the higher-layer response bytes for the given tag. This API applies only to the IsoDep cards that use the NFC-B technology. -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Return value** | **Type**| **Description** | | ------------------ | --------------------------| -| number[] | HiLayer response obtained. Each number in the return result is a hexadecimal number ranging from **0x00** to **0xFF**.| +| number[] | Higher-layer response bytes obtained, which consist of hexadecimal numbers ranging from **0x00** to **0xFF**. If the IsoDep tag uses the NFC-A technology, **null** will be returned.| **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'isoDep' correctly. +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'isoDep' correctly. let hiLayerResponse = isoDep.getHiLayerResponse(); console.log("isoDep hiLayerResponse: " + hiLayerResponse); ``` @@ -320,7 +316,7 @@ Checks whether an extended application protocol data unit (APDU) is supported. T **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Return value** @@ -328,18 +324,39 @@ Checks whether an extended application protocol data unit (APDU) is supported. T | ------------------ | --------------------------| | Promise<boolean> | Promise used to return the result. If the extended APDU is supported, **true** is returned; otherwise, **false** is returned.| +**Error codes** + +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | + **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'isoDep' correctly. -isoDep.isExtendedApduSupported() - .then((data) => { - console.log("isoDep isExtendedApduSupported data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'isoDep' correctly. + +// Connect to the tag if it is not connected. +if (!isoDep.isTagConnected()) { + if (!isoDep.connectTag()) { + console.log("isoDep connectTag failed."); + return; + } +} + +try { + isoDep.isExtendedApduSupported().then((response) => { + console.log("isoDep isExtendedApduSupported Promise response: " + response); }).catch((err)=> { - console.log("isoDep isExtendedApduSupported err: " + err); + console.log("isoDep isExtendedApduSupported Promise err: " + err); }); +} catch (busiError) { + console.log("isoDep isExtendedApduSupported Promise busiError: " + busiError); +} + ``` ### IsoDepTag.isExtendedApduSupported9+ @@ -350,7 +367,7 @@ Checks whether an extended APDU is supported. This API uses an asynchronous call **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** @@ -358,251 +375,159 @@ Checks whether an extended APDU is supported. This API uses an asynchronous call | -------- | ----------------------- | ---- | -------------------------------------- | | callback | AsyncCallback\ | Yes | Callback invoked to return the result. If the extended APDU is supported, **true** is returned; otherwise, **false** is returned.| -```js -import tag from '@ohos.nfc.tag'; - -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'isoDep' correctly. -isoDep.isExtendedApduSupported((err, data)=> { - if (err) { - console.log("isoDep isExtendedApduSupported err: " + err); - } else { - console.log("isoDep isExtendedApduSupported data: " + data); - } -}); -``` - -## NdefTag9+ - -Provides access to the tags in the NFC Data Exchange Format (NDEF). This class inherits from **TagSession**. - -**TagSession** is the base class of all NFC tag technologies. It provides common interfaces for establishing connections and transferring data. For more details, see [TagSession](js-apis-tagSession.md). - -The following describes the unique interfaces of **NdefTag**. - -### NdefTag.createNdefMessage9+ - -createNdefMessage(data: number[]): [NdefMessage](#ndefmessage9) +**Error codes** -Creates an NDEF message using raw bytes. +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). -**Required permissions**: ohos.permission.NFC_TAG - -**System capability**: SystemCapability.Communication.NFC - -**Parameters** - -| **Name**| **Type**| **Mandatory**| **Description**| -| -------- | -------- | -------- | -------- | -| data | number[] | Yes| Raw bytes used to create the message. Each number is a hexadecimal number ranging from **0x00** to **0xFF**.| - -**Return value** - -| **Type**| **Description** | -| ------------------ | --------------------------| -| [NdefMessage](#ndefmessage9) | NDEF message created. For details, see *NFCForum-TS-NDEF_1.0*.| +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -let rawData = [0x00, 0xa4, 0x04, ......]; // change the raw data bytes tobe correct. -let ndefMessage = ndef.createNdefMessage(rawData); -console.log("ndef ndefMessage: " + ndefMessage); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'isoDep' correctly. + +// Connect to the tag if it is not connected. +if (!isoDep.isTagConnected()) { + if (!isoDep.connectTag()) { + console.log("isoDep connectTag failed."); + return; + } +} + +try { + isoDep.isExtendedApduSupported((err, response)=> { + if (err) { + console.log("isoDep isExtendedApduSupported AsyncCallback err: " + err); + } else { + console.log("isoDep isExtendedApduSupported AsyncCallback response: " + response); + } + }); +} catch (busiError) { + console.log("isoDep isExtendedApduSupported AsyncCallback busiError: " + busiError); +} ``` ## NdefMessage9+ ### NdefMessage.getNdefRecords9+ -getNdefRecords(): [NdefRecord](js-apis-nfcTag.md#ndefrecord9)[ ] +getNdefRecords(): [tag.NdefRecord](js-apis-nfcTag.md#ndefrecord9)[] Obtains all NDEF records. -**Required permissions**: ohos.permission.NFC_TAG - -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Return value** | **Type**| **Description** | | ------------------ | --------------------------| -| [NdefRecord](js-apis-nfcTag.md#ndefrecord9)[ ] | List of NDEF records obtained. For details, see *NFCForum-TS-NDEF_1.0*.| +| [tag.NdefRecord](js-apis-nfcTag.md#ndefrecord9)[] | List of NDEF records obtained. For details, see *NFCForum-TS-NDEF_1.0*.| **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -let ndefRecords = ndef.getNdefRecords(); +// Obtain ndefMessage from tag.ndef.createNdefMessage or ndefTag.getNdefMessage. +// var ndefMessage = tag.ndef.createNdefMessage(...); +// var ndefMessage = ndefTag.getNdefMessage(); + +let ndefRecords = ndefMessage.getNdefRecords(); console.log("ndef ndefRecords number: " + ndefRecords.length); ``` -### NdefTag.createNdefMessage9+ - -createNdefMessage(ndefRecords: NdefRecord[]): [NdefMessage](#ndefmessage9) - -Creates an NDEF message using the NDEF records. - -**Required permissions**: ohos.permission.NFC_TAG - -**System capability**: SystemCapability.Communication.NFC - -**Parameters** -| **Name**| **Type**| **Mandatory**| **Description**| -| -------- | -------- | -------- | -------- | -| ndefRecords | [NdefRecord](js-apis-nfcTag.md#ndefrecord9)[] | Yes| NDEF records used to create the NDEF message. For details, see *NFCForum-TS-NDEF_1.0*.| - -**Return value** - -| **Type**| **Description** | -| ------------------ | --------------------------| -| [NdefMessage](#ndefmessage9) | NDEF message created. For details, see *NFCForum-TS-NDEF_1.0*.| - -**Example** +## NdefTag9+ -```js -import tag from '@ohos.nfc.tag'; +Provides APIs to access the tags in the NFC Data Exchange Format (NDEF). This class inherits from **TagSession**. -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -let ndefRecords = [ - // record format: tnf, rtdType, id, payload - // 1st record: - {tnf: 0x01, rtdType: [0x54], id: [0x01, 0x02, ...], payload: [0x00, 0xa4, 0x04, ...]}, +**TagSession** is the base class of all NFC tag technologies. It provides common interfaces for establishing connections and transferring data. For more details, see [TagSession](js-apis-tagSession.md). - // 2nd record: - {tnf: 0x02, rtdType: [0x55], id: [0x03, 0x04, ...], payload: [0x00, 0xa4, 0x04, ...]}, - - // other record if has one ... -]; -let ndefMessage = ndef.createNdefMessage(ndefRecords); -console.log("ndef ndefMessage: " + ndefMessage); -``` +The following describes the unique APIs of **NdefTag**. ### NdefTag.getNdefTagType9+ -getNdefTagType(): NfcForumType +getNdefTagType(): [tag.NfcForumType](js-apis-nfcTag.md#nfcforumtype9) -Obtains the type of this NDEF tag. +Obtains the NDEF tag type. -**Required permissions**: ohos.permission.NFC_TAG - -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Return value** | **Type**| **Description** | | ------------------ | --------------------------| -| [NfcForumType](js-apis-nfcTag.md#nfcforumtype9) | NDEF tag type obtained. It can be NFC FORUM TYPE 1, 2, 3, or 4.| +| [tag.NfcForumType](js-apis-nfcTag.md#nfcforumtype9) | NDEF tag type obtained. It can be NFC FORUM TYPE 1, 2, 3, or 4.| **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -let ndefTagType = ndef.getNdefTagType(); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'ndefTag' correctly. +let ndefTagType = ndefTag.getNdefTagType(); console.log("ndef ndefTagType: " + ndefTagType); ``` ### NdefTag.getNdefMessage9+ -getNdefMessage(): NdefMessage +getNdefMessage(): [NdefMessage](#ndefmessage9) -Obtains the NDEF message. +Obtains the NDEF message from this NDEF tag. -**Required permissions**: ohos.permission.NFC_TAG - -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Return value** | **Type**| **Description** | | ------------------ | --------------------------| -| [NdefMessage](#ndefmessage9) | NDEF message obtained. For details, see *NFCForum-TS-NDEF_1.0*.| +| [NdefMessage](#ndefmessage9) | NDEF message created. For details, see *NFCForum-TS-NDEF_1.0*.| **Example** - ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -let ndefMessage = ndef.getNdefMessage(); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'ndefTag' correctly. +let ndefMessage = ndefTag.getNdefMessage(); console.log("ndef ndefMessage: " + ndefMessage); ``` ### NdefTag.isNdefWritable9+ -isNdefWritable(): Promise<boolean> - -Checks whether the NDEF tag is writable. This API uses a promise to return the result. +isNdefWritable(): boolean; -**Required permissions**: ohos.permission.NFC_TAG +Check whether this NDEF tag is writable. Before calling the data write API, check whether the write operation is supported. -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Return value** | **Type**| **Description** | | ------------------ | --------------------------| -| Promise<boolean> | Promise used to return the result. If the tag is writable, **true** is returned; otherwise, **false** is returned.| - -**Example** - -```js -import tag from '@ohos.nfc.tag'; - -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -ndef.isNdefWritable() - .then((data) => { - console.log("ndef isNdefWritable data: " + data); - }).catch((err)=> { - console.log("ndef isNdefWritable err: " + err); - }); -``` - -### NdefTag.isNdefWritable9+ - -isNdefWritable(callback: AsyncCallback<boolean>): void; - -Checks whether the NDEF tag is writable. This API uses an asynchronous callback to return the result. - -**Required permissions**: ohos.permission.NFC_TAG - -**System capability**: SystemCapability.Communication.NFC - -**Parameters** - -| Name | Type | Mandatory| Description | -| -------- | ----------------------- | ---- | -------------------------------------- | -| callback | AsyncCallback\ | Yes | Callback invoked to return the result. If the tag is writable, **true** is returned; otherwise, **false** is returned.| +| boolean | Promise used to return the result. If the tag is writable, **true** is returned; otherwise, **false** is returned.| **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -ndef.isNdefWritable((err, data)=> { - if (err) { - console.log("ndef isNdefWritable err: " + err); - } else { - console.log("ndef isNdefWritable data: " + data); - } -}); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'ndefTag' correctly. +var isWritable = ndefTag.isNdefWritable(); +console.log("ndef isNdefWritable: " + isWritable); ``` ### NdefTag.readNdef9+ -readNdef(): Promise\ +readNdef(): Promise\<[NdefMessage](#ndefmessage9)> Reads the NDEF message from this tag. This API uses a promise to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Return value** @@ -610,18 +535,38 @@ Reads the NDEF message from this tag. This API uses a promise to return the resu | ------------------ | --------------------------| | Promise\<[NdefMessage](#ndefmessage9)> | Promise used to return the message read.| +**Error codes** + +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | + **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -ndef.readNdef() - .then((data) => { - console.log("ndef readNdef data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'ndefTag' correctly. + +// Connect to the tag if it is not connected. +if (!ndefTag.isTagConnected()) { + if (!ndefTag.connectTag()) { + console.log("ndefTag connectTag failed."); + return; + } +} + +try { + ndefTag.readNdef().then((ndefmessage) => { + console.log("ndef readNdef Promise ndefmessage: " + ndefmessage); }).catch((err)=> { - console.log("ndef readNdef err: " + err); + console.log("ndef readNdef Promise err: " + err); }); +} catch (busiError) { + console.log("ndef readNdef Promise catched busiError: " + busiError); +} ``` ### NdefTag.readNdef9+ @@ -632,38 +577,59 @@ Reads the NDEF message from this tag. This API uses an asynchronous callback to **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| callback | AsyncCallback\<[NdefMessage](#ndefmessage9)> | Yes | Callback invoked to return the result.| +| callback | AsyncCallback\<[NdefMessage](#ndefmessage9)> | Yes | Callback invoked to return the NDEF message read.| + +**Error codes** + +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -ndef.readNdef((err, data)=> { - if (err) { - console.log("ndef readNdef err: " + err); - } else { - console.log("ndef readNdef data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'ndefTag' correctly. + +// Connect to the tag if it is not connected. +if (!ndefTag.isTagConnected()) { + if (!ndefTag.connectTag()) { + console.log("ndefTag connectTag failed."); + return; } -}); +} + +try { + ndefTag.readNdef((err, ndefmessage)=> { + if (err) { + console.log("ndef readNdef AsyncCallback err: " + err); + } else { + console.log("ndef readNdef AsyncCallback ndefmessage: " + ndefmessage); + } + }); +} catch (busiError) { + console.log("ndef readNdef AsyncCallback catched busiError: " + busiError); +} ``` ### NdefTag.writeNdef9+ -writeNdef(msg: NdefMessage): Promise\; +writeNdef(msg: NdefMessage): Promise\; Writes an NDEF message to this tag. This API uses a promise to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** @@ -671,59 +637,97 @@ Writes an NDEF message to this tag. This API uses a promise to return the result | -------- | ----------------------- | ---- | -------------------------------------- | | msg | NdefMessage | Yes | NDEF message to write.| -**Return value** +**Error codes** -| **Type**| **Description** | -| ------------------ | --------------------------| -| Promise\ | Promise used to return the result. If **0** is returned, the operation is successful. If the operation fails, an error code is returned.| +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -let ndefMessage = ndef.createNdefMessage([0x01, 0x02, ...]); // change the raw data to be correct. +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'ndefTag' correctly. +// NDEF message created from raw data, such as: +let ndefMessage = tag.ndef.createNdefMessage([0xD1, 0x01, 0x03, 0x54, 0x4E, 0x46, 0x43]); // It must be parsed as NDEF Record. +// or ndefMessage created from tag.ndef.createNdefMessage(ndefRecords: NdefRecord[]) -ndef.writeNdef(ndefMessage) - .then((data) => { - console.log("ndef writeNdef data: " + data); +// Connect to the tag if it is not connected. +if (!ndefTag.isTagConnected()) { + if (!ndefTag.connectTag()) { + console.log("ndefTag connectTag failed."); + return; + } +} + +try { + ndefTag.writeNdef(ndefMessage).then(() => { + console.log("ndef writeNdef Promise success."); }).catch((err)=> { console.log("ndef writeNdef err: " + err); }); +} catch (busiError) { + console.log("ndef writeNdef Promise catch busiError: " + busiError); +} ``` ### NdefTag.writeNdef9+ -writeNdef(msg: NdefMessage, callback: AsyncCallback\): void +writeNdef(msg: [NdefMessage](#ndefmessage9), callback: AsyncCallback\): void Writes an NDEF message to this tag. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| msg | NdefMessage | Yes | NDEF message to write.| -| callback | AsyncCallback\ | Yes | Callback invoked to return the result.| +| msg | [NdefMessage](#ndefmessage9) | Yes | NDEF message to write.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result.| + +**Error codes** + +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -let ndefMessage = ndef.createNdefMessage([0x01, 0x02, ...]); // change the raw data to be correct. -ndef.writeNdef(ndefMessage, (err, data)=> { - if (err) { - console.log("ndef writeNdef err: " + err); - } else { - console.log("ndef writeNdef data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'ndefTag' correctly. +// NDEF message created from raw data, such as: +let ndefMessage = tag.ndef.createNdefMessage([0xD1, 0x01, 0x03, 0x54, 0x4E, 0x46, 0x43]); // It must be parsed as NDEF Record. +// or ndefMessage created from tag.ndef.createNdefMessage(ndefRecords: NdefRecord[]) + +// Connect to the tag if it is not connected. +if (!ndefTag.isTagConnected()) { + if (!ndefTag.connectTag()) { + console.log("ndefTag connectTag failed."); + return; } -}); +} + +try { + ndefTag.writeNdef(ndefMessage, (err)=> { + if (err) { + console.log("ndef writeNdef AsyncCallback err: " + err); + } else { + console.log("ndef writeNdef AsyncCallback success."); + } + }); +} catch (busiError) { + console.log("ndef writeNdef AsyncCallback catch busiError: " + busiError); +} ``` ### NdefTag.canSetReadOnly9+ @@ -734,7 +738,7 @@ Checks whether this NDEF tag can be set to read-only. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Return value** @@ -742,92 +746,133 @@ Checks whether this NDEF tag can be set to read-only. | ------------------ | --------------------------| | boolean| Returns **true** if the tag can be set to read-only; returns **false** otherwise.| +**Error codes** + +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | + **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -var canSetReadOnly = ndef.canSetReadOnly(); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'ndefTag' correctly. +var canSetReadOnly = ndefTag.canSetReadOnly(); console.log("ndef canSetReadOnly: " + canSetReadOnly); ``` ### NdefTag.setReadOnly9+ -setReadOnly(): Promise\ +setReadOnly(): Promise\ Sets this NDEF tag to read-only. This API uses a promise to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core -**Return value** +**Error codes** -| **Type**| **Description** | -| ------------------ | --------------------------| -| Promise<number> | Promise used to return the result. If the operation is successful, **0** is returned; otherwise, an error code is returned.| +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -ndef.setReadOnly() - .then((data) => { - console.log("ndef setReadOnly data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'ndefTag' correctly. + +// Connect to the tag if it is not connected. +if (!ndefTag.isTagConnected()) { + if (!ndefTag.connectTag()) { + console.log("ndefTag connectTag failed."); + return; + } +} + +try { + ndefTag.setReadOnly().then(() => { + console.log("ndef setReadOnly Promise success."); }).catch((err)=> { - console.log("ndef setReadOnly err: " + err); + console.log("ndef setReadOnly Promise err: " + err); }); +} catch (busiError) { + console.log("ndef setReadOnly Promise catch busiError: " + busiError); +} ``` ### NdefTag.setReadOnly9+ -setReadOnly(callback: AsyncCallback\): void +setReadOnly(callback: AsyncCallback\): void Sets this NDEF tag to read-only. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| callback | AsyncCallback\ | Yes | Callback invoked to return the result.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result.| + +**Error codes** + +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -ndef.setReadOnly((err, data)=> { - if (err) { - console.log("ndef setReadOnly err: " + err); - } else { - console.log("ndef setReadOnly data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'ndefTag' correctly. + +// Connect to the tag if it is not connected. +if (!ndefTag.isTagConnected()) { + if (!ndefTag.connectTag()) { + console.log("ndefTag connectTag failed."); + return; } -}); +} + +try { + ndefTag.setReadOnly((err)=> { + if (err) { + console.log("ndef setReadOnly AsyncCallback err: " + err); + } else { + console.log("ndef setReadOnly AsyncCallback success."); + } + }); +} catch (busiError) { + console.log("ndef setReadOnly AsyncCallback catch busiError: " + busiError); +} ``` ### NdefTag.getNdefTagTypeString9+ -getNdefTagTypeString(type: [NfcForumType](js-apis-nfcTag.md#nfcforumtype9)): string - -Converts an NFC Forum Type tag to a byte array defined in the NFC Forum. +getNdefTagTypeString(type: [tag.NfcForumType](js-apis-nfcTag.md#nfcforumtype9)): string -**Required permissions**: ohos.permission.NFC_TAG +Converts an NFC Forum Type tag to a string defined in the NFC Forum. -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| type | [NfcForumType](js-apis-nfcTag.md#nfcforumtype9) | Yes | NDEF tag type. It can be NFC FORUM type 1, 2, 3, or 4.| +| type | [tag.NfcForumType](js-apis-nfcTag.md#nfcforumtype9) | Yes | NDEF tag type. It can be NFC FORUM type 1, 2, 3, or 4.| **Return value** @@ -840,110 +885,149 @@ Converts an NFC Forum Type tag to a byte array defined in the NFC Forum. ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -let ndefTypeString = ndef.getNdefTagTypeString(tag.NFC_FORUM_TYPE_1); -console.log("ndef ndefTypeString: " + ndefTypeString); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'ndefTag' correctly. + +try { + let ndefTypeString = ndefTag.getNdefTagTypeString(tag.NFC_FORUM_TYPE_1); + console.log("ndef ndefTypeString: " + ndefTypeString); +} catch (busiError) { + console.log("ndef getNdefTagTypeString catch busiError: " + busiError); +} ``` ## MifareClassicTag9+ -Provides access to MIFARE Classic properties and I/O operations. This class inherits from **TagSession**. +Provides APIs to access MIFARE Classic properties and perform I/O operations on a tag. This class inherits from [TagSession](js-apis-tagSession.md). **TagSession** is the base class of all NFC tag technologies. It provides common interfaces for establishing connections and transferring data. For more details, see [TagSession](js-apis-tagSession.md). -The following describes the unique interfaces of **MifareClassicTag**. +The following describes the unique APIs of **MifareClassicTag**. ### MifareClassicTag.authenticateSector9+ -authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean): Promise\ +authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean): Promise\ -Authenticates a sector using the key. The sector can be accessed only after the authentication is successful. This API uses a promise to return the result. +Authenticates a sector using a key. The sector can be accessed only after the authentication is successful. This API uses a promise to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| sectorIndex | number | Yes | Index of the sector to authenticate.| -| key | number[]| Yes | Key (6 bytes) used for authentication.| +| sectorIndex | number | Yes | Index of the sector to authenticate. The sector indexes start from **0**.| +| key | number[]| Yes | Key (6 bytes) used for sector authentication.| | isKeyA | boolean | Yes | Whether the key is key A. The value **true** indicates key A, and **false** indicates key B.| -**Return value** +**Error codes** -| **Type**| **Description** | -| ------------------ | --------------------------| -| Promise\ | Promise used to return the result. If the authentication is successful, **true** is returned. Otherwise, **false** is returned.| +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. -let sectorIndex = 1; // change it to be correct index. -let key = [0x04, 0x05, ....]; // change it to be correct key. -mifareClassic.authenticateSector(sectorIndex, key, true); - .then((data) => { - console.log("mifareClassic authenticateSector data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. + +// Connect to the tag if it is not connected. +if (!mifareClassic.isTagConnected()) { + if (!mifareClassic.connectTag()) { + console.log("mifareClassic connectTag failed."); + return; + } +} + +try { + let sectorIndex = 1; // Change it as required. + let key = [0x01, 0x02, 0x03, 0x04, 0x05, 0x06] // The key must be of 6 bytes. + mifareClassic.authenticateSector(sectorIndex, key, true).then(() => { + console.log("mifareClassic authenticateSector Promise success."); }).catch((err)=> { - console.log("mifareClassic authenticateSector err: " + err); + console.log("mifareClassic authenticateSector Promise err: " + err); }); +} catch (busiError) { + console.log("mifareClassic authenticateSector Promise catch busiError: " + busiError); +} ``` ### MifareClassicTag.authenticateSector9+ -authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean, callback: AsyncCallback\): void +authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean, callback: AsyncCallback\): void -Authenticates a sector using the key. The sector can be accessed only after the authentication is successful. This API uses an asynchronous callback to return the result. +Authenticates a sector using a key. The sector can be accessed only after the authentication is successful. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| sectorIndex | number | Yes | Index of the sector to authenticate.| -| key | number[]| Yes | Key (6 bytes) used for authentication.| +| sectorIndex | number | Yes | Index of the sector to authenticate. The sector indexes start from **0**.| +| key | number[]| Yes | Key (6 bytes) used for sector authentication.| | isKeyA | boolean | Yes | Whether the key is key A. The value **true** indicates key A, and **false** indicates key B.| -| callback | AsyncCallback\ | Yes | Callback invoked to return the result.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result.| -**Example** +**Error codes** +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | + +**Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. -let sectorIndex = 1; // change it to be correct index. -let key = [0x04, 0x05, ....]; // change it to be correct key. -mifareClassic.authenticateSector(sectorIndex, key, true, (err, data)=> { - if (err) { - console.log("mifareClassic authenticateSector err: " + err); - } else { - console.log("mifareClassic authenticateSector data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. + +// Connect to the tag if it is not connected. +if (!mifareClassic.isTagConnected()) { + if (!mifareClassic.connectTag()) { + console.log("mifareClassic connectTag failed."); + return; } -}); +} + +try { + let sectorIndex = 1; // Change it as required. + let key = [0x01, 0x02, 0x03, 0x04, 0x05, 0x06] // The key must be of 6 bytes. + mifareClassic.authenticateSector(sectorIndex, key, true, (err)=> { + if (err) { + console.log("mifareClassic authenticateSector AsyncCallback err: " + err); + } else { + console.log("mifareClassic authenticateSector AsyncCallback success."); + } + }); +} catch (busiError) { + console.log("mifareClassic authenticateSector AsyncCallback catch busiError: " + busiError); +} ``` ### MifareClassicTag.readSingleBlock9+ readSingleBlock(blockIndex: number): Promise\ -Reads a block (16 bytes) on the tag. This API uses a promise to return the result. +Reads a block (16 bytes) on this tag. This API uses a promise to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| blockIndex | number | Yes | Index of the block to read.| +| blockIndex | number | Yes | Index of the block to read. The block indexes start from **0**.| **Return value** @@ -951,421 +1035,632 @@ Reads a block (16 bytes) on the tag. This API uses a promise to return the resul | ------------------ | --------------------------| | Promise\ | Promise used to return the block data read.| +**Error codes** + +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | + **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. -let blockIndex = 1; // change it to be correct index. -mifareClassic.readSingleBlock(blockIndex, (err, data)=> { - if (err) { - console.log("mifareClassic readSingleBlock err: " + err); - } else { - console.log("mifareClassic readSingleBlock data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. + +// Connect to the tag if it is not connected. +if (!mifareClassic.isTagConnected()) { + if (!mifareClassic.connectTag()) { + console.log("mifareClassic connectTag failed."); + return; } -}); +} + +try { + let blockIndex = 1; // Change it as required. + mifareClassic.readSingleBlock(blockIndex).then((data) => { + console.log("mifareClassic readSingleBlock Promise data: " + data); + }).catch((err)=> { + console.log("mifareClassic readSingleBlock Promise err: " + err); + }); +} catch (busiError) { + console.log("mifareClassic readSingleBlock Promise catch busiError: " + busiError); +} ``` ### MifareClassicTag.readSingleBlock9+ readSingleBlock(blockIndex: number, callback: AsyncCallback\): void -Reads a block (16 bytes) on the tag. This API uses an asynchronous callback to return the result. +Reads a block (16 bytes) on this tag. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| blockIndex | number | Yes | Index of the block to read.| +| blockIndex | number | Yes | Index of the block to read. The block indexes start from **0**.| | callback | AsyncCallback\ | Yes | Callback invoked to return the block read.| +**Error codes** + +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | + **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. -let blockIndex = 1; // change it to be correct index. -mifareClassic.readSingleBlock(blockIndex, (err, data)=> { - if (err) { - console.log("mifareClassic readSingleBlock err: " + err); - } else { - console.log("mifareClassic readSingleBlock data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. + +// Connect to the tag if it is not connected. +if (!mifareClassic.isTagConnected()) { + if (!mifareClassic.connectTag()) { + console.log("mifareClassic connectTag failed."); + return; } -}); +} + +try { + let blockIndex = 1; // Change it as required. + mifareClassic.readSingleBlock(blockIndex, (err, data)=> { + if (err) { + console.log("mifareClassic readSingleBlock AsyncCallback err: " + err); + } else { + console.log("mifareClassic readSingleBlock AsyncCallback data: " + data); + } + }); +} catch (busiError) { + console.log("mifareClassic readSingleBlock AsyncCallback catch busiError: " + busiError); +} ``` ### MifareClassicTag.writeSingleBlock9+ -writeSingleBlock(blockIndex: number, data: number[]): Promise\ +writeSingleBlock(blockIndex: number, data: number[]): Promise\ -Writes data to a block on the tag. This API uses a promise to return the result. +Writes data to a block on this tag. This API uses a promise to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| blockIndex | number | Yes | Index of the target block.| -| data | number[] | Yes | Data to write.| +| blockIndex | number | Yes | Index of the target block. The block indexes start from **0**.| +| data | number[] | Yes | 16-byte data to write.| -**Return value** +**Error codes** -| **Type**| **Description** | -| ------------------ | --------------------------| -| Promise\ | Promise used to return the result. If **0** is returned, the operation is successful. If the operation fails, an error code is returned.| +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. -let blockIndex = 1; // change it to be correct index. -let rawData = [0x0a, 0x14, ...]; // change it to be correct data. -mifareClassic.writeSingleBlock(blockIndex, rawData, (err, data)=> { - if (err) { - console.log("mifareClassic writeSingleBlock err: " + err); - } else { - console.log("mifareClassic writeSingleBlock data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. + +// Connect to the tag if it is not connected. +if (!mifareClassic.isTagConnected()) { + if (!mifareClassic.connectTag()) { + console.log("mifareClassic connectTag failed."); + return; } -}); +} + +try { + let blockIndex = 1; // Change it as required. + let rawData = [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, + 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10]; // MUST be 16 bytes, change it to be correct data. + mifareClassic.writeSingleBlock(blockIndex, rawData).then(() => { + console.log("mifareClassic writeSingleBlock Promise success."); + }).catch((err)=> { + console.log("mifareClassic writeSingleBlock Promise err: " + err); + }); +} catch (busiError) { + console.log("mifareClassic writeSingleBlock Promise catch busiError: " + busiError); +} ``` ### MifareClassicTag.writeSingleBlock9+ -writeSingleBlock(blockIndex: number, data: number[], callback: AsyncCallback\): void +writeSingleBlock(blockIndex: number, data: number[], callback: AsyncCallback\): void -Writes data to a block on the tag. This API uses an asynchronous callback to return the result. +Writes data to a block on this tag. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| blockIndex | number | Yes | Index of the target block.| -| data | number[] | Yes | Data to write.| -| callback | AsyncCallback\ | Yes | Callback invoked to return the result.| +| blockIndex | number | Yes | Index of the target block. The block indexes start from **0**.| +| data | number[] | Yes | 16-byte data to write.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result.| + +**Error codes** + +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. -let blockIndex = 1; // change it to be correct index. -let rawData = [0x0a, 0x14, ...]; // change it to be correct data. -mifareClassic.writeSingleBlock(blockIndex, rawData, (err, data)=> { - if (err) { - console.log("mifareClassic writeSingleBlock err: " + err); - } else { - console.log("mifareClassic writeSingleBlock data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. + +// Connect to the tag if it is not connected. +if (!mifareClassic.isTagConnected()) { + if (!mifareClassic.connectTag()) { + console.log("mifareClassic connectTag failed."); + return; } -}); +} + +try { + let blockIndex = 1; // Change it as required. + let rawData = [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, + 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10]; // MUST be 16 bytes, change it to be correct data. + mifareClassic.writeSingleBlock(blockIndex, rawData, (err)=> { + if (err) { + console.log("mifareClassic writeSingleBlock AsyncCallback err: " + err); + } else { + console.log("mifareClassic writeSingleBlock AsyncCallback success."); + } + }); +} catch (busiError) { + console.log("mifareClassic writeSingleBlock AsyncCallback catch busiError: " + busiError); +} ``` ### MifareClassicTag.incrementBlock9+ -incrementBlock(blockIndex: number, value: number): Promise\ +incrementBlock(blockIndex: number, value: number): Promise\ Increments a block with data. This API uses a promise to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| blockIndex | number | Yes | Index of the block to increment.| -| value | number | Yes | Block data to increment. The value is a non-negative number.| +| blockIndex | number | Yes | Index of the block to increment. The block indexes start from **0**.| +| value | number | Yes | Block data to increment. The value cannot be a negative number.| -**Return value** +**Error codes** -| **Type**| **Description** | -| ------------------ | --------------------------| -| Promise\ | Promise used to return the result. If **0** is returned, the operation is successful. If the operation fails, an error code is returned.| +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. -let blockIndex = 1; // change it to be correct index. -let value = 0x20; // change it to be correct data. -mifareClassic.incrementBlock(blockIndex, value, (err, data)=> { - if (err) { - console.log("mifareClassic incrementBlock err: " + err); - } else { - console.log("mifareClassic incrementBlock data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. + +// Connect to the tag if it is not connected. +if (!mifareClassic.isTagConnected()) { + if (!mifareClassic.connectTag()) { + console.log("mifareClassic connectTag failed."); + return; } -}); +} + +try { + let blockIndex = 1; // Change it as required. + let value = 0x20; // Change it as required. + mifareClassic.incrementBlock(blockIndex, value).then(() => { + console.log("mifareClassic incrementBlock Promise success."); + }).catch((err)=> { + console.log("mifareClassic incrementBlock Promise err: " + err); + }); +} catch (busiError) { + console.log("mifareClassic incrementBlock Promise catch busiError: " + busiError); +} ``` ### MifareClassicTag.incrementBlock9+ -incrementBlock(blockIndex: number, value: number, callback: AsyncCallback\): void +incrementBlock(blockIndex: number, value: number, callback: AsyncCallback\): void Increments a block with data. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| blockIndex | number | Yes | Index of the block to increment.| -| value | number | Yes | Block data to increment. The value is a non-negative number.| -| callback | AsyncCallback\ | Yes | Callback invoked to return the result.| +| blockIndex | number | Yes | Index of the block to increment. The block indexes start from **0**.| +| value | number | Yes | Block data to increment. The value cannot be a negative number.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result.| + +**Error codes** + +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. -let blockIndex = 1; // change it to be correct index. -let value = 0x20; // change it to be correct data. -mifareClassic.incrementBlock(blockIndex, value, (err, data)=> { - if (err) { - console.log("mifareClassic incrementBlock err: " + err); - } else { - console.log("mifareClassic incrementBlock data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. + +// Connect to the tag if it is not connected. +if (!mifareClassic.isTagConnected()) { + if (!mifareClassic.connectTag()) { + console.log("mifareClassic connectTag failed."); + return; } -}); +} + +try { + let blockIndex = 1; // Change it as required. + let value = 0x20; // Change it as required. + mifareClassic.incrementBlock(blockIndex, value, (err)=> { + if (err) { + console.log("mifareClassic incrementBlock AsyncCallback err: " + err); + } else { + console.log("mifareClassic incrementBlock AsyncCallback success."); + } + }); +} catch (busiError) { + console.log("mifareClassic incrementBlock AsyncCallback catch busiError: " + busiError); +} ``` ### MifareClassicTag.decrementBlock9+ -decrementBlock(blockIndex: number, value: number): Promise\ +decrementBlock(blockIndex: number, value: number): Promise\ -Decrements a block with data. This API uses a promise to return the result. +Decrements a block. This API uses a promise to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| blockIndex | number | Yes | Index of the block to decrement.| -| value | number | Yes | Block data to decrement. The value is a non-negative number.| +| blockIndex | number | Yes | Index of the block to decrement. The block indexes start from **0**.| +| value | number | Yes | Block data to decrement. The value cannot be a negative number.| -**Return value** +**Error codes** -| **Type**| **Description** | -| ------------------ | --------------------------| -| Promise\ | Promise used to return the result. If **0** is returned, the operation is successful. If the operation fails, an error code is returned.| +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. -let blockIndex = 1; // change it to be correct index. -let value = 0x20; // change it to be correct data. -mifareClassic.decrementBlock(blockIndex, value, (err, data)=> { - if (err) { - console.log("mifareClassic decrementBlock err: " + err); - } else { - console.log("mifareClassic decrementBlock data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. + +// Connect to the tag if it is not connected. +if (!mifareClassic.isTagConnected()) { + if (!mifareClassic.connectTag()) { + console.log("mifareClassic connectTag failed."); + return; } -}); +} + +try { + let blockIndex = 1; // Change it as required. + let value = 0x20; // Change it as required. + mifareClassic.decrementBlock(blockIndex, value).then(() => { + console.log("mifareClassic decrementBlock Promise success."); + }).catch((err)=> { + console.log("mifareClassic decrementBlock Promise err: " + err); + }); +} catch (busiError) { + console.log("mifareClassic decrementBlock Promise catch busiError: " + busiError); +} ``` ### MifareClassicTag.decrementBlock9+ -decrementBlock(blockIndex: number, value: number, callback: AsyncCallback\): void +decrementBlock(blockIndex: number, value: number, callback: AsyncCallback\): void -Decrements a block with data. This API uses an asynchronous callback to return the result. +Decrements a block. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| blockIndex | number | Yes | Index of the block to decrement.| -| value | number | Yes | Block data to decrement. The value is a non-negative number.| -| callback | AsyncCallback\ | Yes | Callback invoked to return the result.| +| blockIndex | number | Yes | Index of the block to decrement. The block indexes start from **0**.| +| value | number | Yes | Block data to decrement. The value cannot be a negative number.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result.| + +**Error codes** + +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. -let blockIndex = 1; // change it to be correct index. -let value = 0x20; // change it to be correct data. -mifareClassic.decrementBlock(blockIndex, value, (err, data)=> { - if (err) { - console.log("mifareClassic decrementBlock err: " + err); - } else { - console.log("mifareClassic decrementBlock data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. + +// Connect to the tag if it is not connected. +if (!mifareClassic.isTagConnected()) { + if (!mifareClassic.connectTag()) { + console.log("mifareClassic connectTag failed."); + return; } -}); +} + +try { + let blockIndex = 1; // Change it as required. + let value = 0x20; // Change it as required. + mifareClassic.decrementBlock(blockIndex, value, (err)=> { + if (err) { + console.log("mifareClassic decrementBlock AsyncCallback err: " + err); + } else { + console.log("mifareClassic decrementBlock AsyncCallback success."); + } + }); +} catch (busiError) { + console.log("mifareClassic decrementBlock AsyncCallback catch busiError: " + busiError); +} ``` ### MifareClassicTag.transferToBlock9+ -transferToBlock(blockIndex: number): Promise\ +transferToBlock(blockIndex: number): Promise\ -Copies data from the register to a block. This API uses a promise to return the result. +Transfers data from the temporary register to a block. This API uses a promise to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| blockIndex | number | Yes | Index of the destination block.| +| blockIndex | number | Yes | Index of the destination block. The value starts form **0**.| -**Return value** +**Error codes** -| **Type**| **Description** | -| ------------------ | --------------------------| -| Promise\ | Promise used to return the result. If **0** is returned, the operation is successful. If the operation fails, an error code is returned.| +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js - import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. -let blockIndex = 1; // change it to be correct index. -mifareClassic.transferToBlock(blockIndex, (err, data)=> { - if (err) { - console.log("mifareClassic transferToBlock err: " + err); - } else { - console.log("mifareClassic transferToBlock data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. + +// Connect to the tag if it is not connected. +if (!mifareClassic.isTagConnected()) { + if (!mifareClassic.connectTag()) { + console.log("mifareClassic connectTag failed."); + return; } -}); +} + +try { + let blockIndex = 1; // Change it as required. + mifareClassic.transferToBlock(blockIndex).then(() => { + console.log("mifareClassic transferToBlock Promise success."); + }).catch((err)=> { + console.log("mifareClassic transferToBlock Promise err: " + err); + }); +} catch (busiError) { + console.log("mifareClassic transferToBlock Promise catch busiError: " + busiError); +} ``` ### MifareClassicTag.transferToBlock9+ -transferToBlock(blockIndex: number, callback: AsyncCallback\): void +transferToBlock(blockIndex: number, callback: AsyncCallback\): void -Copies data from the register to a block. This API uses an asynchronous callback to return the result. +Transfers data from the temporary register to a block. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| blockIndex | number | Yes | Index of the destination block.| -| callback | AsyncCallback\ | Yes | Callback invoked to return the result.| +| blockIndex | number | Yes | Index of the destination block. The value starts form **0**.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result.| + +**Error codes** + +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. -let blockIndex = 1; // change it to be correct index. -mifareClassic.transferToBlock(blockIndex, (err, data)=> { - if (err) { - console.log("mifareClassic transferToBlock err: " + err); - } else { - console.log("mifareClassic transferToBlock data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. + +// Connect to the tag if it is not connected. +if (!mifareClassic.isTagConnected()) { + if (!mifareClassic.connectTag()) { + console.log("mifareClassic connectTag failed."); + return; } -}); +} + +try { + let blockIndex = 1; // Change it as required. + mifareClassic.transferToBlock(blockIndex, (err)=> { + if (err) { + console.log("mifareClassic transferToBlock AsyncCallback err: " + err); + } else { + console.log("mifareClassic transferToBlock AsyncCallback success."); + } + }); +} catch (busiError) { + console.log("mifareClassic transferToBlock AsyncCallback catch busiError: " + busiError); +} ``` ### MifareClassicTag.restoreFromBlock9+ -restoreFromBlock(blockIndex: number): Promise\ +restoreFromBlock(blockIndex: number): Promise\ -Copies data from a block to the register. This API uses a promise to return the result. +Restores data in the temporary register from a block. This API uses a promise to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| blockIndex | number | Yes | Index of the source block.| +| blockIndex | number | Yes | Index of the target block. The value starts form **0**.| -**Return value** +**Error codes** -| **Type**| **Description** | -| ------------------ | --------------------------| -| Promise\ | Promise used to return the result. If **0** is returned, the operation is successful. If the operation fails, an error code is returned.| +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js - import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. -let blockIndex = 1; // change it to be correct index. -mifareClassic.restoreFromBlock(blockIndex) - .then((data) => { - console.log("mifareClassic restoreFromBlock data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. + +// Connect to the tag if it is not connected. +if (!mifareClassic.isTagConnected()) { + if (!mifareClassic.connectTag()) { + console.log("mifareClassic connectTag failed."); + return; + } +} + +try { + let blockIndex = 1; // Change it as required. + mifareClassic.restoreFromBlock(blockIndex).then(() => { + console.log("mifareClassic restoreFromBlock Promise success."); }).catch((err)=> { - console.log("mifareClassic isExtendrestoreFromBlockedApduSupported err: " + err); + console.log("mifareClassic restoreFromBlock Promise err: " + err); }); +} catch (busiError) { + console.log("mifareClassic restoreFromBlock Promise catch busiError: " + busiError); +} ``` ### MifareClassicTag.restoreFromBlock9+ -restoreFromBlock(blockIndex: number, callback: AsyncCallback\): void +restoreFromBlock(blockIndex: number, callback: AsyncCallback\): void -Copies data from a block to the register. This API uses an asynchronous callback to return the result. +Restores data in the temporary register from a block. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| blockIndex | number | Yes | Index of the source block.| -| callback | AsyncCallback\ | Yes | Callback invoked to return the result.| +| blockIndex | number | Yes | Index of the target block. The value starts form **0**.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the result.| + +**Error codes** + +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. -let blockIndex = 1; // change it to be correct index. -mifareClassic.restoreFromBlock(blockIndex, (err, data)=> { - if (err) { - console.log("mifareClassic restoreFromBlock err: " + err); - } else { - console.log("mifareClassic restoreFromBlock data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. + +// Connect to the tag if it is not connected. +if (!mifareClassic.isTagConnected()) { + if (!mifareClassic.connectTag()) { + console.log("mifareClassic connectTag failed."); + return; } -}); +} + +try { + let blockIndex = 1; // Change it as required. + mifareClassic.restoreFromBlock(blockIndex, (err)=> { + if (err) { + console.log("mifareClassic restoreFromBlock AsyncCallback err: " + err); + } else { + console.log("mifareClassic restoreFromBlock AsyncCallback success."); + } + }); +} catch (busiError) { + console.log("mifareClassic restoreFromBlock AsyncCallback catch busiError: " + busiError); +} ``` ### MifareClassicTag.getSectorCount9+ @@ -1374,9 +1669,7 @@ getSectorCount(): number Obtains the number of sectors in this MIFARE Classic tag. -**Required permissions**: ohos.permission.NFC_TAG - -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Return value** @@ -1389,7 +1682,7 @@ Obtains the number of sectors in this MIFARE Classic tag. ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. let sectorCount = mifareClassic.getSectorCount(); console.log("mifareClassic sectorCount: " + sectorCount); ``` @@ -1400,15 +1693,13 @@ getBlockCountInSector(sectorIndex: number): number Obtains the number of blocks in a sector. -**Required permissions**: ohos.permission.NFC_TAG - -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| sectorIndex | number | Yes | Index of the sector.| +| sectorIndex | number | Yes | Index of the target sector. The sector indexes start from **0**.| **Return value** @@ -1421,33 +1712,37 @@ Obtains the number of blocks in a sector. ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. -let blockCountInSector = mifareClassic.getBlockCountInSector(); -console.log("mifareClassic blockCountInSector: " + blockCountInSector); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. + +try { + let sectorIndex = 1; // Change it as required. + let blockCnt = mifareClassic.getBlockCountInSector(sectorIndex); + console.log("mifareClassic blockCnt: " + blockCnt); +} catch (busiError) { + console.log("mifareClassic getBlockCountInSector catch busiError: " + busiError); +} ``` ### MifareClassicTag.getType9+ -getType(): [MifareClassicType](js-apis-nfcTag.md#mifareclassictype9) +getType(): [tag.MifareClassicType](js-apis-nfcTag.md#mifareclassictype9) Obtains the type of this MIFARE Classic tag. -**Required permissions**: ohos.permission.NFC_TAG - -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Return value** | **Type**| **Description** | | ------------------ | --------------------------| -| [MifareClassicType](js-apis-nfcTag.md#mifareclassictype9) | Type of the MIFARE Classic tag obtained.| +| [tag.MifareClassicType](js-apis-nfcTag.md#mifareclassictype9) | Type of the MIFARE Classic tag obtained.| **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. let getType = mifareClassic.getType(); console.log("mifareClassic getType: " + getType); ``` @@ -1456,11 +1751,9 @@ console.log("mifareClassic getType: " + getType); getTagSize(): number -Obtains the tag size (in bytes). For details, see [MifareClassicSize](js-apis-nfcTag.md#mifareclassicsize9). - -**Required permissions**: ohos.permission.NFC_TAG +Obtains the size of this tag. For details, see [MifareClassicSize](js-apis-nfcTag.md#mifareclassicsize9). -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Return value** @@ -1473,7 +1766,7 @@ Obtains the tag size (in bytes). For details, see [MifareClassicSize](js-apis-nf ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. let tagSize = mifareClassic.getTagSize(); console.log("mifareClassic tagSize: " + tagSize); ``` @@ -1482,11 +1775,9 @@ console.log("mifareClassic tagSize: " + tagSize); isEmulatedTag(): boolean -Checks whether the tag is an emulated tag. +Checks whether it is an emulated tag. -**Required permissions**: ohos.permission.NFC_TAG - -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Return value** @@ -1499,7 +1790,7 @@ Checks whether the tag is an emulated tag. ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. let isEmulatedTag = mifareClassic.isEmulatedTag(); console.log("mifareClassic isEmulatedTag: " + isEmulatedTag); ``` @@ -1508,17 +1799,15 @@ console.log("mifareClassic isEmulatedTag: " + isEmulatedTag); getBlockIndex(sectorIndex: number): number -Obtains the first block of a sector. +Obtains the index of the first block in a sector. -**Required permissions**: ohos.permission.NFC_TAG - -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| sectorIndex | number | Yes | Index of the sector.| +| sectorIndex | number | Yes | Index of the target sector. The sector indexes start from **0**.| **Return value** @@ -1531,27 +1820,30 @@ Obtains the first block of a sector. ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. -let sectorIndex = 1; // change it to be correct index. -let blockIndex = mifareClassic.getBlockIndex(sectorIndex); -console.log("mifareClassic blockIndex: " + blockIndex); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. + +try { + let sectorIndex = 1; // Change it as required. + let blockIndex = mifareClassic.getBlockIndex(sectorIndex); + console.log("mifareClassic blockIndex: " + blockIndex); +} catch (busiError) { + console.log("mifareClassic getBlockIndex catch busiError: " + busiError); +} ``` ### MifareClassicTag.getSectorIndex9+ getSectorIndex(blockIndex: number): number -Obtains the index of a sector that contains the specified block. - -**Required permissions**: ohos.permission.NFC_TAG +Obtains the index of a sector that holds the specified block. -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| blockIndex | number | Yes | Index of the block contained in the sector.| +| blockIndex | number | Yes| Index of the block. The block indexes start from **0**.| **Return value** @@ -1564,41 +1856,54 @@ Obtains the index of a sector that contains the specified block. ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareClassic' correctly. -let blockIndex = 1; // change it to be correct index. -let sectorIndex = mifareClassic.getSectorIndex(blockIndex); -console.log("mifareClassic sectorIndex: " + sectorIndex); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareClassic' correctly. + +try { + let blockIndex = 1; // Change it as required. + let sectorIndex = mifareClassic.getSectorIndex(blockIndex); + console.log("mifareClassic sectorIndex: " + sectorIndex); +} catch (busiError) { + console.log("mifareClassic getSectorIndex catch busiError: " + busiError); +} ``` ## MifareUltralightTag9+ -Provides access to MIFARE Ultralight properties and I/O operations. This class inherits from **TagSession**. +Provides APIs to access MIFARE Ultralight properties and perform I/O operations on a tag. This class inherits from **TagSession**. **TagSession** is the base class of all NFC tag technologies. It provides common interfaces for establishing connections and transferring data. For more details, see [TagSession](js-apis-tagSession.md). -The following describes the unique interfaces of **MifareUltralightTag**. +The following describes the unique APIs of **MifareUltralightTag**. ### MifareUltralightTag.readMultiplePages9+ readMultiplePages(pageIndex: number): Promise\ -Reads multiple pages (4 bytes per page). This API uses a promise to return the result. +Reads four pages (4 bytes per page) from this tag. This API uses a promise to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | ------------------------------ | -| pageIndex | number | Yes | Indexes of the pages to read.| +| pageIndex | number | Yes | Index of the first page to read. The page indexes start from **0**.| **Return value** | **Type**| **Description** | | ------------------ | --------------------------| -| Promise\ | Promise used to return the data read.| +| Promise\ | Promise used to return the data read, which is 16 bytes in total.| + +**Error codes** + +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** @@ -1606,207 +1911,286 @@ Reads multiple pages (4 bytes per page). This API uses a promise to return the r import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareUltralight' correctly. -let pageIndex = 1; // change it to be correct index. -mifareUltralight.readMultiplePages(pageIndex) - .then((data) => { - console.log("mifareUltralight readMultiplePages data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareUltralight' correctly. + +// Connect to the tag if it is not connected. +if (!mifareUltralight.isTagConnected()) { + if (!mifareUltralight.connectTag()) { + console.log("mifareUltralight connectTag failed."); + return; + } +} + +try { + let pageIndex = 1; // Change it as required. + mifareUltralight.readMultiplePages(pageIndex).then((data) => { + console.log("mifareUltralight readMultiplePages Promise data = " + data); }).catch((err)=> { - console.log("mifareUltralight readMultiplePages err: " + err); + console.log("mifareUltralight readMultiplePages Promise err: " + err); }); +} catch (busiError) { + console.log("mifareUltralight readMultiplePages Promise catch busiError: " + busiError); +} ``` ### MifareUltralightTag.readMultiplePages9+ readMultiplePages(pageIndex: number, callback: AsyncCallback\): void -Reads multiple pages (4 bytes per page). This API uses an asynchronous callback to return the result. +Reads four pages (4 bytes per page) from this tag. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| pageIndex | number | Yes | Indexes of the pages to read.| -| callback | AsyncCallback\ | Yes | Callback invoked to return the result.| +| pageIndex | number | Yes | Index of the first page to read. The page indexes start from **0**.| +| callback | AsyncCallback\ | Yes | Callback invoked to return the data read, which is 16 bytes in total.| + +**Error codes** + +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareUltralight' correctly. -let pageIndex = 1; // change it to be correct index. -mifareUltralight.readMultiplePages(pageIndex, (err, data)=> { - if (err) { - console.log("mifareUltralight readMultiplePages err: " + err); - } else { - console.log("mifareUltralight readMultiplePages data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareUltralight' correctly. + +// Connect to the tag if it is not connected. +if (!mifareUltralight.isTagConnected()) { + if (!mifareUltralight.connectTag()) { + console.log("mifareUltralight connectTag failed."); + return; } -}); +} + +try { + let pageIndex = 1; // Change it as required. + mifareUltralight.readMultiplePages(pageIndex, (err, data)=> { + if (err) { + console.log("mifareUltralight readMultiplePages AsyncCallback err: " + err); + } else { + console.log("mifareUltralight readMultiplePages AsyncCallback data: " + data); + } + }); +} catch (busiError) { + console.log("mifareUltralight readMultiplePages AsyncCallback catch busiError: " + busiError); +} ``` -### MifareUltralightTag.writeSinglePages9+ +### MifareUltralightTag.writeSinglePage9+ -writeSinglePages(pageIndex: number, data: number[]): Promise\ +writeSinglePage(pageIndex: number, data: number[]): Promise\ -Writes a page of data. This API uses a promise to return the result. +Writes one page (4 bytes) of data to this tag. This API uses a promise to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| pageIndex | number | Yes | Index of the page.| -| data | number[] | Yes | Data to write.| +| pageIndex | number | Yes | Index of the page to write. The page indexes start from **0**.| +| data | number[] | Yes | 4-byte data to write.| -**Return value** +**Error codes** -| **Type**| **Description** | -| ------------------ | --------------------------| -| Promise\ | Promise used to return the result. If **0** is returned, the operation is successful. If the operation fails, an error code is returned.| +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareUltralight' correctly. -let pageIndex = 1; // change it to be correct index. -let data = [0x01, 0x02, ...]; // change it to be correct raw data. -mifareUltralight.writeSinglePages(pageIndex, data) - .then((data) => { - console.log("mifareUltralight writeSinglePages data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareUltralight' correctly. + +// Connect to the tag if it is not connected. +if (!mifareUltralight.isTagConnected()) { + if (!mifareUltralight.connectTag()) { + console.log("mifareUltralight connectTag failed."); + return; + } +} + +try { + let pageIndex = 1; // Change it as required. + let rawData = [0x01, 0x02, 0x03, 0x04]; // MUST be 4 bytes, change it to be correct raw data. + mifareUltralight.writeSinglePage(pageIndex, rawData).then(() => { + console.log("mifareUltralight writeSinglePage Promise success."); }).catch((err)=> { - console.log("mifareUltralight writeSinglePages err: " + err); + console.log("mifareUltralight writeSinglePage Promise err: " + err); }); +} catch (busiError) { + console.log("mifareUltralight writeSinglePage Promise catch busiError: " + busiError); +} ``` -### MifareUltralightTag.writeSinglePages9+ +### MifareUltralightTag.writeSinglePage9+ -writeSinglePages(pageIndex: number, data: number[], callback: AsyncCallback\): void +writeSinglePage(pageIndex: number, data: number[], callback: AsyncCallback\): void -Writes a page of data. This API uses an asynchronous callback to return the result. +Writes one page (4 bytes) of data to this tag. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | ------------------------ | -| pageIndex | number | Yes | Index of the page.| -| data | number[] | Yes | Data to write.| -| callback|AsyncCallback\ |Yes| Callback invoked to return the result.| +| pageIndex | number | Yes | Index of the page to write. The page indexes start from **0**.| +| data | number[] | Yes | 4-byte data to write.| +| callback|AsyncCallback\ |Yes| Callback invoked to return the result.| + +**Error codes** + +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareUltralight' correctly. -let pageIndex = 1; // change it to be correct index. -let data = [0x01, 0x02, ...]; // change it to be correct raw data. -mifareUltralight.writeSinglePages(pageIndex, data, (err, data)=> { - if (err) { - console.log("mifareUltralight writeSinglePages err: " + err); - } else { - console.log("mifareUltralight writeSinglePages data: " + data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareUltralight' correctly. + +// Connect to the tag if it is not connected. +if (!mifareUltralight.isTagConnected()) { + if (!mifareUltralight.connectTag()) { + console.log("mifareUltralight connectTag failed."); + return; } -}); +} + +try { + let pageIndex = 1; // Change it as required. + let rawData = [0x01, 0x02, 0x03, 0x04]; // MUST be 4 bytes, change it to be correct raw data. + mifareUltralight.writeSinglePage(pageIndex, rawData, (err)=> { + if (err) { + console.log("mifareUltralight writeSinglePage AsyncCallback err: " + err); + } else { + console.log("mifareUltralight writeSinglePage AsyncCallback success."); + } + }); +} catch (busiError) { + console.log("mifareUltralight writeSinglePage AsyncCallback catch busiError: " + busiError); +} ``` ### MifareUltralightTag.getType9+ -getType(): MifareUltralightType +getType(): [tag.MifareUltralightType](js-apis-nfcTag.md#mifareultralighttype9) -Obtains the MIFARE Ultralight tag type, in bytes. For details, see [MifareUltralightType](js-apis-nfcTag.md#mifareultralighttype9). - -**Required permissions**: ohos.permission.NFC_TAG +Obtains the type of this MIFARE Ultralight tag. -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Return value** | **Type**| **Description** | | ------------------ | --------------------------| -| MifareUltralightType | MIFARE Ultralight tag type obtained. For details, see [MifareUltralightType](js-apis-nfcTag.md#mifareultralighttype9).| +| [tag.MifareUltralightType](js-apis-nfcTag.md#mifareultralighttype9) | Type of the MIFARE Ultralight tag obtained.| **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'mifareUltralight' correctly. +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'mifareUltralight' correctly. let getType = mifareClassic.getType(); console.log("mifareUltralight getType: " + getType); ``` ## NdefFormatableTag9+ -Provides APIs for operating NDEF formattable tags. This class inherits from **TagSession**. +Provides APIs for formatting NDEF formattable tags. This class inherits from **TagSession**. **TagSession** is the base class of all NFC tag technologies. It provides common interfaces for establishing connections and transferring data. For more details, see [TagSession](js-apis-tagSession.md). -The following describes the unique interfaces of **NdefFormatableTag**. +The following describes the unique APIs of **NdefFormatableTag**. ### NdefFormatableTag.format9+ -format(message: [NdefMessage](#ndefmessage9)): Promise\ +format(message: [NdefMessage](#ndefmessage9)): Promise\ -Formats this tag as an NDEF tag, and writes an NDEF message to the tag. This API uses a promise to return the result. +Formats this tag as an NDEF tag, and writes an NDEF message to it. This API uses a promise to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| message | [NdefMessage](#ndefmessage9) | Yes | NDEF message to write when the formatting is successful. If this parameter is **null**, the tag is formatted only (no data will be written).| +| message | [NdefMessage](#ndefmessage9) | Yes | NDEF message to write. If this parameter is **null**, the tag is formatted only (no data will be written).| -**Return value** +**Error codes** -| **Type**| **Description** | -| ------------------ | --------------------------| -| Promise\ | Promise used to return the result. If **0** is returned, the operation is successful. If the operation fails, an error code is returned.| +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -let data = [0x01, 0x02, ...]; // change it to be correct raw data. -let ndefmessage = ndef.createNdefMessage(data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'ndefFormatable' correctly. -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndefFormatable' correctly. -ndefFormatable.format(ndefmessage, (err, data)=> { - if (err) { - console.log("ndefFormatable format err: " + err); - } else { - console.log("ndefFormatable format data: " + data); +// Connect to the tag if it is not connected. +if (!ndefFormatable.isTagConnected()) { + if (!ndefFormatable.connectTag()) { + console.log("ndefFormatable connectTag failed."); + return; } -}); +} + +try { + // NDEF message created from raw data, such as: + let ndefMessage = tag.ndef.createNdefMessage([0xD1, 0x01, 0x03, 0x54, 0x4E, 0x46, 0x43]); // It must be parsed as NDEF Record. + // or ndefMessage created from tag.ndef.createNdefMessage(ndefRecords: NdefRecord[]) + + ndefFormatable.format(ndefMessage).then(() => { + console.log("ndefFormatable format Promise success."); + }).catch((err)=> { + console.log("ndefFormatable format Promise err: " + err); + }); +} catch (busiError) { + console.log("ndefFormatable format Promise catch busiError: " + busiError); +} ``` ### NdefFormatableTag.format9+ -format(message: [NdefMessage](#ndefmessage9), callback: AsyncCallback\): void +format(message: [NdefMessage](#ndefmessage9), callback: AsyncCallback\): void -Formats this tag as an NDEF tag, and writes an NDEF message to the tag. This API uses an asynchronous callback to return the result. +Formats this tag as an NDEF tag, and writes an NDEF message to it. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** @@ -1818,7 +2202,7 @@ Formats this tag as an NDEF tag, and writes an NDEF message to the tag. This API | **Type**| **Description** | | ------------------ | --------------------------| -| callback: AsyncCallback\ | Callback invoked to return the result.| +| callback: AsyncCallback\ | Callback invoked to return the result.| **Example** @@ -1826,82 +2210,108 @@ Formats this tag as an NDEF tag, and writes an NDEF message to the tag. This API ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -let data = [0x01, 0x02, ...]; // change it to be correct raw data. -let ndefmessage = ndef.createNdefMessage(data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'ndefFormatable' correctly. -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndefFormatable' correctly. -ndefFormatable.format(ndefmessage, (err, data)=> { - if (err) { - console.log("ndefFormatable format err: " + err); - } else { - console.log("ndefFormatable format data: " + data); +// Connect to the tag if it is not connected. +if (!ndefFormatable.isTagConnected()) { + if (!ndefFormatable.connectTag()) { + console.log("ndefFormatable connectTag failed."); + return; } -}); +} + +try { + // NDEF message created from raw data, such as: + let ndefMessage = tag.ndef.createNdefMessage([0xD1, 0x01, 0x03, 0x54, 0x4E, 0x46, 0x43]); // It must be parsed as NDEF Record. + // or ndefMessage created from tag.ndef.createNdefMessage(ndefRecords: NdefRecord[]) + + ndefFormatable.format(ndefMessage, (err)=> { + if (err) { + console.log("ndefFormatable format AsyncCallback err: " + err); + } else { + console.log("ndefFormatable format AsyncCallback success."); + } + }); +} catch (busiError) { + console.log("ndefFormatable format AsyncCallback catch busiError: " + busiError); +} ``` ### NdefFormatableTag.formatReadOnly9+ -formatReadOnly(message: [NdefMessage](#ndefmessage9)): Promise\ +formatReadOnly(message: [NdefMessage](#ndefmessage9)): Promise\ -Formats this tag as an NDEF tag, writes an NDEF message to the NDEF tag, and then sets the tag to read-only. This API uses a promise to return the result. +Formats this tag as an NDEF tag, writes an NDEF message to it, and then sets the tag to read-only. This API uses a promise to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| message | [NdefMessage](#ndefmessage9) | Yes | NDEF message to write when the formatting is successful. If this parameter is **null**, the tag is formatted only (no data will be written).| +| message | [NdefMessage](#ndefmessage9) | Yes | NDEF message to write. If this parameter is **null**, the tag is formatted only (no data will be written).| -**Return value** +**Error codes** -| **Type**| **Description** | -| ------------------ | --------------------------| -| Promise\ | Promise used to return the result. If **0** is returned, the operation is successful. If the operation fails, an error code is returned.| +For details about the error codes, see [NFC Error Codes](../errorcodes/errorcode-nfc.md). + +| ID| Error Message| +| ------- | -------| +| 3100201 | Tag running state is abnormal in service. | **Example** ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -let data = [0x01, 0x02, ...]; // change it to be correct raw data. -let ndefmessage = ndef.createNdefMessage(data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'ndefFormatable' correctly. -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndefFormatable' correctly. -ndefFormatable.formatReadOnly(ndefmessage, (err, data)=> { - if (err) { - console.log("ndefFormatable formatReadOnly err: " + err); - } else { - console.log("ndefFormatable formatReadOnly data: " + data); +// Connect to the tag if it is not connected. +if (!ndefFormatable.isTagConnected()) { + if (!ndefFormatable.connectTag()) { + console.log("ndefFormatable connectTag failed."); + return; } -}); +} + +try { + // NDEF message created from raw data, such as: + let ndefMessage = tag.ndef.createNdefMessage([0xD1, 0x01, 0x03, 0x54, 0x4E, 0x46, 0x43]); // It must be parsed as NDEF Record. + // or ndefMessage created from tag.ndef.createNdefMessage(ndefRecords: NdefRecord[]) + + ndefFormatable.formatReadOnly(ndefMessage).then(() => { + console.log("ndefFormatable formatReadOnly Promise success."); + }).catch((err)=> { + console.log("ndefFormatable formatReadOnly Promise err: " + err); + }); +} catch (busiError) { + console.log("ndefFormatable formatReadOnly Promise catch busiError: " + busiError); +} ``` ### NdefFormatableTag.formatReadOnly9+ -formatReadOnly(message: [NdefMessage](#ndefmessage9), callback: AsyncCallback\): void +formatReadOnly(message: [NdefMessage](#ndefmessage9), callback: AsyncCallback\): void Formats this tag as an NDEF tag, writes an NDEF message to the NDEF tag, and then sets the tag to read-only. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.NFC_TAG -**System capability**: SystemCapability.Communication.NFC +**System capability**: SystemCapability.Communication.NFC.Core **Parameters** | Name | Type | Mandatory| Description | | -------- | ----------------------- | ---- | -------------------------------------- | -| message | [NdefMessage](#ndefmessage9) | Yes | NDEF message to write when the formatting is successful. If this parameter is **null**, the tag is formatted only (no data will be written).| +| message | [NdefMessage](#ndefmessage9) | Yes | NDEF message to write. If this parameter is **null**, the tag is formatted only (no data will be written).| **Return value** | **Type**| **Description** | | ------------------ | --------------------------| -| callback: AsyncCallback\ | Callback invoked to return the result.| +| callback: AsyncCallback\ | Callback invoked to return the result.| **Example** @@ -1909,16 +2319,29 @@ Formats this tag as an NDEF tag, writes an NDEF message to the NDEF tag, and the ```js import tag from '@ohos.nfc.tag'; -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndef' correctly. -let data = [0x01, 0x02, ...]; // change it to be correct raw data. -let ndefmessage = ndef.createNdefMessage(data); +// Check whether 'tag.TagInfo' in 'js-apis-nfcTag.md' has obtained 'ndefFormatable' correctly. -// Check whether 'tag.TagInfo' at 'js-apis-nfcTag' has obtained the 'ndefFormatable' correctly. -ndefFormatable.formatReadOnly(ndefmessage, (err, data)=> { - if (err) { - console.log("ndefFormatable formatReadOnly err: " + err); - } else { - console.log("ndefFormatable formatReadOnly data: " + data); +// Connect to the tag if it is not connected. +if (!ndefFormatable.isTagConnected()) { + if (!ndefFormatable.connectTag()) { + console.log("ndefFormatable connectTag failed."); + return; } -}); +} + +try { + // NDEF message created from raw data, such as: + let ndefMessage = tag.ndef.createNdefMessage([0xD1, 0x01, 0x03, 0x54, 0x4E, 0x46, 0x43]); // It must be parsed as NDEF Record. + // or ndefMessage created from tag.ndef.createNdefMessage(ndefRecords: NdefRecord[]) + + ndefFormatable.formatReadOnly(ndefMessage, (err)=> { + if (err) { + console.log("ndefFormatable formatReadOnly AsyncCallback err: " + err); + } else { + console.log("ndefFormatable formatReadOnly AsyncCallback success."); + } + }); +} catch (busiError) { + console.log("ndefFormatable formatReadOnly AsyncCallback catch busiError: " + busiError); +} ``` diff --git a/en/application-dev/reference/apis/js-apis-notification.md b/en/application-dev/reference/apis/js-apis-notification.md index ff80fc8564758868ec979ff6bf033b7084fea561..99dd6551d098ddf0d6f58a69bde92191e38d083d 100644 --- a/en/application-dev/reference/apis/js-apis-notification.md +++ b/en/application-dev/reference/apis/js-apis-notification.md @@ -1,4 +1,4 @@ -# Notification +# @ohos.notification The **Notification** module provides notification management capabilities, covering notifications, notification slots, notification subscription, notification enabled status, and notification badge status. @@ -852,11 +852,7 @@ Subscribes to a notification with the subscription information specified. This A ```js function onConsumeCallback(data) { - if (err.code) { - console.info("subscribe failed " + JSON.stringify(err)); - } else { - console.info("subscribe success"); - } + console.info("Consume callback: " + JSON.stringify(data)); } var subscriber = { onConsume: onConsumeCallback @@ -1621,7 +1617,7 @@ Removes a notification for a specified bundle. This API uses an asynchronous cal | Name | Type | Mandatory| Description | | -------- | --------------------- | ---- | -------------------- | | hashCode | string | Yes | Unique notification ID. | -| reason | [RemoveReason](#removereason9) | Yes | Reason for removing the notification. | +| reason | [RemoveReason](#removereason9) | Yes | Indicates the reason for deleting a notification. | | callback | AsyncCallback\ | Yes | Callback used to return the result.| **Example** @@ -1659,7 +1655,7 @@ Removes a notification for a specified bundle. This API uses a promise to return | Name | Type | Mandatory| Description | | -------- | ---------- | ---- | ---------- | | hashCode | string | Yes | Unique notification ID.| -| reason | [RemoveReason](#removereason9) | Yes | Reason for removing the notification. | +| reason | [RemoveReason](#removereason9) | Yes | Reason for deleting the notification. | **Example** @@ -2567,11 +2563,11 @@ Requests notification to be enabled for this application. This API uses an async **Example** ```javascript -function requestEnableNotificationCallback() { +function requestEnableNotificationCallback(err) { if (err.code) { console.info("requestEnableNotification failed " + JSON.stringify(err)); } else { - console.info("requestEnableNotification success"); + } }; @@ -2620,7 +2616,7 @@ Sets whether this device supports distributed notifications. This API uses an as **Example** ```javascript -function enabledNotificationCallback() { +function enabledNotificationCallback(err) { if (err.code) { console.info("enableDistributed failed " + JSON.stringify(err)); } else { @@ -2682,11 +2678,11 @@ Obtains whether this device supports distributed notifications. This API uses an **Example** ```javascript -function isDistributedEnabledCallback() { +function isDistributedEnabledCallback(err, data) { if (err.code) { console.info("isDistributedEnabled failed " + JSON.stringify(err)); } else { - console.info("isDistributedEnabled success"); + console.info("isDistributedEnabled success " + JSON.stringify(data)); } }; @@ -2742,7 +2738,7 @@ Sets whether an application supports distributed notifications based on the bund **Example** ```javascript -function enableDistributedByBundleCallback() { +function enableDistributedByBundleCallback(err) { if (err.code) { console.info("enableDistributedByBundle failed " + JSON.stringify(err)); } else { @@ -2817,11 +2813,11 @@ Obtains whether an application supports distributed notifications based on the b **Example** ```javascript -function isDistributedEnabledByBundleCallback(data) { +function isDistributedEnabledByBundleCallback(err, data) { if (err.code) { console.info("isDistributedEnabledByBundle failed " + JSON.stringify(err)); } else { - console.info("isDistributedEnabledByBundle success"); + console.info("isDistributedEnabledByBundle success" + JSON.stringify(data)); } }; @@ -2893,7 +2889,7 @@ Obtains the notification reminder type. This API uses an asynchronous callback t **Example** ```javascript -function getDeviceRemindTypeCallback(data) { +function getDeviceRemindTypeCallback(err,data) { if (err.code) { console.info("getDeviceRemindType failed " + JSON.stringify(err)); } else { @@ -3414,6 +3410,8 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) ## NotificationSubscriber +Provides callbacks for receiving or removing notifications. + **System API**: This is a system API and cannot be called by third-party applications. ### onConsume @@ -3430,7 +3428,7 @@ Callback for receiving notifications. | Name| Type| Mandatory| Description| | ------------ | ------------------------ | ---- | -------------------------- | -| data | AsyncCallback\<[SubscribeCallbackData](#subscribecallbackdata)\> | Yes| Notification information returned.| +| data | [SubscribeCallbackData](#subscribecallbackdata) | Yes| Notification information returned.| **Example** @@ -3447,15 +3445,6 @@ function onConsumeCallback(data) { console.info('===> onConsume in test'); let req = data.request; console.info('===> onConsume callback req.id:' + req.id); - let wantAgent = data.wantAgent; - wantAgent .getWant(wantAgent) - .then((data1) => { - console.info('===> getWant success want:' + JSON.stringify(data1)); - }) - .catch((err) => { - console.error('===> getWant failed because' + JSON.stringify(err)); - }); - console.info('===> onConsume callback req.wantAgent:' + JSON.stringify(req.wantAgent)); }; var subscriber = { @@ -3479,7 +3468,7 @@ Callback for removing notifications. | Name| Type| Mandatory| Description| | ------------ | ------------------------ | ---- | -------------------------- | -| data | AsyncCallback\<[SubscribeCallbackData](#subscribecallbackdata)\> | Yes| Notification information returned.| +| data | [SubscribeCallbackData](#subscribecallbackdata) | Yes| Notification information returned.| **Example** @@ -3723,13 +3712,13 @@ Notification.subscribe(subscriber, subscribeCallback); **System API**: This is a system API and cannot be called by third-party applications. -| Name | Readable| Writable| Type | Description | -| --------------- | ---- | --- | ------------------------------------------------- | -------- | -| request | Yes | No | [NotificationRequest](#notificationrequest) | Notification content.| -| sortingMap | Yes | No | [NotificationSortingMap](#notificationsortingmap) | Notification sorting information.| -| reason | Yes | No | number | Reason for deletion.| -| sound | Yes | No | string | Sound used for notification.| -| vibrationValues | Yes | No | Array\ | Vibration used for notification.| +| Name | Type | Readable| Writable| Description | +| --------------- | ------------------------------------------------- | ---- | --- | -------- | +| request | [NotificationRequest](#notificationrequest) | Yes | No | Notification content.| +| sortingMap | [NotificationSortingMap](#notificationsortingmap) | Yes | No | Notification sorting information.| +| reason | number | Yes | No | Reason for deletion.| +| sound | string | Yes | No | Sound used for notification.| +| vibrationValues | Array\ | Yes | No | Vibration used for notification.| ## EnabledNotificationCallbackData8+ @@ -3738,11 +3727,11 @@ Notification.subscribe(subscriber, subscribeCallback); **System API**: This is a system API and cannot be called by third-party applications. -| Name | Readable| Writable| Type | Description | -| ------ | ---- | --- | ------- | ---------------- | -| bundle | Yes | No | string | Bundle name of the application. | -| uid | Yes | No | number | UID of the application. | -| enable | Yes | No | boolean | Notification enabled status of the application.| +| Name | Type | Readable| Writable| Description | +| ------ | ------- | ---- | --- | ---------------- | +| bundle | string | Yes | No | Bundle name of the application. | +| uid | number | Yes | No | UID of the application. | +| enable | boolean | Yes | No | Notification enabled status of the application.| ## DoNotDisturbDate8+ @@ -3751,11 +3740,11 @@ Notification.subscribe(subscriber, subscribeCallback); **System API**: This is a system API and cannot be called by third-party applications. -| Name | Readable| Writable| Type | Description | -| ----- | ---- | --- | ------------------------------------- | ------------------------ | -| type | Yes | No | [DoNotDisturbType](#donotdisturbtype8) | DND time type.| -| begin | Yes | No | Date | DND start time.| -| end | Yes | No | Date | DND end time.| +| Name | Type | Readable| Writable| Description | +| ----- ------------------------------------- || ---- | --- | ------------------------ | +| type | [DoNotDisturbType](#donotdisturbtype8) | Yes | No | DND time type.| +| begin | Date | Yes | No | DND start time.| +| end | Date | Yes | No | DND end time.| @@ -3802,10 +3791,10 @@ Notification.subscribe(subscriber, subscribeCallback); **System capability**: SystemCapability.Notification.Notification -| Name | Readable| Writable| Type | Description | -| ------ | ---- | --- | ------ | ------ | -| bundle | Yes | Yes | string | Bundle name. | -| uid | Yes | Yes | number | User ID.| +| Name | Type | Readable| Writable| Description | +| ------ | ------ |---- | --- | ------ | +| bundle | string | Yes | Yes | Bundle name. | +| uid | number | Yes | Yes | User ID.| @@ -3813,10 +3802,10 @@ Notification.subscribe(subscriber, subscribeCallback); **System capability**: SystemCapability.Notification.Notification -| Name | Readable| Writable| Type | Description | -| ----- | ---- | --- | ------ | -------- | -| id | Yes | Yes | number | Notification ID. | -| label | Yes | Yes | string | Notification label.| +| Name | Type | Readable| Writable| Description | +| ----- | ------ | ---- | --- | -------- | +| id | number | Yes | Yes | Notification ID. | +| label | string | Yes | Yes | Notification label.| ## SlotType @@ -3834,84 +3823,98 @@ Notification.subscribe(subscriber, subscribeCallback); ## NotificationActionButton +Enumerates the buttons in the notification. + **System capability**: SystemCapability.Notification.Notification -| Name | Readable| Writable| Type | Description | -| --------- | --- | ---- | ----------------------------------------------- | ------------------------- | -| title | Yes | Yes | string | Button title. | -| wantAgent | Yes | Yes | WantAgent | **WantAgent** of the button.| -| extras | Yes | Yes | { [key: string]: any } | Extra information of the button. | -| userInput8+ | Yes | Yes | [NotificationUserInput](#notificationuserinput8) | User input object. | +| Name | Type | Readable| Writable| Description | +| --------- | ----------------------------------------------- | --- | ---- | ------------------------- | +| title | string | Yes | Yes | Button title. | +| wantAgent | WantAgent | Yes | Yes | **WantAgent** of the button.| +| extras | { [key: string]: any } | Yes | Yes | Extra information of the button. | +| userInput8+ | [NotificationUserInput](#notificationuserinput8) | Yes | Yes | User input object. | ## NotificationBasicContent +Describes the normal text notification. + **System capability**: SystemCapability.Notification.Notification -| Name | Readable| Writable| Type | Description | -| -------------- | ---- | ---- | ------ | ---------------------------------- | -| title | Yes | Yes | string | Notification title. | -| text | Yes | Yes | string | Notification content. | -| additionalText | Yes | Yes | string | Additional information of the notification.| +| Name | Type | Readable| Writable| Description | +| -------------- | ------ | ---- | ---- | ---------------------------------- | +| title | string | Yes | Yes | Notification title. | +| text | string | Yes | Yes | Notification content. | +| additionalText | string | Yes | Yes | Additional information of the notification.| ## NotificationLongTextContent +Describes the long text notification. + **System capability**: SystemCapability.Notification.Notification -| Name | Readable| Writable| Type | Description | -| -------------- | ---- | --- | ------ | -------------------------------- | -| title | Yes | Yes | string | Notification title. | -| text | Yes | Yes | string | Notification content. | -| additionalText | Yes | Yes | string | Additional information of the notification.| -| longText | Yes | Yes | string | Long text of the notification. | -| briefText | Yes | Yes | string | Brief text of the notification.| -| expandedTitle | Yes | Yes | string | Title of the notification in the expanded state. | +| Name | Type | Readable| Writable| Description | +| -------------- | ------ | ---- | --- | -------------------------------- | +| title | string | Yes | Yes | Notification title. | +| text | string | Yes | Yes | Notification content. | +| additionalText | string | Yes | Yes | Additional information of the notification.| +| longText | string | Yes | Yes | Long text of the notification. | +| briefText | string | Yes | Yes | Brief text of the notification.| +| expandedTitle | string | Yes | Yes | Title of the notification in the expanded state. | ## NotificationMultiLineContent +Describes the multi-line text notification. + **System capability**: SystemCapability.Notification.Notification -| Name | Readable| Writable| Type | Description | -| -------------- | --- | --- | --------------- | -------------------------------- | -| title | Yes | Yes | string | Notification title. | -| text | Yes | Yes | string | Notification content. | -| additionalText | Yes | Yes | string | Additional information of the notification.| -| briefText | Yes | Yes | string | Brief text of the notification.| -| longTitle | Yes | Yes | string | Title of the notification in the expanded state. | -| lines | Yes | Yes | Array\ | Multi-line text of the notification. | +| Name | Type | Readable| Writable| Description | +| -------------- | --------------- | --- | --- | -------------------------------- | +| title | string | Yes | Yes | Notification title. | +| text | string | Yes | Yes | Notification content. | +| additionalText | string | Yes | Yes | Additional information of the notification.| +| briefText | string | Yes | Yes | Brief text of the notification.| +| longTitle | string | Yes | Yes | Title of the notification in the expanded state. | +| lines | Array\ | Yes | Yes | Multi-line text of the notification. | ## NotificationPictureContent +Describes the picture-attached notification. + **System capability**: SystemCapability.Notification.Notification -| Name | Readable| Writable| Type | Description | -| -------------- | ---- | --- | -------------- | -------------------------------- | -| title | Yes | Yes | string | Notification title. | -| text | Yes | Yes | string | Notification content. | -| additionalText | Yes | Yes | string | Additional information of the notification.| -| briefText | Yes | Yes | string | Brief text of the notification.| -| expandedTitle | Yes | Yes | string | Title of the notification in the expanded state. | -| picture | Yes | Yes | image.PixelMap | Picture attached to the notification. | +| Name | Type | Readable| Writable| Description | +| -------------- | -------------- | ---- | --- | -------------------------------- | +| title | string | Yes | Yes | Notification title. | +| text | string | Yes | Yes | Notification content. | +| additionalText | string | Yes | Yes | Additional information of the notification.| +| briefText | string | Yes | Yes | Brief text of the notification.| +| expandedTitle | string | Yes | Yes | Title of the notification in the expanded state. | +| picture | image.PixelMap | Yes | Yes | Picture attached to the notification. | ## NotificationContent +Describes the notification content. + **System capability**: SystemCapability.Notification.Notification -| Name | Readable| Writable| Type | Description | -| ----------- | ---- | --- | ------------------------------------------------------------ | ------------------ | -| contentType | Yes | Yes | [ContentType](#contenttype) | Notification content type. | -| normal | Yes | Yes | [NotificationBasicContent](#notificationbasiccontent) | Normal text. | -| longText | Yes | Yes | [NotificationLongTextContent](#notificationlongtextcontent) | Long text.| -| multiLine | Yes | Yes | [NotificationMultiLineContent](#notificationmultilinecontent) | Multi-line text. | -| picture | Yes | Yes | [NotificationPictureContent](#notificationpicturecontent) | Picture-attached. | +| Name | Type | Readable| Writable| Description | +| ----------- | ------------------------------------------------------------ | ---- | --- | ------------------ | +| contentType | [ContentType](#contenttype) | Yes | Yes | Notification content type. | +| normal | [NotificationBasicContent](#notificationbasiccontent) | Yes | Yes | Normal text. | +| longText | [NotificationLongTextContent](#notificationlongtextcontent) | Yes | Yes | Long text.| +| multiLine | [NotificationMultiLineContent](#notificationmultilinecontent) | Yes | Yes | Multi-line text. | +| picture | [NotificationPictureContent](#notificationpicturecontent) | Yes | Yes | Picture-attached. | ## NotificationFlagStatus8+ +Describes the notification flag status. + **System capability**: SystemCapability.Notification.Notification **System API**: This is a system API and cannot be called by third-party applications. @@ -3925,133 +3928,149 @@ Notification.subscribe(subscriber, subscribeCallback); ## NotificationFlags8+ +Enumerates notification flags. + **System capability**: SystemCapability.Notification.Notification -| Name | Readable| Writable| Type | Description | -| ---------------- | ---- | ---- | ---------------------- | --------------------------------- | -| soundEnabled | Yes | No | NotificationFlagStatus | Whether to enable the sound alert for the notification. | -| vibrationEnabled | Yes | No | NotificationFlagStatus | Whether to enable vibration for the notification. | +| Name | Type | Readable| Writable| Description | +| ---------------- | ---------------------- | ---- | ---- | --------------------------------- | +| soundEnabled | NotificationFlagStatus | Yes | No | Whether to enable the sound alert for the notification. | +| vibrationEnabled | NotificationFlagStatus | Yes | No | Whether to enable vibration for the notification. | ## NotificationRequest -**System capability**: SystemCapability.Notification.Notification - -| Name | Readable| Writable| Type | Description | -| --------------------- | ---- | --- | --------------------------------------------- | -------------------------- | -| content | Yes | Yes | [NotificationContent](#notificationcontent) | Notification content. | -| id | Yes | Yes | number | Notification ID. | -| slotType | Yes | Yes | [SlotType](#slottype) | Slot type. | -| isOngoing | Yes | Yes | boolean | Whether the notification is an ongoing notification. | -| isUnremovable | Yes | Yes | boolean | Whether the notification can be removed. | -| deliveryTime | Yes | Yes | number | Time when the notification is sent. | -| tapDismissed | Yes | Yes | boolean | Whether the notification is automatically cleared. | -| autoDeletedTime | Yes | Yes | number | Time when the notification is automatically cleared. | -| wantAgent | Yes | Yes | WantAgent | **WantAgent** instance to which the notification will be redirected after being clicked. | -| extraInfo | Yes | Yes | {[key: string]: any} | Extended parameters. | -| color | Yes | Yes | number | Background color of the notification. | -| colorEnabled | Yes | Yes | boolean | Whether the notification background color is enabled. | -| isAlertOnce | Yes | Yes | boolean | Whether the notification triggers an alert only once.| -| isStopwatch | Yes | Yes | boolean | Whether to display the stopwatch. | -| isCountDown | Yes | Yes | boolean | Whether to display the countdown time. | -| isFloatingIcon | Yes | Yes | boolean | Whether the notification is displayed as a floating icon. | -| label | Yes | Yes | string | Notification label. | -| badgeIconStyle | Yes | Yes | number | Notification badge type. | -| showDeliveryTime | Yes | Yes | boolean | Whether to display the time when the notification is delivered. | -| actionButtons | Yes | Yes | Array\<[NotificationActionButton](#notificationactionbutton)\> | Buttons in the notification. Up to two buttons are allowed. | -| smallIcon | Yes | Yes | PixelMap | Small notification icon. | -| largeIcon | Yes | Yes | PixelMap | Large notification icon. | -| creatorBundleName | Yes | No | string | Name of the bundle that creates the notification. | -| creatorUid | Yes | No | number | UID used for creating the notification. | -| creatorPid | Yes | No | number | PID used for creating the notification. | -| creatorUserId8+| Yes | No | number | ID of the user who creates the notification. | -| hashCode | Yes | No | string | Unique ID of the notification. | -| classification | Yes | Yes | string | Notification category.
**System API**: This is a system API and cannot be called by third-party applications. | -| groupName8+| Yes | Yes | string | Group notification name. | -| template8+ | Yes | Yes | [NotificationTemplate](#notificationtemplate8) | Notification template. | -| isRemoveAllowed8+ | Yes | No | boolean | Whether the notification can be removed.
**System API**: This is a system API and cannot be called by third-party applications. | -| source8+ | Yes | No | number | Notification source.
**System API**: This is a system API and cannot be called by third-party applications. | -| distributedOption8+ | Yes | Yes | [DistributedOptions](#distributedoptions8) | Option of distributed notification. | -| deviceId8+ | Yes | No | string | Device ID of the notification source.
**System API**: This is a system API and cannot be called by third-party applications. | -| notificationFlags8+ | Yes | No | [NotificationFlags](#notificationflags8) | Notification flags. | -| removalWantAgent9+ | Yes | Yes | WantAgent | **WantAgent** instance to which the notification will be redirected when it is removed. | -| badgeNumber9+ | Yes | Yes | number | Number of notifications displayed on the application icon. | +Describes the notification request. + +**System capability**: SystemCapability.Notification.Notification + +| Name | Type | Readable| Writable| Description | +| --------------------- | --------------------------------------------- | ---- | --- | -------------------------- | +| content | [NotificationContent](#notificationcontent) | Yes | Yes | Notification content. | +| id | number | Yes | Yes | Notification ID. | +| slotType | [SlotType](#slottype) | Yes | Yes | Slot type. | +| isOngoing | boolean | Yes | Yes | Whether the notification is an ongoing notification. | +| isUnremovable | boolean | Yes | Yes | Whether the notification can be removed. | +| deliveryTime | number | Yes | Yes | Time when the notification is sent. | +| tapDismissed | boolean | Yes | Yes | Whether the notification is automatically cleared. | +| autoDeletedTime | number | Yes | Yes | Time when the notification is automatically cleared. | +| wantAgent | WantAgent | Yes | Yes | **WantAgent** instance to which the notification will be redirected after being clicked. | +| extraInfo | {[key: string]: any} | Yes | Yes | Extended parameters. | +| color | number | Yes | Yes | Background color of the notification. Not supported currently. | +| colorEnabled | boolean | Yes | Yes | Whether the notification background color is enabled. Not supported currently. | +| isAlertOnce | boolean | Yes | Yes | Whether the notification triggers an alert only once.| +| isStopwatch | boolean | Yes | Yes | Whether to display the stopwatch. | +| isCountDown | boolean | Yes | Yes | Whether to display the countdown time. | +| isFloatingIcon | boolean | Yes | Yes | Whether the notification is displayed as a floating icon. | +| label | string | Yes | Yes | Notification label. | +| badgeIconStyle | number | Yes | Yes | Notification badge type. | +| showDeliveryTime | boolean | Yes | Yes | Whether to display the time when the notification is delivered. | +| actionButtons | Array\<[NotificationActionButton](#notificationactionbutton)\> | Yes | Yes | Buttons in the notification. Up to two buttons are allowed. | +| smallIcon | PixelMap | Yes | Yes | Small notification icon. | +| largeIcon | PixelMap | Yes | Yes | Large notification icon. | +| creatorBundleName | string | Yes | No | Name of the bundle that creates the notification. | +| creatorUid | number | Yes | No | UID used for creating the notification. | +| creatorPid | number | Yes | No | PID used for creating the notification. | +| creatorUserId8+| number | Yes | No | ID of the user who creates the notification. | +| hashCode | string | Yes | No | Unique ID of the notification. | +| classification | string | Yes | Yes | Notification category.
**System API**: This is a system API and cannot be called by third-party applications. | +| groupName8+| string | Yes | Yes | Group notification name. | +| template8+ | [NotificationTemplate](#notificationtemplate8) | Yes | Yes | Notification template. | +| isRemoveAllowed8+ | boolean | Yes | No | Whether the notification can be removed.
**System API**: This is a system API and cannot be called by third-party applications. | +| source8+ | number | Yes | No | Notification source.
**System API**: This is a system API and cannot be called by third-party applications. | +| distributedOption8+ | [DistributedOptions](#distributedoptions8) | Yes | Yes | Option of distributed notification. | +| deviceId8+ | string | Yes | No | Device ID of the notification source.
**System API**: This is a system API and cannot be called by third-party applications. | +| notificationFlags8+ | [NotificationFlags](#notificationflags8) | Yes | No | Notification flags. | +| removalWantAgent9+ | WantAgent | Yes | Yes | **WantAgent** instance to which the notification will be redirected when it is removed. | +| badgeNumber9+ | number | Yes | Yes | Number of notifications displayed on the application icon. | ## DistributedOptions8+ +Describes distributed options. + **System capability**: SystemCapability.Notification.Notification -| Name | Readable| Writable| Type | Description | -| ---------------------- | ---- | ---- | -------------- | ---------------------------------- | -| isDistributed | Yes | Yes | boolean | Whether the notification is a distributed notification. | -| supportDisplayDevices | Yes | Yes | Array\ | Types of the devices to which the notification can be synchronized. | -| supportOperateDevices | Yes | Yes | Array\ | Devices on which notification can be enabled. | -| remindType | Yes | No | number | Notification reminder type.
**System API**: This is a system API and cannot be called by third-party applications. | +| Name | Type | Readable| Writable| Description | +| ---------------------- | -------------- | ---- | ---- | ---------------------------------- | +| isDistributed | boolean | Yes | Yes | Whether the notification is a distributed notification. | +| supportDisplayDevices | Array\ | Yes | Yes | Types of the devices to which the notification can be synchronized. | +| supportOperateDevices | Array\ | Yes | Yes | Devices on which notification can be enabled. | +| remindType | number | Yes | No | Notification reminder type.
**System API**: This is a system API and cannot be called by third-party applications. | ## NotificationSlot +Describes the notification slot. + **System capability**: SystemCapability.Notification.Notification -| Name | Readable| Writable| Type | Description | -| -------------------- | ---- | --- | --------------------- | ------------------------------------------ | -| type | Yes | Yes | [SlotType](#slottype) | Slot type. | -| level | Yes | Yes | number | Notification level. If this parameter is not set, the default value is used based on the notification slot type.| -| desc | Yes | Yes | string | Notification slot description. | -| badgeFlag | Yes | Yes | boolean | Whether to display the badge. | -| bypassDnd | Yes | Yes | boolean | Whether to bypass the DND mode in the system. | -| lockscreenVisibility | Yes | Yes | number | Mode for displaying the notification on the lock screen. | -| vibrationEnabled | Yes | Yes | boolean | Whether vibration is supported for the notification. | -| sound | Yes | Yes | string | Notification alert tone. | -| lightEnabled | Yes | Yes | boolean | Whether the indicator blinks for the notification. | -| lightColor | Yes | Yes | number | Indicator color of the notification. | -| vibrationValues | Yes | Yes | Array\ | Vibration mode of the notification. | -| enabled9+ | Yes | No | boolean | Enabled status of the notification slot. | +| Name | Type | Readable| Writable| Description | +| -------------------- | --------------------- | ---- | --- | ------------------------------------------ | +| type | [SlotType](#slottype) | Yes | Yes | Slot type. | +| level | number | Yes | Yes | Notification level. If this parameter is not set, the default value is used based on the notification slot type.| +| desc | string | Yes | Yes | Notification slot description. | +| badgeFlag | boolean | Yes | Yes | Whether to display the badge. | +| bypassDnd | boolean | Yes | Yes | Whether to bypass the DND mode in the system. | +| lockscreenVisibility | number | Yes | Yes | Mode for displaying the notification on the lock screen. | +| vibrationEnabled | boolean | Yes | Yes | Whether vibration is supported for the notification. | +| sound | string | Yes | Yes | Notification alert tone. | +| lightEnabled | boolean | Yes | Yes | Whether the indicator blinks for the notification. | +| lightColor | number | Yes | Yes | Indicator color of the notification. | +| vibrationValues | Array\ | Yes | Yes | Vibration mode of the notification. | +| enabled9+ | boolean | Yes | No | Enabled status of the notification slot. | ## NotificationSorting +Provides sorting information of active notifications. + **System capability**: SystemCapability.Notification.Notification **System API**: This is a system API and cannot be called by third-party applications. -| Name | Readable| Writable| Type | Description | -| -------- | ---- | --- | ------------------------------------- | ------------ | -| slot | Yes | No | [NotificationSlot](#notificationslot) | Notification slot content.| -| hashCode | Yes | No | string | Unique ID of the notification.| -| ranking | Yes | No | number | Notification sequence number.| +| Name | Type | Readable| Writable| Description | +| -------- | ------------------------------------- | ---- | --- | ------------ | +| slot | [NotificationSlot](#notificationslot) | Yes | No | Notification slot content.| +| hashCode | string | Yes | No | Unique ID of the notification.| +| ranking | number | Yes | No | Notification sequence number.| ## NotificationSortingMap +Provides sorting information of active notifications in all subscribed notifications. + **System capability**: SystemCapability.Notification.Notification **System API**: This is a system API and cannot be called by third-party applications. -| Name | Readable| Writable| Type | Description | -| -------------- | ---- | --- | ------------------------------------------------------------ | ---------------- | -| sortings | Yes | No | {[key: string]: [NotificationSorting](#notificationsorting)} | Array of notification sorting information.| -| sortedHashCode | Yes | No | Array\ | Array of unique notification IDs.| +| Name | Type | Readable| Writable| Description | +| -------------- | ------------------------------------------------------------ | ---- | --- | ---------------- | +| sortings | {[key: string]: [NotificationSorting](#notificationsorting)} | Yes | No | Array of notification sorting information.| +| sortedHashCode | Array\ | Yes | No | Array of unique notification IDs.| ## NotificationSubscribeInfo +Provides the information about the publisher for notification subscription. + **System capability**: SystemCapability.Notification.Notification **System API**: This is a system API and cannot be called by third-party applications. -| Name | Readable| Writable| Type | Description | -| ----------- | --- | ---- | --------------- | ------------------------------- | -| bundleNames | Yes | Yes | Array\ | Bundle names of the applications whose notifications are to be subscribed to.| -| userId | Yes | Yes | number | User whose notifications are to be subscribed to. | +| Name | Type | Readable| Writable| Description | +| ----------- | --------------- | --- | ---- | ------------------------------- | +| bundleNames | Array\ | Yes | Yes | Bundle names of the applications whose notifications are to be subscribed to.| +| userId | number | Yes | Yes | User whose notifications are to be subscribed to. | ## NotificationTemplate8+ +Notification template. + **System capability**: SystemCapability.Notification.Notification -| Name| Type | Readable| Writable| Description | +| Name| Type | Readable| Writable| Description | | ---- | ---------------------- | ---- | ---- | ---------- | | name | string | Yes | Yes | Template name.| | data | {[key:string]: Object} | Yes | Yes | Template data.| @@ -4059,11 +4078,13 @@ Notification.subscribe(subscriber, subscribeCallback); ## NotificationUserInput8+ +Provides the notification user input. + **System capability**: SystemCapability.Notification.Notification -| Name | Readable| Writable| Type | Description | -| -------- | --- | ---- | ------ | ----------------------------- | -| inputKey | Yes | Yes | string | Key to identify the user input.| +| Name | Type | Readable| Writable| Description | +| -------- | ------ | --- | ---- | ----------------------------- | +| inputKey | string | Yes | Yes | Key to identify the user input.| ## DeviceRemindType8+ diff --git a/en/application-dev/reference/apis/js-apis-osAccount.md b/en/application-dev/reference/apis/js-apis-osAccount.md index 068e2a1ca6c4c01c2e69144354bd90b86302619a..f903401701e9f68ae6277a687215310f59afc34c 100644 --- a/en/application-dev/reference/apis/js-apis-osAccount.md +++ b/en/application-dev/reference/apis/js-apis-osAccount.md @@ -1,8 +1,9 @@ -# OS Account Management +# @ohos.account.osAccount The **osAccount** module provides basic capabilities for managing OS accounts, including adding, deleting, querying, setting, subscribing to, and enabling an OS account. -> **NOTE**
+> **NOTE** +> > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. @@ -2708,7 +2709,6 @@ Obtains the constraint source information of an OS account. This API uses a prom console.info('queryOsAccountConstraintSourceType exception:' + JSON.stringify(e)); } ``` - ### isMultiOsAccountEnable(deprecated) isMultiOsAccountEnable(callback: AsyncCallback<boolean>): void @@ -4280,17 +4280,12 @@ Register a PIN inputer. | ----------| ----------------------- | --- | -------------------------- | | inputer | [IInputer](#iinputer8) | Yes | PIN inputer, which is used to obtain the PIN.| -**Return value** - -| Type | Description | -| :------ | :-------------------------------------------- | -| boolean | Returns **true** if the operation is successful; returns **false** otherwise.| - **Error codes** | ID| Error Message | | -------- | --------------------------- | | 12300001 | System service exception. | +| 12300102 | Invalid inputer. | | 12300103 | Inputer already registered. | **Example** @@ -4299,8 +4294,8 @@ Register a PIN inputer. let password = new Uint8Array([0, 0, 0, 0, 0]); try { let result = pinAuth.registerInputer({ - onGetData: (pinSubType, callback) => { - callback.onSetData(pinSubType, password); + onGetData: (authSubType, callback) => { + callback.onSetData(authSubType, password); } }); console.log('registerInputer result = ' + result); @@ -4327,6 +4322,91 @@ Unregisters this PIN inputer. pinAuth.unregisterInputer(); ``` +### InputerManager 10+ + +Provides APIs for managing credential inputers. + +### registerInputer10+ + +registerInputer(authType: AuthType, inputer: IInputer): void; + +Register a credential inputer. + +**System API**: This is a system API. + +**System capability**: SystemCapability.Account.OsAccount + +**Required permissions**: ohos.permission.ACCESS_USER_AUTH_INTERNAL or ohos.permission.MANAGE_USER_IDM + +**Parameters** + +| Name | Type | Mandatory| Description | +| ----------| ----------------------- | --- | -------------------------- | +| authType | [AuthType](#authtype8) | Yes | Authentication credential type.| +| inputer | [IInputer](#iinputer8) | Yes | Credential inputer to register.| + +**Error codes** + +| ID| Error Message | +| -------- | --------------------------- | +| 12300001 | System service exception. | +| 12300102 | Invalid authType or inputer. | +| 12300103 | The credential inputer has been registered. | +| 12300106 | Unsupported authType. | + +**Example** + ```js + let inputerMgr = new account_osAccount.InputerManager(); + let authType = account_osAccount.AuthType.DOMAIN; + let password = new Uint8Array([0, 0, 0, 0, 0]); + try { + InputerMgr.registerInputer(authType, { + onGetData: (authSubType, callback) => { + callback.onSetData(authSubType, password); + } + }); + console.log('registerInputer success.'); + } catch (e) { + console.log('registerInputer exception = ' + JSON.stringify(e)); + } + ``` + +### unregisterInputer10+ + +unregisterInputer(authType: AuthType): void; + +Unregisters this credential inputer. + +**System API**: This is a system API. + +**System capability**: SystemCapability.Account.OsAccount + +**Required permissions**: ohos.permission.ACCESS_USER_AUTH_INTERNAL or ohos.permission.MANAGE_USER_IDM + +**Parameters** + +| Name | Type | Mandatory| Description | +| ----------| ----------------------- | --- | -------------------------- | +| authType | [AuthType](#authtype8) | Yes | Authentication credential type.| + +**Error codes** + +| ID| Error Message | +| -------- | --------------------------- | +| 12300002 | Invalid authType. | + +**Example** + ```js + let inputerMgr = new account_osAccount.InputerManager(); + let authType = account_osAccount.AuthType.DOMAIN; + try { + inputerMgr.unregisterInputer(authType); + console.log('unregisterInputer success.'); + } catch(err) { + console.log("unregisterInputer err:" + JSON.stringify(err)); + } + ``` + ## UserIdentityManager8+ Provides APIs for user identity management (IDM). @@ -4456,8 +4536,8 @@ Adds credential information, including the credential type, subtype, and token ( let password = new Uint8Array([0, 0, 0, 0, 0, 0]); let pinAuth = new account_osAccount.PINAuth(); pinAuth.registerInputer({ - onGetData: (pinSubType, callback) => { - callback.onSetData(pinSubType, password); + onGetData: (authSubType, callback) => { + callback.onSetData(authSubType, password); } }); let credentialInfo = { @@ -4470,12 +4550,12 @@ Adds credential information, including the credential type, subtype, and token ( try { userIDM.addCredential(credentialInfo, { onResult: (result, extraInfo) => { - console.log('updateCredential result = ' + result); - console.log('updateCredential extraInfo = ' + extraInfo); + console.log('addCredential result = ' + result); + console.log('addCredential extraInfo = ' + extraInfo); } }); } catch (e) { - console.log('updateCredential exception = ' + JSON.stringify(e)); + console.log('addCredential exception = ' + JSON.stringify(e)); } }); ``` @@ -4520,8 +4600,8 @@ Updates credential information. This API uses a callback to return the result. token: null }; pinAuth.registerInputer({ - onGetData: (pinSubType, callback) => { - callback.onSetData(pinSubType, password); + onGetData: (authSubType, callback) => { + callback.onSetData(authSubType, password); } }); userIDM.openSession((err, challenge) => { @@ -4820,7 +4900,7 @@ Provides callbacks for PIN operations. ### onSetData8+ -onSetData: (pinSubType: AuthSubType, data: Uint8Array) => void; +onSetData: (authSubType: AuthSubType, data: Uint8Array) => void; **System API**: This is a system API. @@ -4832,7 +4912,7 @@ Called to set data in a PIN operation. | Name | Type | Mandatory| Description | | ---------- | ---------------------------------------- | ---- | ----------------------------------------------- | -| pinSubType | [AuthSubType](#authsubtype8) | Yes | Credential subtype. | +| authSubType | [AuthSubType](#authsubtype8) | Yes | Credential subtype. | | data | Uint8Array | Yes | Data (credential) to set. The data is used for authentication and operations for adding and modifying credentials.| **Example** @@ -4840,11 +4920,11 @@ Called to set data in a PIN operation. let password = new Uint8Array([0, 0, 0, 0, 0, 0]); let passwordNumber = new Uint8Array([1, 2, 3, 4]); let inputer = { - onGetData: (pinSubType, callback) => { - if (pinSubType == account_osAccount.AuthSubType.PIN_NUMBER) { - callback.onSetData(pinSubType, passwordNumber); + onGetData: (authSubType, callback) => { + if (authSubType == account_osAccount.AuthSubType.PIN_NUMBER) { + callback.onSetData(authSubType, passwordNumber); } else { - callback.onSetData(pinSubType, password); + callback.onSetData(authSubType, password); } } }; @@ -4852,13 +4932,13 @@ Called to set data in a PIN operation. ## IInputer8+ -Provides callbacks for the PIN input box. +Provides callbacks for credential inputers. **System API**: This is a system API. ### onGetData8+ -onGetData: (pinSubType: AuthSubType, callback: IInputData) => void; +onGetData: (authSubType: AuthSubType, callback: IInputData) => void; Called to obtain data. @@ -4877,11 +4957,11 @@ Called to obtain data. let password = new Uint8Array([0, 0, 0, 0, 0, 0]); let passwordNumber = new Uint8Array([1, 2, 3, 4]); let inputer = { - onGetData: (pinSubType, callback) => { - if (pinSubType == account_osAccount.AuthSubType.PIN_NUMBER) { - callback.onSetData(pinSubType, passwordNumber); + onGetData: (authSubType, callback) => { + if (authSubType == account_osAccount.AuthSubType.PIN_NUMBER) { + callback.onSetData(authSubType, passwordNumber); } else { - callback.onSetData(pinSubType, password); + callback.onSetData(authSubType, password); } } }; @@ -5157,6 +5237,8 @@ Enumerates the authentication credential types. | ----- | ----- | ---------------- | | PIN | 1 | PIN authentication.| | FACE | 2 | Facial authentication.| +| FINGERPRINT10+ | 4 | Fingerprint authentication.| +| DOMAIN10+ | 1024 | Domain authentication.| ## AuthSubType8+ @@ -5170,9 +5252,10 @@ Enumerates the authentication credential subtypes. | ---------- | ----- | ------------------ | | PIN_SIX | 10000 | Six-digit PIN. | | PIN_NUMBER | 10001 | Custom PIN.| -| PIN_MIXED | 10002 | Custom mixed credential.| +| PIN_MIXED | 10002 | Custom mixed credentials.| | FACE_2D | 20000 | 2D face credential. | | FACE_3D | 20001 | 3D face credential. | +| DOMAIN_MIXED10+ | 10240001 | Mixed domain authentication credentials. | ## AuthTrustLevel8+ diff --git a/en/application-dev/reference/apis/js-apis-plainarray.md b/en/application-dev/reference/apis/js-apis-plainarray.md index 79ede0ce7a1aac37d64fe0a848e4bb5948cd877b..dfc05166987a87d07bc1499fbcb980b45f08f2e8 100644 --- a/en/application-dev/reference/apis/js-apis-plainarray.md +++ b/en/application-dev/reference/apis/js-apis-plainarray.md @@ -1,4 +1,4 @@ -# Nonlinear Container PlainArray +# @ohos.util.PlainArray (Nonlinear Container PlainArray) > **NOTE** > @@ -21,8 +21,6 @@ This topic uses the following to identify the use of generics: import PlainArray from '@ohos.util.PlainArray'; ``` - - ## PlainArray ### Attributes @@ -54,11 +52,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let plainArray = new PlainArray(); -try { - let plainArray2 = PlainArray(); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -89,11 +82,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts const plainArray = new PlainArray(); let result = plainArray.isEmpty(); -try { - plainArray.isEmpty.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -132,11 +120,6 @@ let plainArray = new PlainArray(); plainArray.has(1); plainArray.add(1, "squirrel"); let result1 = plainArray.has(1); -try { - plainArray.has.bind({}, 1)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -175,11 +158,6 @@ let plainArray = new PlainArray(); plainArray.add(1, "squirrel"); plainArray.add(2, "sparrow"); let result = plainArray.get(1); -try { - plainArray.get.bind({}, 1)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -218,11 +196,6 @@ let plainArray = new PlainArray(); plainArray.add(1, "squirrel"); plainArray.add(2, "sparrow"); let result = plainArray.getIndexOfKey(2); -try { - plainArray.getIndexOfKey.bind({}, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -261,11 +234,6 @@ let plainArray = new PlainArray(); plainArray.add(1, "squirrel"); plainArray.add(2, "sparrow"); let result = plainArray.getIndexOfValue("squirrel"); -try { - plainArray.getIndexOfValue.bind({}, "squirrel")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -304,11 +272,6 @@ let plainArray = new PlainArray(); plainArray.add(1, "squirrel"); plainArray.add(2, "sparrow"); let result = plainArray.getKeyAt(1); -try { - plainArray.getKeyAt.bind({}, 1)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### getValueAt @@ -338,7 +301,7 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The getValueAt method cannot be bound. | -| 10200001 | The value of parameters are out of range. | +| 10200001 | The parameter value is out of range. | **Example** @@ -347,16 +310,6 @@ let plainArray = new PlainArray(); plainArray.add(1, "squirrel"); plainArray.add(2, "sparrow"); let result = plainArray.getValueAt(1); -try { - plainArray.getValueAt.bind({}, 1)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - plainArray.getValueAt(10); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### clone @@ -388,11 +341,6 @@ let plainArray = new PlainArray(); plainArray.add(1, "squirrel"); plainArray.add(2, "sparrow"); let newPlainArray = plainArray.clone(); -try { - plainArray.clone.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -424,11 +372,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let plainArray = new PlainArray(); plainArray.add(1, "squirrel"); -try { - plainArray.add.bind({}, "squirrel")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -467,11 +410,6 @@ let plainArray = new PlainArray(); plainArray.add(1, "squirrel"); plainArray.add(2, "sparrow"); let result = plainArray.remove(2); -try { - plainArray.remove.bind({}, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -510,11 +448,6 @@ let plainArray = new PlainArray(); plainArray.add(1, "squirrel"); plainArray.add(2, "sparrow"); let result = plainArray.removeAt(1); -try { - plainArray.removeAt.bind({}, 1)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -546,7 +479,7 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The removeRangeFrom method cannot be bound. | -| 10200001 | The value of parameters are out of range. | +| 10200001 | The parameter value is out of range. | **Example** @@ -555,16 +488,6 @@ let plainArray = new PlainArray(); plainArray.add(1, "squirrel"); plainArray.add(2, "sparrow"); let result = plainArray.removeRangeFrom(1, 3); -try { - plainArray.removeRangeFrom.bind({}, 1, 3)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - plainArray.removeRangeFrom(10, 3); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -590,7 +513,7 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er | ID| Error Message| | -------- | -------- | | 10200011 | The setValueAt method cannot be bound. | -| 10200001 | The value of parameters are out of range. | +| 10200001 | The parameter value is out of range. | **Example** @@ -599,16 +522,6 @@ let plainArray = new PlainArray(); plainArray.add(1, "squirrel"); plainArray.add(2, "sparrow"); plainArray.setValueAt(1, 3546); -try { - plainArray.setValueAt.bind({}, 1, 3546)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} -try { - plainArray.setValueAt(10, 3); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -641,11 +554,6 @@ let plainArray = new PlainArray(); plainArray.add(1, "squirrel"); plainArray.add(2, "sparrow"); let result = plainArray.toString(); -try { - plainArray.toString.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -672,17 +580,12 @@ let plainArray = new PlainArray(); plainArray.add(1, "squirrel"); plainArray.add(2, "sparrow"); plainArray.clear(); -try { - plainArray.clear.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### forEach -forEach(callbackfn: (value: T, index?: number, PlainArray?: PlainArray<T>) => void, thisArg?: Object): void +forEach(callbackFn: (value: T, index?: number, PlainArray?: PlainArray<T>) => void, thisArg?: Object): void Uses a callback to traverse the elements in this container and obtain their position indexes. @@ -692,7 +595,7 @@ Uses a callback to traverse the elements in this container and obtain their posi | Name| Type | Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked to traverse the elements in the container.| +| callbackFn | function | Yes| Callback invoked to traverse the elements in the container.| | thisArg | Object | No| Value to use when the callback is invoked.| callbackfn @@ -719,13 +622,6 @@ plainArray.add(2, "sparrow"); plainArray.forEach((value, index) => { console.log("value:" + value, index); }); -try { - plainArray.forEach.bind({}, (value, index) => { - console.log("value:" + value, index); - })(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -772,9 +668,4 @@ while(temp != undefined) { console.log("value:" + temp[1]); temp = iter.next().value; } -try { - plainArray[Symbol.iterator].bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` diff --git a/en/application-dev/reference/apis/js-apis-power.md b/en/application-dev/reference/apis/js-apis-power.md index ad6e437f09767e362b2787f5ee78dd58d1a65165..1c78452681d08db91a4aa3ee4cf2aea785072191 100644 --- a/en/application-dev/reference/apis/js-apis-power.md +++ b/en/application-dev/reference/apis/js-apis-power.md @@ -1,10 +1,9 @@ # Power Manager -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** -> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. - The Power Manager module provides APIs for rebooting and shutting down the system, as well as querying the screen status. +> **NOTE** +> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## Modules to Import @@ -12,42 +11,294 @@ The Power Manager module provides APIs for rebooting and shutting down the syste import power from '@ohos.power'; ``` -## System Capability - -SystemCapability.PowerManager.PowerManager.Core - +## power.shutdown -## power.shutdownDevice - -shutdownDevice(reason: string): void +shutdown(reason: string): void Shuts down the system. -This is a system API and cannot be called by third-party applications. +**System API**: This is a system API. **Required permission**: ohos.permission.REBOOT +**System capability:** SystemCapability.PowerManager.PowerManager.Core + **Parameters** | Name | Type | Mandatory | Description | | ------ | ------ | ---- | ----- | | reason | string | Yes | Reason for system shutdown.| +**Error codes** + +For details about the error codes, see [Power Manager Error Codes](../errorcodes/errorcode-power.md). + +| Code | Error Message | +|---------|---------| +| 4900101 | Operation failed. Cannot connect to service.| + **Example** ```js -power.shutdownDevice("shutdown_test"); -console.info('power_shutdown_device_test success') +try { + power.shutdown('shutdown_test'); +} catch(err) { + console.error('shutdown failed, err: ' + err); +} ``` +## power.reboot9+ + +reboot(reason: string): void + +Reboots the system. + +**System API**: This is a system API. + +**Required permission**: ohos.permission.REBOOT + +**System capability:** SystemCapability.PowerManager.PowerManager.Core + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ---------- | +| reason | string | Yes | Reason for system reboot.| + +**Error codes** + +For details about the error codes, see [Power Manager Error Codes](../errorcodes/errorcode-power.md). + +| Code | Error Message | +|---------|---------| +| 4900101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +try { + power.reboot('reboot_test'); +} catch(err) { + console.error('reboot failed, err: ' + err); +} +``` + +## power.isActive9+ + +isActive(): boolean + +Checks whether the current device is active. + +**System capability:** SystemCapability.PowerManager.PowerManager.Core + +**Error codes** + +For details about the error codes, see [Power Manager Error Codes](../errorcodes/errorcode-power.md). + +| Code | Error Message | +|---------|---------| +| 4900101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +try { + var isActive = power.isActive(); + console.info('power is active: ' + isActive); +} catch(err) { + console.error('check active status failed, err: ' + err); +} +``` + +## power.wakeup9+ + +wakeup(detail: string): void + +Wakes up a device. + +**System API**: This is a system API. + +**System capability:** SystemCapability.PowerManager.PowerManager.Core + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ---------- | +| detail | string | Yes | Reason for wakeup.| + +**Error codes** + +For details about the error codes, see [Power Manager Error Codes](../errorcodes/errorcode-power.md). + +| Code | Error Message | +|---------|---------| +| 4900101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +try { + power.wakeup('wakeup_test'); +} catch(err) { + console.error('wakeup failed, err: ' + err); +} +``` + +## power.suspend9+ + +suspend(): void + +Hibernates a device. + +**System API**: This is a system API. + +**System capability:** SystemCapability.PowerManager.PowerManager.Core + +**Error codes** + +For details about the error codes, see [Power Manager Error Codes](../errorcodes/errorcode-power.md). + +| Code | Error Message | +|---------|---------| +| 4900101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +try { + power.suspend(); +} catch(err) { + console.error('suspend failed, err: ' + err); +} +``` -## power.rebootDevice +## power.getPowerMode9+ + +getPowerMode(): DevicePowerMode + +Obtains the power mode of this device. + +**System capability:** SystemCapability.PowerManager.PowerManager.Core + +**Return value** + +| Type | Description | +| ------------------------------------ | ---------- | +| [DevicePowerMode](#devicepowermode9) | Power mode.| + +**Error codes** + +For details about the error codes, see [Power Manager Error Codes](../errorcodes/errorcode-power.md). + +| Code | Error Message | +|---------|---------| +| 4900101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +try { + var mode = power.getPowerMode(); + console.info('power mode: ' + mode); +} catch(err) { + console.error('get power mode failed, err: ' + err); +} +``` + +## power.setPowerMode9+ + +setPowerMode(mode: DevicePowerMode, callback: AsyncCallback<void>): void + +Sets the power mode of this device. This API uses an asynchronous callback to return the result. + +**System API**: This is a system API. + +**Required permission**: ohos.permission.POWER_OPTIMIZATION + +**System capability:** SystemCapability.PowerManager.PowerManager.Core + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------ | ---- | ------------------------------------------------------------ | +| mode | [DevicePowerMode](#devicepowermode9) | Yes | Power mode. | +| callback | AsyncCallback<void> | Yes | Callback used to return the result. If the power mode is successfully set, **err** is **undefined**; otherwise, **err** is an error object.| + +**Error codes** + +For details about the error codes, see [Power Manager Error Codes](../errorcodes/errorcode-power.md). + +| Code | Error Message | +|---------|---------| +| 4900101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +power.setPowerMode(power.DevicePowerMode.MODE_PERFORMANCE, err => { + if (typeof err === 'undefined') { + console.info('set power mode to MODE_PERFORMANCE'); + } else { + console.error('set power mode failed, err: ' + err); + } +}); +``` + +## power.setPowerMode9+ + +setPowerMode(mode: DevicePowerMode): Promise<void> + +Sets the power mode of this device. This API uses a promise to return the result. + +**System API**: This is a system API. + +**Required permission**: ohos.permission.POWER_OPTIMIZATION + +**System capability:** SystemCapability.PowerManager.PowerManager.Core + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------------------------------------ | ---- | ---------- | +| mode | [DevicePowerMode](#devicepowermode9) | Yes | Power mode.| + +**Return value** + +| Type | Description | +| ------------------- | -------------------------------------- | +| Promise<void> | Promise that returns no value.| + +**Error codes** + +For details about the error codes, see [Power Manager Error Codes](../errorcodes/errorcode-power.md). + +| Code | Error Message | +|---------|---------| +| 4900101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +power.setPowerMode(power.DevicePowerMode.MODE_PERFORMANCE) +.then(() => { + console.info('set power mode to MODE_PERFORMANCE'); +}) +.catch(err => { + console.error('set power mode failed, err: ' + err); +}); +``` + +## power.rebootDevice(deprecated) rebootDevice(reason: string): void +> This API is deprecated since API version 9. You are advised to use [power.reboot](#powerreboot9) instead. + Reboots the system. -**Required permission**: ohos.permission.REBOOT (to reboot) or ohos.permission.REBOOT_RECOVERY (to reboot and enter the recovery or updater mode) +**Required permission**: ohos.permission.REBOOT + +**System capability:** SystemCapability.PowerManager.PowerManager.Core **Parameters** @@ -58,55 +309,73 @@ Reboots the system. **Example** ```js -power.rebootDevice("reboot_test"); -console.info('power_reboot_device_test success') +power.rebootDevice('reboot_test'); ``` - -## power.isScreenOn +## power.isScreenOn(deprecated) isScreenOn(callback: AsyncCallback<boolean>): void -Checks the screen status of the current device. +> This API is deprecated since API version 9. You are advised to use [power.isActive](#powerisactive9) instead. + +Checks the screen status of the current device. This API uses an asynchronous callback to return the result. + +**System capability:** SystemCapability.PowerManager.PowerManager.Core **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------------- | ---- | ---------------------------------------- | -| callback | AsyncCallback<boolean> | Yes | Callback used to obtain the return value.
Return value: The value **true** indicates that the screen is on, and the value **false** indicates the opposite.| +| Name | Type | Mandatory| Description | +| -------- | ---------------------------- | ---- | ------------------------------------------------------------ | +| callback | AsyncCallback<boolean> | Yes | Callback used to return the result. If the operation is successful, **err** is **undefined** and **data** is the screen status obtained, where the value **true** indicates on and the value **false** indicates the opposite. Otherwise, **err** is an error object.| **Example** ```js -power.isScreenOn((error, screenOn) => { - if (typeof error === "undefined") { - console.info('screenOn status is ' + screenOn); +power.isScreenOn((err, data) => { + if (typeof err === 'undefined') { + console.info('screen on status is ' + data); } else { - console.log('error: ' + error); + console.error('check screen status failed, err: ' + err); } }) ``` - -## power.isScreenOn +## power.isScreenOn(deprecated) isScreenOn(): Promise<boolean> -Checks the screen status of the current device. +> This API is deprecated since API version 9. You are advised to use [power.isActive](#powerisactive9) instead. + +Checks the screen status of the current device. This API uses a promise to return the result. + +**System capability:** SystemCapability.PowerManager.PowerManager.Core **Return value** -| Type | Description | -| ---------------------- | --------------------------------------- | -| Promise<boolean> | Promise used to obtain the return value.
Return value: The value **true** indicates that the screen is on, and the value **false** indicates the opposite.| +| Type | Description | +| ---------------------- | -------------------------------------------------- | +| Promise<boolean> | Promise used to return the result. The value **true** indicates that the screen is on, and the value **false** indicates the opposite.| **Example** ```js power.isScreenOn() -.then(screenOn => { - console.info('screenOn status is ' + screenOn); +.then(data => { + console.info('screen on status is ' + data); }) -.catch(error => { - console.log('error: ' + error); +.catch(err => { + console.error('check screen status failed, err: ' + err); }) ``` + +## DevicePowerMode9+ + +Enumerates power modes. + +**System capability:** SystemCapability.PowerManager.PowerManager.Core + +| Name | Value | Description | +| ----------------------- | ---- | ---------------------- | +| MODE_NORMAL | 600 | Standard mode. It is the default value.| +| MODE_POWER_SAVE | 601 | Power saving mode. | +| MODE_PERFORMANCE | 602 | Performance mode. | +| MODE_EXTREME_POWER_SAVE | 603 | Ultra power saving mode. | diff --git a/en/application-dev/reference/apis/js-apis-process.md b/en/application-dev/reference/apis/js-apis-process.md index 59727e8c039dd23adc71b3a0b314e5664e8c9b34..318ba307995a44950461ae3b9a43e92743c37364 100755 --- a/en/application-dev/reference/apis/js-apis-process.md +++ b/en/application-dev/reference/apis/js-apis-process.md @@ -1,4 +1,4 @@ -# Obtaining Process Information +# @ohos.process (Obtaining Process Information) > **NOTE** > @@ -18,13 +18,13 @@ import process from '@ohos.process'; | Name| Type| Readable| Writable| Description| | -------- | -------- | -------- | -------- | -------- | -| egid | number | Yes| No| Effective group identifier (EGID) of a process. This is a system API and cannot be called by third-party applications.| -| euid | number | Yes| No| Effective user identifier (EUID) of a process. This is a system API and cannot be called by third-party applications.| -| gid | number | Yes| No| Group identifier (GID) of a process. This is a system API and cannot be called by third-party applications.| +| egid | number | Yes| No| Effective group identifier (EGID) of a process.
**System API**: This is a system API.
It is used only to test applications.| +| euid | number | Yes| No| Effective user identifier (EUID) of a process.
**System API**: This is a system API.
It is used only to test applications.| +| gid | number | Yes| No| Group identifier (GID) of a process.
**System API**: This is a system API.
It is used only to test applications.| | uid | number | Yes| No| User identifier (UID) of a process.| -| groups | number[] | Yes| No| Array with supplementary group IDs. This is a system API and cannot be called by third-party applications.| +| groups | number[] | Yes| No| Array with supplementary group IDs.
**System API**: This is a system API.
It is used only to test applications.| | pid | number | Yes| No| Process ID (PID) of a process.| -| ppid | number | Yes| No| Parent process ID (PPID) of a process. This is a system API and cannot be called by third-party applications.| +| ppid | number | Yes| No| Parent process ID (PPID) of a process.
**System API**: This is a system API.
It is used only to test applications.| | tid8+ | number | Yes| No| Thread ID (TID) of a process.| @@ -32,7 +32,7 @@ import process from '@ohos.process'; Provides APIs for throwing exceptions during the addition of a process. -### process.isAppUid9+ +### isAppUid9+ isAppUid(v: number): boolean @@ -60,7 +60,7 @@ let result = pro.isAppUid(688); ``` -### process.getUidForName9+ +### getUidForName9+ getUidForName(v: string): number @@ -88,7 +88,7 @@ let pres = pro .getUidForName("tool"); ``` -### process.getThreadPriority9+ +### getThreadPriority9+ getThreadPriority(v: number): number @@ -117,7 +117,7 @@ let pres = pro.getThreadPriority(tid); ``` -### process.getSystemConfig9+ +### getSystemConfig9+ getSystemConfig(name: number): number @@ -146,7 +146,7 @@ let pres = pro.getSystemConfig(_SC_ARG_MAX); ``` -### process.getEnvironmentVar9+ +### getEnvironmentVar9+ getEnvironmentVar(name: string): string @@ -174,7 +174,7 @@ let pres = pro.getEnvironmentVar("PATH"); ``` -### process.exit9+ +### exit9+ exit(code: number): void @@ -198,7 +198,7 @@ pro.exit(0); ``` -### process.kill9+ +### kill9+ kill(signal: number, pid: number): boolean @@ -238,10 +238,10 @@ Allows a process to obtain the standard input and output of its child processes, | Name| Type| Readable| Writable| Description| | -------- | -------- | -------- | -------- | -------- | -| pid | number | Yes| No| PID of the child process. This is a system API and cannot be called by third-party applications.| -| ppid | number | Yes| No| PPID of the child process. This is a system API and cannot be called by third-party applications.| -| exitCode | number | Yes| No| Exit code of the child process. This is a system API and cannot be called by third-party applications.| -| killed | boolean | Yes| No| Whether the parent process successfully sends a signal to the child process to terminate it. This is a system API and cannot be called by third-party applications.| +| pid | number | Yes| No| PID of the child process.
**System API**: This is a system API.
It is used only to test applications.| +| ppid | number | Yes| No| PPID of the child process.
**System API**: This is a system API.
It is used only to test applications.| +| exitCode | number | Yes| No| Exit code of the child process.
**System API**: This is a system API.
It is used only to test applications.| +| killed | boolean | Yes| No| Whether the parent process successfully sends a signal to the child process to terminate it.
**System API**: This is a system API.
It is used only to test applications.| ### wait @@ -250,7 +250,9 @@ wait(): Promise<number> Waits until the child process ends. This method uses a promise to return the exit code of the child process. -This is a system API and cannot be called by third-party applications. +**System API**: This is a system API. + +It is used only to test applications. **System capability**: SystemCapability.Utils.Lang @@ -277,7 +279,9 @@ getOutput(): Promise<Uint8Array> Obtains the standard output of the child process. -This is a system API and cannot be called by third-party applications. +**System API**: This is a system API. + +It is used only to test applications. **System capability**: SystemCapability.Utils.Lang @@ -304,7 +308,9 @@ getErrorOutput(): Promise<Uint8Array> Obtains the standard error output of the child process. -This is a system API and cannot be called by third-party applications. +**System API**: This is a system API. + +It is used only to test applications. **System capability**: SystemCapability.Utils.Lang @@ -331,7 +337,9 @@ close(): void Closes the child process in running. -This is a system API and cannot be called by third-party applications. +**System API**: This is a system API. + +It is used only to test applications. **System capability**: SystemCapability.Utils.Lang @@ -349,7 +357,9 @@ kill(signal: number | string): void Sends a signal to the specified child process to terminate it. -This is a system API and cannot be called by third-party applications. +**System API**: This is a system API. + +It is used only to test applications. **System capability**: SystemCapability.Utils.Lang @@ -593,7 +603,9 @@ runCmd(command: string, options?: { timeout?: number, killSignal?: number | stri Forks a new process to run a shell command and returns the **ChildProcess** object. -This is a system API and cannot be called by third-party applications. +**System API**: This is a system API. + +It is used only to test applications. **System capability**: SystemCapability.Utils.Lang @@ -609,7 +621,7 @@ This is a system API and cannot be called by third-party applications. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | timeout | number | No| Maximum running time (in ms) of the child process. When the running time of the child process exceeds the value of this parameter, the parent process sends a **killSignal** to the child process to terminate it. The default value is **0**.| -| killSignal | number \| string | No| Signal sent to the child process when the running time of a child process exceeds the timeout period. The default value is **SIGTERM**.| +| killSignal | number \| string | No| Signal sent to the child process when the running time of a child process exceeds the timeout period. The default value is **SIGTERM**.| | maxBuffer | number | No| Maximum buffer size for the standard input and output of the child process. When the size is exceeded, the child process will be terminated. The default value is **1024 \* 1024**.| **Return value** @@ -650,7 +662,9 @@ on(type: string, listener: EventListener): void Stores the events triggered by the user. -This is a system API and cannot be called by third-party applications. +**System API**: This is a system API. + +It is used only to test applications. **System capability**: SystemCapability.Utils.Lang @@ -682,7 +696,9 @@ off(type: string): boolean Deletes the event stored by the user. -This is a system API and cannot be called by third-party applications. +**System API**: This is a system API. + +It is used only to test applications. **System capability**: SystemCapability.Utils.Lang @@ -737,7 +753,9 @@ cwd(): string Obtains the working directory of this process. -This is a system API and cannot be called by third-party applications. +**System API**: This is a system API. + +It is used only to test applications. **System capability**: SystemCapability.Utils.Lang @@ -754,7 +772,9 @@ chdir(dir: string): void Changes the working directory of this process. -This is a system API and cannot be called by third-party applications. +**System API**: This is a system API. + +It is used only to test applications. **System capability**: SystemCapability.Utils.Lang diff --git a/en/application-dev/reference/apis/js-apis-queue.md b/en/application-dev/reference/apis/js-apis-queue.md index 11ca91994e98310961e657db1a4c5e2554798c99..57ce3f7b301c42167b6af3830e39949afd76f719 100644 --- a/en/application-dev/reference/apis/js-apis-queue.md +++ b/en/application-dev/reference/apis/js-apis-queue.md @@ -1,4 +1,4 @@ -# Linear Container Queue +# @ohos.util.Queue (Linear Container Queue) > **NOTE** > @@ -51,11 +51,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let queue = new Queue(); -try { - let queue2 = Queue(); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -97,11 +92,6 @@ let b = [1, 2, 3]; let result2 = queue.add(b); let c = {name : "Dylon", age : "13"}; let result3 = queue.add(c); -try { - queue.add.bind({}, "b")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### pop @@ -136,11 +126,6 @@ queue.add(5); queue.add(2); queue.add(4); let result = queue.pop(); -try { - queue.pop.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### getFirst @@ -151,7 +136,7 @@ Obtains the first element of this container. **System capability**: SystemCapability.Utils.Lang -**Parameters** +**Return value** | Type| Description| | -------- | -------- | @@ -174,16 +159,11 @@ queue.add(4); queue.add(5); queue.add(2); let result = queue.getFirst(); -try { - queue.getFirst.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### forEach -forEach(callbackfn: (value: T, index?: number, Queue?: Queue<T>) => void, +forEach(callbackFn: (value: T, index?: number, Queue?: Queue<T>) => void, thisArg?: Object): void Uses a callback to traverse the elements in this container and obtain their position indexes. @@ -194,7 +174,7 @@ Uses a callback to traverse the elements in this container and obtain their posi | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked to traverse the elements in the container.| +| callbackFn | function | Yes| Callback invoked to traverse the elements in the container.| | thisArg | Object | No| Value to use when the callback is invoked.| callbackfn @@ -224,13 +204,6 @@ queue.add(4); queue.forEach((value, index) => { console.log("value:" + value, index); }); -try { - queue.forEach.bind({}, (value, index) => { - console.log("value:" + value, index); - })(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### [Symbol.iterator] @@ -275,9 +248,4 @@ while(temp != undefined) { console.log("value:" + temp); temp = iter.next().value; } -try { - queue[Symbol.iterator].bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` diff --git a/en/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md b/en/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md index 8944052b4fed8899733d3cf924479ddc4359fc7e..03645ac62b8ec51c616fbfd6e923aef203a52ad6 100644 --- a/en/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md +++ b/en/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md @@ -1,4 +1,4 @@ -# Background Task Management +# @ohos.resourceschedule.backgroundTaskManager (Background Task Management) The **BackgroundTaskManager** module provides APIs to manage background tasks. @@ -234,7 +234,7 @@ Requests a continuous task from the system. This API uses an asynchronous callba | Name | Type | Mandatory | Description | | --------- | ---------------------------------- | ---- | ---------------------------------------- | -| context | Context | Yes | Application context.
For the application context of the FA model, see [Context](js-apis-Context.md).
For the application context of the stage model, see [Context](js-apis-ability-context.md).| +| context | Context | Yes | Application context.
For details about the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For details about the application context of the stage model, see [Context](js-apis-ability-context.md).| | bgMode | [BackgroundMode](#backgroundmode) | Yes | Background mode requested. | | wantAgent | [WantAgent](js-apis-wantAgent.md) | Yes | Notification parameter, which is used to specify the target page that is redirected to when a continuous task notification is clicked. | | callback | AsyncCallback<void> | Yes | Callback used to return the result. | @@ -308,7 +308,7 @@ Requests a continuous task from the system. This API uses a promise to return th | Name | Type | Mandatory | Description | | --------- | ---------------------------------- | ---- | ---------------------------------------- | -| context | Context | Yes | Application context.
For the application context of the FA model, see [Context](js-apis-Context.md).
For the application context of the stage model, see [Context](js-apis-ability-context.md).| +| context | Context | Yes | Application context.
For details about the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For details about the application context of the stage model, see [Context](js-apis-ability-context.md).| | bgMode | [BackgroundMode](#backgroundmode) | Yes | Background mode requested. | | wantAgent | [WantAgent](js-apis-wantAgent.md) | Yes | Notification parameter, which is used to specify the target page that is redirected to when a continuous task notification is clicked. | @@ -381,7 +381,7 @@ Requests to cancel a continuous task. This API uses an asynchronous callback to | Name | Type | Mandatory | Description | | -------- | ------------------------- | ---- | ---------------------------------------- | -| context | Context | Yes | Application context.
For the application context of the FA model, see [Context](js-apis-Context.md).
For the application context of the stage model, see [Context](js-apis-ability-context.md).| +| context | Context | Yes | Application context.
For details about the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For details about the application context of the stage model, see [Context](js-apis-ability-context.md).| | callback | AsyncCallback<void> | Yes | Callback used to return the result. | **Error codes** @@ -437,7 +437,7 @@ Requests to cancel a continuous task. This API uses a promise to return the resu | Name | Type | Mandatory | Description | | ------- | ------- | ---- | ---------------------------------------- | -| context | Context | Yes | Application context.
For the application context of the FA model, see [Context](js-apis-Context.md).
For the application context of the stage model, see [Context](js-apis-ability-context.md).| +| context | Context | Yes | Application context.
For details about the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For details about the application context of the stage model, see [Context](js-apis-ability-context.md).| **Return value** @@ -618,12 +618,12 @@ Enumerates the efficiency resource types. **System API**: This is a system API. -| Name | Description | -| ----------------------- | --------------------- | -| CPU | CPU resources, which prevent the application from being suspended. | -| COMMON_EVENT | A type of software resources, which prevent common events from being proxied when the application is suspended. | -| TIMER | A type of software resources, which prevent timers from being proxied when the application is suspended. | -| WORK_SCHEDULER | WORK_SCHEDULER resources, which ensure that the application has more time to execute the task. | -| BLUETOOTH | A type of hardware resources, which prevent Bluetooth resources from being proxied when the application is suspended. | -| GPS | A type of hardware resources, which prevent GPS resources from being proxied when the application is suspended. | -| AUDIO | A type of hardware resources, which prevent audio resources from being proxied when the application is suspended.| +| Name | Value | Description | +| ----------------------- | ---- | --------------------- | +| CPU | 1 | CPU resources, which prevent the application from being suspended. | +| COMMON_EVENT | 2 | A type of software resources, which prevent common events from being proxied when the application is suspended. | +| TIMER | 4 | A type of software resources, which prevent timers from being proxied when the application is suspended. | +| WORK_SCHEDULER | 8 | WORK_SCHEDULER resources, which ensure that the application has more time to execute the task. | +| BLUETOOTH | 16 | A type of hardware resources, which prevent Bluetooth resources from being proxied when the application is suspended. | +| GPS | 32 | A type of hardware resources, which prevent GPS resources from being proxied when the application is suspended. | +| AUDIO | 64 | A type of hardware resources, which prevent audio resources from being proxied when the application is suspended.| diff --git a/en/application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md b/en/application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md index f83329d727dd9c95d076415717d1e765665326b8..b423c712999053c8a00d0b8503525cd03ce1cdf8 100644 --- a/en/application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md +++ b/en/application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md @@ -1,4 +1,4 @@ -# Device Usage Statistics +# @ohos.resourceschedule.usageStatistics (Device Usage Statistics) This module provides APIs for collecting statistics on device usage. @@ -703,7 +703,7 @@ Queries FA usage records. This API uses an asynchronous callback to return a max | Name | Type | Mandatory | Description | | -------- | ---------------------------------------- | ---- | ----------------------------------- | -| callback | AsyncCallback<Array<[HapModuleInfo](#hapmoduleinfo)>> | Yes | Callback used to return a maximum of 1000 FA usage records.| +| callback | AsyncCallback<Array<[HapModuleInfo](#hapmoduleinfo)>> | Yes | Callback used to return a maximum of **maxNum** FA usage records.| **Error codes** diff --git a/en/application-dev/reference/apis/js-apis-resourceschedule-workScheduler.md b/en/application-dev/reference/apis/js-apis-resourceschedule-workScheduler.md index e62f6ca72f897772a8c98f21d14aaf18e398f575..77638dbfe38acf986f1b632349253c9ceb9496ed 100644 --- a/en/application-dev/reference/apis/js-apis-resourceschedule-workScheduler.md +++ b/en/application-dev/reference/apis/js-apis-resourceschedule-workScheduler.md @@ -1,4 +1,4 @@ -# Work Scheduler +# @ohos.resourceschedule.workScheduler The **workScheduler** module provides the APIs for registering, canceling, and querying Work Scheduler tasks, which do not have real-time constraints. @@ -437,45 +437,45 @@ Enumerates the network types that can trigger the task. **System capability**: SystemCapability.ResourceSchedule.WorkScheduler -| Name | Description | -| ---------------------- | ----------------------- | -| NETWORK_TYPE_ANY | Any network type. | -| NETWORK_TYPE_MOBILE | Mobile network. | -| NETWORK_TYPE_WIFI | Wi-Fi network. | -| NETWORK_TYPE_BLUETOOTH | Bluetooth network.| -| NETWORK_TYPE_WIFI_P2P | Wi-Fi P2P network. | -| NETWORK_TYPE_ETHERNET | Ethernet. | +| Name | Value | Description | +| ---------------------- | ---- | ----------------------- | +| NETWORK_TYPE_ANY | 0 | Any network type. | +| NETWORK_TYPE_MOBILE | 1 | Mobile network. | +| NETWORK_TYPE_WIFI | 2 | Wi-Fi network. | +| NETWORK_TYPE_BLUETOOTH | 3 | Bluetooth network.| +| NETWORK_TYPE_WIFI_P2P | 4 | Wi-Fi P2P network. | +| NETWORK_TYPE_ETHERNET | 5 | Ethernet. | ## ChargingType Enumerates the charging types that can trigger the task. **System capability**: SystemCapability.ResourceSchedule.WorkScheduler -| Name | Description | -| ------------------------- | -------------------- | -| CHARGING_PLUGGED_ANY | Any charging type.| -| CHARGING_PLUGGED_AC | DC charging. | -| CHARGING_PLUGGED_USB | USB charging. | -| CHARGING_PLUGGED_WIRELESS | Wireless charging. | +| Name | Value | Description | +| ------------------------- | ---- | -------------------- | +| CHARGING_PLUGGED_ANY | 0 | Any charging type.| +| CHARGING_PLUGGED_AC | 1 | DC charging. | +| CHARGING_PLUGGED_USB | 2 | USB charging. | +| CHARGING_PLUGGED_WIRELESS | 3 | Wireless charging. | ## BatteryStatus Enumerates the battery states that can trigger the task. **System capability**: SystemCapability.ResourceSchedule.WorkScheduler -| Name | Description | -| -------------------------- | -------------------------- | -| BATTERY_STATUS_LOW | A low battery alert is displayed. | -| BATTERY_STATUS_OKAY | The battery level is restored from low to normal. | -| BATTERY_STATUS_LOW_OR_OKAY | The battery level is restored from low to normal, or a low battery alert is displayed.| +| Name | Value | Description | +| -------------------------- | ---- | -------------------------- | +| BATTERY_STATUS_LOW | 0 | A low battery alert is displayed. | +| BATTERY_STATUS_OKAY | 1 | The battery level is restored from low to normal. | +| BATTERY_STATUS_LOW_OR_OKAY | 2 | The battery level is restored from low to normal, or a low battery alert is displayed.| ## StorageRequest Enumerates the storage states that can trigger the task. **System capability**: SystemCapability.ResourceSchedule.WorkScheduler -| Name | Description | -| ------------------------- | ------------------------------ | -| STORAGE_LEVEL_LOW | The storage space is insufficient. | -| STORAGE_LEVEL_OKAY | The storage space is restored from insufficient to normal. | -| STORAGE_LEVEL_LOW_OR_OKAY | The storage space is restored from insufficient to normal, or the storage space is insufficient.| +| Name | Value | Description | +| ------------------------- | ---- | ------------------------------ | +| STORAGE_LEVEL_LOW | 0 | The storage space is insufficient. | +| STORAGE_LEVEL_OKAY | 1 | The storage space is restored from insufficient to normal. | +| STORAGE_LEVEL_LOW_OR_OKAY | 2 | The storage space is restored from insufficient to normal, or the storage space is insufficient.| diff --git a/en/application-dev/reference/apis/js-apis-rpc.md b/en/application-dev/reference/apis/js-apis-rpc.md index 50e5cfe7cc8bdb66fc5fddce209a47e684d8bc11..94757432a9c16fa471fb98629b63387594542e65 100644 --- a/en/application-dev/reference/apis/js-apis-rpc.md +++ b/en/application-dev/reference/apis/js-apis-rpc.md @@ -1,9 +1,11 @@ -# RPC +# @ohos.rpc The **RPC** module implements communication between processes, including inter-process communication (IPC) on a single device and remote procedure call (RPC) between processes on difference devices. IPC is implemented based on the Binder driver, and RPC is based on the DSoftBus driver. -> **NOTE**
+> **NOTE** +> > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> > This module supports return of error codes since API version 9. @@ -24,7 +26,7 @@ The APIs of this module return exceptions since API version 9. The following tab | ------------------------------------- | ------- | --------------------------------------------- | | CHECK_PARAM_ERROR | 401 | Parameter check failed. | | OS_MMAP_ERROR | 1900001 | Failed to call mmap. | - | OS_IOCTL_ERROR | 1900002 | Failed to execute **ioctl** with the shared memory file descriptor.| + | OS_IOCTL_ERROR | 1900002 | Failed to call **ioctl** with the shared memory file descriptor.| | WRITE_TO_ASHMEM_ERROR | 1900003 | Failed to write data to the shared memory. | | READ_FROM_ASHMEM_ERROR | 1900004 | Failed to read data from the shared memory. | | ONLY_PROXY_OBJECT_PERMITTED_ERROR | 1900005 | This operation is allowed only on the proxy object. | @@ -123,7 +125,7 @@ For details about the error codes, see [RPC Error Codes](../errorcodes/errorcode readRemoteObject(): IRemoteObject -Reads a remote object from **MessageSequence**. You can use this API to deserialize the **MessageSequence** object to generate an **IRemoteObject**. The remote object is read in the order in which it is written to this **MessageSequence** object. +Reads the remote object from **MessageSequence**. You can use this API to deserialize the **MessageSequence** object to generate an **IRemoteObject**. The remote object is read in the order in which it is written to this **MessageSequence** object. **System capability**: SystemCapability.Communication.IPC.Core @@ -405,7 +407,7 @@ Obtains the read position of this **MessageSequence** object. | Type| Description| | ------ | ------ | - | number | Current read position of the **MessageSequence** object.| + | number | Read position obtained.| **Example** @@ -427,7 +429,7 @@ Obtains the write position of this **MessageSequence** object. | Type| Description| | ------ | ----- | - | number | Current write position of the **MessageSequence** object.| + | number | Write position obtained.| **Example** @@ -504,7 +506,7 @@ Moves the write pointer to the specified position. writeByte(val: number): void -Writes a Byte value to this **MessageSequence** object. +Writes a byte value to this **MessageSequence** object. **System capability**: SystemCapability.Communication.IPC.Core @@ -538,7 +540,7 @@ For details about the error codes, see [RPC Error Codes](../errorcodes/errorcode readByte(): number -Reads the Byte value from this **MessageSequence** object. +Reads the byte value from this **MessageSequence** object. **System capability**: SystemCapability.Communication.IPC.Core @@ -2856,7 +2858,7 @@ For details about the error codes, see [RPC Error Codes](../errorcodes/errorcode readFileDescriptor(): number -Reads a file descriptor from this **MessageSequence** object. +Reads the file descriptor from this **MessageSequence** object. **System capability**: SystemCapability.Communication.IPC.Core @@ -4017,7 +4019,7 @@ Writes a string to this **MessageParcel** object. readString(): string -Reads a string from this **MessageParcel** object. +Reads the string from this **MessageParcel** object. **System capability**: SystemCapability.Communication.IPC.Core diff --git a/en/application-dev/reference/apis/js-apis-runninglock.md b/en/application-dev/reference/apis/js-apis-runninglock.md index 1b25989357a2e101b5b6e95d05b5ca60dab2fb6f..e3718c5878ccae3e63f8bdfae8b37061599fffda 100644 --- a/en/application-dev/reference/apis/js-apis-runninglock.md +++ b/en/application-dev/reference/apis/js-apis-runninglock.md @@ -1,95 +1,205 @@ -# Running Lock +# RunningLock -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
+The RunningLock module provides APIs for creating, querying, holding, and releasing running locks. + +> **NOTE** > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. -The Running Lock module provides APIs for creating, querying, holding, and releasing running locks. +## Modules to Import +```js +import runningLock from '@ohos.runningLock'; +``` -## Modules to Import +## runningLock.isSupported9+ + +isSupported(type: RunningLockType): boolean; + +Checks whether a specified type of **RunningLock** is supported. + +**System capability:** SystemCapability.PowerManager.PowerManager.Core + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ----------------------------------- | ---- | -------------------- | +| type | [RunningLockType](#runninglocktype) | Yes | Type of the **RunningLock** object.| + +**Return value** + +| Type | Description | +| ------- | --------------------------------------- | +| boolean | The value **true** indicates that the specified type of **RunningLock** is supported, and the value **false** indicates the opposite.| + +**Error codes** + +For details about the error codes, see [RunningLock Error Codes](../errorcodes/errorcode-runninglock.md). + +| Code | Error Message | +|---------|---------| +| 4900101 | Operation failed. Cannot connect to service.| + +**Example** +```js +try { + var isSupported = runningLock.isSupported(runningLock.RunningLockType.BACKGROUND); + console.info('BACKGROUND type supported: ' + isSupported); +} catch(err) { + console.error('check supported failed, err: ' + err); +} ``` -import runningLock from '@ohos.runningLock'; + +## runningLock.create9+ + +create(name: string, type: RunningLockType, callback: AsyncCallback<RunningLock>): void + +Creates a **RunningLock** object. + +**System capability:** SystemCapability.PowerManager.PowerManager.Core + +**Required permission:** ohos.permission.RUNNING_LOCK + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------------ | ---- | ------------------------------------------------------------ | +| name | string | Yes | Name of the **RunningLock** object. | +| type | [RunningLockType](#runninglocktype) | Yes | Type of the **RunningLock** object to be created. | +| callback | AsyncCallback<[RunningLock](#runninglock)> | Yes | Callback used to return the result. If a lock is successfully created, **err** is **undefined** and **data** is the created **RunningLock**. Otherwise, **err** is an error object.| + +**Error codes** + +For details about the error codes, see [RunningLock Error Codes](../errorcodes/errorcode-runninglock.md). + +| Code | Error Message | +|---------|----------| +| 4900101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +runningLock.create('running_lock_test', runningLock.RunningLockType.BACKGROUND, (err, lock) => { + if (typeof err === 'undefined') { + console.info('created running lock: ' + lock); + } else { + console.error('create running lock failed, err: ' + err); + } +}); ``` +## runningLock.create9+ -## RunningLockType +create(name: string, type: RunningLockType): Promise<RunningLock> -Enumerates the types of **RunningLock** objects. +Creates a **RunningLock** object. **System capability:** SystemCapability.PowerManager.PowerManager.Core -| Name | Default Value | Description | -| ------------------------ | ---- | ------------------- | -| BACKGROUND | 1 | A lock that prevents the system from hibernating when the screen is off. | -| PROXIMITY_SCREEN_CONTROL | 2 | A lock that determines whether to turn on or off the screen based on the distance away from the screen.| +**Required permission:** ohos.permission.RUNNING_LOCK +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ----------------------------------- | ---- | ------------------ | +| name | string | Yes | Name of the **RunningLock** object. | +| type | [RunningLockType](#runninglocktype) | Yes | Type of the **RunningLock** object to be created.| + +**Return value** + +| Type | Description | +| ------------------------------------------ | ------------------------------------ | +| Promise<[RunningLock](#runninglock)> | Promise used to return the result.| -## isRunningLockTypeSupported +**Error codes** + +For details about the error codes, see [RunningLock Error Codes](../errorcodes/errorcode-runninglock.md). + +| Code | Error Message | +|---------|----------| +| 4900101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +runningLock.create('running_lock_test', runningLock.RunningLockType.BACKGROUND) +.then(lock => { + console.info('created running lock: ' + lock); +}) +.catch(err => { + console.error('create running lock failed, error: ' + err); +}); +``` + +## runningLock.isRunningLockTypeSupported(deprecated) isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback<boolean>): void -Checks whether a specified type of **RunningLock** is supported. This function uses an asynchronous callback to return the result. +> This API is deprecated since API version 9. You are advised to use [runningLock.isSupported](#runninglockissupported9) instead. + +Checks whether a specified type of **RunningLock** is supported. This API uses an asynchronous callback to return the result. **System capability:** SystemCapability.PowerManager.PowerManager.Core **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------------- | ---- | ---------------------------------------- | -| type | RunningLockType | Yes | Type of the **RunningLock** object. | -| callback | AsyncCallback<boolean> | Yes | Callback used to obtain the return value.
Return value: The value **true** indicates that the specified type of **RunningLock** is supported, and the value **false** indicates the opposite.| +| Name | Type | Mandatory| Description | +| -------- | ----------------------------------- | ---- | ------------------------------------------------------------ | +| type | [RunningLockType](#runninglocktype) | Yes | Type of the **RunningLock** object. | +| callback | AsyncCallback<boolean> | Yes | Callback used to return the result. If the operation is successful, **err** is **undefined** and **data** is the query result obtained, where the value **true** indicates that **RunningLock** is supported and **false** indicates the opposite. Otherwise, **err** is an error object.| **Example** -``` -runningLock.isRunningLockTypeSupported(runningLock.RunningLockType.BACKGROUND, (error, supported) => { - if (typeof error === "undefined") { - console.info('BACKGROUND support status is ' + supported); +```js +runningLock.isRunningLockTypeSupported(runningLock.RunningLockType.BACKGROUND, (err, data) => { + if (typeof err === 'undefined') { + console.info('BACKGROUND lock support status: ' + data); } else { - console.log('error: ' + error); + console.log('check BACKGROUND lock support status failed, err: ' + err); } -}) +}); ``` +## runningLock.isRunningLockTypeSupported(deprecated) -## isRunningLockTypeSupported +isRunningLockTypeSupported(type: RunningLockType): Promise<boolean> -isRunningLockTypeSupported(type: RunningLockType): Promise<boolean> +> This API is deprecated since API version 9. You are advised to use [runningLock.isSupported](#runninglockissupported9) instead. -Checks whether a specified type of **RunningLock** is supported. This function uses an asynchronous callback to return the result. +Checks whether a specified type of **RunningLock** is supported. This API uses a promise to return the result. **System capability:** SystemCapability.PowerManager.PowerManager.Core **Parameters** -| Name | Type | Mandatory | Description | -| ---- | --------------- | ---- | ---------- | -| type | RunningLockType | Yes | Type of the **RunningLock** object.| +| Name| Type | Mandatory| Description | +| ------ | ----------------------------------- | ---- | -------------------- | +| type | [RunningLockType](#runninglocktype) | Yes | Type of the **RunningLock** object.| -**Return Value** +**Return value** -| Type | Description | -| ---------------------- | ---------------------------------------- | -| Promise<boolean> | Promise used to asynchronously obtain the return value.
Return value: The value **true** indicates that the specified type of **RunningLock** is supported, and the value **false** indicates the opposite.| +| Type | Description | +| ---------------------- | ---------------------------------------------------- | +| Promise<boolean> | Promise used to return the result. The value **true** indicates that the specified type of **RunningLock** is supported, and the value **false** indicates the opposite.| **Example** -``` -runningLock.isRunningLockTypeSupported(runningLock.RunningLockType.PROXIMITY_SCREEN_CONTROL) -.then(supported => { - console.info('PROXIMITY_SCREEN_CONTROL support status is ' + supported); +```js +runningLock.isRunningLockTypeSupported(runningLock.RunningLockType.BACKGROUND) +.then(data => { + console.info('BACKGROUND lock support status: ' + data); }) -.catch(error => { - console.log('error: ' + error); +.catch(err => { + console.log('check BACKGROUND lock support status failed, err: ' + err); }); ``` - -## createRunningLock +## runningLock.createRunningLock(deprecated) createRunningLock(name: string, type: RunningLockType, callback: AsyncCallback<RunningLock>): void +> This API is deprecated since API version 9. You are advised to use [runningLock.create](#runninglockcreate9) instead. + Creates a **RunningLock** object. **System capability:** SystemCapability.PowerManager.PowerManager.Core @@ -98,33 +208,30 @@ Creates a **RunningLock** object. **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------------------------- | ---- | -------------------------------------- | -| name | string | Yes | Name of the **RunningLock** object. | -| type | RunningLockType | Yes | Type of the **RunningLock** object to be created. | -| callback | AsyncCallback<[RunningLock](#runninglock)> | Yes | Callback used to obtain the return value.| +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------------ | ---- | ------------------------------------------------------------ | +| name | string | Yes | Name of the **RunningLock** object. | +| type | [RunningLockType](#runninglocktype) | Yes | Type of the **RunningLock** object to be created. | +| callback | AsyncCallback<[RunningLock](#runninglock)> | Yes | Callback used to return the result. If a lock is successfully created, **err** is **undefined** and **data** is the created **RunningLock**. Otherwise, **err** is an error object.| **Example** -``` -runningLock.createRunningLock("running_lock_test", runningLock.RunningLockType.BACKGROUND, (error, lockIns) => { - if (typeof error === "undefined") { - var used = lockIns.isUsed(); - console.info('runninglock is used: ' + used); - lockIns.lock(500); - used = lockIns.isUsed(); - console.info('after lock runninglock is used ' + used); +```js +runningLock.createRunningLock('running_lock_test', runningLock.RunningLockType.BACKGROUND, (err, lock) => { + if (typeof err === 'undefined') { + console.info('created running lock: ' + lock); } else { - console.log('create runningLock test error: ' + error); + console.error('create running lock failed, err: ' + err); } -}) +}); ``` - -## createRunningLock +## runningLock.createRunningLock(deprecated) createRunningLock(name: string, type: RunningLockType): Promise<RunningLock> +> This API is deprecated since API version 9. You are advised to use [runningLock.create](#runninglockcreate9) instead. + Creates a **RunningLock** object. **System capability:** SystemCapability.PowerManager.PowerManager.Core @@ -133,39 +240,157 @@ Creates a **RunningLock** object. **Parameters** -| Name | Type | Mandatory | Description | -| ---- | --------------- | ---- | --------- | -| name | string | Yes | Name of the **RunningLock** object. | -| type | RunningLockType | Yes | Type of the **RunningLock** object to be created.| +| Name| Type | Mandatory| Description | +| ------ | ----------------------------------- | ---- | ------------------ | +| name | string | Yes | Name of the **RunningLock** object. | +| type | [RunningLockType](#runninglocktype) | Yes | Type of the **RunningLock** object to be created.| -**Return Value** +**Return value** | Type | Description | -| ---------------------------------------- | ---------------------------------- | -| Promise<[RunningLock](#runninglock)> | Promise used to asynchronously obtain the returned **RunningLock** object.| +| ------------------------------------------ | ------------------------------------ | +| Promise<[RunningLock](#runninglock)> | Promise used to return the result.| **Example** +```js +runningLock.createRunningLock('running_lock_test', runningLock.RunningLockType.BACKGROUND) +.then(lock => { + console.info('created running lock: ' + lock); +}) +.catch(err => { + console.log('create running lock failed, err: ' + err); +}); ``` -runningLock.createRunningLock("running_lock_test", runningLock.RunningLockType.BACKGROUND) -.then(runninglock => { - console.info('create runningLock success'); + +## RunningLock + +Represents a **RunningLock** object. + +### hold9+ + +hold(timeout: number): void + +Locks and holds a **RunningLock** object. + +**System capability:** SystemCapability.PowerManager.PowerManager.Core + +**Required permission:** ohos.permission.RUNNING_LOCK + +**Parameters** + +| Name | Type | Mandatory| Description | +| ------- | ------ | ---- | ----------------------------------------- | +| timeout | number | Yes | Duration for locking and holding the **RunningLock** object, in ms.| + +**Error codes** + +For details about the error codes, see [RunningLock Error Codes](../errorcodes/errorcode-runninglock.md). + +| Code | Error Message | +|---------|----------| +| 4900101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +runningLock.create('running_lock_test', runningLock.RunningLockType.BACKGROUND) +.then(lock => { + console.info('create running lock success'); + try { + lock.hold(500); + console.info('hold running lock success'); + } catch(err) { + console.error('hold running lock failed, err: ' + err); + } }) -.catch(error => { - console.log('create runningLock test error: ' + error); +.catch(err => { + console.error('create running lock failed, err: ' + err); +}); +``` + +### unhold9+ + +unhold(): void + +Releases a **RunningLock** object. + +**System capability:** SystemCapability.PowerManager.PowerManager.Core + +**Required permission:** ohos.permission.RUNNING_LOCK + +**Error codes** + +For details about the error codes, see [RunningLock Error Codes](../errorcodes/errorcode-runninglock.md). + +| Code | Error Message | +|---------|----------| +| 4900101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +runningLock.create('running_lock_test', runningLock.RunningLockType.BACKGROUND) +.then(lock => { + console.info('create running lock success'); + try { + lock.unhold(); + console.info('unhold running lock success'); + } catch(err) { + console.error('unhold running lock failed, err: ' + err); + } }) +.catch(err => { + console.error('create running lock failed, err: ' + err); +}); ``` +### isHolding9+ -## RunningLock +isHolding(): boolean + +Checks the hold status of the **Runninglock** object. + +**System capability:** SystemCapability.PowerManager.PowerManager.Core -Defines a **RunningLock** object. +**Return value** +| Type | Description | +| ------- | ------------------------------------------------------------ | +| boolean | The value **true** indicates that the **Runninglock** object is held; and the value **false** indicates that the **Runninglock** object is released.| -### lock +**Error codes** + +For details about the error codes, see [RunningLock Error Codes](../errorcodes/errorcode-runninglock.md). + +| Code | Error Message | +|---------|---------| +| 4900101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +runningLock.create('running_lock_test', runningLock.RunningLockType.BACKGROUND) +.then(lock => { + console.info('create running lock success'); + try { + var isHolding = lock.isHolding(); + console.info('check running lock holding status: ' + isHolding); + } catch(err) { + console.error('check running lock holding status failed, err: ' + err); + } +}) +.catch(err => { + console.error('create running lock failed, err: ' + err); +}); +``` + +### lock(deprecated) lock(timeout: number): void +> This API is deprecated since API version 9. You are advised to use [RunningLock.hold](#hold9) instead. + Locks and holds a **RunningLock** object. **System capability:** SystemCapability.PowerManager.PowerManager.Core @@ -174,29 +399,30 @@ Locks and holds a **RunningLock** object. **Parameters** -| Name | Type | Mandatory | Description | -| ------- | ------ | ---- | -------------------------- | -| timeout | number | No | Duration for locking and holding the **RunningLock** object, in ms.| +| Name | Type | Mandatory| Description | +| ------- | ------ | ---- | ----------------------------------------- | +| timeout | number | Yes | Duration for locking and holding the **RunningLock** object, in ms.| **Example** -``` -runningLock.createRunningLock("running_lock_test", runningLock.RunningLockType.BACKGROUND) -.then(runningLock => { - runningLock.lock(100) - console.info('create runningLock success') +```js +runningLock.createRunningLock('running_lock_test', runningLock.RunningLockType.BACKGROUND) +.then(lock => { + lock.lock(500); + console.info('create running lock and lock success'); }) -.catch(error => { - console.log('create runningLock test error: ' + error) +.catch(err => { + console.error('create running lock failed, err: ' + err); }); ``` - -### unlock +### unlock(deprecated) unlock(): void -Releases a **Runninglock** object. +> This API is deprecated since API version 9. You are advised to use [RunningLock.unhold](#unhold9) instead. + +Releases a **RunningLock** object. **System capability:** SystemCapability.PowerManager.PowerManager.Core @@ -204,40 +430,52 @@ Releases a **Runninglock** object. **Example** -``` -runningLock.createRunningLock("running_lock_test", runningLock.RunningLockType.BACKGROUND) -.then(runningLock => { - runningLock.unlock() - console.info('create and unLock runningLock success') +```js +runningLock.createRunningLock('running_lock_test', runningLock.RunningLockType.BACKGROUND) +.then(lock => { + lock.unlock(); + console.info('create running lock and unlock success'); }) -.catch(error => { - console.log('create runningLock test error: ' + error) +.catch(err => { + console.error('create running lock failed, err: ' + err); }); ``` - -### isUsed +### isUsed(deprecated) isUsed(): boolean -Checks the status of the **Runninglock** object. +> This API is deprecated since API version 9. You are advised to use [RunningLock.isHolding](#isholding9) instead. + +Checks the hold status of the **Runninglock** object. **System capability:** SystemCapability.PowerManager.PowerManager.Core -**Return Value** -| Type | Description | -| ------- | ------------------------------------- | -| boolean | Returns **true** if the **Runninglock** object is held; returns **false** if the **Runninglock** object is released.| +**Return value** +| Type | Description | +| ------- | ------------------------------------------------------------ | +| boolean | The value **true** indicates that the **Runninglock** object is held; and the value **false** indicates that the **Runninglock** object is released.| **Example** -``` -runningLock.createRunningLock("running_lock_test", runningLock.RunningLockType.BACKGROUND) -.then(runningLock => { - var used = runningLock.isUsed() - console.info('runningLock used status: ' + used) +```js +runningLock.createRunningLock('running_lock_test', runningLock.RunningLockType.BACKGROUND) +.then(lock => { + var isUsed = lock.isUsed(); + console.info('check running lock used status: ' + isUsed); }) -.catch(error => { - console.log('runningLock isUsed test error: ' + error) +.catch(err => { + console.error('check running lock used status failed, err: ' + err); }); ``` + +## RunningLockType + +Enumerates the types of **RunningLock** objects. + +**System capability:** SystemCapability.PowerManager.PowerManager.Core + +| Name | Value | Description | +| ------------------------ | ---- | -------------------------------------- | +| BACKGROUND | 1 | A lock that prevents the system from hibernating when the screen is off. | +| PROXIMITY_SCREEN_CONTROL | 2 | A lock that determines whether to turn on or off the screen based on the distance away from the screen.| diff --git a/en/application-dev/reference/apis/js-apis-stack.md b/en/application-dev/reference/apis/js-apis-stack.md index 479550783c54d87accf6436cf6556e1b33a12ccc..d7c5dcb66c511aa8ade7ad6e4fa94041162f2380 100644 --- a/en/application-dev/reference/apis/js-apis-stack.md +++ b/en/application-dev/reference/apis/js-apis-stack.md @@ -1,4 +1,4 @@ -# Linear Container Stack +# @ohos.util.Stack (Linear Container Stack) > **NOTE** > @@ -19,9 +19,6 @@ This topic uses the following to identify the use of generics: import Stack from '@ohos.util.Stack'; ``` - - - ## Stack ### Attributes @@ -53,11 +50,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let stack = new Stack(); -try { - let stack2 = Stack(); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -99,11 +91,6 @@ let b = [1, 2, 3]; let result2 = stack.push(b); let c = {name : "Dylon", age : "13"}; let result3 = stack.push(c); -try { - stack.push.bind({}, "b")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### pop @@ -138,11 +125,6 @@ stack.push(5); stack.push(2); stack.push(4); let result = stack.pop(); -try { - stack.pop.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### peek @@ -176,11 +158,6 @@ stack.push(4); stack.push(5); stack.push(2); let result = stack.peek(); -try { - stack.peek.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### locate @@ -220,16 +197,11 @@ stack.push(4); stack.push(5); stack.push(2); let result = stack.locate(2); -try { - stack.locate.bind({}, 2)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### forEach -forEach(callbackfn: (value: T, index?: number, stack?: Stack<T>) => void, +forEach(callbackFn: (value: T, index?: number, stack?: Stack<T>) => void, thisArg?: Object): void Uses a callback to traverse the elements in this container and obtain their position indexes. @@ -240,7 +212,7 @@ Uses a callback to traverse the elements in this container and obtain their posi | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked to traverse the elements in the container.| +| callbackFn | function | Yes| Callback invoked to traverse the elements in the container.| | thisArg | Object | No| Value to use when the callback is invoked.| callbackfn @@ -270,13 +242,6 @@ stack.push(4); stack.forEach((value, index) => { console.log("value:" + value, index); }); -try { - stack.forEach.bind({}, (value, index) => { - console.log("value:" + value, index); - })(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### isEmpty @@ -310,11 +275,6 @@ stack.push(4); stack.push(5); stack.push(4); let result = stack.isEmpty(); -try { - stack.isEmpty.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### [Symbol.iterator] @@ -359,9 +319,4 @@ while(temp != undefined) { console.log("value:" + temp); temp = iter.next().value; } -try { - stack[Symbol.iterator].bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` diff --git a/en/application-dev/reference/apis/js-apis-stationary.md b/en/application-dev/reference/apis/js-apis-stationary.md new file mode 100644 index 0000000000000000000000000000000000000000..ceae25ac4c711e8dd3664520290fda7b897c9ae9 --- /dev/null +++ b/en/application-dev/reference/apis/js-apis-stationary.md @@ -0,0 +1,130 @@ +# @ohos.stationary (Device Status Awareness Framework) + +The **stationary** module provides APIs to report the device status, including absolute still and relative still. + +> **NOTE** +> +> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. + +## Modules to Import + +```js +import stationary from '@ohos.stationary' +``` + +## ActivityResponse + +Defines the response interface to receive the device status. + +**System capability**: SystemCapability.Msdp.DeviceStatus.Stationary + +### Attributes + +| Name| Type| Readable| Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| state | [ActivityState](#activitystate) | Yes| No| New device status.| + +## ActivityType + +Enumerates the device status types. + +**System capability**: SystemCapability.Msdp.DeviceStatus.Stationary + +| Name| Description| +| -------- | -------- | +| still | Absolutely still.| +| relativeStill | Relatively still.| + +## ActivityEvent + +Enumerates the device status events. + +**System capability**: SystemCapability.Msdp.DeviceStatus.Stationary + +| Name | Value | Description | +| ------------------------------ | ---- | ---------------------------------------- | +| ENTER | 1 | Event indicating entering device status. | +| EXIT | 2 | Event indicating exiting device status.| +| ENTER_EXIT | 3 | Event indicating entering and exiting device status.| + +## ActivityState + +Enumerates the device statuses. + +**System capability**: SystemCapability.Msdp.DeviceStatus.Stationary + +| Name | Value | Description | +| ------------------------------ | ---- | ---------------------------------------- | +| ENTER | 1 | Entering device status. | +| EXIT | 2 | Exiting device status.| + +## stationary.on('still' | 'relativeStill') + +on(activity: ActivityType, event: ActivityEvent, reportLatencyNs: number, callback: Callback<ActivityResponse>): void + +Subscribes to the device status. + +**System capability**: SystemCapability.Msdp.DeviceStatus.Stationary + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------------------- | -------------------------------------------------- | ---- | ---------------------------- | +| activity | [ActivityType](#activitytype) | Yes | Device status type. | +| event | [ActivityEvent](#activityevent) | Yes | Event type. | +| reportLatencyNs | number | Yes | Event reporting period. | +| callback | Callback<[ActivityResponse](#activityresponse)\> | Yes | Callback used to receive reported data. | + +**Example** + +```js +var reportLatencyNs = 100; +stationary.on('still', stationary.ActivityEvent.ENTER, reportLatencyNs, (data) => { + console.log('data='+ JSON.stringify(data)); +}) +``` + +## stationary.once('still' | 'relativeStill') + +once(activity: ActivityType, callback: Callback<ActivityResponse>): void + +Obtains the device status. + +**System capability**: SystemCapability.Msdp.DeviceStatus.Stationary + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------------------- | -------------------------------------------------- | ---- | ---------------------------- | +| activity | [ActivityType](#activitytype) | Yes | Device status type. | +| callback | Callback<[ActivityResponse](#activityresponse)\> | Yes | Callback used to receive reported data. | + +**Example** + +```js +stationary.once('still', (data) => { + console.log("data="+ JSON.stringify(data)); +}) +``` + +## stationary.off('still' | 'relativeStill') + +off(activity: ActivityType, event: ActivityEvent, callback?: Callback<ActivityResponse>): void + +Unsubscribes from the device status. + +**System capability**: SystemCapability.Msdp.DeviceStatus.Stationary + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------------------- | -------------------------------------------------- | ---- | ---------------------------- | +| activity | [ActivityType](#activitytype) | Yes | Device status type. | +| event | [ActivityEvent](#activityevent) | Yes | Event type. | +| callback | Callback<[ActivityResponse](#activityresponse)\> | No | Callback used to receive reported data. | + +**Example** + +```js +stationary.off('still', stationary.ActivityEvent.ENTER); +``` diff --git a/en/application-dev/reference/apis/js-apis-system-battery.md b/en/application-dev/reference/apis/js-apis-system-battery.md index 7b577c8ee81c733cdb1aa1f2ccfcced87829f304..31959da80f23b90f54ea10883417eec202152d1a 100644 --- a/en/application-dev/reference/apis/js-apis-system-battery.md +++ b/en/application-dev/reference/apis/js-apis-system-battery.md @@ -1,9 +1,10 @@ -# Battery Level +# Battery Info -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** -> - The APIs of this module are no longer maintained since API version 7. It is recommended that you use [`@ohos.batteryInfo`](js-apis-battery-info.md) instead. -> -> - The initial APIs of this module are supported since API version 3. Newly added APIs will be marked with a superscript to indicate their earliest API version. +This module allows you to query the charging status and remaining power of a device. + +> **NOTE** +> - The APIs of this module are no longer maintained since API version 6. It is recommended that you use [`@ohos.batteryInfo`](js-apis-battery-info.md) instead. +> - The initial APIs of this module are supported since API version 3. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## Modules to Import @@ -16,40 +17,46 @@ import battery from '@system.battery'; ## battery.getStatus -getStatus(Object): void +getStatus(options?: GetStatusOptions): void; Obtains the current charging state and battery level. **System capability**: SystemCapability.PowerManager.BatteryManager.Core -**Parameter** +**Parameters** -| Name | Type | Mandatory | Description | +| Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| success | Function | No | Called when the check result is obtained | -| fail | Function | No | Called when the check result fails to be obtained | -| complete | Function | No | Called when the execution is complete | - -The following value will be returned when the check result is obtained. - -| Name | Type | Description | -| -------- | -------- | -------- | -| charging | boolean | Whether the battery is being charged | -| level | number | Current battery level, which ranges from 0.00 to 1.00. | +| options | [GetStatusOptions](#getstatusoptions) | No| Object that contains the API calling result.| **Example** ```js -export default { - getStatus() { - battery.getStatus({ - success: function(data) { - console.log('success get battery level:' + data.level); - }, - fail: function(data, code) { - console.log('fail to get battery level code:' + code + ', data: ' + data); - }, - }); - }, -} -``` \ No newline at end of file +battery.getStatus({ + success: function(data) { + console.log('success get battery level:' + data.level); + }, + fail: function(data, code) { + console.error('fail to get battery level code:' + code + ', data: ' + data); + } +}); +``` + +## GetStatusOptions + +Object that contains the API calling result. + +| Name | Type | Mandatory| Description | +| -------- | --------------------------------------------------- | ---- | ------------------------------------------------------------ | +| success | (data: [BatteryResponse](#batteryresponse)) => void | No | Called when API call is successful. **data** is a return value of the [BatteryResponse](#batteryresponse) type.| +| fail | (data: string, code: number) => void | No | Called when API call has failed. **data** indicates the error information, and **code** indicates the error code. | +| complete | () => void | No | Called when API call is complete. | + +## BatteryResponse + +Defines a response that returns the charging status and remaining power of the device. + +| Name| Type| Description| +| -------- | -------- | -------- | +| charging | boolean | Whether the battery is being charged.| +| level | number | Current battery level, which ranges from **0.00** to **1.00**.| diff --git a/en/application-dev/reference/apis/js-apis-system-brightness.md b/en/application-dev/reference/apis/js-apis-system-brightness.md index 71e9b7072d03d8c25297cfd2c8f3c97c295097eb..2773c74397046c44784b65cc458be75eef8c21ea 100644 --- a/en/application-dev/reference/apis/js-apis-system-brightness.md +++ b/en/application-dev/reference/apis/js-apis-system-brightness.md @@ -1,8 +1,9 @@ # Screen Brightness -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +This module provides APIs for querying and adjusting the screen brightness and mode. + +> **NOTE** > - The APIs of this module are no longer maintained since API version 7. It is recommended that you use [`@ohos.brightness`](js-apis-brightness.md) instead. -> > - The initial APIs of this module are supported since API version 3. Newly added APIs will be marked with a superscript to indicate their earliest API version. @@ -16,7 +17,7 @@ import brightness from '@system.brightness'; ## brightness.getValue -getValue(Object): void +getValue(options?: GetBrightnessOptions): void Obtains the current screen brightness. @@ -24,39 +25,27 @@ Obtains the current screen brightness. **Parameters** -| Name | Type | Mandatory | Description | +| Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| success | Function | No | Called when the execution is successful. | -| fail | Function | No | Called when the operation fails. | -| complete | Function | No | Called when the execution is complete | - -The following values will be returned when the operation is successful. - -| Name | Type | Description | -| -------- | -------- | -------- | -| value | number | Screen brightness, which ranges from 1 to 255. | +| options | [GetBrightnessOptions](#getbrightnessoptions) | No | Options for obtaining the screen brightness.| **Example** -```js -export default { - getValue() { - brightness.getValue({ - success: function(data){ - console.log('success get brightness value:' + data.value); - }, - fail: function(data, code) { - console.log('get brightness fail, code: ' + code + ', data: ' + data); + ```js + brightness.getValue({ + success: function(data) { + console.log('success get brightness value:' + data.value); }, - }); - }, -} -``` + fail: function(data, code) { + console.error('get brightness fail, code: ' + code + ', data: ' + data); + } + }); + ``` ## brightness.setValue -setValue(Object): void +etValue(options?: SetBrightnessOptions): void Sets the screen brightness. @@ -64,35 +53,28 @@ Sets the screen brightness. **Parameters** -| Name | Type | Mandatory | Description | +| Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| value | number | Yes | Screen brightness. The value is an integer ranging from 1 to 255.
- If the value is less than or equal to **0**, value **1** will be used.
- If the value is greater than **255**, value **255** will be used.
- If the value contains decimals, the integral part of the value will be used. For example, if value **8.1** is set, value **8** will be used. | -| success | Function | No | Called when the execution is successful. | -| fail | Function | No | Called when the operation fails. | -| complete | Function | No | Called when the execution is complete. | +| options | [SetBrightnessOptions](#setbrightnessoptions) | No | Options for setting the screen brightness.| **Example** -```js -export default { - setValue() { - brightness.setValue({ - value: 100, - success: function(){ - console.log('handling set brightness success.'); - }, - fail: function(data, code){ - console.log('handling set brightness value fail, code:' + code + ', data: ' + data); - }, - }); - }, -} -``` + ```js + brightness.setValue({ + value: 100, + success: function() { + console.log('handling set brightness success.'); + }, + fail: function(data, code) { + console.error('handling set brightness value fail, code:' + code + ', data: ' + data); + } + }); + ``` ## brightness.getMode -getMode(Object): void +getMode(options?: GetBrightnessModeOptions: void Obtains the screen brightness adjustment mode. @@ -100,75 +82,57 @@ Obtains the screen brightness adjustment mode. **Parameters** -| Name | Type | Mandatory | Description | +| Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| success | Function | No | Called when the execution is successful. | -| fail | Function | No | Called when the operation fails. | -| complete | Function | No | Called when the execution is complete | - -The following values will be returned when the operation is successful. - -| Name | Type | Description | -| -------- | -------- | -------- | -| mode | number | The value can be **0** or **1**.
- **0**: The screen brightness is manually adjusted.
- **1**: The screen brightness is automatically adjusted. | +| options | [GetBrightnessModeOptions](#getbrightnessmodeoptions) | No| Options for obtaining the screen brightness mode.| **Example** -```js -export default { - getMode() { - brightness.getMode({ - success: function(data){ - console.log('success get mode:' + data.mode); - }, - fail: function(data, code){ - console.log('handling get mode fail, code:' + code + ', data: ' + data); + ```js + brightness.getMode({ + success: function(data) { + console.log('success get mode:' + data.mode); }, - }); - }, -} -``` + fail: function(data, code){ + console.error('handling get mode fail, code:' + code + ', data: ' + data); + } + }); + ``` ## brightness.setMode -setMode(Object): void +setMode(options?: SetBrightnessModeOptions): void Sets the screen brightness adjustment mode. **System capability**: SystemCapability.PowerManager.DisplayPowerManager **Parameters** - -| Name | Type | Mandatory | Description | +| Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| mode | number | Yes | The value can be **0** or **1**.
- **0**: The screen brightness is manually adjusted.
- **1**: The screen brightness is automatically adjusted. | -| success | Function | No | Called when the execution is successful. | -| fail | Function | No | Called when the operation fails. | -| complete | Function | No | Called when the execution is complete. | +| options | [SetBrightnessModeOptions](#setbrightnessmodeoptions) | No | Options for setting the screen brightness mode.| **Example** -```js -export default { - setMode() { - brightness.setMode({ - mode: 1, - success: function(){ - console.log('handling set mode success.'); - }, - fail: function(data, code){ - console.log('handling set mode fail, code:' + code + ', data: ' + data); - }, - }); - }, -} -``` + ```js + brightness.setMode({ + mode: 1, + success: function() { + console.log('handling set mode success.'); + }, + fail: function(data, code) { + console.error('handling set mode fail, code:' + code + ', data: ' + data); + } + }); + ``` ## brightness.setKeepScreenOn -setKeepScreenOn(Object): void +setKeepScreenOn(options?: SetKeepScreenOnOptions): void + +>This API is no longer maintained since API version 7. It is recommended that you use [window.setKeepScreenOn](js-apis-window.md#setkeepscreenon) instead. Sets whether to always keep the screen on. Call this API in **onShow()**. @@ -176,27 +140,88 @@ Sets whether to always keep the screen on. Call this API in **onShow()**. **Parameters** -| Name | Type | Mandatory | Description | +| Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| keepScreenOn | boolean | Yes | Whether to always keep the screen on | -| success | Function | No | Called when the execution is successful. | -| fail | Function | No | Called when the operation fails. | -| complete | Function | No | Called when the execution is complete. | +| options | [SetKeepScreenOnOptions](#setkeepscreenonoptions) | No| Options for setting the screen to be steady on.| **Example** -```js -export default { - setKeepScreenOn() { - brightness.setKeepScreenOn({ - keepScreenOn: true, - success: function () { - console.log('handling set keep screen on success.') - }, - fail: function (data, code) { - console.log('handling set keep screen on fail, code:' + code + ', data: ' + data); - }, - }); - }, -} -``` \ No newline at end of file + ```js + brightness.setKeepScreenOn({ + keepScreenOn: true, + success: function () { + console.log('handling set keep screen on success.'); + }, + fail: function (data, code) { + console.error('handling set keep screen on fail, code:' + code + ', data: ' + data); + } + }); + ``` +## GetBrightnessOptions + +Defines the options for obtaining the screen brightness. + +| Name | Type | Mandatory| Description | +| -------- | --------------------------------------------------------- | ---- | ------------------------------------------------------------ | +| success | (data: [BrightnessResponse](#brightnessresponse)) => void | No | Called when API call is successful. **data** is a return value of the [BrightnessResponse](#brightnessresponse) type.| +| fail | (data: string, code: number) => void | No | Called when API call has failed. **data** indicates the error information, and **code** indicates the error code. | +| complete | () => void | No | Called when API call is complete. | + +## SetBrightnessOptions + +Defines the options for setting the screen brightness. + +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------ | ---- | ------------------------------------------------------------ | +| value | number | Yes | Screen brightness. The value is an integer ranging from **1** to **255**.
- If the value is less than or equal to **0**, value **1** will be used.
- If the value is greater than **255**, value **255** will be used.
- If the value contains decimals, the integral part of the value will be used. For example, if value **8.1** is set, value **8** will be used.| +| success | () => void | No | Called when API call is successful. | +| fail | (data: string, code: number) => void | No | Called when API call has failed. **data** indicates the error information, and **code** indicates the error code. | +| complete | () => void | No | Called when API call is complete. | + +## BrightnessResponse + +Defines a response that returns the screen brightness. + +| Parameter| Type | Description| +| -------- | -------- | -------- | +| value | number | Screen brightness. The value ranges from 1 to 255.| + +## GetBrightnessModeOptions + +Defines the options for obtaining the screen brightness mode. + +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | +| success | (data: [BrightnessModeResponse](#brightnessmoderesponse)) => void | No | Called when API call is successful. **data** is a return value of the [BrightnessModeResponse](#brightnessmoderesponse) type.| +| fail | (data: string, code: number) => void | No | Called when API call has failed. **data** indicates the error information, and **code** indicates the error code. | +| complete | () => void | No | Called when API call is complete. | + +## SetBrightnessModeOptions + +Defines the options for setting the screen brightness mode. + +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------ | ---- | ------------------------------------------------------ | +| mode | number | Yes | The value **0** indicates the manual adjustment mode, and the value **1** indicates the automatic adjustment mode.| +| success | () => void | No | Called when API call is successful. | +| fail | (data: string, code: number) => void | No | Called when API call has failed. **data** indicates the error information, and **code** indicates the error code.| +| complete | () => void | No | Called when API call is complete. | + +## BrightnessModeResponse + +Defines a response that returns the screen brightness mode. + +| Name| Type | Description| +| -------- | -------- | -------- | +| mode | number | The value **0** indicates the manual adjustment mode, and the value **1** indicates the automatic adjustment mode.| + +## SetKeepScreenOnOptions + +Defines the options for setting the screen to be steady on. + +| Name | Type | Mandatory| Description | +| ------------ | ------------------------------------ | ---- | ------------------------------------------------------ | +| keepScreenOn | boolean | Yes | The value **true** means to keep the screen steady on, and the value **false** indicates the opposite. | +| success | () => void | No | Called when API call is successful. | +| fail | (data: string, code: number) => void | No | Called when API call has failed. **data** indicates the error information, and **code** indicates the error code.| +| complete | () => void | No | Called when API call is complete. | diff --git a/en/application-dev/reference/apis/js-apis-system-device.md b/en/application-dev/reference/apis/js-apis-system-device.md index c5b92831958ea79cb7b868fbf549974cdf39a669..6da9ae481fe8ef4aeb440090f478fb1069596882 100644 --- a/en/application-dev/reference/apis/js-apis-system-device.md +++ b/en/application-dev/reference/apis/js-apis-system-device.md @@ -1,61 +1,61 @@ -# Device Information +# @system.device -> ![icon-note.gif](public_sys-resources/icon-note.gif) **Note:** -> - The APIs of this module are no longer maintained since API version 6. It is recommended that you use [`@ohos.deviceInfo`](js-apis-device-info.md) instead. +The **device** module provides APIs for checking information about the current device. + +> **NOTE** +> - The APIs of this module are no longer maintained since API version 6. It is recommended that you use [@ohos.deviceInfo](js-apis-device-info.md) instead. > > - The initial APIs of this module are supported since API version 3. Newly added APIs will be marked with a superscript to indicate their earliest API version. - ## Modules to Import - ``` import device from '@system.device'; ``` - ## device.getInfo getInfo(Object): void Obtains the device information. -> ![icon-note.gif](public_sys-resources/icon-note.gif) **Note:** +> **NOTE** +> > Do not call **device.getInfo** before the **onShow** event of the home page. -**System capability**: SystemCapability.Startup.SysInfo +**System capability**: SystemCapability.Startup.SystemInfo **Parameters** -| Name | Type | Mandatory | Description | +| Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| success | Function | No | Called when the device information is obtained | -| fail | Function | No | Called when the device information fails to be obtained | -| complete | Function | No | Called when the execution is complete | +| success | Function | No| Called when API call is successful.| +| fail | Function | No| Called when API call has failed.| +| complete | Function | No| Called when API call is complete.| -The following values will be returned when the device information is obtained. +**Return value of success()** -| Name | Type | Description | +| Name| Type| Description| | -------- | -------- | -------- | -| brand | string | Brand | -| manufacturer | string | Manufacturer | -| model | string | Model | -| product | string | Product number | -| language4+ | string | System language | -| region4+ | string | System region | -| windowWidth | number | Window width | -| windowHeight | number | Window height | -| screenDensity4+ | number | Screen density | -| screenShape4+ | string | Screen shape. The options are as follows:
- rect: rectangle screen
- circle: circle screen | -| apiVersion4+ | number | API version | -| releaseType4+ | string | Release type. The value includes both the release type and the API version, for example, Beta1.
Available release types are as follows:
- **Canary**: For the same API version, different canary releases are compatible with each other, but not compatible with those of the **beta** and **release** type.
- **Beta**: For the same API version, different beta releases are compatible with each other, but not compatible with those of the **release** type.
- **Release**: Releases of this type are compatible with the latest five API versions. | -| deviceType4+ | string | Device type | - -The following error code will be returned if the device information fails to be obtained. - -| Error Code | Description | +| brand | string | Brand.| +| manufacturer | string | Manufacturer.| +| model | string | Model. | +| product | string | Product number.| +| language4+ | string | System language.| +| region4+ | string | System region.| +| windowWidth | number | Window width.| +| windowHeight | number | Window height.| +| screenDensity4+ | number | Screen density.| +| screenShape4+ | string | Screen shape. The options are as follows:
- **rect**: rectangle screen
- **circle**: circle screen| +| apiVersion4+ | number | API version.| +| releaseType4+ | string | Release type. The value includes both the release type and the API version, for example, Beta1.
Available release types are as follows:
- **Canary**: For the same API version, different canary releases are compatible with each other, but not compatible with those of the **beta** and **release** type.
- **Beta**: For the same API version, different beta releases are compatible with each other, but not compatible with those of the **release** type.
- **Release**: Releases of this type are compatible with the latest five API versions.| +| deviceType4+ | string | Device type.| + +**Return value of fail()** + +| Error Code| Description| | -------- | -------- | -| 200 | The returned result contains information that cannot be obtained. | +| 200 | The returned result contains information that cannot be obtained.| **Example** @@ -72,4 +72,4 @@ export default { }); }, } -``` \ No newline at end of file +``` diff --git a/en/application-dev/reference/apis/js-apis-system-location.md b/en/application-dev/reference/apis/js-apis-system-location.md index ab53fb2d188b7b929c591a67c33cec12984e063c..b0648efc475396e317d6f8da4891ecb66e6164df 100644 --- a/en/application-dev/reference/apis/js-apis-system-location.md +++ b/en/application-dev/reference/apis/js-apis-system-location.md @@ -1,6 +1,6 @@ # Geographic Location -> ![icon-note.gif](public_sys-resources/icon-note.gif) **Note:** +> **Note:** > - The APIs of this module are no longer maintained since API version 7. It is recommended that you use [`@ohos.geolocation`](js-apis-geolocation.md) instead. > > - The initial APIs of this module are supported since API version 3. Newly added APIs will be marked with a superscript to indicate their earliest API version. diff --git a/en/application-dev/reference/apis/js-apis-system-package.md b/en/application-dev/reference/apis/js-apis-system-package.md index c6453ec28f1dca4749d8f8c91414a609af161466..3dec0fa1e2fd325479ac688443e67500d60f570b 100644 --- a/en/application-dev/reference/apis/js-apis-system-package.md +++ b/en/application-dev/reference/apis/js-apis-system-package.md @@ -1,9 +1,9 @@ -# Application Management +# @system.package (Bundle Management) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **Note:** +> **NOTE** > -> - The APIs of this module are no longer maintained since API version 7. It is recommended that you use [`@ohos.bundle`](js-apis-Bundle.md) instead. +> - This module is deprecated since API version 9. You are advised to use [@ohos.bundle.bundleManager](js-apis-bundleManager.md) instead. > > - The initial APIs of this module are supported since API version 3. Newly added APIs will be marked with a superscript to indicate their earliest API version. @@ -12,11 +12,12 @@ ``` -import pkg from '@system.package'; +import package from '@system.package'; ``` -## package.hasInstalled +## package.hasInstalled(deprecated) +> This API is deprecated since API version 9. You are advised to use [@ohos.bundle.bundleManager](js-apis-bundleManager.md) instead. hasInstalled(Object): void @@ -26,35 +27,57 @@ Checks whether an application exists, or whether a native application has been i **System capability**: SystemCapability.BundleManager.BundleFramework -**Parameter** +**Parameters** -| Name | Type | Mandatory | Description | +| Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| bundleName | string | Yes | Application bundle name | -| success | Function | No | Called when the check result is obtained | -| fail | Function | No | Called when the check result fails to be obtained | -| complete | Function | No | Called when the execution is complete | +|options | [CheckPackageHasInstalledOptions](#checkpackagehasinstalledoptions) | Yes| Options.| -The following value will be returned when the check result is obtained. +**Return value** -| Name | Type | Description | +| Name| Type| Description| | -------- | -------- | -------- | -| result | boolean | Whether the application exists, or whether the native application has been installed | +| result | boolean | The value **true** means that the application exists or the native application has been installed, and **false** means the opposite.| **Example** -``` -export default { - hasInstalled() { - pkg.hasInstalled({ - bundleName: 'com.example.bundlename', - success: function(data) { - console.log('package has installed: ' + data); - }, - fail: function(data, code) { - console.log('query package fail, code: ' + code + ', data: ' + data); - }, - }); +``` ts +export default { + hasInstalled() { + package.hasInstalled({ + bundleName: 'com.example.bundlename', + success: function(data) { + console.log('package has installed: ' + data); + }, + fail: function(data, code) { + console.log('query package fail, code: ' + code + ', data: ' + data); + }, + }); }, } -``` \ No newline at end of file +``` + +## CheckPackageHasInstalledResponse + +> This API is deprecated since API version 9. + +Checks whether a bundle has been installed. + +**System capability**: SystemCapability.BundleManager.BundleFramework + +| Name| Type| Description| +| --- | --- | ---- | +| result | boolean | The value **true** means that the bundle has been installed, and **false** means the opposite.| + +## CheckPackageHasInstalledOptions + +> This API is deprecated since API version 9. + +Defines the options used for checking whether a bundle has been installed. + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| bundleName | string | Yes| Bundle name.| +| success | Function | No| Called when API call is successful.| +| fail | Function | No| Called when API call has failed.| +| complete | Function | No| Called when API call is complete.| diff --git a/en/application-dev/reference/apis/js-apis-system-parameter.md b/en/application-dev/reference/apis/js-apis-system-parameter.md index 6ccbc31664329e94861a503f1995682f104c6d79..ab3ae31887d1a2c55eb94c0164573834321e96c0 100644 --- a/en/application-dev/reference/apis/js-apis-system-parameter.md +++ b/en/application-dev/reference/apis/js-apis-system-parameter.md @@ -1,11 +1,10 @@ -# SystemParameter +# @ohos.systemParameter -The **SystemParameter** module provides system services with easy access to key-value pairs. You can use the APIs of this module to describe the service status and change the service behavior. The basic operation primitives are get and set. You can obtain the values of system parameters through getters and modify the values through setters. +The **SystemParameter** module provides system services with easy access to key-value pairs. You can use the APIs provided by this module to describe the service status and change the service behavior. The basic operation primitives are get and set. You can obtain the values of system parameters through getters and modify the values through setters. For details about the system parameter design principles and definitions, see [Service Management](../../../device-dev/subsystems/subsys-boot-init-sysparam.md). > **NOTE** -> > - The APIs of this module are no longer maintained since API version 9. It is recommended that you use [@ohos.systemParameterV9](js-apis-system-parameterV9.md) instead. > - The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version. > - The APIs provided by this module are system APIs. @@ -54,7 +53,7 @@ try { get(key: string, callback: AsyncCallback<string>): void -Obtains the value of the system parameter with the specified key. This API uses an asynchronous callback to return the result. +Obtains the value of the system parameter with the specified key. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.Startup.SystemInfo @@ -164,9 +163,9 @@ Sets a value for the system parameter with the specified key. | value | string | Yes| Value of the system parameter to set.| > **NOTE** -> > - This API can be used only for setting parameters of system applications. -> - SELinux and DAC rules must be configured for authorized system applications. For details, see [Service Management](../../../device-dev/subsystems/subsys-boot-init-sysparam.md). +> - SELinux and Discretionary Access Control (DAC) rules must be configured for authorized system applications. For details about how to configure SELinux and DAC rules, see [Parameter Management](../../../device-dev/subsystems/subsys-boot-init-sysparam.md). + **Example** @@ -195,9 +194,8 @@ Sets a value for the system parameter with the specified key. This API uses an a | callback | AsyncCallback<void> | Yes| Callback used to return the result.| > **NOTE** -> > - This API can be used only for setting parameters of system applications. -> - SELinux and discretionary access control (DAC) rules must be configured for authorized system applications. For details, see [Service Management](../../../device-dev/subsystems/subsys-boot-init-sysparam.md). +> - SELinux and Discretionary Access Control (DAC) rules must be configured for authorized system applications. For details about how to configure SELinux and DAC rules, see [Parameter Management](../../../device-dev/subsystems/subsys-boot-init-sysparam.md). **Example** @@ -236,9 +234,8 @@ Sets a value for the system parameter with the specified key. This API uses a pr | Promise<void> | Promise used to return the execution result.| > **NOTE** -> > - This API can be used only for setting parameters of system applications. -> - SELinux and discretionary access control (DAC) rules must be configured for authorized system applications. For details, see [Service Management](../../../device-dev/subsystems/subsys-boot-init-sysparam.md). +> - SELinux and Discretionary Access Control (DAC) rules must be configured for authorized system applications. For details about how to configure SELinux and DAC rules, see [Parameter Management](../../../device-dev/subsystems/subsys-boot-init-sysparam.md). **Example** diff --git a/en/application-dev/reference/apis/js-apis-tagSession.md b/en/application-dev/reference/apis/js-apis-tagSession.md index e6073f2dca4b101454fbdf14dd9bdd406a8eaade..3138f52c7089ba4a53809711c442b79f6a1aa1aa 100644 --- a/en/application-dev/reference/apis/js-apis-tagSession.md +++ b/en/application-dev/reference/apis/js-apis-tagSession.md @@ -1,8 +1,9 @@ -# NFC Tag Session +# tagSession The **tagSession** module provides common APIs for establishing connections and transferring data. -> **NOTE**
+> **NOTE** +> > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## **Modules to Import** @@ -15,17 +16,15 @@ import tag from '@ohos.nfc.tag'; Provides common APIs for establishing connections and transferring data. **tagSession** is the base class of all [NFC tag technologies](js-apis-nfctech.md). -A child class instance is required to access the following interfaces. You can use **get**XX**Tag()** to obtain a child class instance. +A child class instance is required to access the following interfaces. You can use **get**XXX() to obtain a child class instance. The specific API varies with the NFC tag technology in use. For details, see [NFC Tags](js-apis-nfcTag.md). -### tagSession.connectTag - -connectTag(): boolean; +### tagSession.getTagInfo -Connects to this tag. +getTagInfo(): tag.TagInfo -Call this API to set up a connection before reading data from or writing data to a tag. +Obtains the **tagInfo** object provided by the NFC service when the tag is dispatched. **Required permissions**: ohos.permission.NFC_TAG @@ -35,23 +34,25 @@ Call this API to set up a connection before reading data from or writing data to | **Type**| **Description** | | ------------------ | --------------------------| -| boolean | Returns **true** if the operation is successful; returns **false** otherwise.| +| TagInfo | **Taginfo** object obtained.| **Example** ```js import tag from '@ohos.nfc.tag'; -// tagInfo is an object given by the NFC service when a tag is dispatched. -let isNfcConnected = tag.getXXXTag(taginfo).connectTag(); -console.log("isNfcConnected:" +isNfcConnected); +// tagInfo is an object provided by the NFC service when a tag is dispatched. +// getXXX can be getIsoDep, getNdef, getMifareClassic, or any other getter for NFC tags. + +let tagInfo = tag.getIsoDep(tagInfo).getTagInfo(); +console.log("tag tagInfo: " + tagInfo); ``` -### tagSession.reset() +### tagSession.connectTag -reset(): void +connectTag(): boolean; -Resets the connection to this tag and restores the default timeout duration for writing data to the tag. +Connects to this tag. Call this API to set up a connection before reading data from or writing data to a tag. **Required permissions**: ohos.permission.NFC_TAG @@ -68,9 +69,32 @@ Resets the connection to this tag and restores the default timeout duration for ```js import tag from '@ohos.nfc.tag'; -// tagInfo is an object given by the NFC service when a tag is dispatched. -let reset = tag.getXXXTag(taginfo).reset(); -console.log("reset:" +reset); +// tagInfo is an object provided by the NFC service when a tag is dispatched. +// getXXX can be getIsoDep, getNdef, getMifareClassic, or any other getter for NFC tags. + +let connectStatus = tag.getIsoDep(tagInfo).connectTag(); +console.log("connectStatus: " + connectStatus); +``` + +### tagSession.reset() + +reset(): void + +Resets the connection to this tag. + +**Required permissions**: ohos.permission.NFC_TAG + +**System capability**: SystemCapability.Communication.NFC.Core + +**Example** + +```js +import tag from '@ohos.nfc.tag'; + +// tagInfo is an object provided by the NFC service when a tag is dispatched. +// getXXX can be getIsoDep, getNdef, getMifareClassic, or any other getter for NFC tags. + +tag.getIsoDep(tagInfo).reset(); ``` ### tagSession.isTagConnected @@ -94,16 +118,18 @@ Checks whether the tag is connected. ```js import tag from '@ohos.nfc.tag'; -// tagInfo is an object given by the NFC service when a tag is dispatched. -let isTagConnected = tag.getXXXTag(taginfo).isTagConnected(); -console.log("isTagConnected:" +isTagConnected); +// tagInfo is an object provided by the NFC service when a tag is dispatched. +// getXXX can be getIsoDep, getNdef, getMifareClassic, or any other getter for NFC tags. + +let isTagConnected = tag.getIsoDep(tagInfo).isTagConnected(); +console.log("isTagConnected: " + isTagConnected); ``` ### tagSession.getMaxSendLength getMaxSendLength(): number -Obtains the maximum length of the data that can be sent to the tag. +Obtains the maximum length of the data that can be sent to this tag. **Required permissions**: ohos.permission.NFC_TAG @@ -113,14 +139,167 @@ Obtains the maximum length of the data that can be sent to the tag. | **Type**| **Description** | | ------------------ | --------------------------| -| number | Maximum data length obtained.| +| number | Maximum data length obtained. The value cannot be a negative number.| + +**Example** +```js +import tag from '@ohos.nfc.tag'; + +// tagInfo is an object provided by the NFC service when a tag is dispatched. +// getXXX can be getIsoDep, getNdef, getMifareClassic, or any other getter for NFC tags. + +let maxSendLen = tag.getIsoDep(tagInfo).getMaxSendLength(); +console.log("tag maxSendLen: " + maxSendLen); +``` + +### tagSession.getSendDataTimeout + +getSendDataTimeout(): number + +Obtains the timeout period for sending data to this tag, in milliseconds. + +**Required permissions**: ohos.permission.NFC_TAG + +**System capability**: SystemCapability.Communication.NFC.Core + +**Return value** + +| **Type**| **Description** | +| ------------------ | --------------------------| +| number | Timeout period obtained, in milliseconds. The value cannot be a negative number.| + +**Example** + +```js +import tag from '@ohos.nfc.tag'; + +// tagInfo is an object provided by the NFC service when a tag is dispatched. +// getXXX can be getIsoDep, getNdef, getMifareClassic, or any other getter for NFC tags. + +let sendDataTimeout = tag.getIsoDep(tagInfo).getSendDataTimeout(); +console.log("tag sendDataTimeout: " + sendDataTimeout); +``` + +### tagSession.setSendDataTimeout + +setSendDataTimeout(timeout: number): boolean + +Sets the timeout period for sending data to this tag, in milliseconds. + +**Required permissions**: ohos.permission.NFC_TAG + +**System capability**: SystemCapability.Communication.NFC.Core + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ----------------------- | ---- | -------------------------------------- | +| timeout | number | Yes| Timeout period to set, in milliseconds. The value cannot be a negative number.| + +**Return value** + +| **Type**| **Description** | +| ------------------ | --------------------------| +| boolean | Returns **true** if the timeout period is set successfully; returns **false** otherwise.| + +**Example** + +```js +import tag from '@ohos.nfc.tag'; + +// tagInfo is an object provided by the NFC service when a tag is dispatched. +// getXXX can be getIsoDep, getNdef, getMifareClassic, or any other getter for NFC tags. + +let timeoutMs = 700; // Change it as required. +let setStatus = tag.getIsoDep(tagInfo).setSendDataTimeout(timeoutMs); +console.log("tag setSendDataTimeout setStatus: " + setStatus); +``` + +### tagSession.sendData + +sendData(data: number[]): Promise + +Sends data to this tag. This API uses a promise to return the result. + +**Required permissions**: ohos.permission.NFC_TAG + +**System capability**: SystemCapability.Communication.NFC.Core + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ----------------------- | ---- | -------------------------------------- | +| data | number[] | Yes| Data to send. The data consists of hexadecimal numbers ranging from **0x00** to **0xFF**.| + +**Return value** + +| **Type**| **Description** | +| ------------------ | --------------------------| +| Promise | Promise used to return the response from the tag. The response consists of hexadecimal numbers ranging from **0x00** to **0xFF**.| + +**Example** + +```js +import tag from '@ohos.nfc.tag'; + +// tagInfo is an object provided by the NFC service when a tag is dispatched. +// getXXX can be getIsoDep, getNdef, getMifareClassic, or any other getter for NFC tags. + +// Connect to the tag if it is not connected. +if (!tag.getIsoDep(tagInfo).isTagConnected()) { + if (!tag.getIsoDep(tagInfo).connectTag()) { + console.log("tagSession connectTag failed."); + return; + } +} + +let cmdData = [0x01, 0x02, 0x03, 0x04]; // Change it as required. +tag.getIsoDep(tagInfo).sendData(cmdData).then((response) => { + console.log("tagSession sendData Promise response: " + response); +}).catch((err)=> { + console.log("tagSession sendData Promise err: " + err); +}); +``` + +### tagSession.sendData + +sendData(data: number[], callback: AsyncCallback): void + +Sends data to this tag. This API uses an asynchronous callback to return the result. + +**Required permissions**: ohos.permission.NFC_TAG + +**System capability**: SystemCapability.Communication.NFC.Core + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ----------------------- | ---- | -------------------------------------- | +| data | number[] | Yes| Data to send. The data consists of hexadecimal numbers ranging from **0x00** to **0xFF**.| +| callback | AsyncCallback | Yes| Callback invoked to return the response from the tag. The response consists of hexadecimal numbers ranging from **0x00** to **0xFF**.| **Example** ```js import tag from '@ohos.nfc.tag'; -// tagInfo is an object given by the NFC service when a tag is dispatched. -let mazSendLen = tag.getXXXTag(taginfo).getMaxSendLength(); -console.log("mazSendLen:" +mazSendLen); +// tagInfo is an object provided by the NFC service when a tag is dispatched. +// getXXX can be getIsoDep, getNdef, getMifareClassic, or any other getter for NFC tags. + +// Connect to the tag if it is not connected. +if (!tag.getIsoDep(tagInfo).isTagConnected()) { + if (!tag.getIsoDep(tagInfo).connectTag()) { + console.log("tagSession connectTag failed."); + return; + } +} + +let cmdData = [0x01, 0x02, 0x03, 0x04]; // Change it as required. +tag.getIsoDep(tagInfo).sendData(cmdData, (err, response)=> { + if (err) { + console.log("tagSession sendData AsyncCallback err: " + err); + } else { + console.log("tagSession sendData AsyncCallback response: " + response); + } +}); ``` diff --git a/en/application-dev/reference/apis/js-apis-thermal.md b/en/application-dev/reference/apis/js-apis-thermal.md index b7b7e08a0a6a5a82a8813aad1f9d2010ff899a50..e0d809d06ab24702e5eaf67eb6b1b841a7944ffc 100644 --- a/en/application-dev/reference/apis/js-apis-thermal.md +++ b/en/application-dev/reference/apis/js-apis-thermal.md @@ -1,11 +1,9 @@ # Thermal Manager -> **NOTE** -> -> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. - This module provides thermal level-related callback and query APIs to obtain the information required for thermal control. +> **NOTE** +> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## Modules to Import @@ -13,78 +11,168 @@ This module provides thermal level-related callback and query APIs to obtain the import thermal from '@ohos.thermal'; ``` +## thermal.registerThermalLevelCallback9+ -## ThermalLevel +registerThermalLevelCallback(callback: Callback<ThermalLevel>): void -Represents the thermal level. +Subscribes to thermal level changes. **System capability:** SystemCapability.PowerManager.ThermalManager -| Name | Default Value | Description | -| ---------- | ---- | ---------------------------------------- | -| COOL | 0 | The device is cool, and services are not restricted.| -| NORMAL | 1 | The device is operational but is not cool. You need to pay attention to its heating.| -| WARM | 2 | The device is warm. You need to stop or delay some imperceptible services.| -| HOT | 3 | The device is heating up. You need to stop all imperceptible services and downgrade or reduce the load of other services.| -| OVERHEATED | 4 | The device is overheated. You need to stop all imperceptible services and downgrade or reduce the load of major services.| -| WARNING | 5 | The device is overheated and is about to enter the emergency state. You need to stop all imperceptible services and downgrade major services to the maximum extent.| -| EMERGENCY | 6 | The device has entered the emergency state. You need to stop all services except those for the emergency help purposes.| +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ---------------------------- | ---- | ------------------------------ | +| callback | Callback<ThermalLevel> | Yes | Callback used to return the result.| + +**Error codes** + +For details about the error codes, see [Thermal Manager Error Codes](../errorcodes/errorcode-thermal.md). + +| Code | Error Message | +|---------|---------| +| 4800101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +try { + thermal.registerThermalLevelCallback(level => { + console.info('thermal level is: ' + level); + }); + console.info('register thermal level callback success.'); +} catch(err) { + console.error('register thermal level callback failed, err: ' + err); +} +``` + +## thermal.unregisterThermalLevelCallback9+ + +unregisterThermalLevelCallback(callback?: Callback\): void + +Unsubscribes from thermal level changes. + +**System capability:** SystemCapability.PowerManager.ThermalManager + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ---------------------------------------------- | +| callback | Callback<void> | No | Callback used to return the result. No value is returned. If this parameter is not set, this API unsubscribes from all callbacks.| + +**Error codes** + +For details about the error codes, see [Thermal Manager Error Codes](../errorcodes/errorcode-thermal.md). + +| Code | Error Message | +|---------|---------| +| 4800101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +try { + thermal.unregisterThermalLevelCallback(() => { + console.info('unsubscribe thermal level success.'); + }); + console.info('unregister thermal level callback success.'); +} catch(err) { + console.error('unregister thermal level callback failed, err: ' + err); +} +``` + +## thermal.getLevel9+ + +getLevel(): ThermalLevel + +Obtains the current thermal level. + +**System capability:** SystemCapability.PowerManager.ThermalManager +**Return value** -## thermal.subscribeThermalLevel +| Type | Description | +| ------------ | ------------ | +| ThermalLevel | Thermal level obtained.| + +**Error codes** + +For details about the error codes, see [Thermal Manager Error Codes](../errorcodes/errorcode-thermal.md). + +| Code | Error Message | +|---------|---------| +| 4800101 | Operation failed. Cannot connect to service.| + +**Example** + +```js +try { + var level = thermal.getLevel(); + console.info('thermal level is: ' + level); +} catch(err) { + console.error('get thermal level failed, err: ' + err); +} +``` + +## thermal.subscribeThermalLevel(deprecated) subscribeThermalLevel(callback: AsyncCallback<ThermalLevel>): void +> This API is deprecated since API version 9. You are advised to use [thermal.registerThermalLevelCallback](#thermalregisterthermallevelcallback9) instead. + Subscribes to thermal level changes. **System capability:** SystemCapability.PowerManager.ThermalManager **Parameters** -| Name | Type | Mandatory | Description | -| -------- | --------------------------------- | ---- | ---------------------------------------- | -| callback | AsyncCallback<ThermalLevel> | Yes | Callback used to obtain the return value.
The return value contains only one parameter, that is, thermal level. If an alarm is generated, you can use `// @ts-ignore` to suppress the alarm.| +| Name | Type | Mandatory| Description | +| -------- | --------------------------------- | ---- | ------------------------------------------------------------ | +| callback | AsyncCallback<ThermalLevel> | Yes | Callback used to return the result. The return value contains only one parameter, that is, thermal level. If an alarm is generated, you can use `// @ts-ignore` to suppress the alarm.| **Example** ```js -var lev = 0; -thermal.subscribeThermalLevel((lev) => { - console.info("Thermal level is: " + lev); -}) +thermal.subscribeThermalLevel((level) => { + console.info('thermal level is: ' + level); +}); ``` -## thermal.unsubscribeThermalLevel +## thermal.unsubscribeThermalLevel(deprecated) unsubscribeThermalLevel(callback?: AsyncCallback\): void +> This API is deprecated since API version 9. You are advised to use [thermal.unregisterThermalLevelCallback](#thermalunregisterthermallevelcallback9) instead. + Unsubscribes from thermal level changes. **System capability:** SystemCapability.PowerManager.ThermalManager **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ------------------------- | ---- | --------------------- | -| callback | AsyncCallback<void> | No | Callback without a return value.| +| Name | Type | Mandatory| Description | +| -------- | ------------------------- | ---- | ---------------------------------------------- | +| callback | AsyncCallback<void> | No | Callback used to return the result. No value is returned. If this parameter is not set, this API unsubscribes from all callbacks.| **Example** ```js thermal.unsubscribeThermalLevel(() => { - console.info("Unsubscribe completed."); + console.info('unsubscribe thermal level success.'); }); ``` -## thermal.getThermalLevel +## thermal.getThermalLevel(deprecated) getThermalLevel(): ThermalLevel +> This API is deprecated since API version 9. You are advised to use [thermal.getLevel](#thermalgetlevel9) instead. + Obtains the current thermal level. **System capability:** SystemCapability.PowerManager.ThermalManager -**Return value**: +**Return value** | Type | Description | | ------------ | ------ | @@ -93,6 +181,22 @@ Obtains the current thermal level. **Example** ```js -var lev = thermal.getThermalLevel(); -console.info("Thermal level is: " + lev); +var level = thermal.getThermalLevel(); +console.info('thermal level is: ' + level); ``` + +## ThermalLevel + +Represents the thermal level. + +**System capability:** SystemCapability.PowerManager.ThermalManager + +| Name | Value | Description | +| ---------- | ---- | ------------------------------------------------------------ | +| COOL | 0 | The device is cool, and services are not restricted. | +| NORMAL | 1 | The device is operational but is not cool. You need to pay attention to its heating.| +| WARM | 2 | The device is warm. You need to stop or delay some imperceptible services.| +| HOT | 3 | The device is heating up. You need to stop all imperceptible services and downgrade or reduce the load of other services.| +| OVERHEATED | 4 | The device is overheated. You need to stop all imperceptible services and downgrade or reduce the load of major services.| +| WARNING | 5 | The device is overheated and is about to enter the emergency state. You need to stop all imperceptible services and downgrade major services to the maximum extent.| +| EMERGENCY | 6 | The device has entered the emergency state. You need to stop all services except those for the emergency help purposes.| diff --git a/en/application-dev/reference/apis/js-apis-treemap.md b/en/application-dev/reference/apis/js-apis-treemap.md index e2a41d26819c96d3ef4321bfaf9a0e9f058300c9..573732b5474552added2d9918986e2add3982b01 100644 --- a/en/application-dev/reference/apis/js-apis-treemap.md +++ b/en/application-dev/reference/apis/js-apis-treemap.md @@ -1,4 +1,4 @@ -# Nonlinear Container TreeMap +# @ohos.util.TreeMap (Nonlinear Container TreeMap) > **NOTE** > @@ -59,11 +59,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let treeMap = new TreeMap(); -try { - let treeMap2 = TreeMap(); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -94,11 +89,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts const treeMap = new TreeMap(); let result = treeMap.isEmpty(); -try { - treeMap.isEmpty.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -137,11 +127,6 @@ let treeMap = new TreeMap(); let result = treeMap.hasKey("squirrel"); treeMap.set("squirrel", 123); let result1 = treeMap.hasKey("squirrel"); -try { - treeMap.hasKey.bind({}, "squirrel")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -180,11 +165,6 @@ let treeMap = new TreeMap(); let result = treeMap.hasValue(123); treeMap.set("squirrel", 123); let result1 = treeMap.hasValue(123); -try { - treeMap.hasValue.bind({}, 123)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -223,11 +203,6 @@ let treeMap = new TreeMap(); treeMap.set("squirrel", 123); treeMap.set("sparrow", 356); let result = treeMap.get("sparrow"); -try { - treeMap.get.bind({}, "sparrow")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -260,11 +235,6 @@ let treeMap = new TreeMap(); treeMap.set("squirrel", 123); treeMap.set("sparrow", 356); let result = treeMap.getFirstKey(); -try { - treeMap.getFirstKey.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -297,11 +267,6 @@ let treeMap = new TreeMap(); treeMap.set("squirrel", 123); treeMap.set("sparrow", 356); let result = treeMap.getLastKey(); -try { - treeMap.getLastKey.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -335,11 +300,6 @@ treeMap.set("squirrel", 123); treeMap.set("sparrow", 356); let map = new TreeMap(); treeMap.setAll(map); -try { - treeMap.setAll.bind({}, map)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -377,11 +337,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let treeMap = new TreeMap(); treeMap.set("squirrel", 123); -try { - treeMap.set.bind({}, "squirrel", 123)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -420,11 +375,6 @@ let treeMap = new TreeMap(); treeMap.set("squirrel", 123); treeMap.set("sparrow", 356); treeMap.remove("sparrow"); -try { - treeMap.remove.bind({}, "sparrow")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -464,11 +414,6 @@ treeMap.set("squirrel", 123); treeMap.set("sparrow", 356); treeMap.set("gander", 356); let result = treeMap.getLowerKey("sparrow"); -try { - treeMap.getLowerKey.bind({}, "sparrow")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -508,11 +453,6 @@ treeMap.set("squirrel", 123); treeMap.set("sparrow", 356); treeMap.set("gander", 356); let result = treeMap.getHigherKey("sparrow"); -try { - treeMap.getHigherKey.bind({}, "sparrow")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### replace @@ -550,11 +490,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er let treeMap = new TreeMap(); treeMap.set("sparrow", 123); let result = treeMap.replace("sparrow", 357); -try { - treeMap.replace.bind({}, "sparrow", 357)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -581,11 +516,6 @@ let treeMap = new TreeMap(); treeMap.set("squirrel", 123); treeMap.set("sparrow", 356); treeMap.clear(); -try { - treeMap.clear.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -623,11 +553,6 @@ while(temp != undefined) { console.log("value:" + temp); temp = iter.next().value; } -try { - treeMap.keys.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -665,17 +590,12 @@ while(temp != undefined) { console.log("value:" + temp); temp = iter.next().value; } -try { - treeMap.values.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### forEach -forEach(callbackfn: (value?: V, key?: K, map?: TreeMap) => void, thisArg?: Object): void +forEach(callbackFn: (value?: V, key?: K, map?: TreeMap) => void, thisArg?: Object): void Uses a callback to traverse the elements in this container and obtain their position indexes. @@ -685,7 +605,7 @@ Uses a callback to traverse the elements in this container and obtain their posi | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked to traverse the elements in the container.| +| callbackFn | function | Yes| Callback invoked to traverse the elements in the container.| | thisArg | Object | No| Value to use when the callback is invoked.| callbackfn @@ -712,13 +632,6 @@ treeMap.set("gull", 357); treeMap.forEach((value, key) => { console.log("value:" + value, key); }); -try { - treeMap.forEach.bind({}, (value, key) => { - console.log("value:" + value, key); - })(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -757,11 +670,6 @@ while(temp != undefined) { console.log("value:" + temp[1]); temp = iter.next().value; } -try { - treeMap.entries.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -807,9 +715,4 @@ while(temp != undefined) { console.log("value:" + temp[1]); temp = iter.next().value; } -try { - treeMap[Symbol.iterator].bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` diff --git a/en/application-dev/reference/apis/js-apis-treeset.md b/en/application-dev/reference/apis/js-apis-treeset.md index ef10035349bf185462f803ad967270e79b8cc93d..bc6f1272452fd35d0458b6232f7c03a1bd19ce9b 100644 --- a/en/application-dev/reference/apis/js-apis-treeset.md +++ b/en/application-dev/reference/apis/js-apis-treeset.md @@ -1,4 +1,4 @@ -# Nonlinear Container TreeSet +# @ohos.util.TreeSet (Nonlinear Container TreeSet) > **NOTE** > @@ -56,11 +56,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let treeSet = new TreeSet(); -try { - let treeSet2 = TreeSet(); -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -91,11 +86,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts const treeSet = new TreeSet(); let result = treeSet.isEmpty(); -try { - treeSet.isEmpty.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -134,11 +124,6 @@ let treeSet = new TreeSet(); treeSet.has(123); treeSet.add(123); let result1 = treeSet.has(123); -try { - treeSet.has.bind({}, 123)(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -171,11 +156,6 @@ let treeSet = new TreeSet(); treeSet.add("squirrel"); treeSet.add("sparrow"); let result = treeSet.getFirstValue(); -try { - treeSet.getFirstValue.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -208,11 +188,6 @@ let treeSet = new TreeSet(); treeSet.add("squirrel"); treeSet.add("sparrow"); let result = treeSet.getLastValue(); -try { - treeSet.getLastValue.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -249,11 +224,6 @@ For details about the error codes, see [containers Error Codes](../errorcodes/er ```ts let treeSet = new TreeSet(); let result = treeSet.add("squirrel"); -try { - treeSet.add.bind({}, "squirrel")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -292,11 +262,6 @@ let treeSet = new TreeSet(); treeSet.add("squirrel"); treeSet.add("sparrow"); let result = treeSet.remove("sparrow"); -try { - treeSet.remove.bind({}, "sparrow")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -336,11 +301,6 @@ treeSet.add("squirrel"); treeSet.add("sparrow"); treeSet.add("gander"); let result = treeSet.getLowerValue("sparrow"); -try { - treeSet.getLowerValue.bind({}, "sparrow")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -380,11 +340,6 @@ treeSet.add("squirrel"); treeSet.add("sparrow"); treeSet.add("gander"); let result = treeSet.getHigherValue("sparrow"); -try { - treeSet.getHigherValue.bind({}, "sparrow")(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -417,11 +372,6 @@ let treeSet = new TreeSet(); treeSet.add("squirrel"); treeSet.add("sparrow"); let result = treeSet.popFirst(); -try { - treeSet.popFirst.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -454,11 +404,6 @@ let treeSet = new TreeSet(); treeSet.add("squirrel"); treeSet.add("sparrow"); let result = treeSet.popLast(); -try { - treeSet.popLast.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -485,11 +430,6 @@ let treeSet = new TreeSet(); treeSet.add("squirrel"); treeSet.add("sparrow"); treeSet.clear(); -try { - treeSet.clear.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -527,17 +467,12 @@ while(temp != undefined) { console.log("value:" + temp); temp = iter.next().value; } -try { - treeSet.values.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` ### forEach -forEach(callbackfn: (value?: T, key?: T, set?: TreeSet<T>) => void, thisArg?: Object): void +forEach(callbackFn: (value?: T, key?: T, set?: TreeSet<T>) => void, thisArg?: Object): void Uses a callback to traverse the elements in this container and obtain their position indexes. @@ -547,7 +482,7 @@ Uses a callback to traverse the elements in this container and obtain their posi | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked to traverse the elements in the container.| +| callbackFn | function | Yes| Callback invoked to traverse the elements in the container.| | thisArg | Object | No| Value to use when the callback is invoked.| callbackfn @@ -574,13 +509,6 @@ treeSet.add("gull"); treeSet.forEach((value, key) => { console.log("value:" + value, key) }); -try { - treeSet.forEach.bind({}, (value, key) => { - console.log("value:" + value, key) - })(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -619,11 +547,6 @@ while(temp != undefined) { console.log("value:" + temp[1]); temp = iter.next().value; } -try { - treeSet.entries.bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` @@ -668,9 +591,4 @@ while(temp != undefined) { console.log("value:" + temp); temp = iter.next().value; } -try { - treeSet[Symbol.iterator].bind({})(); // bind() creates a new bound function that, when called, has its this keyword set to the provided value. It is used to test exception capture. -} catch(err) { - console.log(`${err.code} - ${err.name} - ${err.message}`); -} ``` diff --git a/en/application-dev/reference/apis/js-apis-uri.md b/en/application-dev/reference/apis/js-apis-uri.md index d058b555c87be4fe5f9601ef4b9f9c7198964463..6bad7dde783939b10243f10824e98ef991235499 100644 --- a/en/application-dev/reference/apis/js-apis-uri.md +++ b/en/application-dev/reference/apis/js-apis-uri.md @@ -1,4 +1,4 @@ -# URI String Parsing +# @ohos.uri (URI String Parsing) > **NOTE** > @@ -40,18 +40,18 @@ A constructor used to create a URI instance. **Parameters** -| Name| Type.| Readable| Writable| Description| -| -------- | -------- | -------- | -------- | -------- | -| uri | string | Yes| Yes| Input object.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| uri | string | Yes| Input object.| **Example** ```js -let mm = 'http://username:password@host:8080/directory/file?foo=1&bar=2#fragment'; -new uri.URI(mm); // Output 'http://username:password@host:8080/directory/file?foo=1&bar=2#fragment'; +let mm = 'https://username:password@host:8080/directory/file?foo=1&bar=2#fragment'; +new uri.URI(mm); // Output 'https://username:password@host:8080/directory/file?foo=1&bar=2#fragment'; ``` ```js -new uri.URI('http://username:password@host:8080'); // Output 'http://username:password@host:8080'; +new uri.URI('https://username:password@host:8080'); // Output 'https://username:password@host:8080'; ``` @@ -65,22 +65,23 @@ Obtains the query string applicable to this URI. **Return value** -| Type.| Description| +| Type| Description| | -------- | -------- | | string | Website address in a serialized string.| **Example** ```js -const result = new uri.URI('http://username:password@host:8080/directory/file?query=pppppp#qwer=da'); +const result = new uri.URI('https://username:password@host:8080/directory/file?query=pppppp#qwer=da'); result.toString() ``` ### equals(deprecated) + > **NOTE** > -> This API is deprecated since API version 9. You are advised to use [equalsTo9+](#equalsto9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [equalsTo9+](#equalsto9) instead. equals(other: URI): boolean @@ -90,21 +91,21 @@ Checks whether this URI is the same as another URI object. **Parameters** -| Name| Type.| Mandatory| Description| +| Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | other | [URI](#uri) | Yes| URI object to compare.| **Return value** -| Type.| Description| +| Type| Description| | -------- | -------- | | boolean | Returns **true** if the two URIs are the same; returns **false** otherwise.| **Example** ```js -const uriInstance = new uri.URI('http://username:password@host:8080/directory/file?query=pppppp#qwer=da'); -const uriInstance1 = new uri.URI('http://username:password@host:8080/directory/file?query=pppppp#qwer=da#fragment'); +const uriInstance = new uri.URI('https://username:password@host:8080/directory/file?query=pppppp#qwer=da'); +const uriInstance1 = new uri.URI('https://username:password@host:8080/directory/file?query=pppppp#qwer=da#fragment'); uriInstance.equals(uriInstance1); ``` ### equalsTo9+ @@ -117,21 +118,21 @@ Checks whether this URI is the same as another URI object. **Parameters** -| Name| Type.| Mandatory| Description| +| Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | other | [URI](#uri) | Yes| URI object to compare.| **Return value** -| Type.| Description| +| Type| Description| | -------- | -------- | | boolean | Returns **true** if the two URIs are the same; returns **false** otherwise.| **Example** ```js -const uriInstance = new uri.URI('http://username:password@host:8080/directory/file?query=pppppp#qwer=da'); -const uriInstance1 = new uri.URI('http://username:password@host:8080/directory/file?query=pppppp#qwer=da#fragment'); +const uriInstance = new uri.URI('https://username:password@host:8080/directory/file?query=pppppp#qwer=da'); +const uriInstance1 = new uri.URI('https://username:password@host:8080/directory/file?query=pppppp#qwer=da#fragment'); uriInstance.equalsTo(uriInstance1); ``` @@ -145,14 +146,14 @@ Checks whether this URI is an absolute URI (whether the scheme component is defi **Return value** -| Type.| Description| +| Type| Description| | -------- | -------- | | boolean | Returns **true** if the URI is an absolute URI; returns **false** otherwise.| **Example** ```js -const uriInstance = new uri.URI('http://username:password@www.qwer.com:8080?query=pppppp'); +const uriInstance = new uri.URI('https://username:password@www.qwer.com:8080?query=pppppp'); uriInstance.checkIsAbsolute(); ``` @@ -167,13 +168,14 @@ Normalizes the path of this URI. **Return value** -| Type.| Description| +| Type| Description| | -------- | -------- | | URI | URI with the normalized path.| **Example** + ```js -const uriInstance = new uri.URI('http://username:password@www.qwer.com:8080/path/path1/../path2/./path3?query=pppppp'); +const uriInstance = new uri.URI('https://username:password@www.qwer.com:8080/path/path1/../path2/./path3?query=pppppp'); let uriInstance1 = uriInstance.normalize(); uriInstance1.path; ``` diff --git a/en/application-dev/reference/apis/js-apis-url.md b/en/application-dev/reference/apis/js-apis-url.md index 383dd4b3862b849db5e9292d4b841acbc8e3cc33..442c62ee76cf48b60361ee939c0f116bf98fb1fa 100755 --- a/en/application-dev/reference/apis/js-apis-url.md +++ b/en/application-dev/reference/apis/js-apis-url.md @@ -1,4 +1,4 @@ -# URL String Parsing +# @ohos.url (URL String Parsing) > **NOTE** > @@ -14,7 +14,7 @@ import Url from '@ohos.url' ### constructor9+ -constructor(init?: string[][] | Record<string, string> | string | URLParams) +constructor(init?: string[][] | Record<string, string> | string | URLSearchParams) A constructor used to create a **URLParams** instance. @@ -24,7 +24,7 @@ A constructor used to create a **URLParams** instance. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| init | string[][] \| Record<string, string> \| string \| URLParams | No| Input parameter objects, which include the following:
- **string[][]**: two-dimensional string array
- **Record<string, string>**: list of objects
- **string**: string
- **URLParams**: object| +| init | string[][] \| Record<string, string> \| string \| URLSearchParams | No| Input parameter objects, which include the following:
- **string[][]**: two-dimensional string array
- **Record<string, string>**: list of objects
- **string**: string
- **URLSearchParams**: object| **Example** @@ -140,7 +140,7 @@ for (var pair of searchParamsObject .entries()) { // Show keyName/valueName pair ### forEach9+ -forEach(callbackfn: (value: string, key: string, searchParams: this) => void, thisArg?: Object): void +forEach(callbackFn: (value: string, key: string, searchParams: this) => void, thisArg?: Object): void Traverses the key-value pairs in the **URLSearchParams** instance by using a callback. @@ -150,10 +150,10 @@ Traverses the key-value pairs in the **URLSearchParams** instance by using a cal | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked to traverse the key-value pairs in the **URLSearchParams** instance.| -| thisArg | Object | No| Value to use when the callback is invoked.| +| callbackFn | function | Yes| Callback invoked to traverse the key-value pairs in the **URLSearchParams** instance.| +| thisArg | Object | No| Value of **this** to use when **callbackFn** is invoked.| -**Table 1** callbackfn parameter description +**Table 1** callbackFn parameter description | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | @@ -165,7 +165,7 @@ Traverses the key-value pairs in the **URLSearchParams** instance by using a cal ```js const myURLObject = new Url.URL('https://developer.exampleUrl/?fod=1&bard=2'); -myURLObject.URLParams.forEach((value, name, searchParams) => { +myURLObject.searchParams.forEach((value, name, searchParams) => { console.log(name, value, myURLObject.searchParams === searchParams); }); ``` @@ -366,18 +366,148 @@ params.append('fod', '3'); console.log(params.toString()); ``` -## URLSearchParams(deprecated) +## URL + +### Attributes + +**System capability**: SystemCapability.Utils.Lang + +| Name| Type| Readable| Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| hash | string | Yes| Yes| String that contains a harsh mark (#) followed by the fragment identifier of a URL.| +| host | string | Yes| Yes| Host information in a URL.| +| hostname | string | Yes| Yes| Hostname (without the port) in a URL.| +| href | string | Yes| Yes| String that contains the whole URL.| +| origin | string | Yes| No| Read-only string that contains the Unicode serialization of the origin of the represented URL.| +| password | string | Yes| Yes| Password in a URL.| +| pathname | string | Yes| Yes| Path in a URL.| +| port | string | Yes| Yes| Port in a URL.| +| protocol | string | Yes| Yes| Protocol in a URL.| +| search | string | Yes| Yes| Serialized query string in a URL.| +| searchParams | URLSearchParams | Yes| No| **URLSearchParams** object allowing access to the query parameters in a URL.| +| URLParams | URLParams | Yes| No| **URLParams** object allowing access to the query parameters in a URL.| +| username | string | Yes| Yes| Username in a URL.| ### constructor(deprecated) +constructor(url: string, base?: string | URL) + +Creates a URL. + > **NOTE** > -> This API is deprecated since API version 9. You are advised to use [URLParams9+](#constructor9+) instead. +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [parseURL9+](#parseurl9) instead. + +**System capability**: SystemCapability.Utils.Lang + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| url | string | Yes| Input object.| +| base | string \| URL | No| Input parameter, which can be any of the following:
- **string**: string
- **URL**: string or object| + +**Example** + +```js +let mm = 'http://username:password@host:8080'; +let a = new Url.URL("/", mm); // Output 'http://username:password@host:8080/'; +let b = new Url.URL(mm); // Output 'http://username:password@host:8080/'; +new Url.URL('path/path1', b); // Output 'http://username:password@host:8080/path/path1'; +let c = new Url.URL('/path/path1', b); // Output 'http://username:password@host:8080/path/path1'; +new Url.URL('/path/path1', c); // Output 'http://username:password@host:8080/path/path1'; +new Url.URL('/path/path1', a); // Output 'http://username:password@host:8080/path/path1'; +new Url.URL('/path/path1', "https://www.exampleUrl/fr-FR/toto"); // Output https://www.exampleUrl/path/path1 +new Url.URL('/path/path1', ''); // Raises a TypeError exception as '' is not a valid URL +new Url.URL('/path/path1'); // Raises a TypeError exception as '/path/path1' is not a valid URL +new Url.URL('https://www.example.com', ); // Output https://www.example.com/ +new Url.URL('https://www.example.com', b); // Output https://www.example.com/ +``` + +### parseURL9+ + +static parseURL(url : string, base?: string | URL): URL + +Parses a URL. + +**System capability**: SystemCapability.Utils.Lang + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| url | string | Yes| Input object.| +| base | string \| URL | No| Input parameter, which can be any of the following:
- **string**: string
- **URL**: string or object| + +**Error codes** + +For details about the error codes, see [Utils Error Codes](../errorcodes/errorcode-utils.md). + +| ID| Error Message| +| -------- | -------- | +| 10200002 | Invalid url string. | + +**Example** + +```js +let mm = 'http://username:password@host:8080'; +Url.URL.parseURL(mm); // Output 'http://username:password@host:8080/'; +``` + +### tostring + +toString(): string + +Converts the parsed URL into a string. + +**System capability**: SystemCapability.Utils.Lang + +**Return value** + +| Type| Description| +| -------- | -------- | +| string | Website address in a serialized string.| + +**Example** + +```js +const url = new Url.URL('http://username:password@host:8080/directory/file?query=pppppp#qwer=da'); +url.toString(); +``` + + +### toJSON + +toJSON(): string + +Converts the parsed URL into a JSON string. + +**System capability**: SystemCapability.Utils.Lang + +**Return value** + +| Type| Description| +| -------- | -------- | +| string | Website address in a serialized string.| + +**Example** +```js +const url = new Url.URL('http://username:password@host:8080/directory/file?query=pppppp#qwer=da'); +url.toJSON(); +``` + +## URLSearchParams(deprecated) + +### constructor(deprecated) constructor(init?: string[][] | Record<string, string> | string | URLSearchParams) A constructor used to create a **URLSearchParams** instance. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+](#constructor9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -398,14 +528,14 @@ let params = new Url.URLSearchParams(urlObject.search); ### append(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [URLParams9+.append9+](#append9) instead. - append(name: string, value: string): void Appends a key-value pair into the query string. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.append9+](#append9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -425,14 +555,14 @@ paramsObject.append('fod', '3'); ### delete(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [URLParams9+.delete9+](#delete9) instead. - delete(name: string): void Deletes key-value pairs of the specified key. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.delete9+](#delete9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -451,14 +581,14 @@ paramsobject.delete('fod'); ### getAll(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [URLParams9+.getAll9+](#getall9) instead. - getAll(name: string): string[] Obtains all the key-value pairs based on the specified key. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.getAll9+](#getall9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -484,14 +614,14 @@ console.log(params.getAll('fod').toString()) // Output ["1","3"]. ### entries(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [URLParams9+.entries9+](#entries9) instead. - entries(): IterableIterator<[string, string]> Obtains an ES6 iterator. Each item of the iterator is a JavaScript array, and the first and second fields of each array are the key and value respectively. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.entries9+](#entries9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -511,24 +641,25 @@ for (var pair of searchParamsObject .entries()) { // Show keyName/valueName pair ### forEach(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [URLParams9+.forEach9+](#foreach9) instead. -forEach(callbackfn: (value: string, key: string, searchParams: this) => void, thisArg?: Object): void +forEach(callbackFn: (value: string, key: string, searchParams: this) => void, thisArg?: Object): void Traverses the key-value pairs in the **URLSearchParams** instance by using a callback. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.forEach9+](#foreach9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked to traverse the key-value pairs in the **URLSearchParams** instance.| -| thisArg | Object | No| Value to use when the callback is invoked.| +| callbackFn | function | Yes| Callback invoked to traverse the key-value pairs in the **URLSearchParams** instance.| +| thisArg | Object | No| Value to use when **callbackFn** is invoked.| -**Table 1** callbackfn parameter description +**Table 1** callbackFn parameter description | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | @@ -547,14 +678,15 @@ myURLObject.searchParams.forEach((value, name, searchParams) => { ### get(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [URLParams9+.get9+](#get9) instead. get(name: string): string | null Obtains the value of the first key-value pair based on the specified key. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.get9+](#get9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -580,14 +712,15 @@ let age = parseInt(paramsObject.get("age"), 10); // is the number 18 ### has(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [URLParams9+.has9+](#has9) instead. has(name: string): boolean Checks whether a key has a value. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.has9+](#has9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -612,14 +745,15 @@ paramsObject.has('bard') === true; ### set(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [URLParams9+.set9+](#set9) instead. set(name: string, value: string): void Sets the value for a key. If key-value pairs matching the specified key exist, the value of the first key-value pair will be set to the specified value and other key-value pairs will be deleted. Otherwise, the key-value pair will be appended to the query string. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.set9+](#set9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -639,14 +773,15 @@ paramsObject.set('baz', '3'); // Add a third parameter. ### sort(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [URLParams9+.sort9+](#sort9) instead. sort(): void Sorts all key-value pairs contained in this object based on the Unicode code points of the keys and returns undefined. This method uses a stable sorting algorithm, that is, the relative order between key-value pairs with equal keys is retained. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.sort9+](#sort9) instead. + **System capability**: SystemCapability.Utils.Lang **Example** @@ -659,14 +794,15 @@ console.log(searchParamsObject.toString()); // Display the sorted query string / ### keys(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [URLParams9+.keys9+](#keys9) instead. keys(): IterableIterator<string> Obtains an ES6 iterator that contains the keys of all the key-value pairs. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.keys9+](#keys9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -686,14 +822,15 @@ for (var key of searchParamsObject .keys()) { // Output key-value pairs ### values(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [URLParams9+.values9+](#values9) instead. values(): IterableIterator<string> Obtains an ES6 iterator that contains the values of all the key-value pairs. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.values9+](#values9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -714,15 +851,14 @@ for (var value of searchParams.values()) { ### [Symbol.iterator](deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [[Symbol.iterator]9+](#symboliterator9) instead. - - [Symbol.iterator]\(): IterableIterator<[string, string]> Obtains an ES6 iterator. Each item of the iterator is a JavaScript array, and the first and second fields of each array are the key and value respectively. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [Symbol.iterator]9+](#symboliterator9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -741,14 +877,15 @@ for (const [name, value] of paramsObject) { ``` ### tostring(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [URLParams9+.tostring9+](#tostring9) instead. toString(): string Obtains search parameters that are serialized as a string and, if necessary, percent-encodes the characters in the string. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [tostring9+](#tostring9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -784,14 +921,17 @@ console.log(params.toString()); | port | string | Yes| Yes| Port in a URL.| | protocol | string | Yes| Yes| Protocol in a URL.| | search | string | Yes| Yes| Serialized query string in a URL.| -| searchParams | URLsearchParams | Yes| No| **URLSearchParams** object allowing access to the query parameters in a URL.| +| searchParams | URLSearchParams | Yes| No| **URLSearchParams** object allowing access to the query parameters in a URL.| | URLParams | URLParams | Yes| No| **URLParams** object allowing access to the query parameters in a URL.| | username | string | Yes| Yes| Username in a URL.| +### constructor(deprecated) -### constructor +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [parseURL9+](#parseurl9) instead. -constructor(url?: string, base?: string | URL) +constructor(url: string, base?: string | URL) Creates a URL. @@ -807,23 +947,23 @@ Creates a URL. **Example** ```js -let mm = 'http://username:password@host:8080'; -let a = new Url.URL("/", mm); // Output 'http://username:password@host:8080/'; -let b = new Url.URL(mm); // Output 'http://username:password@host:8080/'; -new Url.URL('path/path1', b); // Output 'http://username:password@host:8080/path/path1'; -let c = new Url.URL('/path/path1', b); // Output 'http://username:password@host:8080/path/path1'; -new Url.URL('/path/path1', c); // Output 'http://username:password@host:8080/path/path1'; -new Url.URL('/path/path1', a); // Output 'http://username:password@host:8080/path/path1'; +let mm = 'https://username:password@host:8080'; +let a = new Url.URL("/", mm); // Output 'https://username:password@host:8080/'; +let b = new Url.URL(mm); // Output 'https://username:password@host:8080/'; +new Url.URL('path/path1', b); // Output 'https://username:password@host:8080/path/path1'; +let c = new Url.URL('/path/path1', b); // Output 'https://username:password@host:8080/path/path1'; +new Url.URL('/path/path1', c); // Output 'https://username:password@host:8080/path/path1'; +new Url.URL('/path/path1', a); // Output 'https://username:password@host:8080/path/path1'; new Url.URL('/path/path1', "https://www.exampleUrl/fr-FR/toto"); // Output https://www.exampleUrl/path/path1 new Url.URL('/path/path1', ''); // Raises a TypeError exception as '' is not a valid URL new Url.URL('/path/path1'); // Raises a TypeError exception as '/path/path1' is not a valid URL -new Url.URL('http://www.shanxi.com', ); // Output http://www.shanxi.com/ -new Url.URL('http://www.shanxi.com', b); // Output http://www.shanxi.com/ +new Url.URL('https://www.example.com', ); // Output https://www.example.com/ +new Url.URL('https://www.example.com', b); // Output https://www.example.com/ ``` ### parseURL9+ -static parseURL(inputUrl : string, inputBase ?: string | URL) +static parseURL(url : string, base?: string | URL): URL Parses a URL. @@ -833,14 +973,14 @@ Parses a URL. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| inputUrl | string | Yes| Input object.| -| inputBase | string \| URL | No| Input parameter, which can be any of the following:
- **string**: string
- **URL**: string or object| +| url | string | Yes| Input object.| +| base | string \| URL | No| Input parameter, which can be any of the following:
- **string**: string
- **URL**: string or object| **Example** ```js -let mm = 'http://username:password@host:8080'; -Url.URL.parseURL(mm); // Output 'http://username:password@host:8080/'; +let mm = 'https://username:password@host:8080'; +Url.URL.parseURL(mm); // Output 'https://username:password@host:8080/'; ``` ### tostring @@ -860,7 +1000,7 @@ Converts the parsed URL into a string. **Example** ```js -const url = new Url.URL('http://username:password@host:8080/directory/file?query=pppppp#qwer=da'); +const url = new Url.URL('https://username:password@host:8080/directory/file?query=pppppp#qwer=da'); url.toString(); ``` @@ -881,7 +1021,7 @@ Converts the parsed URL into a JSON string. **Example** ```js -const url = new Url.URL('http://username:password@host:8080/directory/file?query=pppppp#qwer=da'); +const url = new Url.URL('https://username:password@host:8080/directory/file?query=pppppp#qwer=da'); url.toJSON(); ``` diff --git a/en/application-dev/reference/apis/js-apis-util.md b/en/application-dev/reference/apis/js-apis-util.md index 226f7686f490b2d3fd28e8263d7226eb02091c09..8897b51f07b4e00feae752e792820e6b9b32370f 100755 --- a/en/application-dev/reference/apis/js-apis-util.md +++ b/en/application-dev/reference/apis/js-apis-util.md @@ -1,17 +1,15 @@ -# util +# @ohos.util +This module provides common utility functions, such as **TextEncoder** and **TextDecoder** for string encoding and decoding, **RationalNumber** for rational number operations, **LruBuffer** for buffer management, **Scope** for range determination, **Base64** for Base64 encoding and decoding, and **Types** for checks of built-in object types. > **NOTE** > > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. -This module provides common utility functions, such as **TextEncoder** and **TextDecoder** for string encoding and decoding, **RationalNumber** for rational number operations, **LruBuffer** for buffer management, **Scope** for range determination, **Base64** for Base64 encoding and decoding, and **Types** for checks of built-in object types. - - ## Modules to Import -``` +```js import util from '@ohos.util'; ``` @@ -45,14 +43,14 @@ console.log(res); ## util.printf(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [util.format9+](#utilformat9) instead. - printf(format: string, ...args: Object[]): string Formats the specified values and inserts them into the string by replacing the wildcard in the string. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [util.format9+](#utilformat9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -60,7 +58,7 @@ Formats the specified values and inserts them into the string by replacing the w | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | format | string | Yes| String.| -| ...args | Object[] | No| Values to format. The formatted values will be replaced the wildcard in the string. | +| ...args | Object[] | No| Values to format. The formatted values will be replaced the wildcard in the string.| **Return value** @@ -69,6 +67,7 @@ Formats the specified values and inserts them into the string by replacing the w | string | String containing the formatted values.| **Example** + ```js let res = util.printf("%s", "hello world!"); console.log(res); @@ -96,22 +95,22 @@ Obtains detailed information about a system error code. **Example** - ```js +```js let errnum = 10; // 10 is a system error code. let result = util.errnoToString(errnum); console.log("result = " + result); - ``` +``` ## util.getErrorString(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [util.errnoToString9+](#utilerrnotostring9) instead. - getErrorString(errno: number): string Obtains detailed information about a system error code. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [util.errnoToString9+](#utilerrnotostring9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -127,6 +126,7 @@ Obtains detailed information about a system error code. | string | Detailed information about the error code.| **Example** + ```js let errnum = 10; // 10 is a system error code. let result = util.getErrorString(errnum); @@ -154,6 +154,7 @@ Calls back an asynchronous function. In the callback, the first parameter indica | Function | Callback, in which the first parameter indicates the cause of the rejection (the value is **null** if the promise has been resolved) and the second parameter indicates the resolved value.| **Example** + ```js async function promiseFn() { return Promise.reject('value'); @@ -187,6 +188,7 @@ Processes an asynchronous function and returns a promise. | Function | Function in the error-first style (that is, **(err, value) =>...** is called as the last parameter) and the promise.| **Example** + ```js function aysnFun(str1, str2) { if (typeof str1 === 'object' && typeof str2 === 'object') { @@ -205,11 +207,11 @@ Processes an asynchronous function and returns a promise. promiseWrapper(original: (err: Object, value: Object) => void): Object +Processes an asynchronous function and returns a promise. + > **NOTE** > -> This API is deprecated since API version 9. You are advised to use **[util.promisify9+](#utilpromisify9)** instead. - -Processes an asynchronous function and returns a promise. +> This API is unavailable. You are advised to use [util.promisify9+](#utilpromisify9) instead. **System capability**: SystemCapability.Utils.Lang @@ -246,6 +248,7 @@ Uses a secure random number generator to generate a random universally unique id | string | A string representing the UUID generated.| **Example** + ```js let uuid = util.randomUUID(true); console.log("RFC 4122 Version 4 UUID:" + uuid); @@ -274,6 +277,7 @@ Uses a secure random number generator to generate a random binary UUID of RFC 41 | Uint8Array | A Uint8Array value representing the UUID generated.| **Example** + ```js let uuid = util.randomBinaryUUID(true); console.log(JSON.stringify(uuid)); @@ -302,6 +306,7 @@ Parses a UUID from a string, as described in RFC 4122 version 4. | Uint8Array | A Uint8Array value representing the UUID parsed. If the parsing fails, **SyntaxError** is thrown.| **Example** + ```js let uuid = util.parseUUID("84bdf796-66cc-4655-9b89-d6218d100f9c"); console.log(JSON.stringify(uuid)); @@ -335,6 +340,8 @@ create(encoding?: string,options?: { fatal?: boolean; ignoreBOM?: boolean },): T Creates a **TextDecoder** object. It provides the same function as the deprecated argument constructor. +**System capability**: SystemCapability.Utils.Lang + **Parameters** | Name | Type | Mandatory| Description | @@ -342,7 +349,7 @@ Creates a **TextDecoder** object. It provides the same function as the deprecate | encoding | string | No | Encoding format. | | options | Object | No | Encoding-related options, which include **fatal** and **ignoreBOM**.| - **Table 1.1** options +**Table 1.1** options | Name | Type| Mandatory| Description | | --------- | -------- | ---- | ------------------ | @@ -351,21 +358,21 @@ Creates a **TextDecoder** object. It provides the same function as the deprecate **Example** - ```js +```js let textDecoder = new util.TextDecoder() textDecoder.create('utf-8', { ignoreBOM : true }); - ``` +``` ### constructor(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [constructor9+](#constructor9) instead. - constructor(encoding?: string, options?: { fatal?: boolean; ignoreBOM?: boolean },) A constructor used to create a **TextDecoder** object. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [constructor9+](#constructor9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -383,6 +390,7 @@ A constructor used to create a **TextDecoder** object. | ignoreBOM | boolean | No| Whether to ignore the BOM.| **Example** + ```js let textDecoder = new util.TextDecoder("utf-8",{ignoreBOM: true}); ``` @@ -402,7 +410,7 @@ Decodes the input content. | input | Uint8Array | Yes| Uint8Array to decode.| | options | Object | No| Options related to decoding.| - **Table 2** options +**Table 2** options | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | @@ -415,6 +423,7 @@ Decodes the input content. | string | Data decoded.| **Example** + ```js let textDecoder = new util.TextDecoder("utf-8",{ignoreBOM: true}); let result = new Uint8Array(6); @@ -445,7 +454,7 @@ Decodes the input content. | input | Uint8Array | Yes| Uint8Array to decode.| | options | Object | No| Options related to decoding.| - **Table 2** options +**Table 2** options | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | @@ -458,6 +467,7 @@ Decodes the input content. | string | Data decoded.| **Example** + ```js let textDecoder = new util.TextDecoder("utf-8",{ignoreBOM: true}); let result = new Uint8Array(6); @@ -493,6 +503,7 @@ A constructor used to create a **TextEncoder** object. **System capability**: SystemCapability.Utils.Lang **Example** + ```js let textEncoder = new util.TextEncoder(); ``` @@ -509,7 +520,7 @@ Encodes the input content. | Name| Type | Mandatory| Description | | ------ | ------ | ---- | ------------------ | -| input | string | Yes | String to encode.| +| input | string | No | String to encode.| **Return value** @@ -528,21 +539,21 @@ result = textEncoder.encodeInto("\uD800¥¥"); ### encode(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [encodeInto9+](#encodeinto9) instead. - encode(input?: string): Uint8Array Encodes the input content. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [encodeInto9+](#encodeinto9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| input | string | Yes| String to encode.| +| input | string | No| String to encode.| **Return value** @@ -591,14 +602,14 @@ result = that.encodeInto('abcd', dest) ### encodeInto(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [encodeIntoUint8Array9+](#encodeintouint8array9) instead. - encodeInto(input: string, dest: Uint8Array, ): { read: number; written: number } Stores the UTF-8 encoded text. +> **NOTE** +> +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [encodeIntoUint8Array9+](#encodeintouint8array9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -635,13 +646,13 @@ A constructor used to create a **RationalNumber** object. **Example** - ```js +```js let rationalNumber = new util.RationalNumber(); - ``` +``` ### parseRationalNumber9+ -parseRationalNumber(numerator: number,denominator: number) +parseRationalNumber(numerator: number,denominator: number): RationalNumber Parses a rational number. Previously, this processing is an internal action of the deprecated constructor. @@ -656,21 +667,20 @@ Parses a rational number. Previously, this processing is an internal action of t **Example** - ```js -let rationalNumber = new util.RationalNumber(); -rationalNumber.parseRationalNumber(1,2) - ``` +```js +let rationalNumber = util.RationalNumber.parseRationalNumber(1,2) +``` ### constructor(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [constructor9+](#constructor9) instead. - constructor(numerator: number,denominator: number) A constructor used to create a **RationalNumber** object. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [constructor9+](#constructor9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -682,9 +692,9 @@ A constructor used to create a **RationalNumber** object. **Example** - ```js - let rationalNumber = new util.RationalNumber(1,2); - ``` +```js +let rationalNumber = new util.RationalNumber(1,2); +``` ### createRationalFromString8+ @@ -707,10 +717,11 @@ Creates a **RationalNumber** object based on the given string. | object | **RationalNumber** object created.| **Example** - ```js - let rationalNumber = new util.RationalNumber(1,2); - let rational = util.RationalNumber.createRationalFromString("3/4"); - ``` + +```js +let rationalNumber = new util.RationalNumber(1,2); +let rational = util.RationalNumber.createRationalFromString("3/4"); +``` ### compare9+ @@ -740,16 +751,16 @@ let rational = util.RationalNumber.createRationalFromString("3/4"); let result = rationalNumber.compare(rational); ``` -### compareTo8+(deprecated) - -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [compare9+](#compare9) instead. +### compareTo(deprecated) compareTo​(another: RationalNumber): number​ Compares this **RationalNumber** object with a given object. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [compare9+](#compare9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -765,11 +776,12 @@ Compares this **RationalNumber** object with a given object. | number | Returns **0** if the two objects are equal; returns **1** if the given object is less than this object; return **-1** if the given object is greater than this object.| **Example** - ```js - let rationalNumber = new util.RationalNumber(1,2); - let rational = util.RationalNumber.createRationalFromString("3/4"); - let result = rationalNumber.compareTo(rational); - ``` + +```js +let rationalNumber = new util.RationalNumber(1,2); +let rational = util.RationalNumber.createRationalFromString("3/4"); +let result = rationalNumber.compareTo(rational); +``` ### valueOf8+ @@ -786,10 +798,11 @@ Obtains the value of this **RationalNumber** object as an integer or a floating- | number | An integer or a floating-point number.| **Example** - ```js - let rationalNumber = new util.RationalNumber(1,2); - let result = rationalNumber.valueOf(); - ``` + +```js +let rationalNumber = new util.RationalNumber(1,2); +let result = rationalNumber.valueOf(); +``` ### equals8+ @@ -812,11 +825,12 @@ Checks whether this **RationalNumber** object equals the given object. | boolean | Returns **true** if the two objects are equal; returns **false** otherwise.| **Example** - ```js - let rationalNumber = new util.RationalNumber(1,2); - let rational = util.RationalNumber.createRationalFromString("3/4"); - let result = rationalNumber.equals(rational); - ``` + +```js +let rationalNumber = new util.RationalNumber(1,2); +let rational = util.RationalNumber.createRationalFromString("3/4"); +let result = rationalNumber.equals(rational); +``` ### getCommonFactor9+ @@ -841,20 +855,21 @@ Obtains the greatest common divisor of two specified integers. **Example** - ```js +```js let rationalNumber = new util.RationalNumber(1,2); let result = util.RationalNumber.getCommonFactor(4,6); - ``` +``` ### getCommonDivisor(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [getCommonFactor9+](#getcommonfactor9) instead. static getCommonDivisor​(number1: number,number2: number): number Obtains the greatest common divisor of two specified integers. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getCommonFactor9+](#getcommonfactor9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -871,10 +886,11 @@ Obtains the greatest common divisor of two specified integers. | number | Greatest common divisor obtained.| **Example** - ```js - let rationalNumber = new util.RationalNumber(1,2); - let result = util.RationalNumber.getCommonDivisor(4,6); - ``` + +```js +let rationalNumber = new util.RationalNumber(1,2); +let result = util.RationalNumber.getCommonDivisor(4,6); +``` ### getNumerator8+ @@ -891,10 +907,11 @@ Obtains the numerator of this **RationalNumber** object. | number | Numerator of this **RationalNumber** object.| **Example** - ```js - let rationalNumber = new util.RationalNumber(1,2); - let result = rationalNumber.getNumerator(); - ``` + +```js +let rationalNumber = new util.RationalNumber(1,2); +let result = rationalNumber.getNumerator(); +``` ### getDenominator8+ @@ -911,10 +928,11 @@ Obtains the denominator of this **RationalNumber** object. | number | Denominator of this **RationalNumber** object.| **Example** - ```js - let rationalNumber = new util.RationalNumber(1,2); - let result = rationalNumber.getDenominator(); - ``` + +```js +let rationalNumber = new util.RationalNumber(1,2); +let result = rationalNumber.getDenominator(); +``` ### isZero8+ @@ -931,10 +949,11 @@ Checks whether this **RationalNumber** object is **0**. | boolean | Returns **true** if the value of this **RationalNumber** object is **0**; returns **false** otherwise.| **Example** - ```js - let rationalNumber = new util.RationalNumber(1,2); - let result = rationalNumber.isZero(); - ``` + +```js +let rationalNumber = new util.RationalNumber(1,2); +let result = rationalNumber.isZero(); +``` ### isNaN8+ @@ -951,10 +970,11 @@ Checks whether this **RationalNumber** object is a Not a Number (NaN). | boolean | Returns **true** if this **RationalNumber** object is a NaN (the denominator and numerator are both **0**); returns **false** otherwise.| **Example** - ```js - let rationalNumber = new util.RationalNumber(1,2); - let result = rationalNumber.isNaN(); - ``` + +```js +let rationalNumber = new util.RationalNumber(1,2); +let result = rationalNumber.isNaN(); +``` ### isFinite8+ @@ -971,10 +991,11 @@ Checks whether this **RationalNumber** object represents a finite value. | boolean | Returns **true** if this **RationalNumber** object represents a finite value (the denominator is not **0**); returns **false** otherwise.| **Example** - ```js - let rationalNumber = new util.RationalNumber(1,2); - let result = rationalNumber.isFinite(); - ``` + +```js +let rationalNumber = new util.RationalNumber(1,2); +let result = rationalNumber.isFinite(); +``` ### toString8+ @@ -991,10 +1012,11 @@ Obtains the string representation of this **RationalNumber** object. | string | Returns **NaN** if the numerator and denominator of this object are both **0**; returns a string in Numerator/Denominator format otherwise, for example, **3/5**.| **Example** - ```js - let rationalNumber = new util.RationalNumber(1,2); - let result = rationalNumber.toString(); - ``` + +```js +let rationalNumber = new util.RationalNumber(1,2); +let result = rationalNumber.toString(); +``` ## LRUCache9+ @@ -1005,22 +1027,22 @@ Obtains the string representation of this **RationalNumber** object. | Name | Type | Readable| Writable| Description | | ------ | ------ | ---- | ---- | ---------------------- | -| length | number | Yes | No | Total number of values in this buffer. | +| length | number | Yes | No | Total number of values in this cache.| **Example** - ```js +```js let pro = new util.LRUCache(); pro.put(2,10); pro.put(1,8); let result = pro.length; - ``` +``` ### constructor9+ constructor(capacity?: number) -A constructor used to create a **LruBuffer** instance. The default capacity of the buffer is 64. +A constructor used to create a **LruCache** instance. The default capacity of the cache is 64. **System capability**: SystemCapability.Utils.Lang @@ -1028,20 +1050,20 @@ A constructor used to create a **LruBuffer** instance. The default capacity of t | Name | Type | Mandatory| Description | | -------- | ------ | ---- | ---------------------------- | -| capacity | number | No | Capacity of the **LruBuffer** to create.| +| capacity | number | No | Capacity of the **LruCache** to create.| **Example** - ```js +```js let lrubuffer= new util.LRUCache(); - ``` +``` ### updateCapacity9+ updateCapacity(newCapacity: number): void -Changes the **LruBuffer** capacity. If the new capacity is less than or equal to **0**, an exception will be thrown. +Changes the **LruCache** capacity. If the new capacity is less than or equal to **0**, an exception will be thrown. **System capability**: SystemCapability.Utils.Lang @@ -1049,21 +1071,21 @@ Changes the **LruBuffer** capacity. If the new capacity is less than or equal to | Name | Type | Mandatory| Description | | ----------- | ------ | ---- | ---------------------------- | -| newCapacity | number | Yes | New capacity of the **LruBuffer**.| +| newCapacity | number | Yes | New capacity of the **LruCache**.| **Example** - ```js +```js let pro = new util.LRUCache(); let result = pro.updateCapacity(100); - ``` +``` ### toString9+ toString(): string -Obtains the string representation of this **LruBuffer** object. +Obtains the string representation of this **LruCache** object. **System capability**: SystemCapability.Utils.Lang @@ -1071,24 +1093,24 @@ Obtains the string representation of this **LruBuffer** object. | Type | Description | | ------ | -------------------------- | -| string | String representation of this **LruBuffer** object.| +| string | String representation of this **LruCache** object.| **Example** - ```js +```js let pro = new util.LRUCache(); pro.put(2,10); pro.get(2); pro.remove(20); let result = pro.toString(); - ``` +``` ### getCapacity9+ getCapacity(): number -Obtains the capacity of this buffer. +Obtains the capacity of this cache. **System capability**: SystemCapability.Utils.Lang @@ -1096,7 +1118,7 @@ Obtains the capacity of this buffer. | Type | Description | | ------ | ---------------------- | -| number | Capacity of this buffer.| +| number | Capacity of this cache.| **Example** @@ -1110,7 +1132,7 @@ let result = pro.getCapacity(); clear(): void -Clears key-value pairs from this buffer. The **afterRemoval()** method will be called to perform subsequent operations. +Clears key-value pairs from this cache. The **afterRemoval()** method will be called to perform subsequent operations. **System capability**: SystemCapability.Utils.Lang @@ -1175,7 +1197,7 @@ let result = pro.getMissCount(); getRemovalCount(): number -Obtains the number of removals from this buffer. +Obtains the number of removals from this cache. **System capability**: SystemCapability.Utils.Lang @@ -1183,7 +1205,7 @@ Obtains the number of removals from this buffer. | Type | Description | | ------ | -------------------------- | -| number | Number of removals from the buffer.| +| number | Number of removals from the cache.| **Example** @@ -1224,7 +1246,7 @@ let result = pro.getMatchCount(); getPutCount(): number -Obtains the number of additions to this buffer. +Obtains the number of additions to this cache. **System capability**: SystemCapability.Utils.Lang @@ -1232,7 +1254,7 @@ Obtains the number of additions to this buffer. | Type | Description | | ------ | ---------------------------- | -| number | Number of additions to the buffer.| +| number | Number of additions to the cache.| **Example** @@ -1247,7 +1269,7 @@ let result = pro.getPutCount(); isEmpty(): boolean -Checks whether this buffer is empty. +Checks whether this cache is empty. **System capability**: SystemCapability.Utils.Lang @@ -1255,7 +1277,7 @@ Checks whether this buffer is empty. | Type | Description | | ------- | ---------------------------------------- | -| boolean | Returns **true** if the buffer does not contain any value.| +| boolean | Returns **true** if the cache does not contain any value.| **Example** @@ -1284,7 +1306,7 @@ Obtains the value of the specified key. | Type | Description | | ------------------------ | ------------------------------------------------------------ | -| V \| undefined | Returns the value of the key if a match is found in the buffer; returns **undefined** otherwise.| +| V \| undefined | Returns the value of the key if a match is found in the cache; returns **undefined** otherwise.| **Example** @@ -1299,7 +1321,7 @@ let result = pro.get(2); put(key: K,value: V): V -Adds a key-value pair to this buffer. +Adds a key-value pair to this cache. **System capability**: SystemCapability.Utils.Lang @@ -1327,7 +1349,7 @@ let result = pro.put(2,10); values(): V[] -Obtains all values in this buffer, listed from the most to the least recently accessed. +Obtains all values in this cache, listed from the most to the least recently accessed. **System capability**: SystemCapability.Utils.Lang @@ -1335,7 +1357,7 @@ Obtains all values in this buffer, listed from the most to the least recently ac | Type | Description | | --------- | ------------------------------------------------------------ | -| V [] | All values in the buffer, listed from the most to the least recently accessed.| +| V [] | All values in the cache, listed from the most to the least recently accessed.| **Example** @@ -1352,7 +1374,7 @@ let result = pro.values(); keys(): K[] -Obtains all keys in this buffer, listed from the most to the least recently accessed. +Obtains all keys in this cache, listed from the most to the least recently accessed. **System capability**: SystemCapability.Utils.Lang @@ -1360,7 +1382,7 @@ Obtains all keys in this buffer, listed from the most to the least recently acce | Type | Description | | --------- | ------------------------------------------------------------ | -| K [] | All keys in the buffer, listed from the most to the least recently accessed.| +| K [] | All keys in the cache, listed from the most to the least recently accessed.| **Example** @@ -1375,7 +1397,7 @@ let result = pro.keys(); remove(key: K): V | undefined -Removes the specified key and its value from this buffer. +Removes the specified key and its value from this cache. **System capability**: SystemCapability.Utils.Lang @@ -1389,7 +1411,7 @@ Removes the specified key and its value from this buffer. | Type | Description | | ------------------------ | ------------------------------------------------------------ | -| V \| undefined | Returns an **Optional** object containing the removed key-value pair if the key exists in the buffer; returns an empty **Optional** object otherwise. If the key is null, an exception will be thrown.| +| V \| undefined | Returns an **Optional** object containing the removed key-value pair if the key exists in the cache; returns an empty **Optional** object otherwise. If the key is null, an exception will be thrown.| **Example** @@ -1412,10 +1434,10 @@ Performs subsequent operations after a value is removed. | Name | Type | Mandatory| Description | | -------- | ------- | ---- | ------------------------------------------------------------ | -| isEvict | boolean | No | Whether the buffer capacity is insufficient. If the value is **true**, this method is called due to insufficient capacity. | +| isEvict | boolean | Yes | Whether the cache capacity is insufficient. If the value is **true**, this method is called due to insufficient capacity. | | key | K | Yes | Key removed. | | value | V | Yes | Value removed. | -| newValue | V | No | New value for the key if the **put()** method is called and the key to be added already exists. In other cases, this parameter is left blank.| +| newValue | V | Yes | New value for the key if the **put()** method is called and the key to be added already exists. In other cases, this parameter is left blank.| **Example** @@ -1442,30 +1464,31 @@ lru.afterRemoval(false,10,30,null); ### contains9+ -contains(key: K): boolean +contains(key: object): boolean -Checks whether this buffer contains the specified key. +Checks whether this cache contains the specified key. **System capability**: SystemCapability.Utils.Lang **Parameters** -| Name| Type| Mandatory| Description | -| ------ | ---- | ---- | ---------------- | -| key | K | Yes | Key to check.| +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ---------------- | +| key | object | Yes | Key to check.| **Return value** | Type | Description | | ------- | ------------------------------------------ | -| boolean | Returns **true** if the buffer contains the specified key; returns **false** otherwise.| +| boolean | Returns **true** if the cache contains the specified key; returns **false** otherwise.| **Example** ```js let pro = new util.LRUCache(); pro.put(2,10); -let result = pro.contains(20); +let obj = {1:"key"}; +let result = pro.contains(obj); ``` @@ -1545,7 +1568,7 @@ let result = pro[Symbol.iterator](); > **NOTE** > -> This API is deprecated since API version 9. You are advised to use [LRUCache9+](#lrucache9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache9+](#lrucache9) instead. ### Attributes @@ -1556,6 +1579,7 @@ let result = pro[Symbol.iterator](); | length | number | Yes| No| Total number of values in this buffer.| **Example** + ```js let pro = new util.LruBuffer(); pro.put(2,10); @@ -1565,14 +1589,14 @@ let result = pro[Symbol.iterator](); ### constructor(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [constructor9+](#constructor9) instead. - constructor(capacity?: number) A constructor used to create a **LruBuffer** instance. The default capacity of the buffer is 64. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [constructor9+](#constructor9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -1582,20 +1606,21 @@ A constructor used to create a **LruBuffer** instance. The default capacity of t | capacity | number | No| Capacity of the **LruBuffer** to create.| **Example** + ```js let lrubuffer= new util.LruBuffer(); ``` ### updateCapacity(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [updateCapacity9+](#updatecapacity9) instead. - updateCapacity(newCapacity: number): void Changes the **LruBuffer** capacity. If the new capacity is less than or equal to **0**, an exception will be thrown. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [updateCapacity9+](#updatecapacity9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -1605,6 +1630,7 @@ Changes the **LruBuffer** capacity. If the new capacity is less than or equal to | newCapacity | number | Yes| New capacity of the **LruBuffer**.| **Example** + ```js let pro = new util.LruBuffer(); let result = pro.updateCapacity(100); @@ -1612,14 +1638,14 @@ Changes the **LruBuffer** capacity. If the new capacity is less than or equal to ### toString(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [toString9+](#tostring9) instead. - toString(): string Obtains the string representation of this **LruBuffer** object. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [toString9+](#tostring9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -1629,6 +1655,7 @@ Obtains the string representation of this **LruBuffer** object. | string | String representation of this **LruBuffer** object.| **Example** + ```js let pro = new util.LruBuffer(); pro.put(2,10); @@ -1639,14 +1666,14 @@ Obtains the string representation of this **LruBuffer** object. ### getCapacity(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [getCapacity9+](#getcapacity9) instead. - getCapacity(): number Obtains the capacity of this buffer. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getCapacity9+](#getcapacity9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -1663,17 +1690,18 @@ Obtains the capacity of this buffer. ### clear(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [clear9+](#clear9) instead. - clear(): void Clears key-value pairs from this buffer. The **afterRemoval()** method will be called to perform subsequent operations. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [clear9+](#clear9) instead. + **System capability**: SystemCapability.Utils.Lang **Example** + ```js let pro = new util.LruBuffer(); pro.put(2,10); @@ -1683,14 +1711,14 @@ Clears key-value pairs from this buffer. The **afterRemoval()** method will be c ### getCreateCount(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [getCreateCount9+](#getcreatecount9) instead. - getCreateCount(): number Obtains the number of return values for **createDefault()**. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getCreateCount9+](#getcreatecount9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -1700,6 +1728,7 @@ Obtains the number of return values for **createDefault()**. | number | Number of return values for **createDefault()**.| **Example** + ```js let pro = new util.LruBuffer(); pro.put(1,8); @@ -1708,14 +1737,14 @@ Obtains the number of return values for **createDefault()**. ### getMissCount(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [getMissCount9+](#getmisscount9) instead. - getMissCount(): number Obtains the number of times that the queried values are mismatched. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getMissCount9+](#getmisscount9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -1725,6 +1754,7 @@ Obtains the number of times that the queried values are mismatched. | number | Number of times that the queried values are mismatched.| **Example** + ```js let pro = new util.LruBuffer(); pro.put(2,10); @@ -1734,14 +1764,14 @@ Obtains the number of times that the queried values are mismatched. ### getRemovalCount(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [getRemovalCount9+](#getremovalcount9) instead. - getRemovalCount(): number Obtains the number of removals from this buffer. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getRemovalCount9+](#getremovalcount9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -1751,6 +1781,7 @@ Obtains the number of removals from this buffer. | number | Number of removals from the buffer.| **Example** + ```js let pro = new util.LruBuffer(); pro.put(2,10); @@ -1761,14 +1792,14 @@ Obtains the number of removals from this buffer. ### getMatchCount(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [getMatchCount9+](#getmatchcount9) instead. - getMatchCount(): number Obtains the number of times that the queried values are matched. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getMatchCount9+](#getmatchcount9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -1778,6 +1809,7 @@ Obtains the number of times that the queried values are matched. | number | Number of times that the queried values are matched.| **Example** + ```js let pro = new util.LruBuffer(); pro.put(2,10); @@ -1787,14 +1819,14 @@ Obtains the number of times that the queried values are matched. ### getPutCount(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [getPutCount9+](#getputcount9) instead. - getPutCount(): number Obtains the number of additions to this buffer. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getPutCount9+](#getputcount9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -1804,6 +1836,7 @@ Obtains the number of additions to this buffer. | number | Number of additions to the buffer.| **Example** + ```js let pro = new util.LruBuffer(); pro.put(2,10); @@ -1812,14 +1845,14 @@ Obtains the number of additions to this buffer. ### isEmpty(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [isEmpty9+](#isempty9) instead. - isEmpty(): boolean Checks whether this buffer is empty. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [isEmpty9+](#isempty9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -1829,6 +1862,7 @@ Checks whether this buffer is empty. | boolean | Returns **true** if the buffer does not contain any value.| **Example** + ```js let pro = new util.LruBuffer(); pro.put(2,10); @@ -1837,14 +1871,14 @@ Checks whether this buffer is empty. ### get(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [get9+](#get9) instead. - get(key: K): V | undefined Obtains the value of the specified key. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [get9+](#get9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -1860,6 +1894,7 @@ Obtains the value of the specified key. | V \| undefined | Returns the value of the key if a match is found in the buffer; returns **undefined** otherwise.| **Example** + ```js let pro = new util.LruBuffer(); pro.put(2,10); @@ -1868,14 +1903,14 @@ Obtains the value of the specified key. ### put(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [put9+](#put9) instead. - put(key: K,value: V): V Adds a key-value pair to this buffer. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [put9+](#put9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -1892,6 +1927,7 @@ Adds a key-value pair to this buffer. | V | Returns the existing value if the key already exists; returns the value added otherwise. If the key or value is null, an exception will be thrown. | **Example** + ```js let pro = new util.LruBuffer(); let result = pro.put(2,10); @@ -1899,14 +1935,14 @@ Adds a key-value pair to this buffer. ### values(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [values9+](#values9) instead. - values(): V[] Obtains all values in this buffer, listed from the most to the least recently accessed. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [values9+](#values9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -1916,6 +1952,7 @@ Obtains all values in this buffer, listed from the most to the least recently ac | V [] | All values in the buffer, listed from the most to the least recently accessed.| **Example** + ```js let pro = new util.LruBuffer(); pro.put(2,10); @@ -1926,14 +1963,14 @@ Obtains all values in this buffer, listed from the most to the least recently ac ### keys(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [keys9+](#keys9) instead. - keys(): K[] Obtains all keys in this buffer, listed from the most to the least recently accessed. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [keys9+](#keys9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -1951,14 +1988,14 @@ Obtains all keys in this buffer, listed from the most to the least recently acce ### remove(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [remove9+](#remove9) instead. - remove(key: K): V | undefined Removes the specified key and its value from this buffer. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [remove9+](#remove9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -1982,26 +2019,27 @@ Removes the specified key and its value from this buffer. ### afterRemoval(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [afterRemoval9+](#afterremoval9) instead. - afterRemoval(isEvict: boolean,key: K,value: V,newValue: V): void Performs subsequent operations after a value is removed. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [afterRemoval9+](#afterremoval9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| isEvict | boolean | No| Whether the buffer capacity is insufficient. If the value is **true**, this method is called due to insufficient capacity.| +| isEvict | boolean | Yes| Whether the buffer capacity is insufficient. If the value is **true**, this method is called due to insufficient capacity.| | key | K | Yes| Key removed.| | value | V | Yes| Value removed.| -| newValue | V | No| New value for the key if the **put()** method is called and the key to be added already exists. In other cases, this parameter is left blank.| +| newValue | V | Yes| New value for the key if the **put()** method is called and the key to be added already exists. In other cases, this parameter is left blank.| **Example** + ```js let arr = []; class ChildLruBuffer extends util.LruBuffer @@ -2024,14 +2062,15 @@ Performs subsequent operations after a value is removed. ### contains(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [contains9+](#contains9) instead. - contains(key: K): boolean Checks whether this buffer contains the specified key. + +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [contains9+](#contains9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -2047,6 +2086,7 @@ Checks whether this buffer contains the specified key. | boolean | Returns **true** if the buffer contains the specified key; returns **false** otherwise.| **Example** + ```js let pro = new util.LruBuffer(); pro.put(2,10); @@ -2055,14 +2095,14 @@ Checks whether this buffer contains the specified key. ### createDefault(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [createDefault9+](#createdefault9) instead. - createDefault(key: K): V Creates a value if the value of the specified key is not available. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [createDefault9+](#createdefault9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -2078,6 +2118,7 @@ Creates a value if the value of the specified key is not available. | V | Value of the key.| **Example** + ```js let pro = new util.LruBuffer(); let result = pro.createDefault(50); @@ -2085,14 +2126,14 @@ Creates a value if the value of the specified key is not available. ### entries(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [entries9+](#entries9) instead. - entries(): IterableIterator<[K,V]> Obtains a new iterator object that contains all key-value pairs in this object. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [entries9+](#entries9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -2102,6 +2143,7 @@ Obtains a new iterator object that contains all key-value pairs in this object. | [K, V] | Iterable array.| **Example** + ```js let pro = new util.LruBuffer(); pro.put(2,10); @@ -2110,14 +2152,14 @@ Obtains a new iterator object that contains all key-value pairs in this object. ### [Symbol.iterator](deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [Symbol.iterator9+](#symboliterator9) instead. - [Symbol.iterator]\(): IterableIterator<[K, V]> Obtains a two-dimensional array in key-value pairs. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Symbol.iterator9+](#symboliterator9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -2127,6 +2169,7 @@ Obtains a two-dimensional array in key-value pairs. | [K, V] | Two-dimensional array in key-value pairs.| **Example** + ```js let pro = new util.LruBuffer(); pro.put(2,10); @@ -2138,6 +2181,7 @@ Obtains a two-dimensional array in key-value pairs. Defines the type of values in a **Scope** object. The value type can be **ScopeComparable** or **number**. The values of the **ScopeComparable** type are used to implement the **compareTo** method. Therefore, ensure that the input parameters are comparable. + ```js interface ScopeComparable{ compareTo(other: ScopeComparable): boolean; @@ -2229,9 +2273,9 @@ Obtains the intersection of this **Scope** and the given **Scope**. **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ------------------------------ | ---- | ------------------ | -| range | [ScopeHelper9+](#scopehelper9) | Yes | **Scope** specified.| +| Name| Type | Mandatory| Description | +| ------ | ---------------------------- | ---- | ------------------ | +| range | [ScopeHelper](#scopehelper9) | Yes | **Scope** specified.| **Return value** @@ -2269,9 +2313,9 @@ Obtains the intersection of this **Scope** and the given lower and upper limits. **Return value** -| Type | Description | -| ------------------------------ | ---------------------------------------- | -| [ScopeHelper9+](#scopehelper9) | Intersection of this **Scope** and the given lower and upper limits.| +| Type | Description | +| ---------------------------- | ---------------------------------------- | +| [ScopeHelper](#scopehelper9) | Intersection of this **Scope** and the given lower and upper limits.| **Example** @@ -2350,9 +2394,9 @@ Obtains the union set of this **Scope** and the given lower and upper limits. **Return value** -| Type | Description | -| ------------------------------ | ------------------------------------ | -| [ScopeHelper9+](#scopehelper9) | Union set of this **Scope** and the given lower and upper limits.| +| Type | Description | +| ---------------------------- | ------------------------------------ | +| [ScopeHelper](#scopehelper9) | Union set of this **Scope** and the given lower and upper limits.| **Example** @@ -2376,15 +2420,15 @@ Obtains the union set of this **Scope** and the given **Scope**. **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ------------------------------ | ---- | ------------------ | -| range | [ScopeHelper9+](#scopehelper9) | Yes | **Scope** specified.| +| Name| Type | Mandatory| Description | +| ------ | ---------------------------- | ---- | ------------------ | +| range | [ScopeHelper](#scopehelper9) | Yes | **Scope** specified.| **Return value** -| Type | Description | -| ------------------------------ | ---------------------------------- | -| [ScopeHelper9+](#scopehelper9) | Union set of this **Scope** and the given **Scope**.| +| Type | Description | +| ---------------------------- | ---------------------------------- | +| [ScopeHelper](#scopehelper9) | Union set of this **Scope** and the given **Scope**.| **Example** @@ -2415,9 +2459,9 @@ Obtains the union set of this **Scope** and the given value. **Return value** -| Type | Description | -| ------------------------------ | -------------------------------- | -| [ScopeHelper9+](#scopehelper9) | Union set of this **Scope** and the given value.| +| Type | Description | +| ---------------------------- | -------------------------------- | +| [ScopeHelper](#scopehelper9) | Union set of this **Scope** and the given value.| **Example** @@ -2471,9 +2515,9 @@ Checks whether a range is within this **Scope**. **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ------------------------------ | ---- | ------------------ | -| range | [ScopeHelper9+](#scopehelper9) | Yes | **Scope** specified.| +| Name| Type | Mandatory| Description | +| ------ | ---------------------------- | ---- | ------------------ | +| range | [ScopeHelper](#scopehelper9) | Yes | **Scope** specified.| **Return value** @@ -2528,18 +2572,19 @@ let result = range.clamp(tempMiDF); > **NOTE** > -> This class is deprecated since API version 9. You are advised to use [ScopeHelper9+](#scopehelper9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper9+](#scopehelper9) instead. ### constructor(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [constructor9+](#constructor9) instead. - constructor(lowerObj: ScopeType, upperObj: ScopeType) A constructor used to create a **Scope** object with the specified upper and lower limits. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [constructor9+](#constructor9) instead. + + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -2558,14 +2603,14 @@ A constructor used to create a **Scope** object with the specified upper and low ### toString(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [toString9+](#tostring9) instead. - toString(): string Obtains a string representation that contains this **Scope**. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [toString9+](#tostring9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -2575,6 +2620,7 @@ Obtains a string representation that contains this **Scope**. | string | String representation containing the **Scope**.| **Example** + ```js let tempLower = new Temperature(30); let tempUpper = new Temperature(40); @@ -2584,14 +2630,14 @@ Obtains a string representation that contains this **Scope**. ### intersect(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [intersect9+](#intersect9) instead. - intersect(range: Scope): Scope Obtains the intersection of this **Scope** and the given **Scope**. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [intersect9+](#intersect9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -2620,14 +2666,14 @@ Obtains the intersection of this **Scope** and the given **Scope**. ### intersect(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [intersect9+](#intersect9) instead. - intersect(lowerObj:ScopeType,upperObj:ScopeType):Scope Obtains the intersection of this **Scope** and the given lower and upper limits. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [intersect9+](#intersect9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -2644,6 +2690,7 @@ Obtains the intersection of this **Scope** and the given lower and upper limits. | [Scope](#scopedeprecated) | Intersection of this **Scope** and the given lower and upper limits.| **Example** + ```js let tempLower = new Temperature(30); let tempUpper = new Temperature(40); @@ -2655,14 +2702,14 @@ Obtains the intersection of this **Scope** and the given lower and upper limits. ### getUpper(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [getUpper9+](#getupper9) instead. - getUpper(): ScopeType Obtains the upper limit of this **Scope**. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getUpper9+](#getupper9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -2672,6 +2719,7 @@ Obtains the upper limit of this **Scope**. | [ScopeType](#scopetype8) | Upper limit of this **Scope**.| **Example** + ```js let tempLower = new Temperature(30); let tempUpper = new Temperature(40); @@ -2681,14 +2729,14 @@ Obtains the upper limit of this **Scope**. ### getLower(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [getLower9+](#getlower9) instead. - getLower(): ScopeType Obtains the lower limit of this **Scope**. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getLower9+](#getlower9) instead. + **System capability**: SystemCapability.Utils.Lang **Return value** @@ -2698,6 +2746,7 @@ Obtains the lower limit of this **Scope**. | [ScopeType](#scopetype8) | Lower limit of this **Scope**.| **Example** + ```js let tempLower = new Temperature(30); let tempUpper = new Temperature(40); @@ -2707,14 +2756,14 @@ Obtains the lower limit of this **Scope**. ### expand(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [expand9+](#expand9) instead. - expand(lowerObj: ScopeType,upperObj: ScopeType): Scope Obtains the union set of this **Scope** and the given lower and upper limits. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [expand9+](#expand9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -2743,14 +2792,14 @@ Obtains the union set of this **Scope** and the given lower and upper limits. ### expand(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [expand9+](#expand9) instead. - expand(range: Scope): Scope Obtains the union set of this **Scope** and the given **Scope**. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [expand9+](#expand9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -2766,6 +2815,7 @@ Obtains the union set of this **Scope** and the given **Scope**. | [Scope](#scopedeprecated) | Union set of this **Scope** and the given **Scope**.| **Example** + ```js let tempLower = new Temperature(30); let tempUpper = new Temperature(40); @@ -2778,14 +2828,14 @@ Obtains the union set of this **Scope** and the given **Scope**. ### expand(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [expand9+](#expand9) instead. - expand(value: ScopeType): Scope Obtains the union set of this **Scope** and the given value. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [expand9+](#expand9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -2801,6 +2851,7 @@ Obtains the union set of this **Scope** and the given value. | [Scope](#scopedeprecated) | Union set of this **Scope** and the given value.| **Example** + ```js let tempLower = new Temperature(30); let tempUpper = new Temperature(40); @@ -2811,14 +2862,14 @@ Obtains the union set of this **Scope** and the given value. ### contains(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [contains9+](#contains9) instead. - contains(value: ScopeType): boolean Checks whether a value is within this **Scope**. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [contains9+](#contains9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -2834,6 +2885,7 @@ Checks whether a value is within this **Scope**. | boolean | Returns **true** if the value is within this **Scope**; returns **false** otherwise.| **Example** + ```js let tempLower = new Temperature(30); let tempUpper = new Temperature(40); @@ -2844,14 +2896,14 @@ Checks whether a value is within this **Scope**. ### contains(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [contains9+](#contains9) instead. - contains(range: Scope): boolean Checks whether a range is within this **Scope**. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [contains9+](#contains9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -2880,14 +2932,15 @@ Checks whether a range is within this **Scope**. ### clamp(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [clamp9+](#clamp9) instead. clamp(value: ScopeType): ScopeType Limits a value to this **Scope**. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [clamp9+](#clamp9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -2903,6 +2956,7 @@ Limits a value to this **Scope**. | [ScopeType](#scopetype8) | Returns **lowerObj** if the specified value is less than the lower limit; returns **upperObj** if the specified value is greater than the upper limit; returns the specified value if it is within this **Scope**.| **Example** + ```js let tempLower = new Temperature(30); let tempUpper = new Temperature(40); @@ -3117,35 +3171,36 @@ that.decode(array).then(val=>{ > **NOTE** > -> This class is deprecated since API version 9. You are advised to use [Base64Helper9+](#base64helper9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper9+](#base64helper9) instead. ### constructor(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [constructor9+](#constructor9) instead. - constructor() A constructor used to create a **Base64** object. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [constructor9+](#constructor9) instead. + **System capability**: SystemCapability.Utils.Lang **Example** + ```js let base64 = new util.Base64(); ``` ### encodeSync(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [encodeSync9+](#encodesync9) instead. - encodeSync(src: Uint8Array): Uint8Array Encodes the input content. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [encodeSync9+](#encodesync9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -3170,14 +3225,14 @@ Encodes the input content. ### encodeToStringSync(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [encodeToStringSync9+](#encodetostringsync9) instead. - encodeToStringSync(src: Uint8Array): string Encodes the input content. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [encodeToStringSync9+](#encodetostringsync9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -3193,6 +3248,7 @@ Encodes the input content. | string | String encoded from the Uint8Array.| **Example** + ```js let that = new util.Base64(); let array = new Uint8Array([115,49,51]); @@ -3201,14 +3257,14 @@ Encodes the input content. ### decodeSync(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [decodeSync9+](#decodesync9) instead. - decodeSync(src: Uint8Array | string): Uint8Array Decodes the input content. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [decodeSync9+](#decodesync9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -3224,6 +3280,7 @@ Decodes the input content. | Uint8Array | Uint8Array decoded.| **Example** + ```js let that = new util.Base64(); let buff = 'czEz'; @@ -3232,14 +3289,14 @@ Decodes the input content. ### encode(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [encode9+](#encode9) instead. - encode(src: Uint8Array): Promise<Uint8Array> Encodes the input content asynchronously. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [encode9+](#encode9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -3255,6 +3312,7 @@ Encodes the input content asynchronously. | Promise<Uint8Array> | Uint8Array obtained after asynchronous encoding.| **Example** + ```js let that = new util.Base64(); let array = new Uint8Array([115,49,51]); @@ -3268,14 +3326,14 @@ Encodes the input content asynchronously. ### encodeToString(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [encodeToString9+](#encodetostring9) instead. - encodeToString(src: Uint8Array): Promise<string> Encodes the input content asynchronously. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [encodeToString9+](#encodetostring9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -3291,6 +3349,7 @@ Encodes the input content asynchronously. | Promise<string> | String obtained after asynchronous encoding.| **Example** + ```js let that = new util.Base64(); let array = new Uint8Array([115,49,51]); @@ -3301,14 +3360,15 @@ Encodes the input content asynchronously. ### decode(deprecated) -> **NOTE** -> -> This API is deprecated since API version 9. You are advised to use [decode9+](#decode9) instead. decode(src: Uint8Array | string): Promise<Uint8Array> Decodes the input content asynchronously. +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [decode9+](#decode9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -3324,6 +3384,7 @@ Decodes the input content asynchronously. | Promise<Uint8Array> | Uint8Array obtained after asynchronous decoding.| **Example** + ```js let that = new util.Base64(); let array = new Uint8Array([99,122,69,122]); @@ -3347,6 +3408,7 @@ A constructor used to create a **Types** object. **System capability**: SystemCapability.Utils.Lang **Example** + ```js let type = new util.types(); ``` @@ -3373,6 +3435,7 @@ Checks whether the input value is of the **ArrayBuffer** type. | boolean | Returns **true** if the input value is of the **ArrayBuffer** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isAnyArrayBuffer(new ArrayBuffer(0)); @@ -3402,6 +3465,7 @@ Checks whether the input value is of the **ArrayBufferView** type. | boolean | Returns **true** if the input value is of the **ArrayBufferView** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isArrayBufferView(new Int8Array([])); @@ -3429,6 +3493,7 @@ Checks whether the input value is of the **arguments** type. | boolean | Returns **true** if the input value is of the **arguments** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); function foo() { @@ -3459,6 +3524,7 @@ Checks whether the input value is of the **ArrayBuffer** type. | boolean | Returns **true** if the input value is of the **ArrayBuffer** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isArrayBuffer(new ArrayBuffer(0)); @@ -3486,6 +3552,7 @@ Checks whether the input value is an asynchronous function. | boolean | Returns **true** if the input value is an asynchronous function; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isAsyncFunction(async function foo() {}); @@ -3513,6 +3580,7 @@ Checks whether the input value is of the **Boolean** type. | boolean | Returns **true** if the input value is of the **Boolean** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isBooleanObject(new Boolean(true)); @@ -3540,6 +3608,7 @@ Checks whether the input value is of the **Boolean**, **Number**, **String**, or | boolean | Returns **true** if the input value is of the **Boolean**, **Number**, **String**, or **Symbol** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isBoxedPrimitive(new Boolean(false)); @@ -3567,6 +3636,7 @@ Checks whether the input value is of the **DataView** type. | boolean | Returns **true** if the input value is of the **DataView** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); const ab = new ArrayBuffer(20); @@ -3595,6 +3665,7 @@ Checks whether the input value is of the **Date** type. | boolean | Returns **true** if the input value is of the **Date** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isDate(new Date()); @@ -3622,6 +3693,7 @@ Checks whether the input value is of the **native external** type. | boolean | Returns **true** if the input value is of the **native external** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isExternal(true); @@ -3649,6 +3721,7 @@ Checks whether the input value is of the **Float32Array** type. | boolean | Returns **true** if the input value is of the **Float32Array** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isFloat32Array(new Float32Array()); @@ -3676,6 +3749,7 @@ Checks whether the input value is of the **Float64Array** type. | boolean | Returns **true** if the input value is of the **Float64Array** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isFloat64Array(new Float64Array()); @@ -3703,6 +3777,7 @@ Checks whether the input value is a generator function. | boolean | Returns **true** if the input value is a generator function; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isGeneratorFunction(function* foo() {}); @@ -3730,6 +3805,7 @@ Checks whether the input value is a generator object. | boolean | Returns **true** if the input value is a generator object; returns **false** otherwise.| **Example** + ```js let that = new util.types(); function* foo() {} @@ -3759,6 +3835,7 @@ Checks whether the input value is of the **Int8Array** type. | boolean | Returns **true** if the input value is of the **Int8Array** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isInt8Array(new Int8Array([])); @@ -3786,6 +3863,7 @@ Checks whether the input value is of the **Int16Array** type. | boolean | Returns **true** if the input value is of the **Int16Array** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isInt16Array(new Int16Array([])); @@ -3813,6 +3891,7 @@ Checks whether the input value is of the **Int32Array** type. | boolean | Returns **true** if the input value is of the **Int32Array** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isInt32Array(new Int32Array([])); @@ -3840,6 +3919,7 @@ Checks whether the input value is of the **Map** type. | boolean | Returns **true** if the input value is of the **Map** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isMap(new Map()); @@ -3856,6 +3936,7 @@ Checks whether the input value is of the **MapIterator** type. **Parameters** + | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | value | Object | Yes| Object to check.| @@ -3867,6 +3948,7 @@ Checks whether the input value is of the **MapIterator** type. | boolean | Returns **true** if the input value is of the **MapIterator** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); const map = new Map(); @@ -3895,6 +3977,7 @@ Checks whether the input value is of the **Error** type. | boolean | Returns **true** if the input value is of the **Error** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isNativeError(new TypeError()); @@ -3922,6 +4005,7 @@ Checks whether the input value is a number object. | boolean | Returns **true** if the input value is a number object; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isNumberObject(new Number(0)); @@ -3949,6 +4033,7 @@ Checks whether the input value is a promise. | boolean | Returns **true** if the input value is a promise; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isPromise(Promise.resolve(1)); @@ -3976,6 +4061,7 @@ Checks whether the input value is a proxy. | boolean | Returns **true** if the input value is a proxy; returns **false** otherwise.| **Example** + ```js let that = new util.types(); const target = {}; @@ -4005,6 +4091,7 @@ Checks whether the input value is of the **RegExp** type. | boolean | Returns **true** if the input value is of the **RegExp** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isRegExp(new RegExp('abc')); @@ -4032,6 +4119,7 @@ Checks whether the input value is of the **Set** type. | boolean | Returns **true** if the input value is of the **Set** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isSet(new Set()); @@ -4059,6 +4147,7 @@ Checks whether the input value is of the **SetIterator** type. | boolean | Returns **true** if the input value is of the **SetIterator** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); const set = new Set(); @@ -4087,6 +4176,7 @@ Checks whether the input value is a string object. | boolean | Returns **true** if the input value is a string object; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isStringObject(new String('foo')); @@ -4114,6 +4204,7 @@ Checks whether the input value is a symbol object. | boolean | Returns **true** if the input value is a symbol object; returns **false** otherwise.| **Example** + ```js let that = new util.types(); const symbols = Symbol('foo'); @@ -4144,6 +4235,7 @@ Checks whether the input value is of the **TypedArray** type. | boolean | Returns **true** if the input value is of the **TypedArray** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isTypedArray(new Float64Array([])); @@ -4171,6 +4263,7 @@ Checks whether the input value is of the **Uint8Array** type. | boolean | Returns **true** if the input value is of the **Uint8Array** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isUint8Array(new Uint8Array([])); @@ -4198,6 +4291,7 @@ Checks whether the input value is of the **Uint8ClampedArray** type. | boolean | Returns **true** if the input value is of the **Uint8ClampedArray** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isUint8ClampedArray(new Uint8ClampedArray([])); @@ -4225,6 +4319,7 @@ Checks whether the input value is of the **Uint16Array** type. | boolean | Returns **true** if the input value is of the **Uint16Array** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isUint16Array(new Uint16Array([])); @@ -4252,6 +4347,7 @@ Checks whether the input value is of the **Uint32Array** type. | boolean | Returns **true** if the input value is of the **Uint32Array** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isUint32Array(new Uint32Array([])); @@ -4279,6 +4375,7 @@ Checks whether the input value is of the **WeakMap** type. | boolean | Returns **true** if the input value is of the **WeakMap** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isWeakMap(new WeakMap()); @@ -4306,6 +4403,7 @@ Checks whether the input value is of the **WeakSet** type. | boolean | Returns **true** if the input value is of the **WeakSet** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isWeakSet(new WeakSet()); @@ -4333,6 +4431,7 @@ Checks whether the input value is of the **BigInt64Array** type. | boolean | Returns **true** if the input value is of the **BigInt64Array** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isBigInt64Array(new BigInt64Array([])); @@ -4360,6 +4459,7 @@ Checks whether the input value is of the **BigUint64Array** type. | boolean | Returns **true** if the input value is of the **BigUint64Array** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isBigUint64Array(new BigUint64Array([])); @@ -4387,6 +4487,7 @@ Checks whether the input value is a module namespace object. | boolean | Returns **true** if the input value is a module namespace object; returns **false** otherwise.| **Example** + ```js import url from '@ohos.url' let that = new util.types(); @@ -4415,6 +4516,7 @@ Checks whether the input value is of the **SharedArrayBuffer** type. | boolean | Returns **true** if the input value is of the **SharedArrayBuffer** type; returns **false** otherwise.| **Example** + ```js let that = new util.types(); let result = that.isSharedArrayBuffer(new SharedArrayBuffer(0)); diff --git a/en/application-dev/reference/apis/js-apis-vector.md b/en/application-dev/reference/apis/js-apis-vector.md index 57b38f31c7e609fb59e1ff5266713e59d588c247..302b8223c0b720390c82cb28afa921b439fef7fd 100644 --- a/en/application-dev/reference/apis/js-apis-vector.md +++ b/en/application-dev/reference/apis/js-apis-vector.md @@ -1,4 +1,4 @@ -# Linear Container Vector +# @ohos.util.Vector (Linear Container Vector) > **NOTE** > @@ -290,7 +290,7 @@ vector.removeByRange(2,4); ### replaceAllElements -replaceAllElements(callbackfn: (value: T, index?: number, vector?: Vector<T>) => T, +replaceAllElements(callbackFn: (value: T, index?: number, vector?: Vector<T>) => T, thisArg?: Object): void Replaces all elements in this container with new elements, and returns the new ones. @@ -301,7 +301,7 @@ Replaces all elements in this container with new elements, and returns the new o | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked for replacement.| +| callbackFn | function | Yes| Callback invoked for replacement.| | thisArg | Object | No| Value to use when the callback is invoked.| callbackfn @@ -330,7 +330,7 @@ vector.replaceAllElements((value: number, index: number) => { ### forEach -forEach(callbackfn: (value: T, index?: number, vector?: Vector<T>) => void, +forEach(callbackFn: (value: T, index?: number, vector?: Vector<T>) => void, thisArg?: Object): void Uses a callback to traverse the elements in this container and obtain their position indexes. @@ -341,7 +341,7 @@ Uses a callback to traverse the elements in this container and obtain their posi | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callbackfn | function | Yes| Callback invoked for replacement.| +| callbackFn | function | Yes| Callback invoked for replacement.| | thisArg | Object | No| Value to use when the callback is invoked.| callbackfn diff --git a/en/application-dev/reference/apis/js-apis-webview.md b/en/application-dev/reference/apis/js-apis-webview.md index a3ee6ebcbf0c7408d9532eba466c89ba04f85ae4..92f40c92f26257e614135694d49d69608ea32a23 100644 --- a/en/application-dev/reference/apis/js-apis-webview.md +++ b/en/application-dev/reference/apis/js-apis-webview.md @@ -1,6 +1,6 @@ -# Webview +# @ohos.web.webview (Webview) The **Webview** module provides APIs for web control. @@ -11,6 +11,7 @@ The **Webview** module provides APIs for web control. > - You can preview how the APIs of this module work on a real device. The preview is not yet available in the DevEco Studio Previewer. ## Required Permissions + **ohos.permission.INTERNET**, required for accessing online web pages. For details about how to apply for a permission, see [Declaring Permissions](../../security/accesstoken-guidelines.md). ## Modules to Import @@ -2122,6 +2123,366 @@ struct WebComponent { } ``` +### getOriginalUrl + +getOriginalUrl(): string + +Obtains the original URL of this page. + +**System capability**: SystemCapability.Web.Webview.Core + +**Return value** + +| Type | Description | +| ------ | ----------------------- | +| string | Original URL of the current page.| + +**Error codes** + +For details about the error codes, see [Webview Error Codes](../errorcodes/errorcode-webview.md). + +| ID| Error Message | +| -------- | ------------------------------------------------------------ | +| 17100001 | Init error. The WebviewController must be associated with a Web component. | + +**Example** + +```ts +// xxx.ets +import web_webview from '@ohos.web.webview'; + +@Entry +@Component +struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController(); + + build() { + Column() { + Button('getOrgUrl') + .onClick(() => { + try { + let url = this.controller.getOriginalUrl(); + console.log("original url: " + url); + } catch (error) { + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + } + }) + Web({ src: 'www.example.com', controller: this.controller }) + } + } +} +``` + +### getFavicon + +getFavicon(): image.PixelMap + +Obtains the favicon of this page. + +**System capability**: SystemCapability.Web.Webview.Core + +**Return value** + +| Type | Description | +| -------------------------------------- | ------------------------------- | +| [PixelMap](js-apis-image.md#pixelmap7) | **PixelMap** object of the favicon of the page.| + +**Error codes** + +For details about the error codes, see [Webview Error Codes](../errorcodes/errorcode-webview.md). + +| ID| Error Message | +| -------- | ------------------------------------------------------------ | +| 17100001 | Init error. The WebviewController must be associated with a Web component. | + +**Example** + +```ts +// xxx.ets +import web_webview from '@ohos.web.webview'; +import image from "@ohos.multimedia.image" +@Entry +@Component +struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController(); + @State pixelmap: image.PixelMap = undefined; + + build() { + Column() { + Button('getFavicon') + .onClick(() => { + try { + this.pixelmap = this.controller.getFavicon(); + } catch (error) { + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + } + }) + Web({ src: 'www.example.com', controller: this.controller }) + } + } +} +``` + +### setNetworkAvailable + +setNetworkAvailable(enable: boolean): void + +Sets the **window.navigator.onLine** attribute in JavaScript. + +**System capability**: SystemCapability.Web.Webview.Core + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------- | ---- | --------------------------------- | +| enable | boolean | Yes | Whether to enable **window.navigator.onLine**.| + +**Error codes** + +For details about the error codes, see [Webview Error Codes](../errorcodes/errorcode-webview.md). + +| ID| Error Message | +| -------- | ------------------------------------------------------------ | +| 17100001 | Init error. The WebviewController must be associated with a Web component. | +| 401 | Invalid input parameter. | + +**Example** + +```ts +// xxx.ets +import web_webview from '@ohos.web.webview'; + +@Entry +@Component +struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController(); + + build() { + Column() { + Button('setNetworkAvailable') + .onClick(() => { + try { + this.controller.setNetworkAvailable(true); + } catch (error) { + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + } + }) + Web({ src: 'www.example.com', controller: this.controller }) + } + } +} +``` + +### hasImage + +hasImage(callback: AsyncCallback): void + +Checks whether this page contains images. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Web.Webview.Core + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ----------------------- | ---- | -------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Error codes** + +For details about the error codes, see [Webview Error Codes](../errorcodes/errorcode-webview.md). + +| ID| Error Message | +| -------- | ------------------------------------------------------------ | +| 17100001 | Init error. The WebviewController must be associated with a Web compoent. | +| 401 | Invalid input parameter. | + +**Example** + +```ts +// xxx.ets +import web_webview from '@ohos.web.webview'; + +@Entry +@Component +struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController(); + + build() { + Column() { + Button('hasImageCb') + .onClick(() => { + try { + this.controller.hasImage((err, data) => { + if (error) { + console.info(`hasImage error: ` + JSON.stringify(error)) + return; + } + console.info("hasImage: " + data); + }); + } catch (error) { + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + } + }) + Web({ src: 'www.example.com', controller: this.controller }) + } + } +} +``` + +### hasImage + +hasImage(): Promise + +Checks whether this page contains images. This API uses a promise to return the result. + +**System capability**: SystemCapability.Web.Webview.Core + +**Return value** + +| Type | Description | +| ----------------- | --------------------------------------- | +| Promise\ | Promise used to return the result.| + +**Error codes** + +For details about the error codes, see [Webview Error Codes](../errorcodes/errorcode-webview.md). + +| ID| Error Message | +| -------- | ------------------------------------------------------------ | +| 17100001 | Init error. The WebviewController must be associated with a Web compoent. | +| 401 | Invalid input parameter. | + +**Example** + +```ts +// xxx.ets +import web_webview from '@ohos.web.webview'; + +@Entry +@Component +struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController(); + + build() { + Column() { + Button('hasImagePm') + .onClick(() => { + try { + this.controller.hasImage().then((data) => { + console.info('hasImage: ' + data); + }) + .catch(function (error) { + console.error("error: " + error); + }) + } catch (error) { + console.error(`Errorcode: ${error.code}, Message: ${error.message}`); + } + }) + Web({ src: 'www.example.com', controller: this.controller }) + } + } +} +``` + +### removeCache + +removeCache(clearRom: boolean): void + +Clears the cache in the application. This API will clear the cache for all webviews in the same application. + +**System capability**: SystemCapability.Web.Webview.Core + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------- | ---- | -------------------------------------------------------- | +| clearRom | boolean | Yes | Whether to clear the cache in the ROM and RAM at the same time. The value **false** means to only clear the cache in the RAM.| + +**Error codes** + +For details about the error codes, see [Webview Error Codes](../errorcodes/errorcode-webview.md). + +| ID| Error Message | +| -------- | ------------------------------------------------------------ | +| 17100001 | Init error. The WebviewController must be associated with a Web component. | +| 401 | Invalid input parameter. | + +**Example** + +```ts +// xxx.ets +import web_webview from '@ohos.web.webview'; + +@Entry +@Component +struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController(); + + build() { + Column() { + Button('removeCache') + .onClick(() => { + try { + this.controller.removeCache(false); + } catch (error) { + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + } + }) + Web({ src: 'www.example.com', controller: this.controller }) + } + } +} +``` + +### getBackForwardEntries + +getBackForwardEntries(): BackForwardList + +Obtains the historical information list of the current webview. + +**System capability**: SystemCapability.Web.Webview.Core + +**Return value** + +| Type | Description | +| ----------------------------------- | --------------------------- | +| [BackForwardList](#backforwardlist) | Historical information list of the current webview.| + +**Error codes** + +For details about the error codes, see [Webview Error Codes](../errorcodes/errorcode-webview.md). + +| ID| Error Message | +| -------- | ------------------------------------------------------------ | +| 17100001 | Init error. The WebviewController must be associated with a Web component. | + +**Example** + +```ts +// xxx.ets +import web_webview from '@ohos.web.webview'; + +@Entry +@Component +struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController(); + + build() { + Column() { + Button('getBackForwardEntries') + .onClick(() => { + try { + let list = this.controller.getBackForwardEntries() + } catch (error) { + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + } + }) + Web({ src: 'www.example.com', controller: this.controller }) + } + } +} +``` + ## WebCookieManager Implements a **WebCookie** object to manage behavior of cookies in **\** components. All **\** components in an application share a **WebCookie** object. @@ -3750,3 +4111,89 @@ Provides usage information of the Web SQL Database. | origin | string | Yes | No| Index of the origin.| | usage | number | Yes | No| Storage usage of the origin. | | quota | number | Yes | No| Storage quota of the origin. | + +## BackForwardList + +Provides the historical information list of the current webview. + +**System capability**: SystemCapability.Web.Webview.Core + +| Name | Type | Readable| Writable| Description | +| ------------ | ------ | ---- | ---- | ---------------------------- | +| currentIndex | number | Yes | No | Index of the current page in the page history stack.| +| size | number | Yes | No | Number of indexes in the history stack. | + +### getItemAtIndex + +getItemAtIndex(index: number): HistoryItem + +Obtains the page record with the specified index in the history stack. + +**System capability**: SystemCapability.Web.Webview.Core + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ---------------------- | +| index | number | Yes | Index of the target page record in the history stack.| + +**Return value** + +| Type | Description | +| --------------------------- | ------------ | +| [HistoryItem](#historyitem) | Historical page record.| + +**Error codes** + +For details about the error codes, see [Webview Error Codes](../errorcodes/errorcode-webview.md). + +| ID| Error Message | +| -------- | ----------------------- | +| 401 | Invalid input parameter | + +**Example** + +```ts +// xxx.ets +import web_webview from '@ohos.web.webview'; +import image from "@ohos.multimedia.image" + +@Entry +@Component +struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController(); + @State icon: image.PixelMap = undefined; + + build() { + Column() { + Button('getBackForwardEntries') + .onClick(() => { + try { + let list = this.controller.getBackForwardEntries(); + let historyItem = list.getItemAtIndex(list.currentIndex); + console.log("HistoryItem: " + JSON.stringify(historyItem)); + this.icon = item.icon; + } catch (error) { + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + } + }) + Web({ src: 'www.example.com', controller: this.controller }) + } + } +} +``` + +## HistoryItem + +Describes a historical page record. + +**System capability**: SystemCapability.Web.Webview.Core + +| Name | Type | Readable| Writable| Description | +| ------------- | -------------------------------------- | ---- | ---- | ---------------------------- | +| icon | [PixelMap](js-apis-image.md#pixelmap7) | Yes | No | **PixelMap** object of the icon on the historical page.| +| historyUrl | string | Yes | No | URL of the historical page. | +| historyRawUrl | string | Yes | No | Original URL of the historical page. | +| title | string | Yes | No | Title of the historical page. | + +### diff --git a/en/application-dev/reference/apis/js-apis-wifi.md b/en/application-dev/reference/apis/js-apis-wifi.md index a8221a78898accf8d18724193df311a13693b998..6af6bc0a51e3a862a159b6bf450c9ce90bd31346 100644 --- a/en/application-dev/reference/apis/js-apis-wifi.md +++ b/en/application-dev/reference/apis/js-apis-wifi.md @@ -1,7 +1,9 @@ -# WLAN +# @ohos.wifi (WLAN) + The **WLAN** module provides basic wireless local area network (WLAN) functions, peer-to-peer (P2P) functions, and WLAN message notification services. It allows applications to communicate with other devices over WLAN. -> **NOTE**
+> **NOTE** +> > The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version. @@ -166,20 +168,17 @@ Represents WLAN hotspot information. **System capability**: SystemCapability.Communication.WiFi.STA -| **Name**| **Type**| **Readable/Writable**| **Description**| -| -------- | -------- | -------- | -------- | -| ssid | string | Read only| Service set identifier (SSID) of the hotspot, in UTF-8 format.| -| bssid | string | Read only| Basic service set identifier (BSSID) of the hotspot.| -| capabilities | string | Read only| Hotspot capabilities.| -| securityType | [WifiSecurityType](#wifisecuritytype) | Read only| WLAN security type.| -| rssi | number | Read only| Received signal strength indicator (RSSI) of the hotspot, in dBm.| -| band | number | Read only| Frequency band of the WLAN access point (AP).| -| frequency | number | Read only| Frequency of the WLAN AP.| -| channelWidth | number | Read only| Channel width of the WLAN AP.| -| centerFrequency09+ | number | Read only| Center frequency of the hotspot.| -| centerFrequency19+ | number | Read only| Center frequency of the hotspot. If the hotspot uses two non-overlapping WLAN channels, two center frequencies, namely **centerFrequency0** and **centerFrequency1**, are returned.| -| infoElems9+ | Array<[WifiInfoElem](#wifiinfoelem9)> | Read only| Information elements.| -| timestamp | number | Read only| Timestamp.| +| **Name**| **Type**| **Readable**| **Writable**| **Description**| +| -------- | -------- | -------- | -------- | -------- | +| ssid | string | Yes| No| Service set identifier (SSID) of the hotspot, in UTF-8 format.| +| bssid | string | Yes| No| Basic service set identifier (BSSID) of the hotspot.| +| capabilities | string | Yes| No| Hotspot capabilities.| +| securityType | [WifiSecurityType](#wifisecuritytype) | Yes| No| WLAN security type.| +| rssi | number | Yes| No| Received signal strength indicator (RSSI) of the hotspot, in dBm.| +| band | number | Yes| No| Frequency band of the WLAN access point (AP).| +| frequency | number | Yes| No| Frequency of the WLAN AP.| +| channelWidth | number | Yes| No| Channel width of the WLAN AP.| +| timestamp | number | Yes| No| Timestamp.| ## WifiSecurityType @@ -189,50 +188,13 @@ Enumerates the WLAN security types. **System capability**: SystemCapability.Communication.WiFi.Core -| **Name**| **Default Value**| **Description**| +| **Name**| **Value**| **Description**| | -------- | -------- | -------- | | WIFI_SEC_TYPE_INVALID | 0 | Invalid security type.| | WIFI_SEC_TYPE_OPEN | 1 | Open security type.| | WIFI_SEC_TYPE_WEP | 2 | Wired Equivalent Privacy (WEP).| | WIFI_SEC_TYPE_PSK | 3 | Pre-shared key (PSK).| | WIFI_SEC_TYPE_SAE | 4 | Simultaneous Authentication of Equals (SAE).| -| WIFI_SEC_TYPE_EAP9+ | 5 | Extensible Authentication protocol (EAP).| -| WIFI_SEC_TYPE_EAP_SUITE_B9+ | 6 | Suite B 192-bit encryption.| -| WIFI_SEC_TYPE_OWE9+ | 7 | Opportunistic Wireless Encryption (OWE).| -| WIFI_SEC_TYPE_WAPI_CERT9+ | 8 | WLAN Authentication and Privacy Infrastructure (WAPI) in certificate-based mode (WAPI-CERT).| -| WIFI_SEC_TYPE_WAPI_PSK9+ | 9 | WAPI-PSK.| - - -## WifiInfoElem9+ - -Represents a WLAN information element. - -**System API**: This is a system API. - -**System capability**: SystemCapability.Communication.WiFi.STA - - -| **Name**| **Type**| **Readable/Writable**| **Description**| -| -------- | -------- | -------- | -------- | -| eid | number | Read only| ID of the information element.| -| content | Uint8Array | Read only| Content of the information element.| - - -## WifiChannelWidth9+ - -Enumerates the WLAN channel widths. - -**System capability**: SystemCapability.Communication.WiFi.STA - - -| **Name**| **Default Value**| **Description**| -| -------- | -------- | -------- | -| WIDTH_20MHZ | 0 | 20 MHz.| -| WIDTH_40MHZ | 1 | 40 MHz.| -| WIDTH_80MHZ | 2 | 80 MHz.| -| WIDTH_160MHZ | 3 | 160 MHz.| -| WIDTH_80MHZ_PLUS | 4 | 80 MHz+.| -| WIDTH_INVALID | 5 | Invalid value.| ## wifi.getScanInfosSync9+ @@ -274,7 +236,7 @@ Adds network configuration. This API uses a promise to return the result. | **Type**| **Description**| | -------- | -------- | - | Promise<number> | Promise used to return the WLAN configuration ID. If **-1** is returned, the operation has failed.| + | Promise<number> | Promise used to return the WLAN configuration ID. If **-1** is returned, the network configuration fails to be added.| ## WifiDeviceConfig @@ -283,33 +245,32 @@ Represents the WLAN configuration. **System capability**: SystemCapability.Communication.WiFi.STA -| **Name**| **Type**| **Readable/Writable**| **Description**| -| -------- | -------- | -------- | -------- | -| ssid | string | Read only| SSID of the hotspot, in UTF-8 format.| -| bssid | string | Read only| BSSID of the hotspot.| -| preSharedKey | string | Read only| PSK of the hotspot.| -| isHiddenSsid | boolean | Read only| Whether the network is hidden.| -| securityType | [WifiSecurityType](#wifisecuritytype) | Read only| Security type.| -| creatorUid | number | Read only| ID of the creator.
**System API**: This is a system API.| -| disableReason | number | Read only| Reason for disabling WLAN.
**System API**: This is a system API.| -| netId | number | Read only| Network ID.
**System API**: This is a system API.| -| randomMacType | number | Read only| Random MAC type.
**System API**: This is a system API.| -| randomMacAddr | string | Read only| Random MAC address.
**System API**: This is a system API.| -| ipType | [IpType](#iptype7) | Read only| IP address type.
**System API**: This is a system API.| -| staticIp | [IpConfig](#ipconfig7) | Read only| Static IP address configuration.
**System API**: This is a system API.| -| eapConfig9+ | [WifiEapConfig](#wifieapconfig9) | Read only| EAP configuration.
**System API**: This is a system API.| +| **Name**| **Type**| **Readable**| **Writable**| **Description**| +| -------- | -------- | -------- | -------- | -------- | +| ssid | string | Yes| No| SSID of the hotspot, in UTF-8 format.| +| bssid | string | Yes| No| BSSID of the hotspot.| +| preSharedKey | string | Yes| No| PSK of the hotspot.| +| isHiddenSsid | boolean | Yes| No| Whether the network is hidden.| +| securityType | [WifiSecurityType](#wifisecuritytype) | Yes| No| Security type.| +| creatorUid | number | Yes| No| ID of the creator.
**System API**: This is a system API.| +| disableReason | number | Yes| No| Reason for disabling WLAN.
**System API**: This is a system API.| +| netId | number | Yes| No| Network ID.
**System API**: This is a system API.| +| randomMacType | number | Yes| No| Random MAC type.
**System API**: This is a system API.| +| randomMacAddr | string | Yes| No| Random MAC address.
**System API**: This is a system API.| +| ipType | [IpType](#iptype7) | Yes| No| IP address type.
**System API**: This is a system API.| +| staticIp | [IpConfig](#ipconfig7) | Yes| No| Static IP address configuration.
**System API**: This is a system API.| ## IpType7+ -Enumerates the IP address types. +Enumerate the IP address types. **System API**: This is a system API. **System capability**: SystemCapability.Communication.WiFi.STA -| Name| Default Value| Description| +| Name| Value| Description| | -------- | -------- | -------- | | STATIC | 0 | Static IP address.| | DHCP | 1 | IP address allocated by DHCP.| @@ -324,78 +285,12 @@ Represents IP configuration information. **System capability**: SystemCapability.Communication.WiFi.STA -| **Name**| **Type**| **Readable/Writable**| **Description**| -| -------- | -------- | -------- | -------- | -| ipAddress | number | Read only| IP address.| -| gateway | number | Read only| Gateway.| -| dnsServers | number[] | Read only| Domain name server (DNS) information.| -| domains | Array<string> | Read only| Domain information.| - - -## WifiEapConfig9+ - -Represents EAP configuration information. - -**System API**: This is a system API. - -**System capability**: SystemCapability.Communication.WiFi.STA - -| **Name**| **Type**| **Readable/Writable**| **Description**| -| -------- | -------- | -------- | -------- | -| eapMethod | [EapMethod](#eapmethod9) | Read only| EAP authentication method.| -| phase2Method | [Phase2Method](#phase2method9) | Read only| Phase 2 authentication method.| -| identity | string | Read only| Identity Information.| -| anonymousIdentity | string | Read only| Anonymous identity.| -| password | string | Read only| Password.| -| caCertAliases | string | Read only| CA certificate alias.| -| caPath | string | Read only| CA certificate path.| -| clientCertAliases | string | Read only| Client certificate alias.| -| altSubjectMatch | string | Read only| A string to match the alternate subject.| -| domainSuffixMatch | string | Read only| A string to match the domain suffix.| -| realm | string | Read only| Realm for the passpoint credential.| -| plmn | string | Read only| Public land mobile network (PLMN) of the passpoint credential provider.| -| eapSubId | number | Read only| Sub-ID of the SIM card.| - - -## EapMethod9+ - -Enumerates the EAP authentication methods. - -**System API**: This is a system API. - -**System capability**: SystemCapability.Communication.WiFi.STA - -| Name| Default Value| Description| -| -------- | -------- | -------- | -| EAP_NONE | 0 | Not specified.| -| EAP_PEAP | 1 | PEAP.| -| EAP_TLS | 2 | TLS.| -| EAP_TTLS | 3 | TTLS.| -| EAP_PWD | 4 | Password.| -| EAP_SIM | 5 | SIM.| -| EAP_AKA | 6 | AKA.| -| EAP_AKA_PRIME | 7 | AKA Prime.| -| EAP_UNAUTH_TLS | 8 | UNAUTH TLS.| - - -## Phase2Method9+ - -Enumerates the Phase 2 authentication methods. - -**System API**: This is a system API. - -**System capability**: SystemCapability.Communication.WiFi.STA - -| Name| Default Value| Description| -| -------- | -------- | -------- | -| PHASE2_NONE | 0 | Not specified.| -| PHASE2_PAP | 1 | PAP.| -| PHASE2_MSCHAP | 2 | MS-CHAP.| -| PHASE2_MSCHAPV2 | 3 | MS-CHAPv2.| -| PHASE2_GTC | 4 | GTC .| -| PHASE2_SIM | 5 | SIM.| -| PHASE2_AKA | 6 | AKA.| -| PHASE2_AKA_PRIME | 7 | AKA Prime.| +| **Name**| **Type**| **Readable**| **Writable**| **Description**| +| -------- | -------- | -------- | -------- | -------- | +| ipAddress | number | Yes| No| IP address.| +| gateway | number | Yes| No| Gateway.| +| dnsServers | number[] | Yes| No| Domain name server (DNS) information.| +| domains | Array<string> | Yes| No| Domain information.| ## wifi.addDeviceConfig @@ -500,122 +395,6 @@ Removes the configuration of an untrusted network. This API uses an asynchronous | callback | AsyncCallback<boolean> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is **true**. If the operation fails, **data** is **false**. If **err** is not **0**, an error has occurred.| -## wifi.addCandidateConfig9+ - -addCandidateConfig(config: WifiDeviceConfig): Promise<number> - -Adds the configuration of a candidate network. This API uses a promise to return the result. - -**Required permissions**: ohos.permission.SET_WIFI_INFO - -**System capability**: SystemCapability.Communication.WiFi.STA - -**Parameters** - - | **Name**| **Type**| **Mandatory**| **Description**| - | -------- | -------- | -------- | -------- | - | config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to add.| - -**Return value** - - | **Type**| **Description**| - | -------- | -------- | - | Promise<number> | Promise used to return the network configuration ID.| - - -## wifi.addCandidateConfig9+ - -addCandidateConfig(config: WifiDeviceConfig, callback: AsyncCallback<number>): void - -Adds the configuration of a candidate network. This API uses an asynchronous callback to return the result. - -**Required permissions**: ohos.permission.SET_WIFI_INFO - -**System capability**: SystemCapability.Communication.WiFi.STA - -**Parameters** - - | **Name**| **Type**| **Mandatory**| **Description**| - | -------- | -------- | -------- | -------- | - | config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to add.| - | callback | AsyncCallback<number> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the network configuration ID. If **data** is **-1**, the operation has failed. If **err** is not **0**, an error has occurred.| - - -## wifi.removeCandidateConfig9+ - -removeCandidateConfig(networkId: number): Promise<void> - -Removes the configuration of a candidate network. This API uses a promise to return the result. - -**Required permissions**: ohos.permission.SET_WIFI_INFO - -**System capability**: SystemCapability.Communication.WiFi.STA - -**Parameters** - - | **Name**| **Type**| **Mandatory**| **Description**| - | -------- | -------- | -------- | -------- | -| networkId | number | Yes| ID of the network configuration to remove.| - -**Return value** - - | **Type**| **Description**| - | -------- | -------- | - | Promise<void> | Promise used to return the result.| - - -## wifi.removeCandidateConfig9+ - -removeCandidateConfig(networkId: number, callback: AsyncCallback<void>): void - -Removes the configuration of a candidate network. This API uses an asynchronous callback to return the result. - -**Required permissions**: ohos.permission.SET_WIFI_INFO - -**System capability**: SystemCapability.Communication.WiFi.STA - -**Parameters** - - | **Name**| **Type**| **Mandatory**| **Description**| - | -------- | -------- | -------- | -------- | -| networkId | number | Yes| ID of the network configuration to remove.| -| callback | AsyncCallback<void> | Yes| Callback invoked to return the result. If the operation is successful, the value of **err** is **0**. If **err** is not **0**, an error has occurred.| - - -## wifi.getCandidateConfigs9+ - -getCandidateConfigs():  Array<[WifiDeviceConfig](#wifideviceconfig)> - -Obtains candidate network configuration. - -**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION - -**System capability**: SystemCapability.Communication.WiFi.STA - -**Return value** - - | **Type**| **Description**| - | -------- | -------- | - |  Array<[WifiDeviceConfig](#wifideviceconfig)> | Candidate network configuration obtained.| - - -## wifi.connectToCandidateConfig9+ - -connectToCandidateConfig(networkId: number): void - -Connects to a candidate network. - -**Required permissions**: ohos.permission.SET_WIFI_INFO - -**System capability**: SystemCapability.Communication.WiFi.STA - -**Parameters** - - | **Name**| **Type**| **Mandatory**| **Description**| - | -------- | -------- | -------- | -------- | - | networkId | number | Yes| ID of the candidate network configuration.| - - ## wifi.connectToNetwork connectToNetwork(networkId: number): boolean @@ -725,7 +504,7 @@ Obtains WLAN connection information. This API uses a promise to return the resul | Type| Description| | -------- | -------- | - | Promise<[WifiLinkedInfo](#wifilinkedinfo)> | Promise used to return the WLAN connection information obtained.| + | Promise<[WifiLinkedInfo](#wifilinkedinfo)> | Promise used to return the WLAN connection information.| ## wifi.getLinkedInfo @@ -770,24 +549,23 @@ Represents the WLAN connection information. **System capability**: SystemCapability.Communication.WiFi.STA -| Name| Type| Readable/Writable| Description| -| -------- | -------- | -------- | -------- | -| ssid | string | Read only| SSID of the hotspot, in UTF-8 format.| -| bssid | string | Read only| BSSID of the hotspot.| -| networkId | number | Read only| Network configuration ID.
**System API**: This is a system API.| -| rssi | number | Read only| RSSI of the hotspot, in dBm.| -| band | number | Read only| Frequency band of the WLAN AP.| -| linkSpeed | number | Read only| Speed of the WLAN AP.| -| frequency | number | Read only| Frequency of the WLAN AP.| -| isHidden | boolean | Read only| Whether to hide the WLAN AP.| -| isRestricted | boolean | Read only| Whether to restrict data volume at the WLAN AP.| -| chload | number | Read only| Channel load. A larger value indicates a higher load.
**System API**: This is a system API.| -| snr | number | Read only| Signal-to-noise ratio (SNR).
**System API**: This is a system API.| -| macType9+ | number | Read only| MAC address type.| -| macAddress | string | Read only| MAC address of the device.| -| ipAddress | number | Read only| IP address of the device that sets up the WLAN connection.| -| suppState | [SuppState](#suppstate) | Read only| Supplicant state.
**System API**: This is a system API.| -| connState | [ConnState](#connstate) | Read only| WLAN connection state.| +| Name| Type| Readable| Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| ssid | string | Yes| No| SSID of the hotspot, in UTF-8 format.| +| bssid | string | Yes| No| BSSID of the hotspot.| +| networkId | number | Yes| No| Network configuration ID.
**System API**: This is a system API.| +| rssi | number | Yes| No| RSSI of the hotspot, in dBm.| +| band | number | Yes| No| Frequency band of the WLAN AP.| +| linkSpeed | number | Yes| No| Speed of the WLAN AP.| +| frequency | number | Yes| No| Frequency of the WLAN AP.| +| isHidden | boolean | Yes| No| Whether to hide the WLAN AP.| +| isRestricted | boolean | Yes| No| Whether to restrict data volume at the WLAN AP.| +| chload | number | Yes| No| Channel load. A larger value indicates a higher load.
**System API**: This is a system API.| +| snr | number | Yes| No| Signal-to-noise ratio (SNR).
**System API**: This is a system API.| +| macAddress | string | Yes| No| MAC address of the device.| +| ipAddress | number | Yes| No| IP address of the device that sets up the WLAN connection.| +| suppState | [SuppState](#suppstate) | Yes| No| Supplicant state.
**System API**: This is a system API.| +| connState | [ConnState](#connstate) | Yes| No| WLAN connection state.| ## ConnState @@ -796,7 +574,7 @@ Enumerates the WLAN connection states. **System capability**: SystemCapability.Communication.WiFi.STA -| Name| Default Value| Description| +| Name| Value| Description| | -------- | -------- | -------- | | SCANNING | 0 | The device is scanning for available APs.| | CONNECTING | 1 | A WLAN connection is being established.| @@ -816,7 +594,7 @@ Enumerates the supplicant states. **System capability**: SystemCapability.Communication.WiFi.STA -| Name| Default Value| Description| +| Name| Value| Description| | -------- | -------- | -------- | | DISCONNECTED | 0 | The supplicant is disconnected from the AP.| | INTERFACE_DISABLED | 1 | The network interface is disabled.| @@ -871,16 +649,16 @@ Obtains the features supported by this device. | Value| Description| | -------- | -------- | -| 0x0001 | WLAN infrastructure mode. | -| 0x0002 | 5 GHz feature. | -| 0x0004 | Generic Advertisement Service (GAS)/Access Network Query Protocol (ANQP) feature. | -| 0x0008 | Wi-Fi Direct. | -| 0x0010 | SoftAP. | -| 0x0040 | Wi-Fi AWare. | -| 0x8000 | WLAN AP/STA concurrency. | -| 0x8000000 | WPA3 Personal (WPA-3 SAE). | -| 0x10000000 | WPA3-Enterprise Suite B. | -| 0x20000000 | Enhanced open feature. | +| 0x0001 | WLAN infrastructure mode| +| 0x0002 | 5 GHz feature| +| 0x0004 | Generic Advertisement Service (GAS)/Access Network Query Protocol (ANQP) feature| +| 0x0008 | Wi-Fi Direct| +| 0x0010 | SoftAP| +| 0x0040 | Wi-Fi AWare| +| 0x8000 | WLAN AP/STA concurrency| +| 0x8000000 | WPA3 Personal (WPA-3 SAE)| +| 0x10000000 | WPA3-Enterprise Suite B | +| 0x20000000 | Enhanced open feature| ## wifi.isFeatureSupported7+ @@ -949,15 +727,15 @@ Represents IP information. **System capability**: SystemCapability.Communication.WiFi.STA -| **Name**| **Type**| **Readable/Writable**| **Description**| -| -------- | -------- | -------- | -------- | -| ipAddress | number | Read only| IP address.| -| gateway | number | Read only| Gateway.| -| netmask | number | Read only| Subnet mask.| -| primaryDns | number | Read only| IP address of the preferred DNS server.| -| secondDns | number | Read only| IP address of the alternate DNS server.| -| serverIp | number | Read only| IP address of the DHCP server.| -| leaseDuration | number | Read only| Lease duration of the IP address.| +| **Name**| **Type**| **Readable**| **Writable**| **Description**| +| -------- | -------- | -------- | -------- | -------- | +| ipAddress | number | Yes| No| IP address.| +| gateway | number | Yes| No| Gateway.| +| netmask | number | Yes| No| Subnet mask.| +| primaryDns | number | Yes| No| IP address of the preferred DNS server.| +| secondDns | number | Yes| No| IP address of the alternate DNS server.| +| serverIp | number | Yes| No| IP address of the DHCP server.| +| leaseDuration | number | Yes| No| Lease duration of the IP address.| ## wifi.getCountryCode7+ @@ -1237,13 +1015,13 @@ Represents the hotspot configuration. **System capability**: SystemCapability.Communication.WiFi.AP.Core -| **Name**| **Type**| **Readable/Writable**| **Description**| -| -------- | -------- | -------- | -------- | -| ssid | string | Read only| SSID of the hotspot, in UTF-8 format.| -| securityType | [WifiSecurityType](#wifisecuritytype) | Read only| Security type.| -| band | number | Read only| Hotspot band. The value **1** stands for 2.4 GHz, the value **2** for 5 GHz, and the value **3** for dual band.| -| preSharedKey | string | Read only| PSK of the hotspot.| -| maxConn | number | Read only| Maximum number of connections allowed.| +| **Name**| **Type**| **Readable**| **Writable**| **Description**| +| -------- | -------- | -------- | -------- | -------- | +| ssid | string | Yes| No| SSID of the hotspot, in UTF-8 format.| +| securityType | [WifiSecurityType](#wifisecuritytype) | Yes| No| Security type.| +| band | number | Yes| No| Hotspot band. The value **1** stands for 2.4 GHz, the value **2** for 5 GHz, and the value **3** for dual band.| +| preSharedKey | string | Yes| No| PSK of the hotspot.| +| maxConn | number | Yes| No| Maximum number of connections allowed.| ## wifi.getHotspotConfig7+ @@ -1292,11 +1070,11 @@ Represents the station information. **System capability**: SystemCapability.Communication.WiFi.AP.Core -| **Name**| **Type**| **Readable/Writable**| **Description**| -| -------- | -------- | -------- | -------- | -| name | string | Read only| Device name.| -| macAddress | string | Read only| MAC address.| -| ipAddress | string | Read only| IP address.| +| **Name**| **Type**| **Readable**| **Writable**| **Description**| +| -------- | -------- | -------- | -------- | -------- | +| name | string | Yes| No| Device name.| +| macAddress | string | Yes| No| MAC address.| +| ipAddress | string | Yes| No| IP address.| ## wifi.getP2pLinkedInfo8+ @@ -1323,11 +1101,11 @@ Represents the P2P link information. **System capability**: SystemCapability.Communication.WiFi.P2P -| Name| Type| Readable/Writable| Description| -| -------- | -------- | -------- | -------- | -| connectState | [P2pConnectState](#p2pconnectstate8) | Read only| P2P connection state.| -| isGroupOwner | boolean | Read only| Whether the device is the group owner.| -| groupOwnerAddr | string | Read only| MAC address of the group. +| Name| Type| Readable| Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| connectState | [P2pConnectState](#p2pconnectstate8) | Yes| No| P2P connection state.| +| isGroupOwner | boolean | Yes| No| Whether the device is the group owner.| +| groupOwnerAddr | string | Yes| No| MAC address of the group. ## P2pConnectState8+ @@ -1336,7 +1114,7 @@ Enumerates the P2P connection states. **System capability**: SystemCapability.Communication.WiFi.P2P -| Name| Default Value| Description| +| Name| Value| Description| | -------- | -------- | -------- | | DISCONNECTED | 0 | Disconnected.| | CONNECTED | 1 | Connected.| @@ -1373,7 +1151,7 @@ Obtains the current P2P group information. This API uses a promise to return the | Type| Description| | -------- | -------- | - | Promise<[WifiP2pGroupInfo](#wifip2pgroupinfo8)> | Promise used to return the group information obtained.| + | Promise<[WifiP2pGroupInfo](#wifip2pgroupinfo8)> | Promise used to return the P2P group information obtained.| ## wifi.getCurrentGroup8+ @@ -1433,13 +1211,13 @@ Represents the P2P device information. **System capability**: SystemCapability.Communication.WiFi.P2P -| Name| Type| Readable/Writable| Description| -| -------- | -------- | -------- | -------- | -| deviceName | string | Read only| Device name.| -| deviceAddress | string | Read only| MAC address of the device.| -| primaryDeviceType | string | Read only| Type of the primary device.| -| deviceStatus | [P2pDeviceStatus](#p2pdevicestatus8) | Read only| Device status.| -| groupCapabilitys | number | Read only| Group capabilities.| +| Name| Type| Readable| Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| deviceName | string | Yes| No| Device name.| +| deviceAddress | string | Yes| No| MAC address of the device.| +| primaryDeviceType | string | Yes| No| Type of the primary device.| +| deviceStatus | [P2pDeviceStatus](#p2pdevicestatus8) | Yes| No| Device status.| +| groupCapabilitys | number | Yes| No| Group capabilities.| ## P2pDeviceStatus8+ @@ -1448,7 +1226,7 @@ Enumerates the P2P device states. **System capability**: SystemCapability.Communication.WiFi.P2P -| Name| Default Value| Description| +| Name| Value| Description| | -------- | -------- | -------- | | CONNECTED | 0 | Connected.| | INVITED | 1 | Invited.| @@ -1457,40 +1235,6 @@ Enumerates the P2P device states. | UNAVAILABLE | 4 | Unavailable.| -## wifi.getP2pLocalDevice9+ - -getP2pLocalDevice(): Promise<WifiP2pDevice> - -Obtains the local device information in the P2P connection. This API uses a promise to return the result. - -**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.GET_WIFI_CONFIG - -**System capability**: SystemCapability.Communication.WiFi.P2P - -**Return value** - - | Type| Description| - | -------- | -------- | - | Promise<[WifiP2pDevice](#wifip2pdevice8)> | Promise used to return the local device information obtained.| - - -## wifi.getP2pLocalDevice9+ - -getP2pLocalDevice(callback: AsyncCallback<WifiP2pDevice>): void - -Obtains the local device information in the P2P connection. This API uses an asynchronous callback to return the result. - -**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.GET_WIFI_CONFIG - -**System capability**: SystemCapability.Communication.WiFi.P2P - -**Parameters** - - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | callback | AsyncCallback<[WifiP2pDevice](#wifip2pdevice8)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the local device information obtained. If **err** is not **0**, an error has occurred.| - - ## wifi.createGroup8+ createGroup(config: WifiP2PConfig): boolean @@ -1520,13 +1264,13 @@ Represents P2P group configuration. **System capability**: SystemCapability.Communication.WiFi.P2P -| Name| Type| Readable/Writable| Description| -| -------- | -------- | -------- | -------- | -| deviceAddress | string | Read only| Device address.| -| netId | number | Read only| Network ID. The value **-1** indicates a temporary group, and **-2** indicates a persistent group.| -| passphrase | string | Read only| Passphrase of the group.| -| groupName | string | Read only| Name of the group.| -| goBand | [GroupOwnerBand](#groupownerband8) | Read only| Frequency band of the group.| +| Name| Type| Readable| Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| deviceAddress | string | Yes| No| Device address.| +| netId | number | Yes| No| Network ID. The value **-1** indicates a temporary group, and **-2** indicates a persistent group.| +| passphrase | string | Yes| No| Passphrase of the group.| +| groupName | string | Yes| No| Name of the group.| +| goBand | [GroupOwnerBand](#groupownerband8) | Yes| No| Frequency band of the group.| ## GroupOwnerBand8+ @@ -1535,7 +1279,7 @@ Enumerates the P2P group frequency bands. **System capability**: SystemCapability.Communication.WiFi.P2P -| Name| Default Value| Description| +| Name| Value| Description| | -------- | -------- | -------- | | GO_BAND_AUTO | 0 | Auto.| | GO_BAND_2GHZ | 1 | 2 GHz.| @@ -1727,61 +1471,23 @@ Deletes a persistent group. | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| -## wifi.getP2pGroups9+ - -getP2pGroups(): Promise<Array<WifiP2pGroupInfo>> - -Obtains information about all P2P groups. This API uses a promise to return the result. - -**System API**: This is a system API. - -**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION - -**System capability**: SystemCapability.Communication.WiFi.P2P - -**Return value** - - | Type| Description| - | -------- | -------- | - | Promise< Array<[WifiP2pGroupInfo](#wifip2pgroupinfo8)> > | Promise used to return the group information obtained.| - - ## WifiP2pGroupInfo8+ Represents the P2P group information. **System capability**: SystemCapability.Communication.WiFi.P2P -| Name| Type| Readable/Writable| Description| -| -------- | -------- | -------- | -------- | -| isP2pGo | boolean | Read only| Whether the device is the group owner.| -| ownerInfo | [WifiP2pDevice](#wifip2pdevice8) | Read only| Device information of the group.| -| passphrase | string | Read only| Passphrase of the group.| -| interface | string | Read only| Interface name.| -| groupName | string | Read only| Group name.| -| networkId | number | Read only| Network ID.| -| frequency | number | Read only| Frequency of the group.| -| clientDevices | [WifiP2pDevice[]](#wifip2pdevice8) | Read only| List of connected devices.| -| goIpAddress | string | Read only| IP address of the group.| - - -## wifi.getP2pGroups9+ - -getP2pGroups(callback: AsyncCallback<Array<WifiP2pGroupInfo>>): void - -Obtains information about all P2P groups. This API uses an asynchronous callback to return the result. - -**System API**: This is a system API. - -**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION - -**System capability**: SystemCapability.Communication.WiFi.P2P - -**Parameters** - - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | callback | AsyncCallback< Array<[WifiP2pGroupInfo](#wifip2pgroupinfo8)>> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the group information obtained. If **err** is not **0**, an error has occurred.| +| Name| Type| Readable| Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| isP2pGo | boolean | Yes| No| Whether the device is the group owner.| +| ownerInfo | [WifiP2pDevice](#wifip2pdevice8) | Yes| No| Device information of the group.| +| passphrase | string | Yes| No| Passphrase of the group.| +| interface | string | Yes| No| Interface name.| +| groupName | string | Yes| No| Group name.| +| networkId | number | Yes| No| Network ID.| +| frequency | number | Yes| No| Frequency of the group.| +| clientDevices | [WifiP2pDevice[]](#wifip2pdevice8) | Yes| No| List of connected devices.| +| goIpAddress | string | Yes| No| IP address of the group.| ## wifi.setDeviceName8+ @@ -1830,10 +1536,10 @@ Registers the WLAN state change events. | **Value**| **Description**| | -------- | -------- | -| 0 | Deactivated. | -| 1 | Activated. | -| 2 | Activating. | -| 3 | Deactivating. | +| 0 | Deactivated| +| 1 | Activated| +| 2 | Activating| +| 3 | Deactivating| ## wifi.off('wifiStateChange')7+ @@ -2012,10 +1718,10 @@ Registers the hotspot state change events. | **Value**| **Description**| | -------- | -------- | -| 0 | Deactivated. | -| 1 | Activated. | -| 2 | Activating. | -| 3 | Deactivating. | +| 0 | Deactivated| +| 1 | Activated| +| 2 | Activating| +| 3 | Deactivating| ## wifi.off('hotspotStateChange')7+ @@ -2057,11 +1763,11 @@ Registers the P2P state change events. | **Value**| **Description**| | -------- | -------- | -| 1 | Available. | -| 2 | Opening. | -| 3 | Opened. | -| 4 | Closing. | -| 5 | Closed. | +| 1 | Available| +| 2 | Opening| +| 3 | Opened| +| 4 | Closing| +| 5 | Closed| ## wifi.off('p2pStateChange')8+ diff --git a/en/application-dev/reference/apis/js-apis-wifiManager.md b/en/application-dev/reference/apis/js-apis-wifiManager.md new file mode 100644 index 0000000000000000000000000000000000000000..8e3526343a3f62066af7686b4fbe5cb587fa1cbc --- /dev/null +++ b/en/application-dev/reference/apis/js-apis-wifiManager.md @@ -0,0 +1,2187 @@ +# WLAN + +The **WLAN** module provides basic wireless local area network (WLAN) functions, peer-to-peer (P2P) functions, and WLAN message notification services. It allows applications to communicate with other devices over WLAN. + +> **NOTE** +> +> The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version. + + +## Modules to Import + +```js +import wifiManager from '@ohos.wifiManager'; +``` + +## wifi.enableWifi9+ + +enableWifi(): void + +Enables WLAN. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION (available only to system applications) + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.disableWifi9+ + +disableWifi(): void + +Disables WLAN. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION (available only to system applications) + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.isWifiActive9+ + +isWifiActive(): boolean + +Checks whether WLAN is enabled. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if WLAN is enabled; returns **false** otherwise.| + + +## wifi.scan9+ + +scan(): void + +Starts a scan for WLAN. + +**Required permissions**: **ohos.permission.SET_WIFI_INFO** and **ohos.permission.LOCATION** + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.getScanResults9+ + +getScanResults(): Promise<Array<WifiScanInfo>> + +Obtains the scan result. This API uses a promise to return the result. + +**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.GET_WIFI_PEERS_MAC (or ohos.permission.LOCATION) + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | Promise< Array<[WifiScanInfo](#wifiscaninfo)> > | Promise used to return the detected hotspots.| + + +## wifi.getScanResults9+ + +getScanResults(callback: AsyncCallback<Array<WifiScanInfo>>): void + +Obtains the scan result. This API uses an asynchronous callback to return the result. + +**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.GET_WIFI_PEERS_MAC (or ohos.permission.LOCATION) + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback< Array<[WifiScanInfo](#wifiscaninfo)>> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the detected hotspots. Otherwise, **err** is a non-zero value and **data** is empty.| + +**Example** + ```js + import wifi from '@ohos.wifi'; + + wifi.getScanInfos((err, result) => { + if (err) { + console.error("get scan info error"); + return; + } + + var len = Object.keys(result).length; + console.log("wifi received scan info: " + len); + for (var i = 0; i < len; ++i) { + console.info("ssid: " + result[i].ssid); + console.info("bssid: " + result[i].bssid); + console.info("capabilities: " + result[i].capabilities); + console.info("securityType: " + result[i].securityType); + console.info("rssi: " + result[i].rssi); + console.info("band: " + result[i].band); + console.info("frequency: " + result[i].frequency); + console.info("channelWidth: " + result[i].channelWidth); + console.info("timestamp: " + result[i].timestamp); + } + }); + + wifi.getScanInfos().then(result => { + var len = Object.keys(result).length; + console.log("wifi received scan info: " + len); + for (var i = 0; i < len; ++i) { + console.info("ssid: " + result[i].ssid); + console.info("bssid: " + result[i].bssid); + console.info("capabilities: " + result[i].capabilities); + console.info("securityType: " + result[i].securityType); + console.info("rssi: " + result[i].rssi); + console.info("band: " + result[i].band); + console.info("frequency: " + result[i].frequency); + console.info("channelWidth: " + result[i].channelWidth); + console.info("timestamp: " + result[i].timestamp); + } + }); + ``` + + +## WifiScanInfo9+ + +Represents WLAN hotspot information. + +**System capability**: SystemCapability.Communication.WiFi.STA + + +| **Name**| **Type**| **Readable**| **Writable**| **Description**| +| -------- | -------- | -------- | -------- | -------- | +| ssid | string | Yes| No| Service set identifier (SSID) of the hotspot, in UTF-8 format.| +| bssid | string | Yes| No| Basic service set identifier (BSSID) of the hotspot.| +| capabilities | string | Yes| No| Hotspot capabilities.| +| securityType | [WifiSecurityType](#wifisecuritytype) | Yes| No| WLAN security type.| +| rssi | number | Yes| No| Received signal strength indicator (RSSI) of the hotspot, in dBm.| +| band | number | Yes| No| Frequency band of the WLAN access point (AP).| +| frequency | number | Yes| No| Frequency of the WLAN AP.| +| channelWidth | number | Yes| No| Channel width of the WLAN AP.| +| centerFrequency0 | number | Yes| No| Center frequency of the hotspot.| +| centerFrequency1 | number | Yes| No| Center frequency of the hotspot. If the hotspot uses two non-overlapping WLAN channels, two center frequencies, namely **centerFrequency0** and **centerFrequency1**, are returned.| +| infoElems | Array<[WifiInfoElem](#wifiinfoelem9)> | Yes| No| Information elements.| +| timestamp | number | Yes| No| Timestamp.| + + +## WifiSecurityType9+ + +Enumerates the WLAN security types. + +**System capability**: SystemCapability.Communication.WiFi.Core + + +| **Name**| **Value**| **Description**| +| -------- | -------- | -------- | +| WIFI_SEC_TYPE_INVALID | 0 | Invalid security type.| +| WIFI_SEC_TYPE_OPEN | 1 | Open security type.| +| WIFI_SEC_TYPE_WEP | 2 | Wired Equivalent Privacy (WEP).| +| WIFI_SEC_TYPE_PSK | 3 | Pre-shared key (PSK).| +| WIFI_SEC_TYPE_SAE | 4 | Simultaneous Authentication of Equals (SAE).| +| WIFI_SEC_TYPE_EAP9+ | 5 | Extensible Authentication protocol (EAP).| +| WIFI_SEC_TYPE_EAP_SUITE_B9+ | 6 | Suite B 192-bit encryption.| +| WIFI_SEC_TYPE_OWE9+ | 7 | Opportunistic Wireless Encryption (OWE).| +| WIFI_SEC_TYPE_WAPI_CERT9+ | 8 | WLAN Authentication and Privacy Infrastructure (WAPI) in certificate-based mode (WAPI-CERT).| +| WIFI_SEC_TYPE_WAPI_PSK9+ | 9 | WAPI-PSK.| + + +## WifiInfoElem9+ + +Represents a WLAN information element. + +**System capability**: SystemCapability.Communication.WiFi.STA + + +| **Name**| **Type**| **Readable**| **Writable**| **Description**| +| -------- | -------- | -------- | -------- | -------- | +| eid | number | Yes| No| ID of the information element.| +| content | Uint8Array | Yes| No| Content of the information element.| + + +## WifiChannelWidth9+ + +Enumerates the WLAN channel widths. + +**System capability**: SystemCapability.Communication.WiFi.STA + + +| **Name**| **Value**| **Description**| +| -------- | -------- | -------- | +| WIDTH_20MHZ | 0 | 20 MHz.| +| WIDTH_40MHZ | 1 | 40 MHz.| +| WIDTH_80MHZ | 2 | 80 MHz.| +| WIDTH_160MHZ | 3 | 160 MHz.| +| WIDTH_80MHZ_PLUS | 4 | 80 MHz+.| +| WIDTH_INVALID | 5 | Invalid value.| + + +## wifi.getScanResultsSync9+ + +getScanResultsSync():  Array<[WifiScanInfo](#wifiscaninfo)> + +Obtains the scan result. This API returns the result synchronously. + +**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.GET_WIFI_PEERS_MAC (or ohos.permission.LOCATION) + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + |  Array<[WifiScanInfo](#wifiscaninfo)> | Scan result obtained.| + + +## wifi.addDeviceConfig9+ + +addDeviceConfig(config: WifiDeviceConfig): Promise<number> + +Adds network configuration. This API uses a promise to return the result. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.SET_WIFI_INFO and ohos.permission.SET_WIFI_CONFIG + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to add.| + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | Promise<number> | Promise used to return the ID of the added network configuration. If **-1** is returned, the network configuration fails to be added.| + +## WifiDeviceConfig9+ + +Represents the WLAN configuration. + +**System capability**: SystemCapability.Communication.WiFi.STA + + +| **Name**| **Type**| **Readable**| **Writable**| **Description**| +| -------- | -------- | -------- | -------- | -------- | +| ssid | string | Yes| No| SSID of the hotspot, in UTF-8 format.| +| bssid | string | Yes| No| BSSID of the hotspot.| +| preSharedKey | string | Yes| No| PSK of the hotspot.| +| isHiddenSsid | boolean | Yes| No| Whether the network is hidden.| +| securityType | [WifiSecurityType](#wifisecuritytype) | Yes| No| Security type.| +| creatorUid | number | Yes| No| ID of the creator.
**System API**: This is a system API.| +| disableReason | number | Yes| No| Reason for disabling WLAN.
**System API**: This is a system API.| +| netId | number | Yes| No| Network ID.
**System API**: This is a system API.| +| randomMacType | number | Yes| No| Random MAC type.
**System API**: This is a system API.| +| randomMacAddr | string | Yes| No| Random MAC address.
**System API**: This is a system API.| +| ipType | [IpType](#iptype9) | Yes| No| IP address type.
**System API**: This is a system API.| +| staticIp | [IpConfig](#ipconfig9) | Yes| No| Static IP address configuration.
**System API**: This is a system API.| +| eapConfig9+ | [WifiEapConfig](#wifieapconfig9) | Yes| No| EAP configuration.
**System API**: This is a system API.| + + +## IpType9+ + +Enumerates the IP address types. + +**System API**: This is a system API. + +**System capability**: SystemCapability.Communication.WiFi.STA + + +| Name| Value| Description| +| -------- | -------- | -------- | +| STATIC | 0 | Static IP address.| +| DHCP | 1 | IP address allocated by DHCP.| +| UNKNOWN | 2 | Not specified.| + + +## IpConfig9+ + +Represents IP configuration information. + +**System API**: This is a system API. + +**System capability**: SystemCapability.Communication.WiFi.STA + +| **Name**| **Type**| **Readable**| **Writable**| **Description**| +| -------- | -------- | -------- | -------- | -------- | +| ipAddress | number | Yes| No| IP address.| +| gateway | number | Yes| No| Gateway.| +| prefixLength | number | Yes| No| Subnet mask.| +| dnsServers | number[] | Yes| No| Domain name server (DNS) information.| +| domains | Array<string> | Yes| No| Domain information.| + + +## WifiEapConfig9+ + +Represents EAP configuration information. + +**System API**: This is a system API. + +**System capability**: SystemCapability.Communication.WiFi.STA + +| **Name**| **Type**| **Readable**| **Writable**| **Description**| +| -------- | -------- | -------- | -------- | -------- | +| eapMethod | [EapMethod](#eapmethod9) | Yes| No| EAP authentication method.| +| phase2Method | [Phase2Method](#phase2method9) | Yes| No| Phase 2 authentication method.| +| identity | string | Yes| No| Identity Information.| +| anonymousIdentity | string | Yes| No| Anonymous identity.| +| password | string | Yes| No| Password.| +| caCertAliases | string | Yes| No| CA certificate alias.| +| caPath | string | Yes| No| CA certificate path.| +| clientCertAliases | string | Yes| No| Client certificate alias.| +| altSubjectMatch | string | Yes| No| A string to match the alternate subject.| +| domainSuffixMatch | string | Yes| No| A string to match the domain suffix.| +| realm | string | Yes| No| Realm for the passpoint credential.| +| plmn | string | Yes| No| Public land mobile network (PLMN) of the passpoint credential provider.| +| eapSubId | number | Yes| No| Sub-ID of the SIM card.| + + +## EapMethod9+ + +Enumerates the EAP authentication methods. + +**System API**: This is a system API. + +**System capability**: SystemCapability.Communication.WiFi.STA + +| Name| Value| Description| +| -------- | -------- | -------- | +| EAP_NONE | 0 | Not specified.| +| EAP_PEAP | 1 | PEAP.| +| EAP_TLS | 2 | TLS.| +| EAP_TTLS | 3 | TTLS.| +| EAP_PWD | 4 | Password.| +| EAP_SIM | 5 | SIM.| +| EAP_AKA | 6 | AKA.| +| EAP_AKA_PRIME | 7 | AKA Prime.| +| EAP_UNAUTH_TLS | 8 | UNAUTH TLS.| + + +## Phase2Method9+ + +Enumerates the Phase 2 authentication methods. + +**System API**: This is a system API. + +**System capability**: SystemCapability.Communication.WiFi.STA + +| Name| Value| Description| +| -------- | -------- | -------- | +| PHASE2_NONE | 0 | Not specified.| +| PHASE2_PAP | 1 | PAP.| +| PHASE2_MSCHAP | 2 | MS-CHAP.| +| PHASE2_MSCHAPV2 | 3 | MS-CHAPv2.| +| PHASE2_GTC | 4 | GTC .| +| PHASE2_SIM | 5 | SIM.| +| PHASE2_AKA | 6 | AKA.| +| PHASE2_AKA_PRIME | 7 | AKA Prime.| + + +## wifi.addDeviceConfig9+ + +addDeviceConfig(config: WifiDeviceConfig, callback: AsyncCallback<number>): void + +Adds network configuration. This API uses an asynchronous callback to return the result. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.SET_WIFI_INFO and ohos.permission.SET_WIFI_CONFIG + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to add.| + | callback | AsyncCallback<number> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the network configuration ID. If **data** is **-1**, the operation has failed. If **err** is not **0**, an error has occurred.| + + +## wifi.addCandidateConfig9+ + +addCandidateConfig(config: WifiDeviceConfig): Promise<number> + +Adds the configuration of a candidate network. This API uses a promise to return the result. + +**Required permissions**: ohos.permission.SET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to add.| + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | Promise<number> | Promise used to return the network configuration ID.| + + +## wifi.addCandidateConfig9+ + +addCandidateConfig(config: WifiDeviceConfig, callback: AsyncCallback<number>): void + +Adds the configuration of a candidate network. This API uses an asynchronous callback to return the result. + +**Required permissions**: ohos.permission.SET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration to add.| + | callback | AsyncCallback<number> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the network configuration ID. If **data** is **-1**, the operation has failed. If **err** is not **0**, an error has occurred.| + + +## wifi.removeCandidateConfig9+ + +removeCandidateConfig(networkId: number): Promise<void> + +Removes the configuration of a candidate network. This API uses a promise to return the result. + +**Required permissions**: ohos.permission.SET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | networkId | number | Yes| ID of the network configuration to remove.| + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | Promise<void> | Promise used to return the result.| + + +## wifi.removeCandidateConfig9+ + +removeCandidateConfig(networkId: number, callback: AsyncCallback<void>): void + +Removes the configuration of a candidate network. This API uses an asynchronous callback to return the result. + +**Required permissions**: ohos.permission.SET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | networkId | number | Yes| ID of the network configuration to remove.| + | callback | AsyncCallback<void> | Yes| Callback invoked to return the result. If the operation is successful, the value of **err** is **0**. If **err** is not **0**, an error has occurred.| + + +## wifi.getCandidateConfigs9+ + +getCandidateConfigs():  Array<[WifiDeviceConfig](#wifideviceconfig)> + +Obtains candidate network configuration. + +**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + |  Array<[WifiDeviceConfig](#wifideviceconfig)> | Candidate network configuration obtained.| + + +## wifi.connectToCandidateConfig9+ + +connectToCandidateConfig(networkId: number): void + +Connects to a candidate network. + +**Required permissions**: ohos.permission.SET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | networkId | number | Yes| ID of the candidate network configuration.| + + +## wifi.connectToNetwork9+ + +connectToNetwork(networkId: number): void + +Connects to the specified network. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.MANAGE_WIFI_CONNECTION (available only to system applications) + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | networkId | number | Yes| Network configuration ID.| + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.connectToDevice9+ + +connectToDevice(config: WifiDeviceConfig): void + +Connects to the specified network. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.SET_WIFI_INFO, ohos.permission.SET_WIFI_CONFIG, and ohos.permissio.MANAGE_WIFI_CONNECTION (available only to system applications) + +**System capability**: + SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | config | [WifiDeviceConfig](#wifideviceconfig) | Yes| WLAN configuration.| + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.disconnect9+ + +disconnect(): void + +Disconnects the network. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION (available only to system applications) + +**System capability**: + SystemCapability.Communication.WiFi.STA + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.getSignalLevel9+ + +getSignalLevel(rssi: number, band: number): number + +Obtains the WLAN signal level. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | rssi | number | Yes| RSSI of the hotspot, in dBm.| + | band | number | Yes| Frequency band of the WLAN AP.| + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | number | Signal level obtained. The value range is [0, 4].| + + +## wifi.getLinkedInfo9+ + +getLinkedInfo(): Promise<WifiLinkedInfo> + +Obtains WLAN connection information. This API uses a promise to return the result. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Return value** + + | Type| Description| + | -------- | -------- | + | Promise<[WifiLinkedInfo](#wifilinkedinfo)> | Promise used to return the WLAN connection information obtained.| + + +## wifi.getLinkedInfo9+ + +getLinkedInfo(callback: AsyncCallback<WifiLinkedInfo>): void + +Obtains WLAN connection information. This API uses an asynchronous callback to return the result. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<[WifiLinkedInfo](#wifilinkedinfo)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the WLAN connection information obtained. If **err** is not **0**, an error has occurred.| + +**Example** + ```js + import wifi from '@ohos.wifi'; + + wifi.getLinkedInfo((err, data) => { + if (err) { + console.error("get linked info error"); + return; + } + console.info("get wifi linked info: " + JSON.stringify(data)); + }); + + wifi.getLinkedInfo().then(data => { + console.info("get wifi linked info: " + JSON.stringify(data)); + }).catch(error => { + console.info("get linked info error"); + }); + ``` + + +## WifiLinkedInfo9+ + +Represents the WLAN connection information. + +**System capability**: SystemCapability.Communication.WiFi.STA + +| Name| Type| Readable| Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| ssid | string | Yes| No| SSID of the hotspot, in UTF-8 format.| +| bssid | string | Yes| No| BSSID of the hotspot.| +| networkId | number | Yes| No| Network configuration ID.
**System API**: This is a system API.| +| rssi | number | Yes| No| RSSI of the hotspot, in dBm.| +| band | number | Yes| No| Frequency band of the WLAN AP.| +| linkSpeed | number | Yes| No| Speed of the WLAN AP.| +| frequency | number | Yes| No| Frequency of the WLAN AP.| +| isHidden | boolean | Yes| No| Whether to hide the WLAN AP.| +| isRestricted | boolean | Yes| No| Whether to restrict data volume at the WLAN AP.| +| chload | number | Yes| No| Channel load. A larger value indicates a higher load.
**System API**: This is a system API.| +| snr | number | Yes| No| Signal-to-noise ratio (SNR).
**System API**: This is a system API.| +| macType9+ | number | Yes| No| MAC address type.| +| macAddress | string | Yes| No| MAC address of the device.| +| ipAddress | number | Yes| No| IP address of the device that sets up the WLAN connection.| +| suppState | [SuppState](#suppstate) | Yes| No| Supplicant state.
**System API**: This is a system API.| +| connState | [ConnState](#connstate) | Yes| No| WLAN connection state.| + + +## ConnState9+ + +Enumerates the WLAN connection states. + +**System capability**: SystemCapability.Communication.WiFi.STA + +| Name| Value| Description| +| -------- | -------- | -------- | +| SCANNING | 0 | The device is scanning for available APs.| +| CONNECTING | 1 | A WLAN connection is being established.| +| AUTHENTICATING | 2 | An authentication is being performed for a WLAN connection.| +| OBTAINING_IPADDR | 3 | The IP address of the WLAN connection is being acquired.| +| CONNECTED | 4 | A WLAN connection is established.| +| DISCONNECTING | 5 | The WLAN connection is being disconnected.| +| DISCONNECTED | 6 | The WLAN connection is disconnected.| +| UNKNOWN | 7 | Failed to set up the WLAN connection.| + + +## SuppState9+ + +Enumerates the supplicant states. + +**System API**: This is a system API. + +**System capability**: SystemCapability.Communication.WiFi.STA + +| Name| Value| Description| +| -------- | -------- | -------- | +| DISCONNECTED | 0 | The supplicant is disconnected from the AP.| +| INTERFACE_DISABLED | 1 | The network interface is disabled.| +| INACTIVE | 2 | The supplicant is inactive.| +| SCANNING | 3 | The supplicant is scanning for a WLAN connection.| +| AUTHENTICATING | 4 | The supplicant is being authenticated.| +| ASSOCIATING | 5 | The supplicant is being associated with an AP.| +| ASSOCIATED | 6 | The supplicant is associated with an AP.| +| FOUR_WAY_HANDSHAKE | 7 | A four-way handshake is being performed for the supplicant.| +| GROUP_HANDSHAKE | 8 | A group handshake is being performed for the supplicant.| +| COMPLETED | 9 | The authentication is complete.| +| UNINITIALIZED | 10 | The supplicant failed to set up the connection.| +| INVALID | 11 | Invalid value.| + + +## wifi.isConnected9+ + +isConnected(): boolean + +Checks whether the WLAN is connected. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the WLAN is connected; returns **false** otherwise.| + + +## wifi.getSupportedFeatures9+ + +getSupportedFeatures(): number + +Obtains the features supported by this device. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.Core + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | number | Feature value. | + +**Feature IDs** + +| Value| Description| +| -------- | -------- | +| 0x0001 | WLAN infrastructure mode| +| 0x0002 | 5 GHz feature| +| 0x0004 | Generic Advertisement Service (GAS)/Access Network Query Protocol (ANQP) feature| +| 0x0008 | Wi-Fi Direct| +| 0x0010 | SoftAP| +| 0x0040 | Wi-Fi AWare| +| 0x8000 | WLAN AP/STA concurrency| +| 0x8000000 | WPA3 Personal (WPA-3 SAE)| +| 0x10000000 | WPA3-Enterprise Suite B | +| 0x20000000 | Enhanced open feature| + + +## wifi.isFeatureSupported9+ + +isFeatureSupported(featureId: number): boolean + +Checks whether the device supports the specified WLAN feature. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.Core + +**Parameters** + + + | **Name**| **Type**| Mandatory| **Description**| + | -------- | -------- | -------- | -------- | + | featureId | number | Yes| Feature ID.| + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the feature is supported; returns **false** otherwise.| + + +## wifi.getDeviceMacAddress9+ + +getDeviceMacAddress(): string[] + +Obtains the device MAC address. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.GET_WIFI_LOCAL_MAC and ohos.permission.GET_WIFI_INFO (available only to system applications) + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | string[] | MAC address obtained.| + + +## wifi.getIpInfo9+ + +getIpInfo(): IpInfo + +Obtains IP information. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | [IpInfo](#ipinfo9) | IP information obtained.| + + +## IpInfo9+ + +Represents IP information. + +**System capability**: SystemCapability.Communication.WiFi.STA + +| **Name**| **Type**| **Readable**| **Writable**| **Description**| +| -------- | -------- | -------- | -------- | -------- | +| ipAddress | number | Yes| No| IP address.| +| gateway | number | Yes| No| Gateway.| +| netmask | number | Yes| No| Subnet mask.| +| primaryDns | number | Yes| No| IP address of the preferred DNS server.| +| secondDns | number | Yes| No| IP address of the alternate DNS server.| +| serverIp | number | Yes| No| IP address of the DHCP server.| +| leaseDuration | number | Yes| No| Lease duration of the IP address.| + + +## wifi.getCountryCode9+ + +getCountryCode(): string + +Obtains the country code. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.Core + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | string | Country code obtained.| + + +## wifi.reassociate9+ + +reassociate(): void + +Re-associates with the network. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION (available only to system applications) + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.reconnect9+ + +reconnect(): void + +Reconnects to the network. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION (available only to system applications) + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.getDeviceConfigs9+ + +getDeviceConfigs():  Array<[WifiDeviceConfig](#wifideviceconfig)> + +Obtains network configuration. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.GET_WIFI_INFO, ohos.permission.LOCATION, and ohos.permission.GET_WIFI_CONFIG + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + |  Array<[WifiDeviceConfig](#wifideviceconfig)> | Array of network configuration obtained.| + + +## wifi.updateNetwork9+ + +updateNetwork(config: WifiDeviceConfig): number + +Updates network configuration. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.SET_WIFI_INFO and ohos.permission.SET_WIFI_CONFIG + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | +| config | [WifiDeviceConfig](#wifideviceconfig) | Yes| New WLAN configuration.| + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | number | ID of the updated network configuration. The value **-1** indicates that the operation has failed.| + + +## wifi.disableNetwork9+ + +disableNetwork(netId: number): void + +Disables network configuration. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION (available only to system applications) + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | netId | number | Yes| ID of the network configuration to disable.| + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.removeAllNetwork9+ + +removeAllNetwork(): void + +Removes the configuration of all networks. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION (available only to system applications) + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.removeDevice9+ + +removeDevice(id: number): void + +Removes the specified network configuration. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION (available only to system applications) + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | +| id | number | Yes| ID of the network configuration to remove.| + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.enableHotspot9+ + +enableHotspot(): void + +Enables this hotspot. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.MANAGE_WIFI_HOTSPOT (available only to system applications) + +**System capability**: SystemCapability.Communication.WiFi.AP.Core + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.disableHotspot9+ + +disableHotspot(): void + +Disables this hotspot. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.MANAGE_WIFI_HOTSPOT (available only to system applications) + +**System capability**: SystemCapability.Communication.WiFi.AP.Core + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.isHotspotDualBandSupported9+ + +isHotspotDualBandSupported(): boolean + +Checks whether the hotspot supports dual band. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.MANAGE_WIFI_HOTSPOT (available only to system applications) + +**System capability**: SystemCapability.Communication.WiFi.AP.Core + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the feature is supported; returns **false** otherwise.| + + +## wifi.isHotspotActive9+ + +isHotspotActive(): boolean + +Checks whether this hotspot is active. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.AP.Core + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the hotspot is active; returns **false** otherwise.| + + +## wifi.setHotspotConfig9+ + +setHotspotConfig(config: HotspotConfig): void + +Sets hotspot configuration. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.SET_WIFI_INFO and ohos.permission.GET_WIFI_CONFIG + +**System capability**: SystemCapability.Communication.WiFi.AP.Core + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | config | [HotspotConfig](#hotspotconfig9) | Yes| Hotspot configuration to set.| + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## HotspotConfig9+ + +Represents the hotspot configuration. + +**System API**: This is a system API. + +**System capability**: SystemCapability.Communication.WiFi.AP.Core + +| **Name**| **Type**| **Readable**| **Writable**| **Description**| +| -------- | -------- | -------- | -------- | -------- | +| ssid | string | Yes| No| SSID of the hotspot, in UTF-8 format.| +| securityType | [WifiSecurityType](#wifisecuritytype) | Yes| No| Security type.| +| band | number | Yes| No| Hotspot band. The value **1** stands for 2.4 GHz, the value **2** for 5 GHz, and the value **3** for dual band.| +| preSharedKey | string | Yes| No| PSK of the hotspot.| +| maxConn | number | Yes| No| Maximum number of connections allowed.| + + +## wifi.getHotspotConfig9+ + +getHotspotConfig(): HotspotConfig + +obtains hotspot configuration. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.GET_WIFI_CONFIG + +**System capability**: SystemCapability.Communication.WiFi.AP.Core + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | [HotspotConfig](#hotspotconfig9) | Hotspot configuration obtained.| + + +## wifi.getStations9+ + +getStations():  Array<[StationInfo](#stationinfo9)> + +Obtains information about the connected stations. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.GET_WIFI_INFO, ohos.permission.LOCATION, and ohos.permission.MANAGE_WIFI_HOTSPOT (available only to system applications) + +**System capability**: SystemCapability.Communication.WiFi.AP.Core + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + |  Array<[StationInfo](#stationinfo9)> | Connected stations obtained.| + + +## StationInfo9+ + +Represents the station information. + +**System API**: This is a system API. + +**System capability**: SystemCapability.Communication.WiFi.AP.Core + +| **Name**| **Type**| **Readable**| **Writable**| **Description**| +| -------- | -------- | -------- | -------- | -------- | +| name | string | Yes| No| Device name.| +| macAddress | string | Yes| No| MAC address.| +| ipAddress | string | Yes| No| IP address.| + + +## wifi.getP2pLinkedInfo9+ + +getP2pLinkedInfo(): Promise<WifiP2pLinkedInfo> + +Obtains P2P link information. This API uses a promise to return the result. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Return value** + + | Type| Description| + | -------- | -------- | + | Promise<[WifiP2pLinkedInfo](#wifip2plinkedinfo9)> | Promise used to return the P2P link information obtained.| + + + +## WifiP2pLinkedInfo9+ + +Represents the P2P link information. + +**System capability**: SystemCapability.Communication.WiFi.P2P + +| Name| Type| Readable| Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| connectState | [P2pConnectState](#p2pconnectstate9) | Yes| No| P2P connection state.| +| isGroupOwner | boolean | Yes| No| Whether the device is the group owner.| +| groupOwnerAddr | string | Yes| No| MAC address of the group. + + +## P2pConnectState9+ + +Enumerates the P2P connection states. + +**System capability**: SystemCapability.Communication.WiFi.P2P + +| Name| Value| Description| +| -------- | -------- | -------- | +| DISCONNECTED | 0 | Disconnected.| +| CONNECTED | 1 | Connected.| + + +## wifi.getP2pLinkedInfo9+ + +getP2pLinkedInfo(callback: AsyncCallback<WifiP2pLinkedInfo>): void + +Obtains P2P link information. This API uses an asynchronous callback to return the result. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<[WifiP2pLinkedInfo](#wifip2plinkedinfo9)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the P2P link information. If **err** is not **0**, an error has occurred.| + + +## wifi.getCurrentGroup9+ + +getCurrentGroup(): Promise<WifiP2pGroupInfo> + +Obtains the current P2P group information. This API uses a promise to return the result. + +**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Return value** + + | Type| Description| + | -------- | -------- | + | Promise<[WifiP2pGroupInfo](#wifip2pgroupinfo9)> | Promise used to return the P2P group information obtained.| + + +## wifi.getCurrentGroup9+ + +getCurrentGroup(callback: AsyncCallback<WifiP2pGroupInfo>): void + +Obtains the current P2P group information. This API uses an asynchronous callback to return the result. + +**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<[WifiP2pGroupInfo](#wifip2pgroupinfo9)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the group information obtained. If **err** is not **0**, an error has occurred.| + + +## wifi.getP2pPeerDevices9+ + +getP2pPeerDevices(): Promise<WifiP2pDevice[]> + +Obtains the peer device list in the P2P connection. This API uses a promise to return the result. + +**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Return value** + + | Type| Description| + | -------- | -------- | + | Promise<[WifiP2pDevice[]](#wifip2pdevice9)> | Promise used to return the peer device list.| + + +## wifi.getP2pPeerDevices9+ + +getP2pPeerDevices(callback: AsyncCallback<WifiP2pDevice[]>): void + +Obtains the peer device list in the P2P connection. This API uses an asynchronous callback to return the result. + +**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<[WifiP2pDevice[]](#wifip2pdevice9)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the peer device list obtained. If **err** is not **0**, an error has occurred.| + + +## WifiP2pDevice9+ + +Represents the P2P device information. + +**System capability**: SystemCapability.Communication.WiFi.P2P + +| Name| Type| Readable| Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| deviceName | string | Yes| No| Device name.| +| deviceAddress | string | Yes| No| MAC address of the device.| +| primaryDeviceType | string | Yes| No| Type of the primary device.| +| deviceStatus | [P2pDeviceStatus](#p2pdevicestatus9) | Yes| No| Device status.| +| groupCapabilities | number | Yes| No| Group capabilities.| + + +## P2pDeviceStatus9+ + +Enumerates the P2P device states. + +**System capability**: SystemCapability.Communication.WiFi.P2P + +| Name| Value| Description| +| -------- | -------- | -------- | +| CONNECTED | 0 | Connected.| +| INVITED | 1 | Invited.| +| FAILED | 2 | Failed.| +| AVAILABLE | 3 | Available.| +| UNAVAILABLE | 4 | Unavailable.| + + +## wifi.getP2pLocalDevice9+ + +getP2pLocalDevice(): Promise<WifiP2pDevice> + +Obtains the local device information in the P2P connection. This API uses a promise to return the result. + +**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.GET_WIFI_CONFIG + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Return value** + + | Type| Description| + | -------- | -------- | + | Promise<[WifiP2pDevice](#wifip2pdevice9)> | Promise used to return the local device information obtained.| + + +## wifi.getP2pLocalDevice9+ + +getP2pLocalDevice(callback: AsyncCallback<WifiP2pDevice>): void + +Obtains the local device information in the P2P connection. This API uses an asynchronous callback to return the result. + +**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.GET_WIFI_CONFIG + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<[WifiP2pDevice](#wifip2pdevice9)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the local device information obtained. If **err** is not **0**, an error has occurred.| + + +## wifi.createGroup9+ + +createGroup(config: WifiP2PConfig): void + +Creates a P2P group. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | **Name**| **Type**| Mandatory| **Description**| + | -------- | -------- | -------- | -------- | + | config | [WifiP2PConfig](#wifip2pconfig9) | Yes| Group configuration.| + +**Return value** + + | Type| Description| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## WifiP2PConfig9+ + +Represents P2P group configuration. + +**System capability**: SystemCapability.Communication.WiFi.P2P + +| Name| Type| Readable| Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| deviceAddress | string | Yes| No| Device address.| +| netId | number | Yes| No| Network ID. The value **-1** indicates a temporary group, and **-2** indicates a persistent group.| +| passphrase | string | Yes| No| Passphrase of the group.| +| groupName | string | Yes| No| Name of the group.| +| goBand | [GroupOwnerBand](#groupownerband9) | Yes| No| Frequency band of the group.| + + +## GroupOwnerBand9+ + +Enumerates the P2P group frequency bands. + +**System capability**: SystemCapability.Communication.WiFi.P2P + +| Name| Value| Description| +| -------- | -------- | -------- | +| GO_BAND_AUTO | 0 | Auto.| +| GO_BAND_2GHZ | 1 | 2 GHz.| +| GO_BAND_5GHZ | 2 | 5 GHz.| + + +## wifi.removeGroup9+ + +removeGroup(): void + +Removes this P2P group. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Return value** + + | Type| Description| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.p2pConnect9+ + +p2pConnect(config: WifiP2PConfig): void + +Sets up a P2P connection. + +**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + + | **Name**| **Type**| Mandatory| **Description**| + | -------- | -------- | -------- | -------- | + | config | [WifiP2PConfig](#wifip2pconfig9) | Yes| P2P group configuration.| + +**Return value** + + | Type| Description| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +**Example** + ```js + import wifi from '@ohos.wifi'; + + var recvP2pConnectionChangeFunc = result => { + console.info("p2p connection change receive event: " + JSON.stringify(result)); + wifi.getP2pLinkedInfo((err, data) => { + if (err) { + console.error('failed to get getP2pLinkedInfo: ' + JSON.stringify(err)); + return; + } + console.info("get getP2pLinkedInfo: " + JSON.stringify(data)); + }); + } + wifi.on("p2pConnectionChange", recvP2pConnectionChangeFunc); + + var recvP2pDeviceChangeFunc = result => { + console.info("p2p device change receive event: " + JSON.stringify(result)); + } + wifi.on("p2pDeviceChange", recvP2pDeviceChangeFunc); + + var recvP2pPeerDeviceChangeFunc = result => { + console.info("p2p peer device change receive event: " + JSON.stringify(result)); + wifi.getP2pPeerDevices((err, data) => { + if (err) { + console.error('failed to get peer devices: ' + JSON.stringify(err)); + return; + } + console.info("get peer devices: " + JSON.stringify(data)); + var len = Object.keys(data).length; + for (var i = 0; i < len; ++i) { + if (data[i].deviceName === "my_test_device") { + console.info("p2p connect to test device: " + data[i].deviceAddress); + var config = { + "deviceAddress":data[i].deviceAddress, + "netId":-2, + "passphrase":"", + "groupName":"", + "goBand":0, + } + wifi.p2pConnect(config); + } + } + }); + } + wifi.on("p2pPeerDeviceChange", recvP2pPeerDeviceChangeFunc); + + var recvP2pPersistentGroupChangeFunc = () => { + console.info("p2p persistent group change receive event"); + + wifi.getCurrentGroup((err, data) => { + if (err) { + console.error('failed to get current group: ' + JSON.stringify(err)); + return; + } + console.info("get current group: " + JSON.stringify(data)); + }); + } + wifi.on("p2pPersistentGroupChange", recvP2pPersistentGroupChangeFunc); + + setTimeout(function() {wifi.off("p2pConnectionChange", recvP2pConnectionChangeFunc);}, 125 * 1000); + setTimeout(function() {wifi.off("p2pDeviceChange", recvP2pDeviceChangeFunc);}, 125 * 1000); + setTimeout(function() {wifi.off("p2pPeerDeviceChange", recvP2pPeerDeviceChangeFunc);}, 125 * 1000); + setTimeout(function() {wifi.off("p2pPersistentGroupChange", recvP2pPersistentGroupChangeFunc);}, 125 * 1000); + console.info("start discover devices -> " + wifi.startDiscoverDevices()); + ``` + +## wifi.p2pCancelConnect9+ + +p2pCancelConnect(): void + +Cancels this P2P connection. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Return value** + + | Type| Description| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.startDiscoverDevices9+ + +startDiscoverDevices(): void + +Starts to discover devices. + +**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Return value** + + | Type| Description| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.stopDiscoverDevices9+ + +stopDiscoverDevices(): void + +Stops discovering devices. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Return value** + + | Type| Description| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.deletePersistentGroup9+ + +deletePersistentGroup(netId: number): void + +Deletes a persistent group. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + + | **Name**| **Type**| Mandatory| **Description**| + | -------- | -------- | -------- | -------- | + | netId | number | Yes| ID of the group to delete.| + +**Return value** + + | Type| Description| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.getP2pGroups9+ + +getP2pGroups(): Promise<Array<WifiP2pGroupInfo>> + +Obtains information about all P2P groups. This API uses a promise to return the result. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Return value** + + | Type| Description| + | -------- | -------- | + | Promise< Array<[WifiP2pGroupInfo](#wifip2pgroupinfo9)> > | Promise used to return the group information obtained.| + + +## WifiP2pGroupInfo9+ + +Represents the P2P group information. + +**System capability**: SystemCapability.Communication.WiFi.P2P + +| Name| Type| Readable| Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| isP2pGo | boolean | Yes| No| Whether the device is the group owner.| +| ownerInfo | [WifiP2pDevice](#wifip2pdevice9) | Yes| No| Device information of the group.| +| passphrase | string | Yes| No| Passphrase of the group.| +| interface | string | Yes| No| Interface name.| +| groupName | string | Yes| No| Group name.| +| networkId | number | Yes| No| Network ID.| +| frequency | number | Yes| No| Frequency of the group.| +| clientDevices | [WifiP2pDevice[]](#wifip2pdevice9) | Yes| No| List of connected devices.| +| goIpAddress | string | Yes| No| IP address of the group.| + + +## wifi.getP2pGroups9+ + +getP2pGroups(callback: AsyncCallback<Array<WifiP2pGroupInfo>>): void + +Obtains information about all P2P groups. This API uses an asynchronous callback to return the result. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback< Array<[WifiP2pGroupInfo](#wifip2pgroupinfo9)>> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the group information obtained. If **err** is not **0**, an error has occurred.| + + +## wifi.setDeviceName9+ + +setDeviceName(devName: string): void + +Sets the device name. + +**System API**: This is a system API. + +**Required permissions**: ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION (available only to system applications) + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | devName | string | Yes| Device name to set.| + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifi.on('wifiStateChange')9+ + +on(type: "wifiStateChange", callback: Callback<number>): void + +Registers the WLAN state change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **wifiStateChange**.| + | callback | Callback<number> | Yes| Callback invoked to return the WLAN state.| + +**WLAN states** + +| **Value**| **Description**| +| -------- | -------- | +| 0 | Deactivated| +| 1 | Activated| +| 2 | Activating| +| 3 | Deactivating| + + +## wifi.off('wifiStateChange')9+ + +off(type: "wifiStateChange", callback?: Callback<number>): void + +Unregisters the WLAN state change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **wifiStateChange**.| + | callback | Callback<number> | No| Callback for the WLAN state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.| + +**Example** + ```js + import wifi from '@ohos.wifi'; + + var recvPowerNotifyFunc = result => { + console.info("Receive power state change event: " + result); + } + + // Register an event. + wifi.on("wifiStateChange", recvPowerNotifyFunc); + + // Unregister an event. + wifi.off("wifiStateChange", recvPowerNotifyFunc); + ``` + + +## wifi.on('wifiConnectionChange')7+ + +on(type: "wifiConnectionChange", callback: Callback<number>): void + +Registers the WLAN connection state change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **wifiConnectionChange**.| + | callback | Callback<number> | Yes| Callback invoked to return the WLAN connection state.| + +**WLAN connection states** + +| **Value**| **Description**| +| -------- | -------- | +| 0 | Disconnected.| +| 1 | Connected.| + + +## wifi.off('wifiConnectionChange')9+ + +off(type: "wifiConnectionChange", callback?: Callback<number>): void + +Unregisters the WLAN connection state change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **wifiConnectionChange**.| + | callback | Callback<number> | No| Callback for the WLAN connection state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.| + + +## wifi.on('wifiScanStateChange')9+ + +on(type: "wifiScanStateChange", callback: Callback<number>): void + +Registers the WLAN scan state change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **wifiScanStateChange**.| + | callback | Callback<number> | Yes| Callback invoked to return the WLAN scan state.| + +**WLAN scan states** + +| **Value**| **Description**| +| -------- | -------- | +| 0 | Scan failed.| +| 1 | Scan successful.| + + +## wifi.off('wifiScanStateChange')9+ + +off(type: "wifiScanStateChange", callback?: Callback<number>): void + +Unregisters the WLAN scan state change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + +| **Name**| **Type**| **Mandatory**| **Description**| +| -------- | -------- | -------- | -------- | +| type | string | Yes| Event type. The value is **wifiScanStateChange**.| +| callback | Callback<number> | No| Callback for the WLAN scan state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.| + + +## wifi.on('wifiRssiChange')9+ + +on(type: "wifiRssiChange", callback: Callback<number>): void + +Registers the RSSI change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **wifiRssiChange**.| + | callback | Callback<number> | Yes| Callback invoked to return the RSSI, in dBm.| + + +## wifi.off('wifiRssiChange')9+ + +off(type: "wifiRssiChange", callback?: Callback<number>): void + +Unregisters the RSSI change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.STA + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **wifiRssiChange**.| +| callback | Callback<number> | No| Callback for the RSSI. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.| + + +## wifi.on('hotspotStateChange')9+ + +on(type: "hotspotStateChange", callback: Callback<number>): void + +Registers the hotspot state change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.AP.Core + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **hotspotStateChange**.| + | callback | Callback<number> | Yes| Callback invoked to return the hotspot state.| + +**Hotspot states** + +| **Value**| **Description**| +| -------- | -------- | +| 0 | Deactivated| +| 1 | Activated| +| 2 | Activating| +| 3 | Deactivating| + + +## wifi.off('hotspotStateChange')9+ + +off(type: "hotspotStateChange", callback?: Callback<number>): void + +Unregisters the hotspot state change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.AP.Core + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **hotspotStateChange**.| +| callback | Callback<number> | No| Callback for the hotspot state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.| + + +## wifi.on('p2pStateChange')9+ + +on(type: "p2pStateChange", callback: Callback<number>): void + +Registers the P2P state change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **p2pStateChange**.| + | callback | Callback<number> | Yes| Callback invoked to return the P2P state.| + +**P2P states** + +| **Value**| **Description**| +| -------- | -------- | +| 1 | Available| +| 2 | Opening| +| 3 | Opened| +| 4 | Closing| +| 5 | Closed| + +## wifi.off('p2pStateChange')9+ + +off(type: "p2pStateChange", callback?: Callback<number>): void + +Unregisters the P2P state change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **p2pStateChange**.| +| callback | Callback<number> | No| Callback for the P2P state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.| + + + ## wifi.on('p2pConnectionChange')9+ + +on(type: "p2pConnectionChange", callback: Callback<WifiP2pLinkedInfo>): void + +Registers the P2P connection state change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **p2pConnectionChange**.| + | callback | Callback<[WifiP2pLinkedInfo](#wifip2plinkedinfo9)> | Yes| Callback invoked to return the P2P connection state.| + + +## wifi.off('p2pConnectionChange')9+ + +off(type: "p2pConnectionChange", callback?: Callback<WifiP2pLinkedInfo>): void + +Unregisters the P2P connection state change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **p2pConnectionChange**.| + | callback | Callback<[WifiP2pLinkedInfo](#wifip2plinkedinfo9)> | No| Callback for the P2P connection state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.| + + +## wifi.on('p2pDeviceChange')9+ + +on(type: "p2pDeviceChange", callback: Callback<WifiP2pDevice>): void + +Registers the P2P device state change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **p2pDeviceChange**.| + | callback | Callback<[WifiP2pDevice](#wifip2pdevice9)> | Yes| Callback invoked to return the P2P device state.| + + +## wifi.off('p2pDeviceChange')9+ + +off(type: "p2pDeviceChange", callback?: Callback<WifiP2pDevice>): void + +Unregisters the P2P device state change events. + +**Required permissions**: ohos.permission.LOCATION + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **p2pDeviceChange**.| + | callback | Callback<[WifiP2pDevice](#wifip2pdevice9)> | No| Callback for the P2P device state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.| + + +## wifi.on('p2pPeerDeviceChange')9+ + +on(type: "p2pPeerDeviceChange", callback: Callback<WifiP2pDevice[]>): void + +Registers the P2P peer device state change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **p2pPeerDeviceChange**.| + | callback | Callback<[WifiP2pDevice[]](#wifip2pdevice9)> | Yes| Callback invoked to return the P2P peer device state.| + + +## wifi.off('p2pPeerDeviceChange')9+ + +off(type: "p2pPeerDeviceChange", callback?: Callback<WifiP2pDevice[]>): void + +Unregisters the P2P peer device state change events. + +**Required permissions**: ohos.permission.LOCATION + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **p2pPeerDeviceChange**.| + | callback | Callback<[WifiP2pDevice[]](#wifip2pdevice9)> | No| Callback for the peer device state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.| + + +## wifi.on('p2pPersistentGroupChange')9+ + +on(type: "p2pPersistentGroupChange", callback: Callback<void>): void + +Registers the P2P persistent group state change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **p2pPersistentGroupChange**.| + | callback | Callback<void> | Yes| Callback invoked to return the P2P persistent group state.| + + +## wifi.off('p2pPersistentGroupChange')9+ + +off(type: "p2pPersistentGroupChange", callback?: Callback<void>): void + +Unregisters the P2P persistent group state change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **p2pPersistentGroupChange**.| + | callback | Callback<void> | No| Callback for the P2P persistent group state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.| + + +## wifi.on('p2pDiscoveryChange')9+ + +on(type: "p2pDiscoveryChange", callback: Callback<number>): void + +Registers the P2P device discovery state change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **p2pDiscoveryChange**.| + | callback | Callback<number> | Yes| Callback invoked to return the P2P device discovery state.| + +**P2P discovered device states** + +| **Value**| **Description**| +| -------- | -------- | +| 0 | Initial state.| +| 1 | Discovered.| + + +## wifi.off('p2pDiscoveryChange')9+ + +off(type: "p2pDiscoveryChange", callback?: Callback<number>): void + +Unregisters the P2P device discovery state change events. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.P2P + +**Parameters** + + | **Name**| **Type**| **Mandatory**| **Description**| + | -------- | -------- | -------- | -------- | + | type | string | Yes| Event type. The value is **p2pDiscoveryChange**.| + | callback | Callback<number> | No| Callback for the P2P device discovery state. If this parameter is not specified, all callbacks associated with the specified event will be unregistered.| diff --git a/en/application-dev/reference/apis/js-apis-wifiManagerExt.md b/en/application-dev/reference/apis/js-apis-wifiManagerExt.md new file mode 100644 index 0000000000000000000000000000000000000000..f024294ddbc393a57394a1ad20d2686d30060e52 --- /dev/null +++ b/en/application-dev/reference/apis/js-apis-wifiManagerExt.md @@ -0,0 +1,152 @@ +# WLAN Extension Interface + +This **wifiext** module provides WLAN extension interfaces for non-universal products. + +> **NOTE** +> +> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. +The APIs described in this document are used only for non-universal products, such as routers. + + +## Modules to Import + +```js +import wifiManagerExt from '@ohos.wifiManagerExt'; +``` + +## wifiext.enableHotspot + +enableHotspot(): boolean; + +Enables the WLAN hotspot. + +**Required permissions**: ohos.permission.MANAGE_WIFI_HOTSPOT_EXT + +**System capability**: SystemCapability.Communication.WiFi.AP.Extension + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifiext.disableHotspot + +disableHotspot(): boolean; + +Disables the WLAN hotspot. + +**Required permissions**: ohos.permission.MANAGE_WIFI_HOTSPOT_EXT + +**System capability**: SystemCapability.Communication.WiFi.AP.Extension + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| + + +## wifiext.getSupportedPowerModel + +getSupportedPowerModel(): Promise<Array<PowerModel>> + +Obtains the supported power models. This API uses a promise to return the result. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.AP.Extension + +**Return value** + + | Type| Description| + | -------- | -------- | + | Promise<Array<[PowerModel](#powermodel)>> | Promise used to return the power models obtained.| + + +## PowerModel + +Enumerates the power models. + +**System capability**: SystemCapability.Communication.WiFi.AP.Extension + +| Name| Value| Description| +| -------- | -------- | -------- | +| SLEEPING | 0 | Sleeping| +| GENERAL | 1 | General| +| THROUGH_WALL | 2 | Through_wall| + + +## wifiext.getSupportedPowerModel + +getSupportedPowerModel(callback: AsyncCallback<Array<PowerModel>>): void + +Obtains the supported power models. This API uses an asynchronous callback to return the result. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.AP.Extension + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<Array<[PowerModel](#powermodel)>> | Yes| Callback invoked to return the result. If the operation is successful, **err** is 0 and **data** is the power models obtained. If **err** is not **0**, an error has occurred.| + + +## wifiext.getPowerModel + +getPowerModel(): Promise<PowerModel> + +Obtains the power model. This API uses a promise to return the result. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.AP.Extension + +**Return value** + + | Type| Description| + | -------- | -------- | + | Promise<[PowerModel](#powermodel)> | Promise used to return the power model obtained.| + + +## wifiext.getPowerModel + +getPowerModel(callback: AsyncCallback<PowerModel>): void + +Obtains the power model. This API uses an asynchronous callback to return the result. + +**Required permissions**: ohos.permission.GET_WIFI_INFO + +**System capability**: SystemCapability.Communication.WiFi.AP.Extension + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | callback | AsyncCallback<[PowerModel](#powermodel)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is **0** and **data** is the power model obtained. If **err** is not **0**, an error has occurred.| + + +## wifiext.setPowerModel + +setPowerModel(model: PowerModel) : boolean; + + Sets the power model. + +**Required permissions**: ohos.permission.MANAGE_WIFI_HOTSPOT_EXT + +**System capability**: SystemCapability.Communication.WiFi.AP.Extension + +**Parameters** + + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + | model | [PowerModel](#powermodel) | Yes| Power model to set.| + +**Return value** + + | **Type**| **Description**| + | -------- | -------- | + | boolean | Returns **true** if the operation is successful; returns **false** otherwise.| diff --git a/en/application-dev/reference/apis/js-apis-wifiext.md b/en/application-dev/reference/apis/js-apis-wifiext.md index 9ce53d76e2517eb199067f779168fb9fe9d8b032..70961ffe279bf5543bbe28168f8571a54ca46651 100644 --- a/en/application-dev/reference/apis/js-apis-wifiext.md +++ b/en/application-dev/reference/apis/js-apis-wifiext.md @@ -1,7 +1,9 @@ -# WLAN +# @ohos.wifiext + This **wifiext** module provides WLAN extension interfaces for non-universal products. -> **NOTE**
+> **NOTE** +> > The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. The APIs described in this document are used only for non-universal products, such as routers. @@ -69,7 +71,7 @@ Enumerates the power models. **System capability**: SystemCapability.Communication.WiFi.AP.Extension -| Name| Default Value| Description| +| Name| Value| Description| | -------- | -------- | -------- | | SLEEPING | 0 | Sleeping| | GENERAL | 1 | General| @@ -90,7 +92,7 @@ Obtains the supported power models. This API uses an asynchronous callback to re | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | - | callback | AsyncCallback<[PowerModel](#powermodel)> | Yes| Callback invoked to return the result. If the operation is successful, **err** is 0 and **data** is the power models obtained. If **err** is not **0**, an error has occurred.| + | callback | AsyncCallback<Array<[PowerModel](#powermodel)>> | Yes| Callback invoked to return the result. If the operation is successful, **err** is 0 and **data** is the power models obtained. If **err** is not **0**, an error has occurred.| ## wifiext.getPowerModel @@ -141,7 +143,7 @@ setPowerModel(model: PowerModel) : boolean; | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | - | model | AsyncCallback<[PowerModel](#powermodel)> | Yes| Power model to set.| + | model | [PowerModel](#powermodel) | Yes| Power model to set.| **Return value** diff --git a/en/application-dev/reference/apis/js-apis-workScheduler.md b/en/application-dev/reference/apis/js-apis-workScheduler.md deleted file mode 100644 index d897bc91717348ee8addd00751741f83cc77c345..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/apis/js-apis-workScheduler.md +++ /dev/null @@ -1,361 +0,0 @@ -# Work Scheduler - -The **workScheduler** module provides the APIs for registering, canceling, and querying Work Scheduler tasks, which do not have real-time constraints. - -The system executes Work Scheduler tasks at an appropriate time, subject to the storage space, power consumption, temperature, and more. - -> **NOTE** -> -> - The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. -> - The APIs of this module can be used only in the stage model. -> - For details about the constraints on the Work Scheduler usage, see [Work Scheduler Overview](../../task-management/work-scheduler-overview.md). - - -## Modules to Import - -```js -import workScheduler from '@ohos.workScheduler'; -``` - -## workScheduler.startWork -startWork(work: WorkInfo): boolean - -Instructs the **WorkSchedulerService** to add the specified task to the execution queue. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -**Parameters** - -| Name | Type | Mandatory | Description | -| ---- | --------------------- | ---- | -------------- | -| work | [WorkInfo](#workinfo) | Yes | Task to be added to the execution queue.| - -**Return value** - -| Type | Description | -| ------- | -------------------------------- | -| boolean | Returns **true** if the task is added to the execution queue; returns **false** otherwise.| - -**Example** - -```js - let workInfo = { - workId: 1, - batteryStatus:workScheduler.BatteryStatus.BATTERY_STATUS_LOW, - isRepeat: false, - isPersisted: true, - bundleName: "com.example.myapplication", - abilityName: "MyExtension", - parameters: { - mykey0: 1, - mykey1: "string value", - mykey2: true, - mykey3: 1.5 - } - } - var res = workScheduler.startWork(workInfo); - console.info(`workschedulerLog res: ${res}`); -``` - -## workScheduler.stopWork -stopWork(work: WorkInfo, needCancel?: boolean): boolean - -Instructs the **WorkSchedulerService** to stop the specified task. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -**Parameters** - -| Name | Type | Mandatory | Description | -| ---------- | --------------------- | ---- | ---------- | -| work | [WorkInfo](#workinfo) | Yes | Task to stop. | -| needCancel | boolean | Yes | Whether to cancel the task.| - -**Return value** - -| Type | Description | -| ------- | ----------------------- | -| boolean | Returns **true** if the operation is successful; returns **false** otherwise.| - -**Example** - -```js - let workInfo = { - workId: 1, - batteryStatus:workScheduler.BatteryStatus.BATTERY_STATUS_LOW, - isRepeat: false, - isPersisted: true, - bundleName: "com.example.myapplication", - abilityName: "MyExtension", - parameters: { - mykey0: 1, - mykey1: "string value", - mykey2: true, - mykey3: 1.5 - } - } - var res = workScheduler.stopWork(workInfo, false); - console.info(`workschedulerLog res: ${res}`); -``` - -## workScheduler.getWorkStatus -getWorkStatus(workId: number, callback : AsyncCallback\): void - -Obtains the latest task status. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -**Parameters** - -| Name | Type | Mandatory | Description | -| -------- | ------------------------------------- | ---- | ---------------------------------------- | -| workId | number | Yes | Task ID. | -| callback | AsyncCallback\<[WorkInfo](#workinfo)> | Yes | Callback used to return the result. Returns the task status obtained from the **WorkSchedulerService** if the specified task ID is valid; returns **null** otherwise.| - -**Example** - -```js - workScheduler.getWorkStatus(50, (err, res) => { - if (err) { - console.info(`workschedulerLog getWorkStatus failed, because: ${err.code}`); - } else { - for (let item in res) { - console.info(`workschedulerLog getWorkStatus success, ${item} is: ${res[item]}`); - } - } - }); -``` - -## workScheduler.getWorkStatus -getWorkStatus(workId: number): Promise\ - -Obtains the latest task status. This API uses a promise to return the result. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -**Parameters** - -| Name | Type | Mandatory | Description | -| ------ | ------ | ---- | -------- | -| workId | number | Yes | Task ID.| - -**Return value** - -| Type | Description | -| ------------------------------- | ---------------------------------------- | -| Promise\<[WorkInfo](#workinfo)> | Promise used to return the result. Returns the task status obtained from the **WorkSchedulerService** if the specified task ID is valid; returns **null** otherwise.| - -**Example** - -```js - workScheduler.getWorkStatus(50).then((res) => { - for (let item in res) { - console.info(`workschedulerLog getWorkStatus success, ${item} is: ${res[item]}`); - } - }).catch((err) => { - console.info(`workschedulerLog getWorkStatus failed, because: ${err.code}`); - }) -``` - -## workScheduler.obtainAllWorks -obtainAllWorks(callback : AsyncCallback\): Array\ - -Obtains all tasks associated with this application. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -**Parameters** - -| Name | Type | Mandatory | Description | -| -------- | -------------------- | ---- | ------------------------------- | -| callback | AsyncCallback\ | Yes | Callback used to return all tasks associated with the current application. | - -**Return value** - -| Type | Description | -| ----------------------------- | --------------- | -| Array\<[WorkInfo](#workinfo)> | All tasks associated with the current application.| - -**Example** - -```js - workScheduler.obtainAllWorks((err, res) =>{ - if (err) { - console.info(`workschedulerLog obtainAllWorks failed, because: ${err.code}`); - } else { - console.info(`workschedulerLog obtainAllWorks success, data is: ${JSON.stringify(res)}`); - } - }); -``` - -## workScheduler.obtainAllWorks -obtainAllWorks(): Promise> - -Obtains all tasks associated with this application. This API uses a promise to return the result. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -**Return value** - -| Type | Description | -| -------------------------------------- | ------------------------------ | -| Promise> | Promise used to return all tasks associated with the current application. | - -**Example** - -```js - workScheduler.obtainAllWorks().then((res) => { - console.info(`workschedulerLog obtainAllWorks success, data is: ${JSON.stringify(res)}`); - }).catch((err) => { - console.info(`workschedulerLog obtainAllWorks failed, because: ${err.code}`); - }) -``` - -## workScheduler.stopAndClearWorks -stopAndClearWorks(): boolean - -Stops and cancels all tasks associated with the current application. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -**Example** - -```js - let res = workScheduler.stopAndClearWorks(); - console.info(`workschedulerLog res: ${res}`); -``` - -## workScheduler.isLastWorkTimeOut -isLastWorkTimeOut(workId: number, callback : AsyncCallback\): boolean - -Checks whether the last execution of the specified task timed out. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -**Parameters** - -| Name | Type | Mandatory | Description | -| -------- | -------------------- | ---- | ---------------------------------------- | -| workId | number | Yes | Task ID. | -| callback | AsyncCallback\ | Yes | Callback used to return the result. Returns **true** if the last execution of the specified task timed out; returns **false** otherwise.| - -**Return value** - -| Type | Description | -| ------- | ---------------------------------------- | -| boolean | Callback used to return the result. Returns **true** if the last execution of the specified task timed out; returns **false** otherwise.| - -**Example** - -```js - workScheduler.isLastWorkTimeOut(500, (err, res) =>{ - if (err) { - console.info(`workschedulerLog isLastWorkTimeOut failed, because: ${err.code}`); - } else { - console.info(`workschedulerLog isLastWorkTimeOut success, data is: ${res}`); - } - }); -``` - -## workScheduler.isLastWorkTimeOut -isLastWorkTimeOut(workId: number): Promise\ - -Checks whether the last execution of the specified task timed out. This API uses a promise to return the result. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -**Parameters** - -| Name | Type | Mandatory | Description | -| ------ | ------ | ---- | -------- | -| workId | number | Yes | Task ID.| - -**Return value** - -| Type | Description | -| ----------------- | ---------------------------------------- | -| Promise\ | Promise used to return the result. Returns **true** if the last execution of the specified task timed out; returns **false** otherwise.| - -**Example** - -```js - workScheduler.isLastWorkTimeOut(500) - .then(res => { - console.info(`workschedulerLog isLastWorkTimeOut success, data is: ${res}`); - }) - .catch(err => { - console.info(`workschedulerLog isLastWorkTimeOut failed, because: ${err.code}`); - }); -``` - -## WorkInfo -Provides detailed information about the task. For details about the constraints on configuring **WorkInfo**, see [Work Scheduler Overview](../../task-management/work-scheduler-overview.md). - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -| Name | Type | Mandatory | Description | -| --------------- | --------------------------------- | ---- | ---------------- | -| workId | number | Yes | Task ID. | -| bundleName | string | Yes | Name of the Work Scheduler task bundle. | -| abilityName | string | Yes | Name of the component to be notified by a Work Scheduler callback.| -| networkType | [NetworkType](#networktype) | No | Network type. | -| isCharging | boolean | No | Whether the device is charging. | -| chargerType | [ChargingType](#chargingtype) | No | Charging type. | -| batteryLevel | number | No | Battery level. | -| batteryStatus | [BatteryStatus](#batterystatus) | No | Battery status. | -| storageRequest | [StorageRequest](#storagerequest) | No | Storage status. | -| isRepeat | boolean | No | Whether the task is repeated. | -| repeatCycleTime | number | No | Repeat interval. | -| repeatCount | number | No | Number of repeat times. | -| isPersisted | boolean | No | Whether to enable persistent storage for the task. | -| isDeepIdle | boolean | No | Whether the device needs to enter the idle state. | -| idleWaitTime | number | No | Time to wait in the idle state. | -| parameters | {[key: string]: any} | No | Carried parameters. | - -## NetworkType -Enumerates the network types that can trigger the task. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -| Name | Default Value | Description | -| ---------------------- | ---- | ----------------------- | -| NETWORK_TYPE_ANY | 0 | Any network type. | -| NETWORK_TYPE_MOBILE | 1 | Mobile network. | -| NETWORK_TYPE_WIFI | 2 | Wi-Fi network. | -| NETWORK_TYPE_BLUETOOTH | 3 | Bluetooth network.| -| NETWORK_TYPE_WIFI_P2P | 4 | Wi-Fi P2P network. | -| NETWORK_TYPE_ETHERNET | 5 | Ethernet. | - -## ChargingType -Enumerates the charging types that can trigger the task. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -| Name | Default Value | Description | -| ------------------------- | ---- | -------------------- | -| CHARGING_PLUGGED_ANY | 0 | Any charging type.| -| CHARGING_PLUGGED_AC | 1 | DC charging. | -| CHARGING_PLUGGED_USB | 2 | USB charging. | -| CHARGING_PLUGGED_WIRELESS | 3 | Wireless charging. | - -## BatteryStatus -Enumerates the battery states that can trigger the task. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -| Name | Default Value | Description | -| -------------------------- | ---- | -------------------------- | -| BATTERY_STATUS_LOW | 0 | A low battery alert is displayed. | -| BATTERY_STATUS_OKAY | 1 | The battery level is restored from low to normal. | -| BATTERY_STATUS_LOW_OR_OKAY | 2 | The battery level is restored from low to normal, or a low battery alert is displayed.| - -## StorageRequest -Enumerates the storage states that can trigger the task. - -**System capability**: SystemCapability.ResourceSchedule.WorkScheduler - -| Name | Default Value | Description | -| ------------------------- | ---- | ------------------------------ | -| STORAGE_LEVEL_LOW | 0 | The storage space is insufficient. | -| STORAGE_LEVEL_OKAY | 1 | The storage space is restored from insufficient to normal. | -| STORAGE_LEVEL_LOW_OR_OKAY | 2 | The storage space is restored from insufficient to normal, or the storage space is insufficient.| diff --git a/en/application-dev/reference/apis/js-apis-worker.md b/en/application-dev/reference/apis/js-apis-worker.md index a9bb769b0eccd89631f4747bcce6deba03c4533a..1b269ea33508c427b9480641ee08210b7906eddc 100644 --- a/en/application-dev/reference/apis/js-apis-worker.md +++ b/en/application-dev/reference/apis/js-apis-worker.md @@ -1,11 +1,13 @@ -# Worker Startup +# @ohos.worker + +The worker thread is an independent thread running in parallel with the main thread. The thread that creates the worker thread is referred to as the host thread. The URL file passed in during worker creation is executed in the worker thread. The worker thread can process time-consuming operations, but cannot directly operate the UI. + +With the **Worker** module, you can provide a multithreading environment for an application, so that the application can perform a time-consuming operation in a background thread. This greatly prevents a computing-intensive or high-latency task from blocking the running of the main thread. A **Worker** instance will not be proactively destroyed once it is created. It consumes resources to keep running. Therefore, you should call the API to terminate it in a timely manner. > **NOTE** > > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. -The worker thread is an independent thread running in parallel with the main thread. The thread that creates the worker thread is referred to as the host thread. The URL file passed in during worker creation is executed in the worker thread. The worker thread can process time-consuming operations, but cannot directly operate the UI. - ## Modules to Import ```js @@ -17,10 +19,10 @@ import worker from '@ohos.worker'; **System capability**: SystemCapability.Utils.Lang -| Name | Type | Readable| Writable| Description | +| Name | Type | Readable| Writable| Description | | --------------------------------- | --------------------------------------------------------- | ---- | ---- | ------------------------------------------------------------ | | workerPort9+ | [ThreadWorkerGlobalScope](#threadworkerglobalscope9) | Yes | Yes | Object of the worker thread used to communicate with the host thread. | -| parentPort(deprecated) | [DedicatedWorkerGlobalScope](#dedicatedworkerglobalscope) | Yes | Yes | Object of the worker thread used to communicate with the host thread.
This attribute is deprecated since API version 9. You are advised to use **workerPort9+** instead.| +| parentPort(deprecated) | [DedicatedWorkerGlobalScope](#dedicatedworkerglobalscope) | Yes | Yes | Object of the worker thread used to communicate with the host thread.
This attribute is supported since API version 7 and deprecated since API version 9.
You are advised to use **workerPort9+** instead.| ## WorkerOptions @@ -31,7 +33,9 @@ Provides options that can be set for the **Worker** instance to create. | Name| Type| Readable| Writable| Description | | ---- | -------- | ---- | ---- | -------------- | +| type | "classic" \| "module" | Yes | Yes | Mode in which the **Worker** instance executes the script. The default value is **classic**. The module **type** is not supported yet.| | name | string | Yes | Yes | Name of the worker thread.| +| shared | boolean | Yes | Yes | Sharing of the **Worker** instance is not supported yet.| ## ThreadWorker9+ @@ -166,7 +170,7 @@ workerInstance.postMessage(buffer, [buffer]); on(type: string, listener: WorkerEventListener): void -Adds an event listener for the worker thread. +Adds an event listener for the worker thread. This API provides the same functionality as [addEventListener9+](#addeventlistener9). **System capability**: SystemCapability.Utils.Lang @@ -216,7 +220,7 @@ workerInstance.once("alert", (e)=>{ off(type: string, listener?: WorkerEventListener): void -Removes an event listener for the worker thread. +Removes an event listener for the worker thread. This API provides the same functionality as [removeEventListener9+](#removeeventlistener9). **System capability**: SystemCapability.Utils.Lang @@ -231,6 +235,7 @@ Removes an event listener for the worker thread. ```js const workerInstance = new worker.ThreadWorker("workers/worker.js"); +// Use on, once, or addEventListener to add a listener for the "alert" event, and use off to remove the listener. workerInstance.off("alert"); ``` @@ -263,7 +268,7 @@ Defines the event handler to be called when the worker thread exits. The handler | Name| Type | Mandatory| Description | | ------ | ------ | ---- | ------------------ | -| code | number | No | Code indicating the worker thread exit state.| +| code | number | Yes | Code indicating the worker thread exit state.| **Example** @@ -272,6 +277,13 @@ const workerInstance = new worker.ThreadWorker("workers/worker.js"); workerInstance.onexit = function(e) { console.log("onexit"); } + +// onexit is executed in either of the following ways: +// Main thread: +workerInstance.terminate(); + +// Worker thread: +//parentPort.close() ``` @@ -287,7 +299,7 @@ Defines the event handler to be called when an exception occurs during worker ex | Name| Type | Mandatory| Description | | ------ | ------------------------- | ---- | ---------- | -| err | [ErrorEvent](#errorevent) | No | Error data.| +| err | [ErrorEvent](#errorevent) | Yes | Error data.| **Example** @@ -301,7 +313,7 @@ workerInstance.onerror = function(e) { ### onmessage9+ -onmessage?: (event: MessageEvent\) => void +onmessage?: (event: MessageEvents) => void Defines the event handler to be called when the host thread receives a message sent by the worker thread through **parentPort.postMessage**. The event handler is executed in the host thread. @@ -309,16 +321,16 @@ Defines the event handler to be called when the host thread receives a message s **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ----------------------------- | ---- | ---------------------- | -| event | [MessageEvent](#messageevent) | No | Message received.| +| Name| Type | Mandatory| Description | +| ------ | -------------------------------- | ---- | ---------------------- | +| event | [MessageEvents](#messageevents9) | Yes | Message received.| **Example** ```js const workerInstance = new worker.ThreadWorker("workers/worker.js"); workerInstance.onmessage = function(e) { - // e: MessageEvent. The usage is as follows: + // e: MessageEvents. The usage is as follows: // let data = e.data; console.log("onmessage"); } @@ -327,7 +339,7 @@ workerInstance.onmessage = function(e) { ### onmessageerror9+ -onmessageerror?: (event: MessageEvent\) => void +onmessageerror?: (event: MessageEvents) => void Defines the event handler to be called when the worker thread receives a message that cannot be serialized. The event handler is executed in the host thread. @@ -335,9 +347,9 @@ Defines the event handler to be called when the worker thread receives a message **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ----------------------------- | ---- | ---------- | -| event | [MessageEvent](#messageevent) | No | Error data.| +| Name| Type | Mandatory| Description | +| ------ | -------------------------------- | ---- | ---------- | +| event | [MessageEvents](#messageevents9) | Yes | Error data.| **Example** @@ -355,7 +367,7 @@ workerInstance.onmessageerror= function(e) { addEventListener(type: string, listener: WorkerEventListener): void -Adds an event listener for the worker thread. +Adds an event listener for the worker thread. This API provides the same functionality as [on9+](#on9). **System capability**: SystemCapability.Utils.Lang @@ -380,7 +392,7 @@ workerInstance.addEventListener("alert", (e)=>{ removeEventListener(type: string, callback?: WorkerEventListener): void -Removes an event listener for the worker thread. +Removes an event listener for the worker thread. This API provides the same functionality as [off9+](#off9). **System capability**: SystemCapability.Utils.Lang @@ -395,6 +407,9 @@ Removes an event listener for the worker thread. ```js const workerInstance = new worker.ThreadWorker("workers/worker.js"); +workerInstance.addEventListener("alert", (e)=>{ + console.log("alert listener callback"); +}) workerInstance.removeEventListener("alert"); ``` @@ -423,7 +438,41 @@ Dispatches the event defined for the worker thread. ```js const workerInstance = new worker.ThreadWorker("workers/worker.js"); -workerInstance.dispatchEvent({type:"alert"}); +// Usage 1: +workerInstance.on("alert_on", (e)=>{ + console.log("alert listener callback"); +}) +workerInstance.once("alert_once", (e)=>{ + console.log("alert listener callback"); +}) +workerInstance.addEventListener("alert_add", (e)=>{ + console.log("alert listener callback"); +}) + +// The event listener created by once is removed after being executed once. +workerInstance.dispatchEvent({type:"alert_once", timeStamp:0}); +// The event listener created by on will be always valid and will not be proactively deleted. +workerInstance.dispatchEvent({type:"alert_on", timeStamp:0}); +workerInstance.dispatchEvent({type:"alert_on", timeStamp:0}); +// The event listener created by addEventListener will be always valid and will not be proactively deleted. +workerInstance.dispatchEvent({type:"alert_add", timeStamp:0}); +workerInstance.dispatchEvent({type:"alert_add", timeStamp:0}); + +// Usage 2: +// The event type can be customized, and the special types "message", "messageerror", and "error" exist. +// When type = "message", the event handler defined by onmessage will also be executed. +// When type = "messageerror", the event handler defined by onmessageerror will also be executed. +// When type = "error", the event handler defined by onerror will also be executed. +// removeEventListener or off can be used to remove an event listener that is created by addEventListener, on, or once. + +workerInstance.addEventListener("message", (e)=>{ + console.log("message listener callback"); +}) +workerInstance.onmessage = function(e) { + console.log("onmessage : message listener callback"); +} +// When dispatchEvent is called to distribute the "message" event, the callback passed in addEventListener and onmessage will be invoked. +workerInstance.dispatchEvent({type:"message", timeStamp:0}); ``` @@ -439,13 +488,16 @@ Removes all event listeners for the worker thread. ```js const workerInstance = new worker.ThreadWorker("workers/worker.js"); +workerInstance.addEventListener("alert", (e)=>{ + console.log("alert listener callback"); +}) workerInstance.removeAllListener(); ``` ## ThreadWorkerGlobalScope9+ -Implements communication between the worker thread and the host thread. The **postMessage** API is used to send messages to the host thread, and the **close** API is used to terminate the worker thread. The **DedicatedWorkerGlobalScope** class inherits from [GlobalScope9+](#globalscope9). +Implements communication between the worker thread and the host thread. The **postMessage** API is used to send messages to the host thread, and the **close** API is used to terminate the worker thread. The **ThreadWorkerGlobalScope** class inherits from [GlobalScope9+](#globalscope9). ### postMessage9+ @@ -515,7 +567,7 @@ parentPort.onmessage = function(e) { ### onmessage9+ -onmessage?: (event: MessageEvent\) => void +onmessage?: (this: ThreadWorkerGlobalScope, event: MessageEvents) => void Defines the event handler to be called when the worker thread receives a message sent by the host thread through **postMessage**. The event handler is executed in the worker thread. @@ -523,9 +575,10 @@ Defines the event handler to be called when the worker thread receives a message **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ----------------------------- | ---- | ------------------------ | -| event | [MessageEvent](#messageevent) | No | Message received.| +| Name| Type | Mandatory| Description | +| ------ | ---------------------------------------------------- | ---- | ------------------------ | +| this | [ThreadWorkerGlobalScope](#threadworkerglobalscope9) | Yes | Caller. | +| event | [MessageEvents](#messageevents9) | Yes | Message received.| **Example** @@ -548,7 +601,7 @@ parentPort.onmessage = function(e) { ### onmessageerror9+ -onmessageerror?: (event: MessageEvent\) => void +onmessageerror?: (this: ThreadWorkerGlobalScope, event: MessageEvents) => void Defines the event handler to be called when the worker thread receives a message that cannot be deserialized. The event handler is executed in the worker thread. @@ -556,9 +609,10 @@ Defines the event handler to be called when the worker thread receives a message **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ----------------------------- | ---- | ---------- | -| event | [MessageEvent](#messageevent) | No | Error data.| +| Name| Type | Mandatory| Description | +| ------ | -------------------------------- | ---- | ---------- | +| this | [ThreadWorkerGlobalScope](#threadworkerglobalscope9) | Yes | Caller. | +| event | [MessageEvents](#messageevents9) | Yes | Error data.| **Example** @@ -572,7 +626,7 @@ const workerInstance = new worker.ThreadWorker("workers/worker.js"); // worker.js import worker from '@ohos.worker'; const parentPort = worker.workerPort; -parentPort.onmessageerror= function(e) { +parentPort.onmessageerror = function(e) { console.log("worker.js onmessageerror") } ``` @@ -610,13 +664,13 @@ workerInstance.addEventListener("alert", (e)=>{ ## GlobalScope9+ -Implements the running environment of the worker thread. The **WorkerGlobalScope** class inherits from [WorkerEventTarget](#workereventtarget9). +Implements the running environment of the worker thread. The **GlobalScope** class inherits from [WorkerEventTarget](#workereventtarget9). ### Attributes **System capability**: SystemCapability.Utils.Lang -| Name| Type | Readable| Writable| Description | +| Name| Type | Readable| Writable| Description | | ---- | ------------------------------------------------------------ | ---- | ---- | ------------------------------------- | | name | string | Yes | No | **Worker** instance specified when there is a new **Worker** instance.| | self | [GlobalScope](#globalscope9) & typeof globalThis | Yes | No | **GlobalScope** itself. | @@ -634,7 +688,7 @@ Defines the event handler to be called when an exception occurs during worker ex | Name| Type | Mandatory| Description | | ------ | ------------------------- | ---- | ---------- | -| ev | [ErrorEvent](#errorevent) | No | Error data.| +| ev | [ErrorEvent](#errorevent) | Yes | Error data.| **Example** @@ -653,22 +707,33 @@ parentPort.onerror = function(e){ } ``` +## MessageEvents9+ + +Holds the data transferred between worker threads. + +**System capability**: SystemCapability.Utils.Lang + +| Name| Type| Readable| Writable| Description | +| ---- | ---- | ---- | ---- | ------------------ | +| data | any | Yes | No | Data transferred between threads.| ## Worker(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [ThreadWorker9+](#threadworker9) instead. Before using the following APIs, you must create a **Worker** instance. The **Worker** class inherits from [EventTarget](#eventtarget). -### constructor(deprecated) > **NOTE**
-> This API is deprecated since API version 9. You are advised to use [ThreadWorker.constructor9+](#constructor9) instead. +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [ThreadWorker9+](#threadworker9) instead. + +### constructor(deprecated) constructor(scriptURL: string, options?: WorkerOptions) A constructor used to create a **Worker** instance. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [ThreadWorker.constructor9+](#constructor9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -753,13 +818,13 @@ In the stage model: ``` ### postMessage(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [ThreadWorker.postMessage9+](#postmessage9) instead. - postMessage(message: Object, options?: PostMessageOptions): void Sends a message to the worker thread. The data type of the message must be sequenceable. For details about the sequenceable data types, see [More Information](#more-information). +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [ThreadWorker.postMessage9+](#postmessage9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -783,12 +848,12 @@ workerInstance.postMessage(buffer, [buffer]); ### on(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [ThreadWorker.on9+](#on9) instead. - on(type: string, listener: EventListener): void -Adds an event listener for the worker thread. +Adds an event listener for the worker thread. This API provides the same functionality as [addEventListener(deprecated)](#addeventlistenerdeprecated). + +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [ThreadWorker.on9+](#on9) instead. **System capability**: SystemCapability.Utils.Lang @@ -811,13 +876,13 @@ workerInstance.on("alert", (e)=>{ ### once(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [ThreadWorker.once9+](#once9) instead. - once(type: string, listener: EventListener): void Adds an event listener for the worker thread and removes the event listener after it is invoked once. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [ThreadWorker.once9+](#once9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -839,12 +904,12 @@ workerInstance.once("alert", (e)=>{ ### off(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [ThreadWorker.off9+](#off9) instead. - off(type: string, listener?: EventListener): void -Removes an event listener for the worker thread. +Removes an event listener for the worker thread. This API provides the same functionality as [removeEventListener(deprecated)](#removeeventlistenerdeprecated). + +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [ThreadWorker.off9+](#off9) instead. **System capability**: SystemCapability.Utils.Lang @@ -859,19 +924,20 @@ Removes an event listener for the worker thread. ```js const workerInstance = new worker.Worker("workers/worker.js"); +// Use on, once, or addEventListener to add a listener for the "alert" event, and use off to remove the listener. workerInstance.off("alert"); ``` ### terminate(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [ThreadWorker.terminate9+](#terminate9) instead. - terminate(): void Terminates the worker thread to stop it from receiving messages. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [ThreadWorker.terminate9+](#terminate9) instead. + **System capability**: SystemCapability.Utils.Lang **Example** @@ -884,20 +950,20 @@ workerInstance.terminate(); ### onexit(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [ThreadWorker.onexit9+](#onexit9) instead. - onexit?: (code: number) => void Defines the event handler to be called when the worker thread exits. The handler is executed in the host thread. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [ThreadWorker.onexit9+](#onexit9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** | Name| Type | Mandatory| Description | | ------ | ------ | ---- | ------------------ | -| code | number | No | Code indicating the worker thread exit state.| +| code | number | Yes | Code indicating the worker thread exit state.| **Example** @@ -906,25 +972,32 @@ const workerInstance = new worker.Worker("workers/worker.js"); workerInstance.onexit = function(e) { console.log("onexit"); } + +// onexit is executed in either of the following ways: +// Main thread: +workerInstance.terminate(); + +// Worker thread: +//parentPort.close() ``` ### onerror(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [ThreadWorker.onerror9+](#onerror9) instead. - onerror?: (err: ErrorEvent) => void Defines the event handler to be called when an exception occurs during worker execution. The event handler is executed in the host thread. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [ThreadWorker.onerror9+](#onerror9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** | Name| Type | Mandatory| Description | | ------ | ------------------------- | ---- | ---------- | -| err | [ErrorEvent](#errorevent) | No | Error data.| +| err | [ErrorEvent](#errorevent) | Yes | Error data.| **Example** @@ -938,27 +1011,27 @@ workerInstance.onerror = function(e) { ### onmessage(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [ThreadWorker.onmessage9+](#onmessage9) instead. - -onmessage?: (event: MessageEvent\) => void +onmessage?: (event: MessageEvent) => void Defines the event handler to be called when the host thread receives a message sent by the worker thread through **parentPort.postMessage**. The event handler is executed in the host thread. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [ThreadWorker.onmessage9+](#onmessage9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ----------------------------- | ---- | ---------------------- | -| event | [MessageEvent](#messageevent) | No | Message received.| +| Name| Type | Mandatory| Description | +| ------ | ------------------------------ | ---- | ---------------------- | +| event | [MessageEvent](#messageeventt) | Yes | Message received.| **Example** ```js const workerInstance = new worker.Worker("workers/worker.js"); workerInstance.onmessage = function(e) { - // e: MessageEvent. The usage is as follows: + // e: MessageEvent. The usage is as follows: // let data = e.data; console.log("onmessage"); } @@ -967,20 +1040,20 @@ workerInstance.onmessage = function(e) { ### onmessageerror(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [ThreadWorker.onmessageerror9+](#onmessageerror9) instead. - -onmessageerror?: (event: MessageEvent\) => void +onmessageerror?: (event: MessageEvent) => void Defines the event handler to be called when the worker thread receives a message that cannot be serialized. The event handler is executed in the host thread. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [ThreadWorker.onmessageerror9+](#onmessageerror9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ----------------------------- | ---- | ---------- | -| event | [MessageEvent](#messageevent) | No | Error data.| +| Name| Type | Mandatory| Description | +| ------ | ------------------------------ | ---- | ---------- | +| event | [MessageEvent](#messageeventt) | Yes | Error data.| **Example** @@ -994,16 +1067,16 @@ workerInstance.onmessageerror= function(e) { ## EventTarget(deprecated) > **NOTE**
-> This API is deprecated since API version 9. You are advised to use [WorkerEventTarget9+](#workereventtarget9) instead. +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [WorkerEventTarget9+](#workereventtarget9) instead. ### addEventListener(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [addEventListener9+](#addeventlistener9) instead. - addEventListener(type: string, listener: EventListener): void -Adds an event listener for the worker thread. +Adds an event listener for the worker thread. This API provides the same functionality as [on(deprecated)](#ondeprecated). + +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [addEventListener9+](#addeventlistener9) instead. **System capability**: SystemCapability.Utils.Lang @@ -1026,12 +1099,12 @@ workerInstance.addEventListener("alert", (e)=>{ ### removeEventListener(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [removeEventListener9+](#removeeventlistener9) instead. - removeEventListener(type: string, callback?: EventListener): void -Removes an event listener for the worker thread. +Removes an event listener for the worker thread. This API provides the same functionality as [off(deprecated)](#offdeprecated). + +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [removeEventListener9+](#removeeventlistener9) instead. **System capability**: SystemCapability.Utils.Lang @@ -1046,19 +1119,22 @@ Removes an event listener for the worker thread. ```js const workerInstance = new worker.Worker("workers/worker.js"); +workerInstance.addEventListener("alert", (e)=>{ + console.log("alert listener callback"); +}) workerInstance.removeEventListener("alert"); ``` ### dispatchEvent(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [dispatchEvent9+](#dispatchevent9) instead. - dispatchEvent(event: Event): boolean Dispatches the event defined for the worker thread. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [dispatchEvent9+](#dispatchevent9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -1077,46 +1153,81 @@ Dispatches the event defined for the worker thread. ```js const workerInstance = new worker.Worker("workers/worker.js"); -workerInstance.dispatchEvent({type:"alert"}); -``` +// Usage 1: +workerInstance.on("alert_on", (e)=>{ + console.log("alert listener callback"); +}) +workerInstance.once("alert_once", (e)=>{ + console.log("alert listener callback"); +}) +workerInstance.addEventListener("alert_add", (e)=>{ + console.log("alert listener callback"); +}) +// The event listener created by once is removed after being executed once. +workerInstance.dispatchEvent({type:"alert_once", timeStamp:0}); +// The event listener created by on will not be proactively deleted. +workerInstance.dispatchEvent({type:"alert_on", timeStamp:0}); +workerInstance.dispatchEvent({type:"alert_on", timeStamp:0}); +// The event listener created by addEventListener will not be proactively deleted. +workerInstance.dispatchEvent({type:"alert_add", timeStamp:0}); +workerInstance.dispatchEvent({type:"alert_add", timeStamp:0}); + +// Usage 2: +// The event type can be customized, and the special types "message", "messageerror", and "error" exist. +// When type = "message", the event handler defined by onmessage will also be executed. +// When type = "messageerror", the event handler defined by onmessageerror will also be executed. +// When type = "error", the event handler defined by onerror will also be executed. +// removeEventListener or off can be used to remove an event listener that is created by addEventListener, on, or once. + +workerInstance.addEventListener("message", (e)=>{ + console.log("message listener callback"); +}) +workerInstance.onmessage = function(e) { + console.log("onmessage : message listener callback"); +} +// When dispatchEvent is called to distribute the "message" event, the callback passed in addEventListener and onmessage will be invoked. +workerInstance.dispatchEvent({type:"message", timeStamp:0}); +``` ### removeAllListener(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [removeAllListener9+](#removealllistener9) instead. - removeAllListener(): void Removes all event listeners for the worker thread. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [removeAllListener9+](#removealllistener9) instead. + **System capability**: SystemCapability.Utils.Lang **Example** ```js const workerInstance = new worker.Worker("workers/worker.js"); +workerInstance.addEventListener("alert", (e)=>{ + console.log("alert listener callback"); +}) workerInstance.removeAllListener(); ``` ## DedicatedWorkerGlobalScope(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [ThreadWorkerGlobalScope9+](#threadworkerglobalscope9) instead. - Implements communication between the worker thread and the host thread. The **postMessage** API is used to send messages to the host thread, and the **close** API is used to terminate the worker thread. This class inherits from [WorkerGlobalScope](#workerglobalscope). +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [ThreadWorkerGlobalScope9+](#threadworkerglobalscope9) instead. ### postMessage(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [ThreadWorkerGlobalScope9+](#threadworkerglobalscope9).postMessage9+ instead. - postMessage(messageObject: Object, options?: PostMessageOptions): void Sends a message to the host thread from the worker thread. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [ThreadWorkerGlobalScope9+](#threadworkerglobalscope9).postMessage9+ instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -1151,13 +1262,13 @@ parentPort.onmessage = function(e){ ### close(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [ThreadWorkerGlobalScope9+](#threadworkerglobalscope9).close9+ instead. - close(): void Terminates the worker thread to stop it from receiving messages. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [ThreadWorkerGlobalScope9+](#threadworkerglobalscope9).close9+ instead. + **System capability**: SystemCapability.Utils.Lang **Example** @@ -1179,20 +1290,21 @@ parentPort.onmessage = function(e) { ### onmessage(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [ThreadWorkerGlobalScope9+](#threadworkerglobalscope9).onmessage9+ instead. - -onmessage?: (event: MessageEvent\) => void +onmessage?: (this: DedicatedWorkerGlobalScope, event: MessageEvent) => void Defines the event handler to be called when the worker thread receives a message sent by the host thread through **postMessage**. The event handler is executed in the worker thread. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [ThreadWorkerGlobalScope9+](#threadworkerglobalscope9).onmessage9+ instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ----------------------------- | ---- | ------------------------ | -| event | [MessageEvent](#messageevent) | No | Message received.| +| Name| Type | Mandatory| Description | +| ------ | ------------------------------------------------------------ | ---- | ------------------------ | +| this | [DedicatedWorkerGlobalScope](#dedicatedworkerglobalscopedeprecated) | Yes | Caller. | +| event | [MessageEvent](#messageeventt) | Yes | Message received.| **Example** @@ -1214,20 +1326,21 @@ parentPort.onmessage = function(e) { ### onmessageerror(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [ThreadWorkerGlobalScope9+](#threadworkerglobalscope9).onmessageerror9+ instead. - -onmessageerror?: (event: MessageEvent\) => void +onmessageerror?: (this: DedicatedWorkerGlobalScope, event: MessageEvent) => void Defines the event handler to be called when the worker thread receives a message that cannot be deserialized. The event handler is executed in the worker thread. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [ThreadWorkerGlobalScope9+](#threadworkerglobalscope9).onmessageerror9+ instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ----------------------------- | ---- | ---------- | -| event | [MessageEvent](#messageevent) | No | Error data.| +| Name| Type | Mandatory| Description | +| ------ | ------------------------------ | ---- | ---------- | +| this | [DedicatedWorkerGlobalScope](#dedicatedworkerglobalscopedeprecated) | Yes | Caller.| +| event | [MessageEvent](#messageeventt) | Yes | Error data.| **Example** @@ -1240,7 +1353,7 @@ const workerInstance = new worker.Worker("workers/worker.js"); // worker.js import worker from '@ohos.worker'; const parentPort = worker.parentPort; -parentPort.onmessageerror= function(e) { +parentPort.onmessageerror = function(e) { console.log("worker.js onmessageerror") } ``` @@ -1252,7 +1365,7 @@ Specifies the object whose ownership needs to be transferred during data transfe **System capability**: SystemCapability.Utils.Lang -| Name | Type| Readable| Writable| Description | +| Name | Type | Readable| Writable| Description | | -------- | -------- | ---- | ---- | --------------------------------- | | transfer | Object[] | Yes | Yes | **ArrayBuffer** array used to transfer the ownership.| @@ -1263,21 +1376,21 @@ Defines the event. **System capability**: SystemCapability.Utils.Lang -| Name | Type| Readable| Writable| Description | -| --------- | -------- | ---- | ---- | ---------------------------------- | -| type | string | Yes | No | Type of the event. | -| timeStamp | number | Yes | No | Timestamp (accurate to millisecond) when the event is created.| +| Name | Type | Readable| Writable| Description | +| --------- | ------ | ---- | ---- | ---------------------------------- | +| type | string | Yes | No | Type of the event. | +| timeStamp | number | Yes | No | Timestamp (accurate to millisecond) when the event is created.| ## EventListener(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [WorkerEventListener9+](#workereventlistener9) instead. - (evt: Event): void | Promise<void> Implements event listening. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [WorkerEventListener9+](#workereventlistener9) instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** @@ -1308,38 +1421,38 @@ Provides detailed information about the exception that occurs during worker exec **System capability**: SystemCapability.Utils.Lang -| Name | Type| Readable| Writable| Description | -| -------- | -------- | ---- | ---- | -------------------- | -| message | string | Yes | No | Information about the exception.| -| filename | string | Yes | No | File where the exception is located.| -| lineno | number | Yes | No | Serial number of the line where the exception is located. | -| colno | number | Yes | No | Serial number of the column where the exception is located. | -| error | Object | Yes | No | Type of the exception. | +| Name | Type | Readable| Writable| Description | +| -------- | ------ | ---- | ---- | -------------------- | +| message | string | Yes | No | Information about the exception.| +| filename | string | Yes | No | File where the exception is located.| +| lineno | number | Yes | No | Serial number of the line where the exception is located. | +| colno | number | Yes | No | Serial number of the column where the exception is located. | +| error | Object | Yes | No | Type of the exception. | -## MessageEvent +## MessageEvent\ Holds the data transferred between worker threads. **System capability**: SystemCapability.Utils.Lang | Name| Type| Readable| Writable| Description | -| ---- | -------- | ---- | ---- | ------------------ | -| data | T | Yes | No | Data transferred between threads.| +| ---- | ---- | ---- | ---- | ------------------ | +| data | T | Yes | No | Data transferred between threads.| ## WorkerGlobalScope(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [GlobalScope9+](#globalscope9) instead. - Implements the running environment of the worker thread. The **WorkerGlobalScope** class inherits from [EventTarget](#eventtarget). +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [GlobalScope9+](#globalscope9) instead. + ### Attributes **System capability**: SystemCapability.Utils.Lang -| Name| Type | Readable| Writable| Description | +| Name| Type | Readable| Writable| Description | | ---- | ------------------------------------------------------------ | ---- | ---- | ------------------------------------- | | name | string | Yes | No | **Worker** instance specified when there is a new **Worker** instance.| | self | [WorkerGlobalScope](#workerglobalscope) & typeof globalThis | Yes | No | **WorkerGlobalScope**. | @@ -1347,20 +1460,20 @@ Implements the running environment of the worker thread. The **WorkerGlobalScope ### onerror(deprecated) -> **NOTE**
-> This API is deprecated since API version 9. You are advised to use [GlobalScope9+](#globalscope9).onerror instead. - onerror?: (ev: ErrorEvent) => void Defines the event handler to be called when an exception occurs during worker execution. The event handler is executed in the worker thread. +> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [GlobalScope9+](#globalscope9).onerror instead. + **System capability**: SystemCapability.Utils.Lang **Parameters** | Name| Type | Mandatory| Description | | ------ | ------------------------- | ---- | ---------- | -| ev | [ErrorEvent](#errorevent) | No | Error data.| +| ev | [ErrorEvent](#errorevent) | Yes | Error data.| **Example** @@ -1402,7 +1515,7 @@ Exception: When an object created through a custom class is passed, no serializa ```js // main.js import worker from '@ohos.worker'; -const workerInstance = new worker.Thread("workers/worker.js"); +const workerInstance = new worker.ThreadWorker("workers/worker.js"); workerInstance.postMessage("message from main to worker"); workerInstance.onmessage = function(d) { // When the worker thread passes obj2, data contains obj2, excluding the Init or SetName method. @@ -1414,12 +1527,9 @@ workerInstance.onmessage = function(d) { import worker from '@ohos.worker'; const parentPort = worker.workerPort; class MyModel { + name = "undefined" Init() { - this.name = "wzy" - this.age = 18 - } - SetName() { - this.name = "WZY" + this.name = "MyModel" } } parentPort.onmessage = function(d) { @@ -1460,6 +1570,7 @@ Each actor concurrently processes tasks of the main thread. For each actor, ther - To proactively destroy a worker thread, you can call **terminate()** or **parentPort.close()** of the newly created **Worker** instance. - Since API version 9, if a **Worker** instance in a non-running state (such as destroyed or being destroyed) calls an API, a business error is thrown. - Creating and terminating worker threads consume performance. Therefore, you are advised to manage available workers and reuse them. +- Do not use both **new worker.Worker** and **new worker.ThreadWorker** to create a **Worker** project. Otherwise, **Worker** functions abnormally. Since API version 9, you are advised to use [new worker.ThreadWorker](#constructor9). In API version 8 and earlier versions, you are advised to use [new worker.Worker](#constructordeprecated). ## Sample Code > **NOTE**
@@ -1589,3 +1700,4 @@ Configuration of the **build-profile.json5** file: } } ``` + diff --git a/en/application-dev/reference/apis/js-apis-xml.md b/en/application-dev/reference/apis/js-apis-xml.md index 945c5219bedb22f5efdd6f53b5d55d4cdd97f260..ec3549a4051ea6784a56be33c902fc167e1311a1 100644 --- a/en/application-dev/reference/apis/js-apis-xml.md +++ b/en/application-dev/reference/apis/js-apis-xml.md @@ -1,4 +1,4 @@ -# XML Parsing and Generation +# @ohos.xml (XML Parsing and Generation) > **NOTE** > @@ -24,10 +24,10 @@ A constructor used to create an **XmlSerializer** instance. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| buffer | ArrayBuffer \| DataView | Yes| **ArrayBuffer** or **DataView** for storing the XML information to write.| -| encoding | string | No| Encoding format.| +| Name | Type | Mandatory| Description | +| -------- | --------------------------------- | ---- | ------------------------------------------------ | +| buffer | ArrayBuffer \| DataView | Yes | **ArrayBuffer** or **DataView** for storing the XML information to write.| +| encoding | string | No | Encoding format. | **Example** @@ -48,10 +48,10 @@ Sets an attribute. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| name | string | Yes| Key of the attribute.| -| value | string | Yes| Value of the attribute.| +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | --------------- | +| name | string | Yes | Key of the attribute. | +| value | string | Yes | Value of the attribute.| **Example** @@ -60,8 +60,8 @@ let arrayBuffer = new ArrayBuffer(1024); let bufView = new DataView(arrayBuffer); let thatSer = new xml.XmlSerializer(bufView); thatSer.startElement("note"); -thatSer.setAttributes("importance", "high"); -thatSer.endElement(); +thatSer.setAttributes("importance", "high"); +thatSer.endElement(); ``` @@ -75,9 +75,9 @@ Adds an empty element. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| name | string | Yes| Name of the empty element to add.| +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------ | +| name | string | Yes | Name of the empty element to add.| **Example** @@ -117,9 +117,9 @@ Writes the start tag based on the given element name. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| name | string | Yes| Name of the element.| +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------ | +| name | string | Yes | Name of the element.| **Example** @@ -145,11 +145,11 @@ Writes the end tag of the element. let arrayBuffer = new ArrayBuffer(1024); let bufView = new DataView(arrayBuffer); let thatSer = new xml.XmlSerializer(bufView); -thatSer.setNamespace("h", "http://www.w3.org/TR/html4/"); +thatSer.setNamespace("h", "https://www.w3.org/TR/html4/"); thatSer.startElement("table"); thatSer.setAttributes("importance", "high"); thatSer.setText("Happy"); -thatSer.endElement(); // => Happy +thatSer.endElement(); // => Happy ``` @@ -163,10 +163,10 @@ Sets the namespace for an element tag. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| prefix | string | Yes| Prefix of the element and its child elements.| -| namespace | string | Yes| Namespace to set.| +| Name | Type | Mandatory| Description | +| --------- | ------ | ---- | ------------------------------ | +| prefix | string | Yes | Prefix of the element and its child elements. | +| namespace | string | Yes | Namespace to set.| **Example** @@ -174,9 +174,9 @@ Sets the namespace for an element tag. let arrayBuffer = new ArrayBuffer(1024); let thatSer = new xml.XmlSerializer(arrayBuffer); thatSer.setDeclaration(); -thatSer.setNamespace("h", "http://www.w3.org/TR/html4/"); +thatSer.setNamespace("h", "https://www.w3.org/TR/html4/"); thatSer.startElement("note"); -thatSer.endElement();// = >'\r\n'; +thatSer.endElement();// = >'\r\n'; ``` ### setComment @@ -189,9 +189,9 @@ Sets the comment. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| text | string | Yes| Comment to set.| +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | -------------------- | +| text | string | Yes | Comment to set.| **Example** @@ -214,9 +214,9 @@ Sets CDATA attributes. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| text | string | Yes| CDATA attribute to set.| +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ----------------- | +| text | string | Yes | CDATA attribute to set.| **Example** @@ -237,9 +237,9 @@ Sets **Text**. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| text | string | Yes| Content of the **Text** to set.| +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ---------------- | +| text | string | Yes | Content of the **Text** to set.| **Example** @@ -263,9 +263,9 @@ Sets **DocType**. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| text | string | Yes| Content of **DocType** to set.| +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------- | +| text | string | Yes | Content of **DocType** to set.| **Example** @@ -289,10 +289,10 @@ Creates and returns an **XmlPullParser** object. The **XmlPullParser** object pa **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| buffer | ArrayBuffer \| DataView | Yes| **ArrayBuffer** or **DataView** that contains XML text information.| -| encoding | string | No| Encoding format. Only UTF-8 is supported.| +| Name | Type | Mandatory| Description | +| -------- | --------------------------------- | ---- | ------------------------------------------ | +| buffer | ArrayBuffer \| DataView | Yes | **ArrayBuffer** or **DataView** that contains XML text information.| +| encoding | string | No | Encoding format. Only UTF-8 is supported. | **Example** @@ -324,9 +324,9 @@ Parses XML information. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| option | [ParseOptions](#parseoptions) | Yes| Options for controlling and obtaining the parsed information.| +| Name| Type | Mandatory| Description | +| ------ | ----------------------------- | ---- | -------------------------------- | +| option | [ParseOptions](#parseoptions) | Yes | Options for controlling and obtaining the parsed information.| **Example** @@ -372,13 +372,13 @@ Defines the XML parsing options. **System capability**: SystemCapability.Utils.Lang -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| supportDoctype | boolean | No| Whether to ignore **Doctype**. The default value is **false**.| -| ignoreNameSpace | boolean | No| Whether to ignore **Namespace**. The default value is **false**.| -| tagValueCallbackFunction | (name: string, value: string)=> boolean | No| Callback used to return **tagValue**.| -| attributeValueCallbackFunction | (name: string, value: string)=> boolean | No| Callback used to return **attributeValue**.| -| tokenValueCallbackFunction | (eventType: [EventType](#eventtype), value: [ParseInfo](#parseinfo))=> boolean | No| Callback used to return **tokenValue**.| +| Name | Type | Mandatory| Description | +| ------------------------------ | ------------------------------------------------------------ | ---- | --------------------------------------- | +| supportDoctype | boolean | No | Whether to ignore **Doctype**. The default value is **false**.| +| ignoreNameSpace | boolean | No | Whether to ignore **Namespace**. The default value is **false**. | +| tagValueCallbackFunction | (name: string, value: string) => boolean | No | Callback used to return **tagValue**. | +| attributeValueCallbackFunction | (name: string, value: string) => boolean | No | Callback used to return **attributeValue**. | +| tokenValueCallbackFunction | (eventType: [EventType](#eventtype), value: [ParseInfo](#parseinfo)) => boolean | No | Callback used to return **tokenValue**. | ## ParseInfo @@ -395,8 +395,8 @@ Obtains the column line number, starting from 1. **Return value** -| Type| Description| -| -------- | -------- | +| Type | Description | +| ------ | -------------- | | number | Column number obtained.| @@ -410,8 +410,8 @@ Obtains the depth of this element. **Return value** -| Type| Description| -| -------- | -------- | +| Type | Description | +| ------ | -------------------- | | number | Depth obtained.| @@ -425,8 +425,8 @@ Obtains the current line number, starting from 1. **Return value** -| Type| Description| -| -------- | -------- | +| Type | Description | +| ------ | -------------- | | number | Line number obtained.| @@ -440,8 +440,8 @@ Obtains the name of this element. **Return value** -| Type| Description| -| -------- | -------- | +| Type | Description | +| ------ | ------------------ | | string | Element name obtained.| @@ -455,8 +455,8 @@ Obtains the namespace of this element. **Return value** -| Type| Description| -| -------- | -------- | +| Type | Description | +| ------ | ------------------------ | | string | Namespace obtained.| @@ -470,8 +470,8 @@ Obtains the prefix of this element. **Return value** -| Type| Description| -| -------- | -------- | +| Type | Description | +| ------ | ------------------ | | string | Element prefix obtained.| @@ -485,8 +485,8 @@ Obtains the text of the current event. **Return value** -| Type| Description| -| -------- | -------- | +| Type | Description | +| ------ | ------------------------ | | string | Text content obtained.| @@ -500,8 +500,8 @@ Checks whether the current element is empty. **Return value** -| Type| Description| -| -------- | -------- | +| Type | Description | +| ------- | ---------------------------- | | boolean | Returns **true** if the element is empty; returns **false** otherwise.| @@ -515,8 +515,8 @@ Checks whether the current text event contains only whitespace characters. **Return value** -| Type| Description| -| -------- | -------- | +| Type | Description | +| ------- | -------------------------------------- | | boolean | Returns **true** if the text event contains only whitespace characters; returns **false** otherwise.| @@ -529,8 +529,8 @@ Obtains the number of attributes for the current start tag. **System capability**: SystemCapability.Utils.Lang **Return value** -| Type| Description| -| -------- | -------- | +| Type | Description | +| ------ | ---------------------- | | number | Number of attributes obtained.| @@ -540,16 +540,16 @@ Enumerates the events. **System capability**: SystemCapability.Utils.Lang -| Name| Value| Description| -| -------- | -------- | -------- | -| START_DOCUMENT | 0 | Indicates a start document event.| -| END_DOCUMENT | 1 | Indicates an end document event.| -| START_TAG | 2 | Indicates a start tag event.| -| END_TAG | 3 | Indicates an end tag event.| -| TEXT | 4 | Indicates a text event.| -| CDSECT | 5 | Indicates a CDATA section event.| -| COMMENT | 6 | Indicates an XML comment event.| -| DOCDECL | 7 | Indicates an XML document type declaration event.| -| INSTRUCTION | 8 | Indicates an XML processing instruction event.| -| ENTITY_REFERENCE | 9 | Indicates an entity reference event.| -| WHITESPACE | 10 | Indicates a whitespace character event.| +| Name | Value | Description | +| ---------------- | ---- | --------------------- | +| START_DOCUMENT | 0 | Indicates a start document event. | +| END_DOCUMENT | 1 | Indicates an end document event. | +| START_TAG | 2 | Indicates a start tag event. | +| END_TAG | 3 | Indicates an end tag event. | +| TEXT | 4 | Indicates a text event. | +| CDSECT | 5 | Indicates a CDATA section event. | +| COMMENT | 6 | Indicates an XML comment event. | +| DOCDECL | 7 | Indicates an XML document type declaration event.| +| INSTRUCTION | 8 | Indicates an XML processing instruction event.| +| ENTITY_REFERENCE | 9 | Indicates an entity reference event. | +| WHITESPACE | 10 | Indicates a whitespace character event. | diff --git a/en/application-dev/reference/apis/js-apis-zlib.md b/en/application-dev/reference/apis/js-apis-zlib.md index bc2a9504185453888cf8ba53416f38a44519c5a2..aa7d700534b09bb582ca96d61740fdd6ff9681b9 100644 --- a/en/application-dev/reference/apis/js-apis-zlib.md +++ b/en/application-dev/reference/apis/js-apis-zlib.md @@ -1,4 +1,4 @@ -# zlib +# @ohos.zlib The **zlib** module provides APIs for file compression and decompression. @@ -25,7 +25,7 @@ Zips a file. This API uses a promise to return the result. | Name | Type | Mandatory| Description | | ------- | ------------------- | ---- | ------------------------------------------------------------ | -| inFile | string | Yes | Path of the folder or file to zip. For details about the path, see [FA Model](js-apis-Context.md) or [Stage Model](js-apis-application-context.md).| +| inFile | string | Yes | Path of the folder or file to zip. For details about the path, see [FA Model](js-apis-inner-app-context.md) or [Stage Model](js-apis-application-context.md).| | outFile | string | Yes | Path of the zipped file. The file name extension is .zip. | | options | [Options](#options) | Yes | Optional parameters for the zip operation. | @@ -89,7 +89,7 @@ Unzips a file. This API uses a promise to return the result. | Name | Type | Mandatory| Description | | ------- | ------------------- | ---- | ------------------------------------------------------------ | -| inFile | string | Yes | Path of the folder or file to unzip. For details about the path, see [FA Model](js-apis-Context.md) or [Stage Model](js-apis-application-context.md).| +| inFile | string | Yes | Path of the folder or file to unzip. For details about the path, see [FA Model](js-apis-inner-app-context.md) or [Stage Model](js-apis-application-context.md).| | outFile | string | Yes | Path of the unzipped file. | | options | [Options](#options) | Yes | Optional parameters for the unzip operation. | @@ -131,7 +131,7 @@ Compresses a file. This API uses an asynchronous callback to return the result. | Name | Type | Mandatory| Description | | ----------------------- | ------------------- | ---- | ------------------------------------------------------------ | -| inFile | string | Yes | Path of the folder or file to compress. For details about the path, see [FA Model](js-apis-Context.md) or [Stage Model](js-apis-application-context.md).| +| inFile | string | Yes | Path of the folder or file to compress. For details about the path, see [FA Model](js-apis-inner-app-context.md) or [Stage Model](js-apis-application-context.md).| | outFile | string | Yes | Path of the compressed file. | | options | [Options](#options) | Yes | Compression parameters. | | AsyncCallback<**void**> | callback | No | Callback used to return the result. If the operation is successful, **null** is returned; otherwise, a specific error code is returned. | @@ -179,7 +179,7 @@ Compresses a file. This API uses a promise to return the result. | Name | Type | Mandatory| Description | | ------- | ------------------- | ---- | ------------------------------------------------------------ | -| inFile | string | Yes | Path of the folder or file to compress. For details about the path, see [FA Model](js-apis-Context.md) or [Stage Model](js-apis-application-context.md).| +| inFile | string | Yes | Path of the folder or file to compress. For details about the path, see [FA Model](js-apis-inner-app-context.md) or [Stage Model](js-apis-application-context.md).| | outFile | string | Yes | Path of the compressed file. | | options | [Options](#options) | Yes | Compression parameters. | @@ -229,7 +229,7 @@ Decompresses a file. This API uses an asynchronous callback to return the result | Name | Type | Mandatory| Description | | ----------------------- | ------------------- | ---- | ------------------------------------------------------------ | -| inFile | string | Yes | Path of the file to decompress. For details about the path, see [FA Model](js-apis-Context.md) or [Stage Model](js-apis-application-context.md).| +| inFile | string | Yes | Path of the file to decompress. For details about the path, see [FA Model](js-apis-inner-app-context.md) or [Stage Model](js-apis-application-context.md).| | outFile | string | Yes | Path of the decompressed file. | | options | [Options](#options) | Yes | Decompression parameters. | | AsyncCallback<**void**> | callback | No | Callback used to return the result. If the operation is successful, **null** is returned; otherwise, a specific error code is returned. | @@ -278,7 +278,7 @@ Decompress a file. This API uses a promise to return the result. | Name | Type | Mandatory| Description | | ------- | ------------------- | ---- | ------------------------------------------------------------ | -| inFile | string | Yes | Path of the file to decompress. For details about the path, see [FA Model](js-apis-Context.md) or [Stage Model](js-apis-application-context.md).| +| inFile | string | Yes | Path of the file to decompress. For details about the path, see [FA Model](js-apis-inner-app-context.md) or [Stage Model](js-apis-application-context.md).| | outFile | string | Yes | Path of the decompressed file. | | options | [Options](#options) | Yes | Decompression parameters. | diff --git a/en/application-dev/reference/arkui-js/js-components-basic-xcomponent.md b/en/application-dev/reference/arkui-js/js-components-basic-xcomponent.md index bb5389d410eb12c80575d55d0ea74dd4b33efa05..639f9f1d575f6d5f1aa183ad74f6d1d2a666dc27 100644 --- a/en/application-dev/reference/arkui-js/js-components-basic-xcomponent.md +++ b/en/application-dev/reference/arkui-js/js-components-basic-xcomponent.md @@ -1,18 +1,18 @@ # xcomponent - > **NOTE** - > - > This component is supported since API version 9. Updates will be marked with a superscript to indicate their earliest API version. +> **NOTE** +> +> This component is supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version. - The **\** displays the components to which the EGL/OpenGLES or media data is written. +The **\** displays the components to which the EGL/OpenGLES or media data is written. ## Required Permissions - None +None ## Child Components - Not supported +Not supported ## Attributes diff --git a/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001212378432.gif b/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001212378432.gif deleted file mode 100644 index b0667769e77a2a2d1b131736bdce96489b7e064e..0000000000000000000000000000000000000000 Binary files a/en/application-dev/reference/arkui-ts/figures/en-us_image_0000001212378432.gif and /dev/null differ diff --git a/en/application-dev/reference/arkui-ts/figures/progress.png b/en/application-dev/reference/arkui-ts/figures/progress.png new file mode 100644 index 0000000000000000000000000000000000000000..d50f4b47628b425b09f93bc9a44853ad79e12631 Binary files /dev/null and b/en/application-dev/reference/arkui-ts/figures/progress.png differ diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-progress.md b/en/application-dev/reference/arkui-ts/ts-basic-components-progress.md index e6f26710f25a869938b44414ae6626818cebdaee..98d9d6e2b1a2d0839071d2f72689d2cae6cb15ea 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-progress.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-progress.md @@ -22,38 +22,39 @@ Creates a progress indicator. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| value | number | Yes| Current progress.| +| value | number | Yes| Current progress. If the value is less than 0, the value **0** is used. If the value is greater than that of **total**, the value of **total** is used.| | total | number | No| Total progress.
Default value: **100**| -| type8+ | ProgressType | No| Type of the progress indicator.
Default value: **ProgressType.Linear**| -| styledeprecated | ProgressStyle | No| Style the progress indicator.
This parameter is deprecated since API version 8. You are advised to use **type** instead.
Default value: **ProgressStyle.Linear**| +| type8+ | [ProgressType](#progresstype) | No| Style the progress indicator.
Default value: **ProgressType.Linear**| +| styledeprecated | [ProgressStyle](#progressstyle) | No| Type of the progress indicator.
This parameter is deprecated since API version 8. You are advised to use **type** instead.
Default value: **ProgressStyle.Linear**| ## ProgressType | Name| Description| | -------- | -------- | -| Linear | Linear type.| +| Linear | Linear type. Since API version 9, the progress indicator adaptively switches to vertical layout if the height is greater than the width.| | Ring8+ | Indeterminate ring type. The ring fills up as the progress increases.| | Eclipse8+ | Eclipse type, which visualizes the progress in a way similar to the moon waxing from new to full.| -| ScaleRing8+ | Determinate ring type, which is similar to the clock scale.| -| Capsule8+ | Capsule type. At both ends, the progress indicator works in a same manner as the eclipse type. In the middle part of the capsule, the progress indicator works in a same manner as the linear type.| +| ScaleRing8+ | Determinate ring type, which is similar to the clock scale. Since API version 9, when the outer circles of scales overlap, the progress indicator is automatically converted to the **Ring** type.| +| Capsule8+ | Capsule type. At both ends, the progress indicator works in a same manner as the eclipse type. In the middle part of the capsule, the progress indicator works in a same manner as the linear type. If the height is greater than the width, the progress indicator adaptively switches to vertical layout.| ## ProgressStyle | Name | Description | | --------- | ------------------------------------------------------------ | -| Linear | Linear type. | -| Ring | Indeterminate ring type. The ring fills up as the progress increases. | +| Linear | Linear type.| +| Ring | Indeterminate ring type. The ring fills up as the progress increases.| | Eclipse | Eclipse type, which visualizes the progress in a way similar to the moon waxing from new to full.| -| ScaleRing | Determinate ring type, which is similar to the clock scale. | -| Capsule | Capsule type. At both ends, the progress indicator works in a same manner as the eclipse type. In the middle part of the capsule, the progress indicator works in a same manner as the linear type.| +| ScaleRing | Determinate ring type, which is similar to the clock scale.| +| Capsule | Capsule type. At both ends, the progress indicator works in a same manner as the eclipse type. In the middle part of the capsule, the progress indicator works in a same manner as the linear type. If the height is greater than the width, the progress indicator adaptively switches to vertical layout.| ## Attributes | Name| Type| Description| | -------- | -------- | -------- | -| value | number | Current progress.| +| value | number | Current progress. If the value is less than 0, the value **0** is used. If the value is greater than that of **total**, the value of **total** is used. Invalid values do not take effect.| | color | [ResourceColor](ts-types.md#resourcecolor) | Background color of the progress indicator.| -| style8+ | {
strokeWidth?: [Length](ts-types.md#length),
scaleCount?: number,
scaleWidth?: [Length](ts-types.md#length)
} | Component style.
- **strokeWidth**: stroke width of the progress indicator.
- **scaleCount**: number of divisions on the determinate ring-type process indicator.
- **scaleWidth**: scale bar width of the determinate ring-type process indicator. If it is greater than the progress indicator width, the default value is used instead.| +| backgroundColor | [ResourceColor](ts-types.md#resourcecolor) | Background color of the progress indicator.| +| style8+ | {
strokeWidth?: [Length](ts-types.md#length),
scaleCount?: number,
scaleWidth?: [Length](ts-types.md#length)
} | Component style.
- **strokeWidth**: stroke width of the progress indicator. It cannot be set in percentage. Since API version 9, if the stroke width of the ring progress bar is greater than or equal to the radius, the width is changed to half of the radius.
Default value: **4.0Vp**
- **scaleCount**: number of divisions on the determinate ring-type process indicator.
Default value: **120**
- **scaleWidth**: scale width of the ring progress bar. It cannot be set in percentage. If it is greater than the value of **strokeWidth**, the default scale width is used.
Default value: **2.0Vp**| ## Example @@ -69,6 +70,7 @@ struct ProgressExample { Progress({ value: 10, type: ProgressType.Linear }).width(200) Progress({ value: 20, total: 150, type: ProgressType.Linear }).color(Color.Grey).value(50).width(200) + Text('Eclipse Progress').fontSize(9).fontColor(0xCCCCCC).width('90%') Row({ space: 40 }) { Progress({ value: 10, type: ProgressType.Eclipse }).width(100) @@ -83,6 +85,16 @@ struct ProgressExample { .style({ strokeWidth: 15, scaleCount: 15, scaleWidth: 5 }) } + // scaleCount vs. scaleWidth + Row({ space: 40 }) { + Progress({ value: 20, total: 150, type: ProgressType.ScaleRing }) + .color(Color.Grey).value(50).width(100) + .style({ strokeWidth: 20, scaleCount: 20, scaleWidth: 5 }) + Progress({ value: 20, total: 150, type: ProgressType.ScaleRing }) + .color(Color.Grey).value(50).width(100) + .style({ strokeWidth: 20, scaleCount: 30, scaleWidth: 3 }) + } + Text('Ring Progress').fontSize(9).fontColor(0xCCCCCC).width('90%') Row({ space: 40 }) { Progress({ value: 10, type: ProgressType.Ring }).width(100) @@ -105,4 +117,4 @@ struct ProgressExample { } ``` -![en-us_image_0000001212378432](figures/en-us_image_0000001212378432.gif) +![progress](figures/progress.png) diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-web.md b/en/application-dev/reference/arkui-ts/ts-basic-components-web.md index 0c7861677bbfeb4f67f1c83b2c2fcf4286db02b7..0e9b480a1326760e25e56bca698bd8e8581bbb68 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-web.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-web.md @@ -672,6 +672,316 @@ Sets whether to enable web debugging. } ``` +### blockNetwork9+ + +blockNetwork(block: boolean) + +Sets whether to block online downloads. + +**Parameters** + +| Name| Type| Mandatory| Default Value| Description | +| ------ | -------- | ---- | ------ | ----------------------------------- | +| block | boolean | Yes | false | Whether to block online downloads.| + +**Example** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + @State block: boolean = true + build() { + Column() { + Web({ src: 'www.example.com', controller: this.controller }) + .blockNetwork(this.block) + } + } + } + ``` + +### defaultFixedFontSize9+ + +defaultFixedFontSize(size: number) + +Sets the default fixed font size of the web page. + +**Parameters** + +| Name| Type| Mandatory| Default Value| Description | +| ------ | -------- | ---- | ------ | ---------------------------- | +| size | number | Yes | 13 | Default fixed font size of the web page. The value is a non-negative integer ranging from 1 to 72. If the value is less than 1, the value 1 is used. If the value is greater than 72, the value 72 is used.| + +**Example** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + @State size: number = 16 + build() { + Column() { + Web({ src: 'www.example.com', controller: this.controller }) + .defaultFixedFontSize(this.size) + } + } + } + ``` + +### defaultFontSize9+ + +defaultFontSize(size: number) + +Sets the default font size of the web page. + +**Parameters** + +| Name| Type| Mandatory| Default Value| Description | +| ------ | -------- | ---- | ------ | ------------------------ | +| size | number | Yes | 16 | Default font size of the web page. The value is a non-negative integer ranging from 1 to 72. If the value is less than 1, the value 1 is used. If the value is greater than 72, the value 72 is used.| + +**Example** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + @State size: number = 13 + build() { + Column() { + Web({ src: 'www.example.com', controller: this.controller }) + .defaultFontSize(this.size) + } + } + } + ``` + +### minFontSize9+ + +minFontSize(size: number) + +Sets the minimum font size of the web page. + +**Parameters** + +| Name| Type| Mandatory| Default Value| Description | +| ------ | -------- | ---- | ------ | ------------------------ | +| size | number | Yes | 8 | Minimum font size of the web page. The value is a non-negative integer ranging from 1 to 72. If the value is less than 1, the value 1 is used. If the value is greater than 72, the value 72 is used.| + +**Example** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + @State size: number = 13 + build() { + Column() { + Web({ src: 'www.example.com', controller: this.controller }) + .minFontSize(this.size) + } + } + } + ``` + +### webFixedFont9+ + +webFixedFont(family: string) + +Sets the fixed font family of the web page. + +**Parameters** + +| Name| Type| Mandatory| Default Value | Description | +| ------ | -------- | ---- | --------- | ---------------------------- | +| family | string | Yes | monospace | Fixed font family of the web page.| + +**Example** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + @State family: string = "monospace" + build() { + Column() { + Web({ src: 'www.example.com', controller: this.controller }) + .webFixedFont(this.family) + } + } + } + ``` + +### webSansSerifFont9+ + +webSansSerifFont(family: string) + +Sets the sans serif font family of the web page. + +**Parameters** + +| Name| Type| Mandatory| Default Value | Description | +| ------ | -------- | ---- | ---------- | --------------------------------- | +| family | string | Yes | sans-serif | Sans serif font family of the web page.| + +**Example** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + @State family: string = "sans-serif" + build() { + Column() { + Web({ src: 'www.example.com', controller: this.controller }) + .webSansSerifFont(this.family) + } + } + } + ``` + +### webSerifFont9+ + +webSerifFont(family: string) + +Sets the serif font family of the web page. + +**Parameters** + +| Name| Type| Mandatory| Default Value| Description | +| ------ | -------- | ---- | ------ | ---------------------------- | +| family | string | Yes | serif | Serif font family of the web page.| + +**Example** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + @State family: string = "serif" + build() { + Column() { + Web({ src: 'www.example.com', controller: this.controller }) + .webSerifFont(this.family) + } + } + } + ``` + +### webStandardFont9+ + +webStandardFont(family: string) + +Sets the standard font family of the web page. + +**Parameters** + +| Name| Type| Mandatory| Default Value | Description | +| ------ | -------- | ---- | ---------- | ------------------------------- | +| family | string | Yes | sans serif | Standard font family of the web page.| + +**Example** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + @State family: string = "sans-serif" + build() { + Column() { + Web({ src: 'www.example.com', controller: this.controller }) + .webStandardFont(this.family) + } + } + } + ``` + +### webFantasyFont9+ + +webFantasyFont(family: string) + +Sets the fantasy font family of the web page. + +**Parameters** + +| Name| Type| Mandatory| Default Value | Description | +| ------ | -------- | ---- | ------- | ------------------------------ | +| family | string | Yes | fantasy | Fantasy font family of the web page.| + +**Example** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + @State family: string = "fantasy" + build() { + Column() { + Web({ src: 'www.example.com', controller: this.controller }) + .webFantasyFont(this.family) + } + } + } + ``` + +### webCursiveFont9+ + +webCursiveFont(family: string) + +Sets the cursive font family of the web page. + +**Parameters** + +| Name| Type| Mandatory| Default Value | Description | +| ------ | -------- | ---- | ------- | ------------------------------ | +| family | string | Yes | cursive | Cursive font family of the web page.| + +**Example** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + @State family: string = "cursive" + build() { + Column() { + Web({ src: 'www.example.com', controller: this.controller }) + .webCursiveFont(this.family) + } + } + } + ``` + ## Events The universal events are not supported. @@ -1635,7 +1945,7 @@ Invoked when an SSL error occurs during resource loading. ### onClientAuthenticationRequest9+ -onClientAuthenticationRequest(callback: (event: {handler : ClientAuthenticationHandler, host : string, port : number, keyTypes : Array, issuers : Array}) => void) +onClientAuthenticationRequest(callback: (event: {handler : ClientAuthenticationHandler, host : string, port : number, keyTypes : Array\, issuers : Array\}) => void) Invoked when an SSL client certificate request is received. @@ -1646,7 +1956,7 @@ Invoked when an SSL client certificate request is received. | handler | [ClientAuthenticationHandler](#clientauthenticationhandler9) | The user's operation. | | host | string | Host name of the server that requests a certificate. | | port | number | Port number of the server that requests a certificate. | -| keyTypes | Array\ | Acceptable asymmetric private key types. | +| keyTypes | Array\ | Acceptable asymmetric private key types. | | issuers | Array\ | Issuer of the certificate that matches the private key.| **Example** @@ -1978,14 +2288,14 @@ Registers a callback for window creation. @Entry @Component struct WebComponent { - controller:WebController = new WebController() + controller: web_webview.WebviewController = new web_webview.WebviewController() build() { Column() { Web({ src:'www.example.com', controller: this.controller }) .multiWindowAccess(true) .onWindowNew((event) => { console.log("onWindowNew...") - var popController: WebController = new WebController() + var popController: web_webview.WebviewController = new web_webview.WebviewController() event.handler.setWebController(popController) }) } @@ -2059,9 +2369,184 @@ Invoked to notify the caller of the search result on the web page. } ``` +### onDataResubmitted9+ + +onDataResubmitted(callback: (event: {handler: DataResubmissionHandler}) => void) + +Invoked when the web form data is resubmitted. + +**Parameters** + +| Name | Type | Description | +| ------- | ---------------------------------------------------- | ---------------------- | +| handler | [DataResubmissionHandler](#dataresubmissionhandler9) | Handler for resubmitting web form data.| + +**Example** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + build() { + Column() { + Web({ src:'www.example.com', controller: this.controller }) + .onDataResubmitted((event) => { + console.log('onDataResubmitted') + event.handler.resend(); + }) + } + } + } + ``` + +### onPageVisible9+ + +onPageVisible(callback: (event: {url: string}) => void) + +Invoked when the old page is not displayed and the new page is about to be visible. + +**Parameters** + +| Name| Type| Description | +| ------ | -------- | ------------------------------------------------- | +| url | string | URL of the new page that is able to be visible when the old page is not displayed.| + +**Example** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + build() { + Column() { + Web({ src:'www.example.com', controller: this.controller }) + .onPageVisible((event) => { + console.log('onPageVisible url:' + event.url) + }) + } + } + } + ``` + +### onInterceptKeyEvent9+ + +onInterceptKeyEvent(callback: (event: KeyEvent) => boolean) + +Invoked when the key event is intercepted, before being consumed by the Webview. + +**Parameters** + +| Name| Type | Description | +| ------ | ------------------------------------------------------- | -------------------- | +| event | [KeyEvent](ts-universal-events-key.md#keyevent) | Key event that is triggered.| + +**Return value** + +| Type | Description | +| ------- | ------------------------------------------------------------ | +| boolean | Whether to continue to transfer the key event to the Webview kernel.| + +**Example** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + build() { + Column() { + Web({ src:'www.example.com', controller: this.controller }) + .onInterceptKeyEvent((event) => { + if (event.keyCode == 2017 || event.keyCode == 2018) { + console.info(`onInterceptKeyEvent get event.keyCode ${event.keyCode}`) + return true; + } + return false; + }) + } + } + } + ``` + +### onTouchIconUrlReceived9+ + +onTouchIconUrlReceived(callback: (event: {url: string, precomposed: boolean}) => void) + +Invoked when an apple-touch-icon URL is received. + +**Parameters** + +| Name | Type| Description | +| ----------- | -------- | ---------------------------------- | +| url | string | Received apple-touch-icon URL.| +| precomposed | boolean | Whether the apple-touch-icon is precomposed.| + +**Example** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + build() { + Column() { + Web({ src:'www.baidu.com', controller: this.controller }) + .onTouchIconUrlReceived((event) => { + console.log('onTouchIconUrlReceived:' + JSON.stringify(event)) + }) + } + } + } + ``` + +### onFaviconReceived9+ + +onFaviconReceived(callback: (event: {favicon: image.PixelMap}) => void) + +Invoked when this web page receives a new favicon. + +**Parameters** + +| Name | Type | Description | +| ------- | ---------------------------------------------- | ----------------------------------- | +| favicon | [PixelMap](../apis/js-apis-image.md#pixelmap7) | **PixelMap** object of the received favicon.| + +**Example** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + import image from "@ohos.multimedia.image" + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + @State icon: image.PixelMap = undefined; + build() { + Column() { + Web({ src:'www.example.com', controller: this.controller }) + .onFaviconReceived((event) => { + console.log('onFaviconReceived:' + JSON.stringify(event)) + this.icon = event.favicon; + }) + } + } + } + ``` + ## ConsoleMessage -Implements the **ConsoleMessage** object. For details about the sample code, see [onConsole](#onconsole). +Implements the **ConsoleMessage** object. For the sample code, see [onConsole](#onconsole). ### getLineNumber @@ -2113,7 +2598,7 @@ Obtains the path and name of the web page source file. ## JsResult -Implements the **JsResult** object, which indicates the result returned to the **\** component to indicate the user operation performed in the dialog box. For details about the sample code, see [onAlert Event](#onalert). +Implements the **JsResult** object, which indicates the result returned to the **\** component to indicate the user operation performed in the dialog box. For the sample code, see [onAlert Event](#onalert). ### handleCancel @@ -2141,7 +2626,7 @@ Notifies the **\** component of the user's confirm operation in the dialog ## FullScreenExitHandler9+ -Implements a **FullScreenExitHandler** object for listening for exiting full screen mode. For the sample code, see [onFullScreenEnter](#onfullscreenenter9). +Implements a **FullScreenExitHandler** object for listening for exiting full screen mode. For the sample code, see onFullScreenEnter. ### exitFullScreen9+ @@ -2151,23 +2636,23 @@ Exits full screen mode. ## ControllerHandler9+ -Implements a **WebController** object for new **\** components. For the sample code, see [onWindowNew](#onwindownew9). +Implements a **WebviewController** object for new **\** components. For the sample code, see [onWindowNew](#onwindownew9). ### setWebController9+ -setWebController(controller: WebController): void +setWebController(controller: WebviewController): void -Sets a **WebController** object. +Sets a **WebviewController** object. **Parameters** | Name | Type | Mandatory | Default Value | Description | | ---------- | ------------- | ---- | ---- | ------------------------- | -| controller | WebController | Yes | - | **WebController** object to set.| +| controller | [WebviewController](../apis/js-apis-webview.md#webviewcontroller) | Yes | - | **WebviewController** object of the **\** component.| ## WebResourceError -Implements the **WebResourceError** object. For details about the sample code, see [onErrorReceive](#onerrorreceive). +Implements the **WebResourceError** object. For the sample code, see [onErrorReceive](#onerrorreceive). ### getErrorCode @@ -2195,7 +2680,7 @@ Obtains error information about resource loading. ## WebResourceRequest -Implements the **WebResourceRequest** object. For details about the sample code, see [onErrorReceive](#onerrorreceive). +Implements the **WebResourceRequest** object. For the sample code, see [onErrorReceive](#onerrorreceive). ### getRequestHeader @@ -2269,7 +2754,7 @@ Describes the request/response header returned by the **\** component. ## WebResourceResponse -Implements the **WebResourceResponse** object. For details about the sample code, see [onHttpErrorReceive](#onhttperrorreceive). +Implements the **WebResourceResponse** object. For the sample code, see [onHttpErrorReceive](#onhttperrorreceive). ### getReasonMessage @@ -2417,7 +2902,7 @@ Sets the status code of the resource response. ## FileSelectorResult9+ -Notifies the **\** component of the file selection result. For details about the sample code, see [onShowFileSelector](#onshowfileselector9). +Notifies the **\** component of the file selection result. For the sample code, see [onShowFileSelector](#onshowfileselector9). ### handleFileList9+ @@ -2433,7 +2918,7 @@ Instructs the **\** component to select a file. ## FileSelectorParam9+ -Implements the **FileSelectorParam** object. For details about the sample code, see [onShowFileSelector](#onshowfileselector9). +Implements the **FileSelectorParam** object. For the sample code, see [onShowFileSelector](#onshowfileselector9). ### getTitle9+ @@ -2485,7 +2970,7 @@ Checks whether multimedia capabilities are invoked. ## HttpAuthHandler9+ -Implements the **HttpAuthHandler** object. For details about the sample code, see [onHttpAuthRequest](#onhttpauthrequest9). +Implements the **HttpAuthHandler** object. For the sample code, see [onHttpAuthRequest](#onhttpauthrequest9). ### cancel9+ @@ -2526,7 +3011,7 @@ Uses the password cached on the server for authentication. ## SslErrorHandler9+ -Implements an **SslErrorHandler** object. For details about the sample code, see [onSslErrorEventReceive Event](#onsslerroreventreceive9). +Implements an **SslErrorHandler** object. For the sample code, see [onSslErrorEventReceive Event](#onsslerroreventreceive9). ### handleCancel9+ @@ -2542,7 +3027,7 @@ Continues using the SSL certificate. ## ClientAuthenticationHandler9+ -Implements a **ClientAuthenticationHandler** object returned by the **\** component. For details about the sample code, see [onClientAuthenticationRequest](#onclientauthenticationrequest9). +Implements a **ClientAuthenticationHandler** object returned by the **\** component. For the sample code, see [onClientAuthenticationRequest](#onclientauthenticationrequest9). ### confirm9+ @@ -2571,7 +3056,7 @@ Ignores this request. ## PermissionRequest9+ -Implements the **PermissionRequest** object. For details about the sample code, see [onPermissionRequest](#onpermissionrequest9). +Implements the **PermissionRequest** object. For the sample code, see [onPermissionRequest](#onpermissionrequest9). ### deny9+ @@ -2617,7 +3102,7 @@ Grants the permission for resources requested by the web page. ## WebContextMenuParam9+ -Provides the information about the context menu that is displayed when a page element is long pressed. For details about the sample code, see [onContextMenuShow](#oncontextmenushow9). +Provides the information about the context menu that is displayed when a page element is long pressed. For the sample code, see [onContextMenuShow](#oncontextmenushow9). ### x9+ @@ -2655,9 +3140,9 @@ Obtains the URL of the destination link. | ------ | ------------------------- | | string | If it is a link that is being long pressed, the URL that has passed the security check is returned.| -### getUnfilterendLinkUrl9+ +### getUnfilteredLinkUrl9+ -getUnfilterendLinkUrl(): string +getUnfilteredLinkUrl(): string Obtains the URL of the destination link. @@ -2693,7 +3178,7 @@ Checks whether image content exists. ## WebContextMenuResult9+ -Implements the response event executed when a context menu is displayed. For details about the sample code, see [onContextMenuShow](#oncontextmenushow9). +Implements a **WebContextMenuResult** object. For the sample code, see onContextMenuShow. ### closeContextMenu9+ @@ -2709,7 +3194,7 @@ Copies the image specified in **WebContextMenuParam**. ## JsGeolocation -Implements the **PermissionRequest** object. For details about the sample code, see [onGeolocationShow Event](#ongeolocationshow). +Implements the **PermissionRequest** object. For the sample code, see [onGeolocationShow Event](#ongeolocationshow). ### invoke @@ -2727,7 +3212,7 @@ Sets the geolocation permission status of a web page. ## WebController -Implements a **WebController** object to control the behavior of the **\** component. A **WebController** can control only one **\** component, and the APIs in the **WebController** can be invoked only after it has been bound to the target **\** component. +Implements a **WebController** to control the behavior of the **\** component. A **WebController** can control only one **\** component, and the APIs in the **WebController** can be invoked only after it has been bound to the target **\** component. ### Creating an Object @@ -4008,7 +4493,7 @@ Searches for and highlights the next match. ``` ## HitTestValue9+ -Implements the **HitTestValue** object. For details about the sample code, see [getHitTestValue](#gethittestvalue9). +Implements the **HitTestValue** object. For the sample code, see [getHitTestValue](#gethittestvalue9). ### getType9+ getType(): HitTestType @@ -4528,7 +5013,7 @@ Implements the **WebDataBase** object. static existHttpAuthCredentials(): boolean -Checks whether any saved HTTP authentication credentials exist. This API returns the result synchronously. +Checks whether any saved HTTP authentication credentials exist. This API returns the result synchronously. **Return value** @@ -4591,14 +5076,14 @@ Deletes all HTTP authentication credentials saved in the cache. This API returns static getHttpAuthCredentials(host: string, realm: string): Array\ -Retrieves HTTP authentication credentials for a given host and domain. This API returns the result synchronously. +Retrieves HTTP authentication credentials for a given host and realm. This API returns the result synchronously. **Parameters** | Name | Type | Mandatory | Default Value | Description | | ----- | ------ | ---- | ---- | ---------------- | -| host | string | Yes | - | Host for which you want to obtain the HTTP authentication credentials.| -| realm | string | Yes | - | Realm for which you want to obtain the HTTP authentication credentials. | +| host | string | Yes | - | Host to which HTTP authentication credentials apply.| +| realm | string | Yes | - | Realm to which HTTP authentication credentials apply. | **Return value** @@ -4644,7 +5129,7 @@ Saves HTTP authentication credentials for a given host and realm. This API retur | Name | Type | Mandatory | Default Value | Description | | -------- | ------ | ---- | ---- | ---------------- | -| host | string | Yes | - | Host for which you want to obtain the HTTP authentication credentials.| +| host | string | Yes | - | Host to which HTTP authentication credentials apply.| | realm | string | Yes | - | Realm to which HTTP authentication credentials apply. | | username | string | Yes | - | User name. | | password | string | Yes | - | Password. | @@ -5374,8 +5859,8 @@ Stores this web page. This API uses an asynchronous callback to return the resul | Name | Type | Mandatory | Description | | -------- | ---------------------------------------- | ---- | ----------------------------------- | -| baseName | string | Yes| Save path. The value cannot be null.| -| autoName | boolean | Yes| Whether to automatically generate a file name.
The value **false** means not to automatically generate a file name.
The value **true** means to automatically generate a file name based on the URL of current page and the **baseName** value. In this case, **baseName** is regarded as a directory.| +| baseName | string | Yes| Save path. The value cannot be null. +| autoName | boolean | Yes| Whether to automatically generate a file name.
The value **false** means not to automatically generate a file name.
The value **true** means to automatically generate a file name based on the URL of current page and the **baseName** value. In this case, **baseName** is regarded as a directory. | callback | AsyncCallback | Yes | Callback used to return the save path if the operation is successful and null otherwise.| **Example** @@ -5414,8 +5899,8 @@ Stores this web page. This API uses a promise to return the result. | Name | Type | Mandatory | Description | | -------- | ---------------------------------------- | ---- | ----------------------------------- | -| baseName | string | Yes| Save path. The value cannot be null.| -| autoName | boolean | Yes| Whether to automatically generate a file name.
The value **false** means not to automatically generate a file name.
The value **true** means to automatically generate a file name based on the URL of current page and the **baseName** value. In this case, **baseName** is regarded as a directory.| +| baseName | string | Yes| Save path. The value cannot be null. +| autoName | boolean | Yes| Whether to automatically generate a file name.
The value **false** means not to automatically generate a file name.
The value **true** means to automatically generate a file name based on the URL of current page and the **baseName** value. In this case, **baseName** is regarded as a directory. **Return value** @@ -5670,3 +6155,61 @@ Sets the message port in this object. For the complete sample code, see [postMes } } ``` + +## DataResubmissionHandler9+ + +Implements the **DataResubmissionHandler** for resubmitting or canceling the web form data. + +### resend9+ + +resend(): void + +Resends the web form data. + +**Example** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + build() { + Column() { + Web({ src:'www.example.com', controller: this.controller }) + .onDataResubmitted((event) => { + console.log('onDataResubmitted') + event.handler.resend(); + }) + } + } + } + ``` + +### cancel9+ + +cancel(): void + +Cancels the resending of web form data. + +**Example** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + build() { + Column() { + Web({ src:'www.example.com', controller: this.controller }) + .onDataResubmitted((event) => { + console.log('onDataResubmitted') + event.handler.cancel(); + }) + } + } + } + ``` diff --git a/en/application-dev/reference/errorcodes/Readme-EN.md b/en/application-dev/reference/errorcodes/Readme-EN.md index 16157622d51a7b8e0331202c363a3abaa1ab24a2..752470eb0b26c90762b219f57d5f5b7bbc312ef1 100644 --- a/en/application-dev/reference/errorcodes/Readme-EN.md +++ b/en/application-dev/reference/errorcodes/Readme-EN.md @@ -3,9 +3,13 @@ - Ability Framework - [Ability Error Codes](errorcode-ability.md) - [Distributed Scheduler Error Codes](errorcode-DistributedSchedule.md) + - [Form Error Codes](errorcode-form.md) - Bundle Management - [Bundle Error Codes](errorcode-bundle.md) - [zlib Error Codes](errorcode-zlib.md) +- Common Event and Notification + - [Event Error Codes](errorcode-CommonEventService.md) + - [DistributedNotificationService Error Codes](errorcode-DistributedNotificationService.md) - UI Page - [promptAction Error Codes](errorcode-promptAction.md) - [Router Error Codes](errorcode-router.md) @@ -15,6 +19,7 @@ - [Window Error Codes](errorcode-window.md) - Media - [Audio Error Codes](errorcode-audio.md) + - [Media Error Codes](errorcode-media.md) - [AVSession Management Error Codes](errorcode-avsession.md) - Resource Management - [I18N Error Codes](errorcode-i18n.md) @@ -29,20 +34,38 @@ - [HUKS Error Codes](errorcode-huks.md) - Data Management - [RDB Error Codes](errorcode-data-rdb.md) + - [Distributed KV Store Error Codes](errorcode-distributedKVStore.md) - [Preferences Error Codes](errorcode-preferences.md) - Network Management - [Upload and Download Error Codes](errorcode-request.md) +- Connectivity + - [NFC Error Codes](errorcode-nfc.md) + - [RPC Error Codes](errorcode-rpc.md) - Basic Features + - [Accessibility Error Codes](errorcode-accessibility.md) - [FaultLogger Error Codes](errorcode-faultlogger.md) + - [Application Event Logging Error Codes](errorcode-hiappevent.md) + - [HiSysEvent Error Codes](errorcode-hisysevent.md) + - [HiDebug Error Codes](errorcode-hiviewdfx-hidebug.md) + - [Input Method Framework Error Codes](errorcode-inputmethod-framework.md) + - [Pasteboard Error Codes](errorcode-pasteboard.md) + - [Screen Lock Management Error Codes](errorcode-screenlock.md) + - [Webview Error Codes](errorcode-webview.md) - Account Management - [Account Error Codes](errorcode-account.md) - [App Account Error Codes](errorcode-app-account.md) - Device Management + - [Power Consumption Statistics Error Codes](errorcode-batteryStatistics.md) + - [Brightness Error Codes](errorcode-brightness.md) + - [Power Manager Error Codes](errorcode-power.md) + - [Running Lock Error Codes](errorcode-runninglock.md) + - [Thermal Manager Error Codes](errorcode-thermal.md) - [Device Management Error Codes](errorcode-device-manager.md) + - [Location Subsystem Error Codes](errorcode-geoLocationManager.md) - [Screen Hopping Error Codes](errorcode-multimodalinput.md) - [Sensor Error Codes](errorcode-sensor.md) - [Vibrator Error Codes](errorcode-vibrator.md) - [System Parameter Error Codes](errorcode-system-parameterV9.md) -- Language Base Class Library - - [Buffer Error Codes](errorcode-buffer.md) - - [containers Error Codes](errorcode-containers.md) + - [USB Error Codes](errorcode-usb.md) +- Language Base Class Library + - [Utils Error Codes](errorcode-utils.md) diff --git a/en/application-dev/reference/errorcodes/errorcode-CommonEventService.md b/en/application-dev/reference/errorcodes/errorcode-CommonEventService.md new file mode 100644 index 0000000000000000000000000000000000000000..be39f168e05c7b753f20ce07481d35b32f8df032 --- /dev/null +++ b/en/application-dev/reference/errorcodes/errorcode-CommonEventService.md @@ -0,0 +1,127 @@ +# Event Error Codes + +## 1500001 Want Action Is Null + +**Error Message** +Want action is null + +**Description** +This error code is reported when the **Action** attribute in the **want** is null for the event to send. + +**Possible Causes** +The **Action** attribute in the **want** is null for the event to send. + +**Solution** +Make sure the **Action** attribute in the **want** is not null. + +## 1500002 Failed to Send Common Events from a Sandbox Application + +**Error Message** +sandbox application can not send common event + +**Description** +This error code is reported when an attempt is made to send a common event from a sandbox application. + +**Possible Causes** +Common events from a sandbox application are blocked. + +**Solution** +Check whether the application used to send a common event is a sandbox application. If so, switch to another application. + +## 1500003 Event Sending Frequency Is Too High + +**Error Message** +common event send frequency too high + +**Description** +This error code is reported when the application sends common events too frequently. + +**Possible Causes** +The number of common events sent by the application in a given time frame has reached the maximum. + +**Solution** +Do not send common events too frequently. + +## 1500004 Failed to Send System Common Events + +**Error Message** +not System services or System app + +**Description** +This error code is reported when the application cannot send system common events. + +**Possible Causes** +The application is not a system application or system service. + +**Solution** +Make sure the application to send system common events is a system application or system service. + +## 1500005 Subscriber Not Found + +**Error Message** +subscriber can not found + +**Description** +This error code is reported when the subscriber cannot be found. + +**Possible Causes** +The subscriber is deleted. + +**Solution** +Check whether the subscription has already been canceled. If the subscription has been canceled, the subscriber is deleted. + +## 1500006 Invalid User ID + +**Error Message** +usreId is invalid + +**Description** +This error code is reported when the user ID is invalid. + +**Possible Causes** +The user ID is different from the system user ID, or the application is not a system application or subsystem process. + +**Solution** +Check whether the current user ID is the same as the system user ID. If they are different, check whether the application is a system application or subsystem process + +## 1500007 Failed to Send a Request Through IPC + +**Error Message** +message send error + +**Description** +This error code is reported when the attempt to send a request through IPC fails. + +**Possible Causes** +The connection object fails to be created. + +**Solution** +Do not set up connections frequently. Try again later. + +## 1500008 Failed to Read Data + +**Error Message** +CEMS error + +**Description** +This error code is reported when an error occurs on the server. + +**Possible Causes** +A service exception occurs when the server processes data. + +**Solution** +Try again later. + +## 1500009 System Error + +**Error Message** +system error + +**Description** +This error code is reported when an exception occurs in the system during service processing, for example, when the current system time fails to be obtained. + +**Possible Causes** +A system fault occurs. + +**Solution** +Try again later. diff --git a/en/application-dev/reference/errorcodes/errorcode-DistributedNotificationService.md b/en/application-dev/reference/errorcodes/errorcode-DistributedNotificationService.md new file mode 100644 index 0000000000000000000000000000000000000000..6d7570ee5f63d167ba114d0fb7cbd2954d025dbb --- /dev/null +++ b/en/application-dev/reference/errorcodes/errorcode-DistributedNotificationService.md @@ -0,0 +1,231 @@ +# DistributedNotificationService Error Codes + +## 1600001 Internal Error + +**Error Message** + +Internal Error. + +**Description** + +This error code is reported when an internal processing error occurs, such as a memory allocation or multi-thread processing error. + +**Possible Causes** + +1. Common kernel errors such as memory allocation and multi-thread processing errors occur. + +**Solution** + +1. Ensure sufficient system memory. +2. Restart the system. + +## 1600002 Data Processing or Interaction Error Between the Application and Notification Subsystem + +**Error Message** + +IPC Error. + +**Description** + +This error code is reported when a serialization or deserialization error occurs and the interaction with the notification subsystem fails. + +**Possible Causes** + +1. A serialization and deserialization error occurs. +2. The interaction with the notification subsystem fails. + +**Solution** + +1. Make sure the input parameter value is within the valid range. +2. Make sure the notification subsystem is not being started. + +## 1600003 Failed to Connect to the Service + +**Error Message** + +Failed to connect to service. + +**Description** + +This error code is reported when the notification subsystem is abnormal due to a service connection failure. + +**Possible Causes** + +The service is busy or the notification subsystem is not working correctly. + +**Solution** + +1. Try again later. +2. Make sure the notification subsystem is started. + +## 1600004 Notification Is Disabled + +**Error Message** + +Notification is not enabled. + +**Description** + +This error code is reported when the notification function is disabled. + +**Possible Causes** + +The notification function is set to its default state (default) or manually disabled. + +**Solution** + +Enable the notification function. + +## 1600005 Notification Slot Is Disabled + +**Error Message** + +Notification slot is not enabled. + +**Description** + +This error code is reported when the notification slot is disabled. + +**Possible Causes** + +The notification slot is disabled. + +**Solution** + +Make sure the application notification slot is enabled. + +## 1600006 Unable to Remove the Notification + +**Error Message** + +Notification is not allowed to remove. + +**Description** + +This error code is reported when **isUnremoveable** is set to **true** and an attempt is made to remove all notifications or when **isRemoveAllowed** is set to **false** and an attempt is made to remove a specific notification. + +**Possible Causes** + +1. When **isUnremoveable** is set to **true**, notifications can only be removed on a one-by-one basis. +2. When **isRemoveAllowed** is set to **false**, no notification can be deleted. + +**Solution** + +1. Check whether **unremovable** is set to **true**. +2. Check whether **isRemoveAllowed** is set to **false**. + +## 1600007 Notification Not Found + +**Error Message** + +The notification is not exist. + +**Description** + +This error code is reported when the target notification is not found. + +**Possible Causes** + +1. The notification has been deleted. +2. The notification has been canceled. + +**Solution** + +Make sure the notification exists. + +## 1600008 User Not Found + +**Error Message** + +The user is not exist. + +**Description** + +This error code is reported when the target user is not found. + +**Possible Causes** + +1. The user ID is incorrect. +2. No user account has not been activated. + +**Solution** + +Make sure the user account with the specified ID has been activated. + +## 1600009 Maximum Number of Notifications per Second Reached + +**Error Message** + +Over max number notifications per second. + +**Description** + +This error code is reported when the number of notifications sent per second has reached the maximum. + +**Possible Causes** + +More than 10 notifications are sent per second. + +**Solution** + +Reduce the number of notifications sent per second to 10 or less. + +## 1600010 Distributed Processing Error + +**Error Message** + +Distributed operation failed. + +**Description** + +This error code is reported when a database processing error occurs or the database operations are too frequent. + +**Possible Causes** + +1. A database processing error occurs. +2. The database operations are too frequent. + +**Solution** + +1. Make sure the distributed data is running properly. +2. Reduce the database operation frequency. + +## 1600011 Failed to read the Template Configuration File + +**Error Message** + +Read template config failed. + +**Description** + +This error code is reported when the template configuration file fails to be read. + +**Possible Causes** + +1. The template configuration file is lost. +2. The current template version is not supported. + +**Solution** + +1. Check for the **/system/etc/notification_template/external.json** file. +2. Update the version to 3.2 or later. + +## 17700001 Bundle Name Not Found + +**Error Message** + +The specified bundle name was not found. + +**Description** + +This error code is reported when the specified bund name is not found. + +**Possible Causes** + +1. The bundle name is incorrect. +2. The application is not installed. + +**Solution** + +1. Verify the bundle name. +2. Make sure the application has been installed. diff --git a/en/application-dev/reference/errorcodes/errorcode-accessibility.md b/en/application-dev/reference/errorcodes/errorcode-accessibility.md new file mode 100644 index 0000000000000000000000000000000000000000..954c8464f3fd81d2f6c980f42711871d546dc078 --- /dev/null +++ b/en/application-dev/reference/errorcodes/errorcode-accessibility.md @@ -0,0 +1,96 @@ +# Accessibility Error Codes + +## 9300001 Invalid Bundle Name or Ability Name + +**Error Message** + +Invalid bundle name or ability name. + +**Description** + +This error code is reported when the entered bundle name or ability name is invalid. + +**Possible Causes** + + +1. The bundle name does not exist. +2. The bundle does not contain the target ability. + +**Solution** + +1. Verify the bundle name. +2. Check whether the ability name corresponding to the bundle name is correct. + +## 9300002 Target Ability Already Enabled + +**Error Message** + +Target ability already enabled. + +**Description** + +This error code is reported when the target ability is already enabled. + +**Possible Causes** + +The target ability is already enabled and cannot be enabled again. + +**Solution** + +1. Stop the target Ability. +2. Re-enable the target ability. + +## 9300003 No Accessibility Permission to Perform the Operation + +**Error Message** + +Do not have accessibility right for this operation. + +**Description** + +This error code is reported when an application performs an accessibility operation for which the related permission has not been granted. + +**Possible Causes** + +The permission for performing the accessibility operation is not granted when the accessibility application is enabled. + +**Solution** + +1. Request from the user the permission for performing the accessibility operation, stating the reason for the request. +2. Have the accessibility application re-enabled and the required accessibility operation enabled. + +## 9300004 Attribute Not Found + +**Error Message** + +This property does not exist. + +**Description** + +This error code is reported when the entered attribute of the accessibility element does not exist. + +**Possible Causes** + +The attribute does not exist in the accessibility element. + +**Solution** + +Make sure the accessibility element has the target attribute. + +## 9300005 Operation Not Supported + +**Error Message** + +This action is not supported. + +**Description** + +This error code is reported when the application performs an operation that is not supported by the accessibility element. + +**Possible Causes** + +The accessibility element does not support the target operation. + +**Solution** + +Make sure the operation is included in the list of operations supported by the accessibility element. diff --git a/en/application-dev/reference/errorcodes/errorcode-audio.md b/en/application-dev/reference/errorcodes/errorcode-audio.md index 31825c31e8990d94d7c8abf5253cdd6e82216bde..42642c804e9e5be20c9f3045270e51344084d24a 100644 --- a/en/application-dev/reference/errorcodes/errorcode-audio.md +++ b/en/application-dev/reference/errorcodes/errorcode-audio.md @@ -4,7 +4,7 @@ **Error Message** -invalid parameter. +Invalid parameter. **Description** @@ -22,7 +22,7 @@ Pass the correct parameters in the API. **Error Message** -allocate memory failed. +Memory allocation failure. **Description** @@ -42,7 +42,7 @@ When the API is called, the memory fails to be allocated or a null pointer occur **Error Message** -Operation not permit at current state. +Unsupported state. **Description** @@ -61,7 +61,7 @@ The operation is not supported in the current state. For example, data is played **Error Message** -unsupported operation. +Unsupported parameter value. **Description** @@ -80,7 +80,7 @@ The value of the input parameter is not within the range supported. **Error Message** -time out. +Processing timeout. **Description** @@ -98,7 +98,7 @@ Control the time of the write operation, for example, adding delayed processing. **Error Message** -stream number limited. +Too many audio streams. **Description** @@ -116,7 +116,7 @@ Release audio streams that are no longer used. **Error Message** -system error. +System error. **Description** diff --git a/en/application-dev/reference/errorcodes/errorcode-batteryStatistics.md b/en/application-dev/reference/errorcodes/errorcode-batteryStatistics.md new file mode 100644 index 0000000000000000000000000000000000000000..6618e266707d3e187e0b79fcef9c67ac9ae5d142 --- /dev/null +++ b/en/application-dev/reference/errorcodes/errorcode-batteryStatistics.md @@ -0,0 +1,29 @@ +# Power Consumption Statistics Error Codes + +## 4600101 Service Connection Failure + +**Error Message** + +Operation failed. Cannot connect to service. + +**Description** + +This error code is reported for a service connection failure. + +**Possible Causes** + +1. The system service stops running. + +2. The internal communication of system services is abnormal. + +**Solution** + +Check whether the system services are running properly. + +1. Run the following command on the console to view the current system service list: + + ```bash + > hdc shell hidumper -ls + ``` + +2. Check whether **BatteryStatisticsService** is included in the system service list. diff --git a/en/application-dev/reference/errorcodes/errorcode-brightness.md b/en/application-dev/reference/errorcodes/errorcode-brightness.md new file mode 100644 index 0000000000000000000000000000000000000000..98dbced9c54a41dc6c55eb35ddf018c5a089d4be --- /dev/null +++ b/en/application-dev/reference/errorcodes/errorcode-brightness.md @@ -0,0 +1,29 @@ +# Brightness Error Codes + +## 4700101 Service Connection Failure + +**Error Message** + +Operation failed. Cannot connect to service. + +**Description** + +This error code is reported for a service connection failure. + +**Possible Causes** + +1. The system service stops running. + +2. The internal communication of system services is abnormal. + +**Solution** + +Check whether the system services are running properly. + +1. Run the following command on the console to view the current system service list: + + ```bash + > hdc shell hidumper -ls + ``` + +2. Check whether **DisplayPowerManagerService** is included in the system service list. diff --git a/en/application-dev/reference/errorcodes/errorcode-buffer.md b/en/application-dev/reference/errorcodes/errorcode-buffer.md deleted file mode 100644 index be671af43ec2cf9b01a27a43edb17a6fb77d87c3..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/errorcodes/errorcode-buffer.md +++ /dev/null @@ -1,55 +0,0 @@ -# Buffer Error Codes - -## 10200001 Value Out of Range - -**Error Message** - -The value of ${param} is out of range. - -**Description** - -The value of a parameter passed in the API exceeds the valid range. - -**Possible Causes** - -The parameter value exceeds the value range. - -**Solution** - -Check and modify the parameter value. - -## 10200009 Incorrect Buffer Size - -**Error Message** - -Buffer size must be a multiple of ${size} - -**Description** - -The buffer size must be an integer multiple of 16 bits, 32 bits, or 64 bits. - -**Possible Causes** - -The buffer size is not an integer multiple of 16 bits, 32 bits, or 64 bits. - -**Solution** - -Check the buffer length. - -## 10200013 Read-Only Properly - -**Error Message** - -Cannot set property ${propertyName} of Buffer which has only a getter. - -**Description** - -The buffer ${propertyName} is read-only and cannot be set. - -**Possible Causes** - -The ${propertyName} parameter is read-only and cannot be set. - -**Solution** - -${propertyName} cannot be set. Do not place it on the left of the equal sign (=). diff --git a/en/application-dev/reference/errorcodes/errorcode-containers.md b/en/application-dev/reference/errorcodes/errorcode-containers.md deleted file mode 100644 index cc7c90db87480f8d74bd359248b62bc0844565f2..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/errorcodes/errorcode-containers.md +++ /dev/null @@ -1,74 +0,0 @@ -# containers Error Codes - -## 10200012 Constructor Calling Failure - -**Error Message** - -The {className}'s constructor cannot be directly invoked. - -**Description** - -A constructor of the **containers** class is called directly to create an instance. - -**Possible Causes** - -The constructors of the **containers** class cannot be directly called. The keyword **new** must be used. - -**Solution** - -Use the keyword **new** to create an instance. - -## 10200011 Passed this object Is Not an Instance of the containers Class - -**Error Message** - -The {methodName} method cannot be bound. - -**Description** - -**this object** passed in the API is not an instance of the **containers** class. - -**Possible Causes** - -The APIs of the **containers** class do not support **bind()**. - -**Solution** - -1. Check whether **bind()** is used to call the API. -2. Check whether an object that is not a container instance is assigned to the API. - -## 10200001 Invalid Parameter Value - -**Error Message** - -The value of parameters are out of range. - -**Description** - -The value of a parameter passed in the API exceeds the valid range. - -**Possible Causes** - -The parameter value is out of range. - -**Solution** - -Use a value within the range. - -## 10200010 Empty Container - -**Error Message** - -Container is empty. - -**Description** - -The container to be operated is empty. - -**Possible Causes** - -The container is empty. - -**Solution** - -Add elements to the container first. diff --git a/en/application-dev/reference/errorcodes/errorcode-form.md b/en/application-dev/reference/errorcodes/errorcode-form.md new file mode 100644 index 0000000000000000000000000000000000000000..232306b030f7ef912726a95548d4dc1efe1c8050 --- /dev/null +++ b/en/application-dev/reference/errorcodes/errorcode-form.md @@ -0,0 +1,138 @@ +# Form Error Codes + +## 16500001 Internal Error + +**Error Message** + +Internal Error. + +**Description** + +A common kernel error, for example, a malloc failure, occurs. + +**Possible Causes** + +The memory is insufficient. + +**Solution** + +Analyze the memory usage of the entire process, and check whether memory leakage occurs. + +## 16500050 IPC Failure + +**Error Message** + +An IPC connection error happened. + +**Description** + +An error occurs when the system initiates inter-process communications (IPC) to complete the request. + +**Possible Causes** + +The parameter value passed in the API is too large, causing IPC data verification failure. + +**Solution** + +Pass appropriate parameter values. + +## 16500060 Service Connection Failure + +**Error Message** + +A service connection error happened, please try again later. + +**Description** + +An error occurs when the system attempts to connect to a service to complete the request. + +**Possible Causes** + +The service is busy or abnormal. + +**Solution** + +Try again after the service is restarted. + +## 16500100 Failed to Obtain Widget Configuration Information + +**Error Message** + +Failed to obtain configuration information. + +**Description** + +An error occurs when the system attempts to obtain widget configuration information to complete the request. + +**Possible Causes** + +The widget configuration information field is missing or invalid. + +**Solution** + +Use the correct configuration information. + +## 16501000 Functional Error + +**Error Message** + +A functional error occurred. + +**Description** + +An internal error occurs when the system executes the request. + +## 16501001 Widget ID Not Exist + +**Error Message** + +The ID of the form to be operated does not exist. + +**Description** + +The specified widget in the request is not found. + +**Possible Causes** + +The widget ID passed in the API does not exist or is invalid. + +**Solution** + +Use a valid widget ID. + +## 16501002 Too Many Widgets + +**Error Message** + +The number of forms exceeds the upper bound. + +**Description** + +The application attempts to add more widgets when the number of widgets has reached the upper limit. + +**Possible Causes** + +The number of widgets has reached the upper limit. + +**Solution** + +Delete unnecessary widgets and then add the required widgets. + +## 16501003 Widget Not Operatable + +**Error Message** + +The form can not be operated by the current application. + +**Description** + +The application cannot perform operations on a widget. + +**Possible Causes** + +The widget does not belong to the application. + +**Solution** + +1. Check the ownership of the widget ID. +2. Upgrade the application permission to **SystemApp**. diff --git a/en/application-dev/reference/errorcodes/errorcode-geoLocationManager.md b/en/application-dev/reference/errorcodes/errorcode-geoLocationManager.md new file mode 100644 index 0000000000000000000000000000000000000000..d0c02263c609d1fc477d39db80eb632b00bec2b5 --- /dev/null +++ b/en/application-dev/reference/errorcodes/errorcode-geoLocationManager.md @@ -0,0 +1,157 @@ +# Location Subsystem Error Codes + +## 3301000 Location Service Unavailable + +**Error Message** + +Location service is unavailable. + +**Description** + +This error code is reported when the location service is unavailable and relevant APIs cannot be called. + +**Possible Causes** + +1. The location service fails to be started. As a result, the communication between the application and the location service fails, and the location service is unavailable. + +2. The GNSS chip fails to be initialized, and thus the GNSS positioning function becomes invalid. + +3. The network positioning service is abnormal, and thus the network positioning function becomes invalid. + +**Solution** + +Stop calling the API. + +## 3301100 Location Service Unavailable Because of Switch Toggled Off + +**Error Message** + +The location switch is off. + +**Description** + +This error code is reported when the location service is unavailable because the service switch is toggled off. + +**Possible Causes** + +The location service switch is toggled off, which makes basic functions such as continuous positioning and immediate positioning unavailable. + +**Solution** + +Display a prompt asking for enabling the location service. + +## 3301200 Failure to Obtain the Positioning Result + +**Error Message** + +Failed to obtain the geographical location. + +**Description** + +This error code is reported when the location service fails, and no positioning result is obtained. + +**Possible Causes** + +1. Positioning timed out because of weak GNSS signals. + +2. Positioning timed out because the network positioning service is abnormal. + +**Solution** + +Initiate a positioning request again. + +## 3301300 Reverse Geocoding Query Failure + +**Error Message** + +Reverse geocoding query failed. + +**Description** + +This error code is reported for a reverse geocoding query failure. + +**Possible Causes** + +Network connection is poor, which makes the request fail to be sent from the device or the result fail to be returned from the cloud to the device. + +**Solution** + +Try the reverse geocoding query again. + +## 3301400 Geocoding Query Failure + +**Error Message** + +Geocoding query failed. + +**Description** + +This error code is reported for a geocoding query failure. + +**Possible Causes** + +Network connection is poor, which makes the request fail to be sent from the device or the result fail to be returned from the cloud to the device. + +**Solution** + +Try the geocoding query again. + +## 3301500 Area Information Query Failure + +**Error Message** + +Failed to query the area information. + +**Description** + +This error code is reported for the failure to query the area information (including the country code). + +**Possible Causes** + +The correct area information is not found. + +**Solution** + +Stop calling the API for querying the country code. + +## 3301600 Geofence Operation Failure + +**Error Message** + +Failed to operate the geofence. + +**Description** + +This error code is reported when an operation (like adding, deleting, pausing, and resuming) fails to be performed on the geofence. + +**Possible Causes** + +1. The GNSS chip does not support the geofence function. + +2. The bottom-layer service logic is abnormal. + +**Solution** + +Stop calling the geofence operation API. + +## 3301700 No Response to the Request + +**Error Message** + +No response to the request. + +**Description** + +This error code is reported when no response is received for an asynchronous request that requires a user to click a button for confirmation or requires a response from the GNSS chip or network server. + +**Possible Causes** + +1. The user does not click a button as required for confirmation. + +2. The GNSS chip does not respond. + +3. The network server does not respond. + +**Solution** + +Stop calling relevant APIs. diff --git a/en/application-dev/reference/errorcodes/errorcode-nfc.md b/en/application-dev/reference/errorcodes/errorcode-nfc.md new file mode 100644 index 0000000000000000000000000000000000000000..500d870366c8a88a9036454ada2d0ffe0a3c04a9 --- /dev/null +++ b/en/application-dev/reference/errorcodes/errorcode-nfc.md @@ -0,0 +1,43 @@ +# NFC Error Codes + +## 3100101 + +**Error Message** + +NFC opening or closing state is abnormal in service. + +**Description** + +The NFC service fails to enable or disable NFC. + +**Possible Causes** + +Communication with the NFC service failed. + +**Solution** + +Enable or disable NFC again. + +## 3100201 + +**Error Message** + +Tag running state is abnormal in service. + +**Description** + +An error occurs when the NFC service executes the tag service logic. + +**Possible Causes** +1. The tag parameters do not match the API to invoke. +2. The NFC is disabled. +3. The tag is disconnected before the tag operation. +4. The tag chip returns an error status or response timeout. +5. Binding with the NFC service has not been established. + +**Solution** +1. Check whether the NFC parameters match the API to invoke. +2. Enable NFC for the device. +3. Connect to the tag and then perform the read and write operations. +4. Touch and read the card again. +5. Exit the app and read the card again. diff --git a/en/application-dev/reference/errorcodes/errorcode-power.md b/en/application-dev/reference/errorcodes/errorcode-power.md new file mode 100644 index 0000000000000000000000000000000000000000..83bbb2cdea786fd43b780fb9c153a31faf924e17 --- /dev/null +++ b/en/application-dev/reference/errorcodes/errorcode-power.md @@ -0,0 +1,47 @@ +# Power Manager Error Codes + +## 4900101 Service Connection Failure + +**Error Message** + +Operation failed. Cannot connect to service. + +**Description** + +This error code is reported for a service connection failure. + +**Possible Causes** + +1. The system service stops running. + +2. The internal communication of system services is abnormal. + +**Solution** + +Check whether the system services are running properly. + +1. Run the following command on the console to view the current system service list: + + ```bash + > hdc shell hidumper -ls + ``` + +2. Check whether **PowerManagerService** is included in the system service list. + +## 4900102 System Shuting Down + +**Error Message** + +Operation failed. System is shutting down. + +**Description** + +This error code is reported when an operation failed during system shutting down. + +**Possible Causes** + +The system is shutting down. + +**Solution** + +Make sure that the operation is performed when the system is running properly. diff --git a/en/application-dev/reference/errorcodes/errorcode-runninglock.md b/en/application-dev/reference/errorcodes/errorcode-runninglock.md new file mode 100644 index 0000000000000000000000000000000000000000..5e55c69b6304f626ab2bc247e17547703c424056 --- /dev/null +++ b/en/application-dev/reference/errorcodes/errorcode-runninglock.md @@ -0,0 +1,29 @@ +# Running Lock Error Codes + +## 4900101 Service Connection Failure + +**Error Message** + +Operation failed. Cannot connect to service. + +**Description** + +This error code is reported for a service connection failure. + +**Possible Causes** + +1. The system service stops running. + +2. The internal communication of system services is abnormal. + +**Solution** + +Check whether the system services are running properly. + +1. Run the following command on the console to view the current system service list: + + ```bash + > hdc shell hidumper -ls + ``` + +2. Check whether **PowerManagerService** is included in the system service list. diff --git a/en/application-dev/reference/errorcodes/errorcode-thermal.md b/en/application-dev/reference/errorcodes/errorcode-thermal.md new file mode 100644 index 0000000000000000000000000000000000000000..d831a9ebe63ccff1a86ea8e77cb56a969c115f0b --- /dev/null +++ b/en/application-dev/reference/errorcodes/errorcode-thermal.md @@ -0,0 +1,29 @@ +# Thermal Manager Error Codes + +## 4800101 Service Connection Failure + +**Error Message** + +Operation failed. Cannot connect to service. + +**Description** + +This error code is reported for a service connection failure. + +**Possible Causes** + +1. The system service stops running. + +2. The internal communication of system services is abnormal. + +**Solution** + +Check whether the system services are running properly. + +1. Run the following command on the console to view the current system service list: + + ```bash + > hdc shell hidumper -ls + ``` + +2. Check whether **ThermalService** is included in the system service list. diff --git a/en/application-dev/reference/errorcodes/errorcode-utils.md b/en/application-dev/reference/errorcodes/errorcode-utils.md new file mode 100644 index 0000000000000000000000000000000000000000..9bb6853ced81e314b8ad1622e0d39590145a31d7 --- /dev/null +++ b/en/application-dev/reference/errorcodes/errorcode-utils.md @@ -0,0 +1,221 @@ +# Utils Error Codes + +## 10200001 Value Out of Range + +**Error Message** + +The value of ${param} is out of range. + +**Description** + +The value of a parameter passed in the API exceeds the valid range. + +**Possible Causes** + +The parameter value exceeds the value range. + +**Solution** + +Use a valid parameter value. + +## 10200002 Parameter Parsing Error + +**Error Message** + +Invalid ${param} string. + +**Description** + +Failed to parse a string. + +**Possible Causes** + +A parameter of the string type passed in the API is a non-standard string. As a result, the string fails to be parsed. + +**Solution** + +Check the format of the string. + +## 10200003 Failed to Initialize the Worker Instance + +**Error Message** + +Worker initialization failure. + +**Description** + +The **Worker** instance fails to be initialized when the API is called. + +**Possible Causes** + +1. The number of **Worker** instances to be created exceeds the upper limit. +2. The options for setting the **Worker** instance are incorrect. + +**Solution** + +1. Check whether the number of **Worker** instances exceeds 8. If yes, destroy idle **Worker** instances. +2. If **WorkerOptions** is set, check the parameter type and validity. + +## 10200004 Worker Instance Is Not Running + +**Error Message** + +Worker instance is not running. + +**Description** + +The **Worker** instance is not running when the API is called. + +**Possible Causes** + +When the API is called, the **Worker** instance has been destroyed or is being destroyed. + +**Solution** + +Ensure that the **Worker** instance is running properly. + +## 10200005 Worker Thread Does Not Support an API + +**Error Message** + +The invoked API is not supported in workers. + +**Description** + +An API that is not supported by the worker thread is called. + +**Possible Causes** + +The worker thread does not support the API. + +**Solution** + +Use a supported API. + +## 10200006 Worker Transmission Information Serialization Exception + +**Error Message** + +Serializing an uncaught exception failed. + +**Description** + +An error occurs when serializing transmission information. + +**Possible Causes** + +The transmission information is not serializable. + +**Solution** + +Use transmission information that is a valid serialized object. + +## 10200007 Abnormal Worker File Path + +**Error Message** + +The worker file path is invalid. + +**Description** + +The file path is invalid, and the **Worker** instance cannot be loaded. + +**Possible Causes** + +The worker file path is invalid. As a result, a valid **worker.abc** file cannot be generated during the build. + +**Solution** + +Ensure that the worker file path complies with the specifications for creating **Worker** instances. For details, see the example under [constructor9+](../apis/js-apis-worker.md#constructor9). + +## 10200009 Buffer Size Error + +**Error Message** + +Buffer size must be a multiple of ${size}. + +**Description** + +The buffer size does not meet the requirement. + +**Possible Causes** + +The buffer size is not an integer multiple of **size**, which can be 16-bit, 32-bit, or 64-bit. + +**Solution** + +Use a buffer the size of which meets the requirements. + + +## 10200010 Empty Container + +**Error Message** + +The container is empty. + +**Description** + +The container to be operated is empty. + +**Possible Causes** + +No element is added to the container. + +**Solution** + +Add elements to the container first. + +## 10200011 Passed this.object Is Not an Instance of the containers Class + +**Error Message** + +The {methodName} method cannot be bound. + +**Description** + +**this.object** passed in the API is not an instance of the **containers** class. + +**Possible Causes** + +The APIs of the **containers** class do not support **bind()**. + +**Solution** + +1. Check whether **bind()** is used to call the API. +2. Check whether an object that is not a container instance is assigned to the API. + +## 10200012 Constructor Calling Failure + +**Error Message** + +The {className}'s constructor cannot be directly invoked. + +**Description** + +A constructor of the **containers** class is called directly to create an instance. + +**Possible Causes** + +The constructors of the **containers** class cannot be directly called. The keyword **new** must be used. + +**Solution** + +Use the keyword **new** to create an instance. + +## 10200013 Read-Only Properly + +**Error Message** + +Cannot set property ${propertyName} of Buffer which has only a getter. + +**Description** + +The buffer ${propertyName} is read-only and cannot be set. + +**Possible Causes** + +The buffer is read-only. + +**Solution** + +Do not set the read-only attribute for the buffer. diff --git a/en/application-dev/ui/figures/en-us_image_0000001218259634.png b/en/application-dev/ui/figures/en-us_image_0000001218259634.png deleted file mode 100644 index a54bd7cd05accb496c691b2527b08b0a11cd8c66..0000000000000000000000000000000000000000 Binary files a/en/application-dev/ui/figures/en-us_image_0000001218259634.png and /dev/null differ diff --git a/en/application-dev/ui/figures/en-us_image_0000001218579608.png b/en/application-dev/ui/figures/en-us_image_0000001218579608.png deleted file mode 100644 index 74526d5efee72c20ce09c731842c0d1c56159a97..0000000000000000000000000000000000000000 Binary files a/en/application-dev/ui/figures/en-us_image_0000001218579608.png and /dev/null differ diff --git a/en/application-dev/ui/figures/en-us_image_0000001218739568.png b/en/application-dev/ui/figures/en-us_image_0000001218739568.png deleted file mode 100644 index a66ff857ba7629951a39a1c2cc19c7b6fb43b9e1..0000000000000000000000000000000000000000 Binary files a/en/application-dev/ui/figures/en-us_image_0000001218739568.png and /dev/null differ diff --git a/en/application-dev/ui/figures/en-us_image_0000001218739570.png b/en/application-dev/ui/figures/en-us_image_0000001218739570.png deleted file mode 100644 index 006efca8f390adea7edb0b4f54609c04fd0bd098..0000000000000000000000000000000000000000 Binary files a/en/application-dev/ui/figures/en-us_image_0000001218739570.png and /dev/null differ diff --git a/en/application-dev/ui/figures/en-us_image_0000001261605867.png b/en/application-dev/ui/figures/en-us_image_0000001261605867.png deleted file mode 100644 index 096d7f530cc2d82391be453a7a5dbe659ba15513..0000000000000000000000000000000000000000 Binary files a/en/application-dev/ui/figures/en-us_image_0000001261605867.png and /dev/null differ diff --git a/en/application-dev/ui/figures/en-us_image_0000001263019461.png b/en/application-dev/ui/figures/en-us_image_0000001263019461.png deleted file mode 100644 index b79b7923adca0d6e2a211c29ef0d34b70bf02583..0000000000000000000000000000000000000000 Binary files a/en/application-dev/ui/figures/en-us_image_0000001263019461.png and /dev/null differ diff --git a/en/application-dev/ui/figures/en-us_image_0000001263139411.png b/en/application-dev/ui/figures/en-us_image_0000001263139411.png deleted file mode 100644 index 3e481248c0e16f3311644a35fa3c71269a3e7877..0000000000000000000000000000000000000000 Binary files a/en/application-dev/ui/figures/en-us_image_0000001263139411.png and /dev/null differ diff --git a/en/application-dev/ui/figures/en-us_image_0000001263339461.png b/en/application-dev/ui/figures/en-us_image_0000001263339461.png deleted file mode 100644 index 183d9468ca3901183b3fa55facbc976418e7a5f1..0000000000000000000000000000000000000000 Binary files a/en/application-dev/ui/figures/en-us_image_0000001263339461.png and /dev/null differ diff --git a/en/application-dev/ui/figures/flex.png b/en/application-dev/ui/figures/flex.png index 848ceef3873ed6f83466d9ab42f6aa68cb341fe9..81d0d6365351f8071e21d6968d045dc80486a303 100644 Binary files a/en/application-dev/ui/figures/flex.png and b/en/application-dev/ui/figures/flex.png differ diff --git a/en/application-dev/ui/figures/itemalignstretch.png b/en/application-dev/ui/figures/itemalignstretch.png new file mode 100644 index 0000000000000000000000000000000000000000..0fadb0e9099cc754a281bd1bedfdea4a59f64894 Binary files /dev/null and b/en/application-dev/ui/figures/itemalignstretch.png differ diff --git a/en/application-dev/ui/ui-js-animate-component.md b/en/application-dev/ui/ui-js-animate-component.md index 2cfea4522a840b7e3c37f0b8b6b5d8c3c7cceb80..740ad7a99895513f3674fec2c91d65e924173815 100644 --- a/en/application-dev/ui/ui-js-animate-component.md +++ b/en/application-dev/ui/ui-js-animate-component.md @@ -6,7 +6,7 @@ Create and run an animation shortcut on the component. For details, see [Univers ## Obtaining an Animation Object -Call the animate method to obtain an animation object, which supports animation attributes, methods, and events. +Call the **animate** method to obtain an animation object, which supports animation attributes, methods, and events. ```html @@ -84,6 +84,7 @@ After obtaining an animation object, you can set its style working on the compon justify-content: center; align-items: center; width: 100%; + height: 100%; } .box{ width: 200px; @@ -104,7 +105,7 @@ export default { onInit() { this.options = { duration: 4000, - }; + } this.keyframes = [ { transform: { @@ -128,11 +129,11 @@ export default { width: 300, height: 300 } - ]; + ] }, Show() { - this.animation = this.$element('content').animate(this.keyframes, this.options); - this.animation.play(); + this.animation = this.$element('content').animate(this.keyframes, this.options) + this.animation.play() } } ``` @@ -140,11 +141,11 @@ export default { ![en-us_image_0000001267647897](figures/en-us_image_0000001267647897.gif) > **NOTE** -> - The sequence of translate, scale, and rotate affects the animation effect. +> - The sequence of **translate**, **scale**, and **rotate** affects the animation effect. > -> - transformOrigin works only for scale and rotate. +> - **transformOrigin** works only for scale and rotate. -Set the animation attributes by using the options parameter. +Set the animation attributes by using the **options** parameter. ```html @@ -209,15 +210,15 @@ export default { > **NOTE** > -> direction: mode of playing the animation. +> **direction**: mode of playing the animation. > -> normal: plays the animation in forward loop mode. +> **normal**: plays the animation in forward loop mode. > -> reverse: plays the animation in reverse loop mode. +> **reverse**: plays the animation in reverse loop mode. > -> alternate: plays the animation in alternating loop mode. When the animation is played for an odd number of times, the playback is in forward direction. When the animation is played for an even number of times, the playback is in reverse direction. +> **alternate**: plays the animation in alternating loop mode. When the animation is played for an odd number of times, the playback is in forward direction. When the animation is played for an even number of times, the playback is in reverse direction. > -> alternate-reverse: plays the animation in reverse alternating loop mode. When the animation is played for an odd number of times, the playback is in reverse direction. When the animation is played for an even number of times, the playback is in forward direction. +> **alternate-reverse**: plays the animation in reverse alternating loop mode. When the animation is played for an odd number of times, the playback is in reverse direction. When the animation is played for an even number of times, the playback is in forward direction. ## Adding an Event and Calling a Method @@ -227,16 +228,16 @@ Animation objects support animation events and methods. You can achieve the inte ```html
-
-
-
- - -
-
- - -
+
+
+
+ + +
+
+ + +
``` @@ -246,6 +247,8 @@ Animation objects support animation events and methods. You can achieve the inte flex-direction: column; align-items: center; justify-content: center; + width: 100%; + height: 100%; } button{ width: 200px; @@ -274,75 +277,64 @@ button{ ```js // xxx.js -import prompt from '@system.prompt'; export default { - data: { - animation: '', - }, - onInit() { - }, - onShow() { - var options = { - duration: 1500, - easing:'ease-in', - elay:5, - direction:'normal', - iterations:2 - }; - var frames = [ - { - transform: { - translate: '-150px -0px' - }, - opacity: 0.1, - offset: 0.0, - width: 200, - height: 200, - }, - { - transform: { - translate: '150px 0px' - }, - opacity: 1.0, - offset: 1.0, - width: 300, - height: 300, - } - ]; - this.animation = this.$element('content').animate(frames, options); - this.animation.onstart = function(){ - prompt.showToast({ - message: "start" - }); - }; // Add a start event. - this.animation.onrepeat = function(){ - prompt.showToast({ - message: " repeated" - }); - };// Add a repeat event. - this.animation.oncancel = function(){ - prompt.showToast({ - message: "canceled" - }); - };// Add a cancellation event. - this.animation.onfinish = function(){ - prompt.showToast({ - message: "finish" - }); - };// Add a finish event. - }, - playAnimation() { - this.animation.play();// Start this animation. - }, - pauseAnimation() { - this.animation.pause();// Pause this animation. - }, - reverseAnimation() { - this.animation.reverse();// Reverse this animation. - }, - cancelAnimation() { - this.animation.cancel();// Cancel this animation. - } + data: { + animation: '', + }, + onShow() { + var options = { + duration: 1500, + easing:'ease-in', + delay:5, + direction:'normal', + iterations:2 + }; + var frames = [ + { + transform: { + translate: '-150px -0px' + }, + opacity: 0.1, + offset: 0.0, + width: 200, + height: 200, + }, + { + transform: { + translate: '150px 0px' + }, + opacity: 1.0, + offset: 1.0, + width: 300, + height: 300, + } + ]; + this.animation = this.$element('content').animate(frames, options); + this.animation.onstart = function() { + console.info('animation start') + } // Add a start event. + this.animation.onrepeat = function() { + console.info('animation repeated') + } // Add a repeat event. + this.animation.oncancel = function() { + console.info('animation canceled') + } // Add a cancel event. + this.animation.onfinish = function() { + console.info('animation finish') + } // Add a finish event. + }, + playAnimation() { + this.animation.play() // Start this animation. + }, + pauseAnimation() { + this.animation.pause() // Pause this animation. + }, + reverseAnimation() { + this.animation.reverse() // Reverse this animation. + }, + cancelAnimation() { + this.animation.cancel() // Cancel this animation. + } } ``` @@ -398,7 +390,7 @@ button{ ```js // xxx.js -import prompt from '@system.prompt'; +import promptAction from '@ohos.promptAction'; export default { data: { animation: '', @@ -437,17 +429,17 @@ export default { ]; this.animation = this.$element('content').animate(frames, options); this.animation.onstart = function(){ - prompt.showToast({ + promptAction.showToast({ message: "start" }); }; this.animation.onrepeat = function(){ - prompt.showToast({ + promptAction.showToast({ message: " repeated" }); }; this.animation.onfinish = function(){ - prompt.showToast({ + promptAction.showToast({ message: " finished" }); }; diff --git a/en/application-dev/ui/ui-ts-developing-intro.md b/en/application-dev/ui/ui-ts-developing-intro.md index 0b484ff1c5a42220bd7760d1d595d8fb1affc7a5..3f55b96e103949753a9ce6713327ad91984720fe 100644 --- a/en/application-dev/ui/ui-ts-developing-intro.md +++ b/en/application-dev/ui/ui-ts-developing-intro.md @@ -4,7 +4,7 @@ | Task | Description | Related Resources | | ----------- | ---------------------------------------- | ---------------------------------------- | -| Set up the development environment. | Understand the project structure of the declarative UI.
Learn the resource categories and how to access resources. | [OpenHarmony Project Overview](https://developer.harmonyos.com/en/docs/documentation/doc-guides/ohos-project-overview-0000001218440650)
[Resource Categories and Access](../quick-start/resource-categories-and-access.md) | +| Set up the development environment. | Understand the project structure of the declarative UI.
Learn the resource categories and how to access resources. | [OpenHarmony Project Overview](https://developer.harmonyos.com/en/docs/documentation/doc-guides/ohos-project-overview-0000001218440650)
[Resource Categories and Access](../quick-start/resource-categories-and-access.md)| | Learn ArkTS. | As its name implies, ArkTS is a superset of TypeScript. It is the preferred, primary programming language for application development in OpenHarmony.| [Learning ArkTS](../quick-start/arkts-get-started.md)| | Develop a page. | Select an appropriate layout based on the use case.
Add built-in components and set the component style based on the page content to present.
Update and diversify the page content.| [Creating a Page](#creating-a-page)
[Common Layout Development](ui-ts-layout-linear.md)
[Common Components](ui-ts-components-intro.md)
[Setting the Component Style](#setting-the-component-styles)
[Updating Page Content](#updating-page-content)| | (Optional) Diversify the page content. | Leverage the drawing and animation features to effectively increase user engagement. | [Drawing Components](../reference/arkui-ts/ts-drawing-components-circle.md)
[Canvas Components](../reference/arkui-ts/ts-components-canvas-canvas.md)
[Animation](../reference/arkui-ts/ts-animatorproperty.md)| diff --git a/en/application-dev/ui/ui-ts-layout-flex.md b/en/application-dev/ui/ui-ts-layout-flex.md index 291616ffc189581004105331a270085dfee75add..20ea6ca4cedba93562ccc8ddf2d2233ea9edc1ca 100644 --- a/en/application-dev/ui/ui-ts-layout-flex.md +++ b/en/application-dev/ui/ui-ts-layout-flex.md @@ -1,351 +1,562 @@ # Flex Layout +The flex layout is the most flexible layout used in adaptive layout. It provides simple and powerful tools for distributing space and aligning items. -The **\** component is used to create a flex layout. In a flex container created using the **Flex** API, child components can be laid out flexibly. For example, if there are three child components in a flex container, they can be horizontally centered and vertically equally spaced. +- Container: [\](../reference/arkui-ts/ts-container-flex.md) component, used to set layout attributes. +- Child component: any of the child items in the **\** component. +- Main axis: axis along which items are placed in the **\** component. Child components are laid out along the main axis by default. The start point of the main axis is referred to as main-start, and the end point is referred to as main-end. +- Cross axis: axis that runs perpendicular to the main axis. The start point of the cross axis is referred to as cross-start, and the end point is referred to as cross-end. -## Creating a Flex Layout +The following uses **FlexDirection.Row** as an example. -The available API is as follows: +![](figures/flex.png) + +## Container Attributes + +Create a flex layout through the **Flex** API provided by the **\** component. The sample code is as follows: `Flex(options?: { direction?: FlexDirection, wrap?: FlexWrap, justifyContent?: FlexAlign, alignItems?: ItemAlign, alignContent?: FlexAlign })` -In the preceding code, the **direction** parameter defines the flex layout direction; the **justifyContent** parameter defines the alignment mode of child components in the flex layout direction; the **alignContent** parameter defines the alignment mode of child components in the vertical direction; the **wrap** parameter defines whether the content can wrap onto multiple lines. -## Flex Layout Direction -The flex layout has two directions, following two axes. The main axis is the axis along which the child components follow each other. The cross axis is the axis perpendicular to the main axis. The **direction** parameter establishes the main axis. The available options are as follows: -- **FlexDirection.Row** (default value): The main axis runs along the row horizontally, and the child components are laid out from the start edge of the main axis. +### Flex Layout Direction +The **direction** parameter sets the direction in which items are laid out in the **\** component and thereby defines the main axis. Available values are as follows: - ```ts - Flex({ direction: FlexDirection.Row }) { - Text('1').width('33%').height(50).backgroundColor(0xF5DEB3) - Text('2').width('33%').height(50).backgroundColor(0xD2B48C) - Text('3').width('33%').height(50).backgroundColor(0xF5DEB3) - } - .height(70) - .width('90%') - .padding(10) - .backgroundColor(0xAFEEEE) - ``` +![](figures/direction.png) - ![en-us_image_0000001218579606](figures/en-us_image_0000001218579606.png) +- **FlexDirection.Row** (default value): The main axis runs along the row horizontally, and the child components are laid out from the start edge of the main axis. + + ```ts + Flex({ direction: FlexDirection.Row }) { + Text('1').width('33%').height(50).backgroundColor(0xF5DEB3) + Text('2').width('33%').height(50).backgroundColor(0xD2B48C) + Text('3').width('33%').height(50).backgroundColor(0xF5DEB3) + } + .height(70) + .width('90%') + .padding(10) + .backgroundColor(0xAFEEEE) + ``` + ![en-us_image_0000001218579606](figures/en-us_image_0000001218579606.png) - **FlexDirection.RowReverse**: The main axis runs along the row horizontally, and the child components are laid out from the end edge of the main axis, in a direction opposite to **FlexDirection.Row**. - ```ts - Flex({ direction: FlexDirection.RowReverse }) { - Text('1').width('33%').height(50).backgroundColor(0xF5DEB3) - Text('2').width('33%').height(50).backgroundColor(0xD2B48C) - Text('3').width('33%').height(50).backgroundColor(0xF5DEB3) - } - .height(70) - .width('90%') - .padding(10) - .backgroundColor(0xAFEEEE) - ``` + ```ts + Flex({ direction: FlexDirection.RowReverse }) { + Text('1').width('33%').height(50).backgroundColor(0xF5DEB3) + Text('2').width('33%').height(50).backgroundColor(0xD2B48C) + Text('3').width('33%').height(50).backgroundColor(0xF5DEB3) + } + .height(70) + .width('90%') + .padding(10) + .backgroundColor(0xAFEEEE) + ``` - ![en-us_image_0000001218739566](figures/en-us_image_0000001218739566.png) + ![en-us_image_0000001218739566](figures/en-us_image_0000001218739566.png) - **FlexDirection.Column**: The main axis runs along the column vertically, and the child components are laid out from the start edge of the main axis. - ```ts - Flex({ direction: FlexDirection.Column }) { - Text('1').width('100%').height(50).backgroundColor(0xF5DEB3) - Text('2').width('100%').height(50).backgroundColor(0xD2B48C) - Text('3').width('100%').height(50).backgroundColor(0xF5DEB3) - } - .height(70) - .width('90%') - .padding(10) - .backgroundColor(0xAFEEEE) - ``` + ```ts + Flex({ direction: FlexDirection.Column }) { + Text('1').width('100%').height(50).backgroundColor(0xF5DEB3) + Text('2').width('100%').height(50).backgroundColor(0xD2B48C) + Text('3').width('100%').height(50).backgroundColor(0xF5DEB3) + } + .height(70) + .width('90%') + .padding(10) + .backgroundColor(0xAFEEEE) + ``` - ![en-us_image_0000001263019457](figures/en-us_image_0000001263019457.png) + ![en-us_image_0000001263019457](figures/en-us_image_0000001263019457.png) - **FlexDirection.ColumnReverse**: The main axis runs along the column vertically, and the child components are laid out from the end edge of the main axis, in a direction opposite to **FlexDirection.Column**. - ```ts - Flex({ direction: FlexDirection.ColumnReverse }) { - Text('1').width('100%').height(50).backgroundColor(0xF5DEB3) - Text('2').width('100%').height(50).backgroundColor(0xD2B48C) - Text('3').width('100%').height(50).backgroundColor(0xF5DEB3) - } - .height(70) - .width('90%') - .padding(10) - .backgroundColor(0xAFEEEE) - ``` - - ![en-us_image_0000001263339459](figures/en-us_image_0000001263339459.png) - - -## Wrapping in the Flex Layout - -By default, child components are laid out on a single line (also called an axis) in the flex container. Use the **wrap** parameter to set whether child components can wrap onto multiple lines. The available options are as follows: - -- **FlexWrap.NoWrap**: Child components are laid out on a single line. This may cause the child components to shrink to fit the container when the total width of the child components is greater than the width of the container. - - ```ts - Flex({ wrap: FlexWrap.NoWrap }) { - Text('1').width('50%').height(50).backgroundColor(0xF5DEB3) - Text('2').width('50%').height(50).backgroundColor(0xD2B48C) - Text('3').width('50%').height(50).backgroundColor(0xF5DEB3) - } - .width('90%') - .padding(10) - .backgroundColor(0xAFEEEE) - ``` - - ![en-us_image_0000001263139409](figures/en-us_image_0000001263139409.png) - -- **FlexWrap.Wrap**: Child components can break into multiple lines. - - ```ts - Flex({ wrap: FlexWrap.Wrap }) { - Text('1').width('50%').height(50).backgroundColor(0xF5DEB3) - Text('2').width('50%').height(50).backgroundColor(0xD2B48C) - Text('3').width('50%').height(50).backgroundColor(0xD2B48C) - } - .width('90%') - .padding(10) - .backgroundColor(0xAFEEEE) - ``` - - ![en-us_image_0000001218419614](figures/en-us_image_0000001218419614.png) - -- **FlexWrap.WrapReverse**: Child components can break into multiple lines in the reverse order to the row. - - ```ts - Flex({ wrap: FlexWrap.WrapReverse}) { - Text('1').width('50%').height(50).backgroundColor(0xF5DEB3) - Text('2').width('50%').height(50).backgroundColor(0xD2B48C) - Text('3').width('50%').height(50).backgroundColor(0xF5DEB3) - } - .width('90%') - .padding(10) - .backgroundColor(0xAFEEEE) - ``` - - ![en-us_image_0000001263259399](figures/en-us_image_0000001263259399.png) - - -## Alignment in the Flex Layout - - -### Alignment on the Main Axis + ```ts + Flex({ direction: FlexDirection.ColumnReverse }) { + Text('1').width('100%').height(50).backgroundColor(0xF5DEB3) + Text('2').width('100%').height(50).backgroundColor(0xD2B48C) + Text('3').width('100%').height(50).backgroundColor(0xF5DEB3) + } + .height(70) + .width('90%') + .padding(10) + .backgroundColor(0xAFEEEE) + ``` + + ![en-us_image_0000001263339459](figures/en-us_image_0000001263339459.png) + +### Wrapping in the Flex Layout + +By default, child components are laid out on a single line (also called an axis) in the flex container. You can use the **wrap** parameter to set whether child components can wrap onto multiple lines. Available values are as follows: + +- **FlexWrap.NoWrap** (default value): Child components are laid out on a single line. This may cause the child components to shrink to fit the container when the total width of the child components is greater than the width of the container. + + ```ts + Flex({ wrap: FlexWrap.NoWrap }) { + Text('1').width('50%').height(50).backgroundColor(0xF5DEB3) + Text('2').width('50%').height(50).backgroundColor(0xD2B48C) + Text('3').width('50%').height(50).backgroundColor(0xF5DEB3) + } + .width('90%') + .padding(10) + .backgroundColor(0xAFEEEE) + ``` + + ![en-us_image_0000001263139409](figures/en-us_image_0000001263139409.png) + +- **FlexWrap.Wrap**: Child components can break into multiple lines along the main axis. + + ```ts + Flex({ wrap: FlexWrap.Wrap }) { + Text('1').width('50%').height(50).backgroundColor(0xF5DEB3) + Text('2').width('50%').height(50).backgroundColor(0xD2B48C) + Text('3').width('50%').height(50).backgroundColor(0xD2B48C) + } + .width('90%') + .padding(10) + .backgroundColor(0xAFEEEE) + ``` + + ![en-us_image_0000001218419614](figures/en-us_image_0000001218419614.png) + +- **FlexWrap.WrapReverse**: Child components can break into multiple lines in the reverse direction to the main axis. + + ```ts + Flex({ wrap: FlexWrap.WrapReverse}) { + Text('1').width('50%').height(50).backgroundColor(0xF5DEB3) + Text('2').width('50%').height(50).backgroundColor(0xD2B48C) + Text('3').width('50%').height(50).backgroundColor(0xF5DEB3) + } + .width('90%') + .padding(10) + .backgroundColor(0xAFEEEE) + ``` + + ![en-us_image_0000001263259399](figures/en-us_image_0000001263259399.png) + +### Alignment in the Flex Layout + +#### Alignment on the Main Axis Use the **justifyContent** parameter to set alignment of items on the main axis. The available options are as follows: -- **FlexAlign.Start**: The items are aligned with each other toward the start edge of the container along the main axis. - - ```ts - Flex({ justifyContent: FlexAlign.Start }) { - Text('1').width('20%').height(50).backgroundColor(0xF5DEB3) - Text('2').width('20%').height(50).backgroundColor(0xD2B48C) - Text('3').width('20%').height(50).backgroundColor(0xF5DEB3) - } - .width('90%') - .padding(10) - .backgroundColor(0xAFEEEE) - ``` - - ![en-us_image_0000001218259634](figures/en-us_image_0000001218259634.png) - -- **FlexAlign.Center**: The items are aligned with each other toward the center of the container along the main axis. The space between the first component and the main-start is the same as that between the last component and the main-end. - - ```ts - Flex({ justifyContent: FlexAlign.Center }) { - Text('1').width('20%').height(50).backgroundColor(0xF5DEB3) - Text('2').width('20%').height(50).backgroundColor(0xD2B48C) - Text('3').width('20%').height(50).backgroundColor(0xF5DEB3) - } - .width('90%') - .padding(10) - .backgroundColor(0xAFEEEE) - ``` - - ![en-us_image_0000001218579608](figures/en-us_image_0000001218579608.png) +![](figures/justifyContent.png) + +- **FlexAlign.Start** (default value): The items are aligned with each other toward the start edge of the container along the main axis. + + ```ts + Flex({ justifyContent: FlexAlign.Start }) { + Text('1').width('20%').height(50).backgroundColor(0xF5DEB3) + Text('2').width('20%').height(50).backgroundColor(0xD2B48C) + Text('3').width('20%').height(50).backgroundColor(0xF5DEB3) + } + .width('90%') + .padding({ top: 10, bottom: 10 }) + .backgroundColor(0xAFEEEE) + ``` + + ![en-us_image_0000001218259634](figures/mainStart.png) + +- **FlexAlign.Center**: The items are aligned with each other toward the center of the container along the main axis. + + ```ts + Flex({ justifyContent: FlexAlign.Center }) { + Text('1').width('20%').height(50).backgroundColor(0xF5DEB3) + Text('2').width('20%').height(50).backgroundColor(0xD2B48C) + Text('3').width('20%').height(50).backgroundColor(0xF5DEB3) + } + .width('90%') + .padding({ top: 10, bottom: 10 }) + .backgroundColor(0xAFEEEE) + ``` + + ![en-us_image_0000001218579608](figures/mainCenter.png) - **FlexAlign.End**: The items are aligned with each other toward the end edge of the container along the main axis. - ```ts - Flex({ justifyContent: FlexAlign.End }) { - Text('1').width('20%').height(50).backgroundColor(0xF5DEB3) - Text('2').width('20%').height(50).backgroundColor(0xD2B48C) - Text('3').width('20%').height(50).backgroundColor(0xF5DEB3) - } - .width('90%') - .padding(10) - .backgroundColor(0xAFEEEE) - ``` - - ![en-us_image_0000001218739568](figures/en-us_image_0000001218739568.png) - -- **FlexAlign.SpaceBetween**: The items are evenly distributed within the container along the main axis. The first item is aligned with the main-start, the last item is aligned with the main-end, and the remaining items are distributed so that the space between any two adjacent items is the same. - - ```ts - Flex({ justifyContent: FlexAlign.SpaceBetween }) { - Text('1').width('20%').height(50).backgroundColor(0xF5DEB3) - Text('2').width('20%').height(50).backgroundColor(0xD2B48C) - Text('3').width('20%').height(50).backgroundColor(0xF5DEB3) - } - .width('90%') - .padding(10) - .backgroundColor(0xAFEEEE) - ``` - - ![en-us_image_0000001263019461](figures/en-us_image_0000001263019461.png) - -- **FlexAlign.SpaceAround**: The items are evenly distributed within the container along the main axis. The space between the first item and main-start, and that between the last item and cross-main are both half the size of the space between two adjacent items. - - ```ts - Flex({ justifyContent: FlexAlign.SpaceAround }) { - Text('1').width('20%').height(50).backgroundColor(0xF5DEB3) - Text('2').width('20%').height(50).backgroundColor(0xD2B48C) - Text('3').width('20%').height(50).backgroundColor(0xF5DEB3) - } - .width('90%') - .padding(10) - .backgroundColor(0xAFEEEE) - ``` - - ![en-us_image_0000001263339461](figures/en-us_image_0000001263339461.png) + ```ts + Flex({ justifyContent: FlexAlign.End }) { + Text('1').width('20%').height(50).backgroundColor(0xF5DEB3) + Text('2').width('20%').height(50).backgroundColor(0xD2B48C) + Text('3').width('20%').height(50).backgroundColor(0xF5DEB3) + } + .width('90%') + .padding({ top: 10, bottom: 10 }) + .backgroundColor(0xAFEEEE) + ``` + + ![en-us_image_0000001218739568](figures/mainEnd.png) + +- **FlexAlign.SpaceBetween**: The items are evenly distributed within the container along the main axis. The first and last items are aligned with the edges of the container. + + ```ts + Flex({ justifyContent: FlexAlign.SpaceBetween }) { + Text('1').width('20%').height(50).backgroundColor(0xF5DEB3) + Text('2').width('20%').height(50).backgroundColor(0xD2B48C) + Text('3').width('20%').height(50).backgroundColor(0xF5DEB3) + } + .width('90%') + .padding({ top: 10, bottom: 10 }) + .backgroundColor(0xAFEEEE) + ``` + + ![en-us_image_0000001263019461](figures/mainSpacebetween.png) + +- **FlexAlign.SpaceAround**: The items are evenly distributed in the container along the main axis. The space between the first item and main-start, and that between the last item and main-end are both half of the space between two adjacent items. + + ```ts + Flex({ justifyContent: FlexAlign.SpaceAround }) { + Text('1').width('20%').height(50).backgroundColor(0xF5DEB3) + Text('2').width('20%').height(50).backgroundColor(0xD2B48C) + Text('3').width('20%').height(50).backgroundColor(0xF5DEB3) + } + .width('90%') + .padding({ top: 10, bottom: 10 }) + .backgroundColor(0xAFEEEE) + ``` + + ![zh-cn_image_0000001263339461](figures/mainSpacearound.png) - **FlexAlign.SpaceEvenly**: The items are equally distributed along the main axis. The space between the first item and main-start, the space between the last item and main-end, and the space between two adjacent items are the same. - ```ts - Flex({ justifyContent: FlexAlign.SpaceEvenly }) { - Text('1').width('20%').height(50).backgroundColor(0xF5DEB3) - Text('2').width('20%').height(50).backgroundColor(0xD2B48C) - Text('3').width('20%').height(50).backgroundColor(0xF5DEB3) - } - .width('90%') - .padding(10) - .backgroundColor(0xAFEEEE) - ``` - - ![en-us_image_0000001263139411](figures/en-us_image_0000001263139411.png) + ```ts + Flex({ justifyContent: FlexAlign.SpaceEvenly }) { + Text('1').width('20%').height(50).backgroundColor(0xF5DEB3) + Text('2').width('20%').height(50).backgroundColor(0xD2B48C) + Text('3').width('20%').height(50).backgroundColor(0xF5DEB3) + } + .width('90%') + .padding({ top: 10, bottom: 10 }) + .backgroundColor(0xAFEEEE) + ``` + + ![zh-cn_image_0000001263139411](figures/mainSpaceevenly.png) +#### Alignment on the Cross Axis -### Alignment on the Cross Axis +Alignment on the cross axis can be set for both the container and child components, with that set for child components having a higher priority. -Use the **alignItems** parameter to set alignment of items on the cross axis. The available options are as follows: +##### Setting Alignment on the Cross Axis for the Container +Use the **alignItems** parameter of the **\** component to set alignment of items on the cross axis. The available options are as follows: - **ItemAlign.Auto**: The items are automatically aligned in the flex container. - ```ts - Flex({ alignItems: ItemAlign.Auto }) { - Text('1').width('33%').height(30).backgroundColor(0xF5DEB3) - Text('2').width('33%').height(40).backgroundColor(0xD2B48C) - Text('3').width('33%').height(50).backgroundColor(0xF5DEB3) - } - .size({width: '90%', height: 80}) - .padding(10) - .backgroundColor(0xAFEEEE) - ``` + ```ts + Flex({ alignItems: ItemAlign.Auto }) { + Text('1').width('33%').height(30).backgroundColor(0xF5DEB3) + Text('2').width('33%').height(40).backgroundColor(0xD2B48C) + Text('3').width('33%').height(50).backgroundColor(0xF5DEB3) + } + .size({width: '90%', height: 80}) + .padding(10) + .backgroundColor(0xAFEEEE) + ``` - ![en-us_image_0000001218419616](figures/en-us_image_0000001218419616.png) + ![en-us_image_0000001218419616](figures/en-us_image_0000001218419616.png) - **ItemAlign.Start**: The items are aligned with the start edge of the container along the cross axis. - ```ts - Flex({ alignItems: ItemAlign.Start }) { - Text('1').width('33%').height(30).backgroundColor(0xF5DEB3) - Text('2').width('33%').height(40).backgroundColor(0xD2B48C) - Text('3').width('33%').height(50).backgroundColor(0xF5DEB3) - } - .size({width: '90%', height: 80}) - .padding(10) - .backgroundColor(0xAFEEEE) - ``` - - ![en-us_image_0000001263259401](figures/en-us_image_0000001263259401.png) + ```ts + Flex({ alignItems: ItemAlign.Start }) { + Text('1').width('33%').height(30).backgroundColor(0xF5DEB3) + Text('2').width('33%').height(40).backgroundColor(0xD2B48C) + Text('3').width('33%').height(50).backgroundColor(0xF5DEB3) + } + .size({width: '90%', height: 80}) + .padding(10) + .backgroundColor(0xAFEEEE) + ``` + + ![en-us_image_0000001263259401](figures/en-us_image_0000001263259401.png) - **ItemAlign.Start**: The items are aligned with the center of the container along the cross axis. - ```ts - Flex({ alignItems: ItemAlign.Center }) { - Text('1').width('33%').height(30).backgroundColor(0xF5DEB3) - Text('2').width('33%').height(40).backgroundColor(0xD2B48C) - Text('3').width('33%').height(50).backgroundColor(0xF5DEB3) - } - .size({width: '90%', height: 80}) - .padding(10) - .backgroundColor(0xAFEEEE) - ``` - - ![en-us_image_0000001218259636](figures/en-us_image_0000001218259636.png) + ```ts + Flex({ alignItems: ItemAlign.Center }) { + Text('1').width('33%').height(30).backgroundColor(0xF5DEB3) + Text('2').width('33%').height(40).backgroundColor(0xD2B48C) + Text('3').width('33%').height(50).backgroundColor(0xF5DEB3) + } + .size({width: '90%', height: 80}) + .padding(10) + .backgroundColor(0xAFEEEE) + ``` + + ![en-us_image_0000001218259636](figures/en-us_image_0000001218259636.png) - **ItemAlign.End**: The items are aligned with the end edge of the container along the cross axis. - ```ts - Flex({ alignItems: ItemAlign.End }) { - Text('1').width('33%').height(30).backgroundColor(0xF5DEB3) - Text('2').width('33%').height(40).backgroundColor(0xD2B48C) - Text('3').width('33%').height(50).backgroundColor(0xF5DEB3) - } - .size({width: '90%', height: 80}) - .padding(10) - .backgroundColor(0xAFEEEE) - ``` - - ![en-us_image_0000001218579610](figures/en-us_image_0000001218579610.png) + ```ts + Flex({ alignItems: ItemAlign.End }) { + Text('1').width('33%').height(30).backgroundColor(0xF5DEB3) + Text('2').width('33%').height(40).backgroundColor(0xD2B48C) + Text('3').width('33%').height(50).backgroundColor(0xF5DEB3) + } + .size({width: '90%', height: 80}) + .padding(10) + .backgroundColor(0xAFEEEE) + ``` + + ![en-us_image_0000001218579610](figures/en-us_image_0000001218579610.png) - **ItemAlign.Stretch**: The items are stretched along the cross axis. If no constraints are set, the items are stretched to fill the size of the container on the cross axis. - ```ts - Flex({ alignItems: ItemAlign.Stretch }) { - Text('1').width('33%').height(30).backgroundColor(0xF5DEB3) - Text('2').width('33%').height(40).backgroundColor(0xD2B48C) - Text('3').width('33%').height(50).backgroundColor(0xF5DEB3) - } - .size({width: '90%', height: 80}) - .padding(10) - .backgroundColor(0xAFEEEE) - ``` - - ![en-us_image_0000001218739570](figures/en-us_image_0000001218739570.png) + ```ts + Flex({ alignItems: ItemAlign.Stretch }) { + Text('1').width('33%').height(30).backgroundColor(0xF5DEB3) + Text('2').width('33%').height(40).backgroundColor(0xD2B48C) + Text('3').width('33%').height(50).backgroundColor(0xF5DEB3) + } + .size({width: '90%', height: 80}) + .padding(10) + .backgroundColor(0xAFEEEE) + ``` + + ![en-us_image_0000001218739570](figures/itemalignstretch.png) - **ItemAlign.Baseline**: The items are aligned at the baseline of the cross axis. - ```ts - Flex({ alignItems: ItemAlign.Baseline }) { - Text('1').width('33%').height(30).backgroundColor(0xF5DEB3) - Text('2').width('33%').height(40).backgroundColor(0xD2B48C) - Text('3').width('33%').height(50).backgroundColor(0xF5DEB3) - } - .size({width: '90%', height: 80}) - .padding(10) - .backgroundColor(0xAFEEEE) - ``` - - ![en-us_image_0000001263019463](figures/en-us_image_0000001263019463.png) - - -### Content Alignment + ```ts + Flex({ alignItems: ItemAlign.Baseline }) { + Text('1').width('33%').height(30).backgroundColor(0xF5DEB3) + Text('2').width('33%').height(40).backgroundColor(0xD2B48C) + Text('3').width('33%').height(50).backgroundColor(0xF5DEB3) + } + .size({width: '90%', height: 80}) + .padding(10) + .backgroundColor(0xAFEEEE) + ``` + + ![en-us_image_0000001263019463](figures/en-us_image_0000001263019463.png) + +##### Setting Alignment on the Cross Axis for Child Components +Use the **alignSelf** attribute of child components to set their alignment in the container on the cross axis. The settings overwrite the default **alignItems** settings in the flex layout container. The sample code is as follows: -Use the **alignContent** parameter to set how content items are aligned within the flex container along the cross axis. - -- **FlexAlign.Start**: The items are packed to the start of the container. +```ts +Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { // The items are aligned with the center of the container. + Text('alignSelf Start').width('25%').height(80) + .alignSelf(ItemAlign.Start) + .backgroundColor(0xF5DEB3) + Text('alignSelf Baseline') + .alignSelf(ItemAlign.Baseline) + .width('25%') + .height(80) + .backgroundColor(0xD2B48C) + Text('alignSelf Baseline').width('25%').height(100) + .backgroundColor(0xF5DEB3) + .alignSelf(ItemAlign.Baseline) + Text('no alignSelf').width('25%').height(100) + .backgroundColor(0xD2B48C) + Text('no alignSelf').width('25%').height(100) + .backgroundColor(0xF5DEB3) + +}.width('90%').height(220).backgroundColor(0xAFEEEE) +``` -- **FlexAlign.Center**: The items are packed to the center of the container. +![](figures/alignself.png) + +In the preceding example, both **alignItems** of the **\** component and the **alignSelf** attribute of the child component are set. In this case, the **alignSelf** settings take effect. + +#### Content Alignment + +Use the **alignContent** parameter to set how space is distributed between and around content items along the cross axis. This parameter is valid only for a flex layout that contains multiple lines. The available options are as follows: + +- **FlexAlign.Start**: The items are aligned toward the start edge of the cross axis in the container. + + ```ts + Flex({ justifyContent: FlexAlign.SpaceBetween, wrap: FlexWrap.Wrap, alignContent: FlexAlign.Start }) { + Text('1').width('30%').height(20).backgroundColor(0xF5DEB3) + Text('2').width('60%').height(20).backgroundColor(0xD2B48C) + Text('3').width('40%').height(20).backgroundColor(0xD2B48C) + Text('4').width('30%').height(20).backgroundColor(0xF5DEB3) + Text('5').width('20%').height(20).backgroundColor(0xD2B48C) + } + .width('90%') + .height(100) + .backgroundColor(0xAFEEEE) + ``` + + ![crossStart.png](figures/crossStart.png) + +- **FlexAlign.Center**: The items are aligned toward the center of the cross axis in the container. + + ```ts + Flex({ justifyContent: FlexAlign.SpaceBetween, wrap: FlexWrap.Wrap, alignContent: FlexAlign.Center }) { + Text('1').width('30%').height(20).backgroundColor(0xF5DEB3) + Text('2').width('60%').height(20).backgroundColor(0xD2B48C) + Text('3').width('40%').height(20).backgroundColor(0xD2B48C) + Text('4').width('30%').height(20).backgroundColor(0xF5DEB3) + Text('5').width('20%').height(20).backgroundColor(0xD2B48C) + } + .width('90%') + .height(100) + .backgroundColor(0xAFEEEE) + ``` + + ![crossCenter.png](figures/crossCenter.png) + +- **FlexAlign.End**: The items are aligned toward the end edge of the cross axis in the container. + + ```ts + Flex({ justifyContent: FlexAlign.SpaceBetween, wrap: FlexWrap.Wrap, alignContent: FlexAlign.End }) { + Text('1').width('30%').height(20).backgroundColor(0xF5DEB3) + Text('2').width('60%').height(20).backgroundColor(0xD2B48C) + Text('3').width('40%').height(20).backgroundColor(0xD2B48C) + Text('4').width('30%').height(20).backgroundColor(0xF5DEB3) + Text('5').width('20%').height(20).backgroundColor(0xD2B48C) + } + .width('90%') + .height(100) + .backgroundColor(0xAFEEEE) + ``` + + ![crossEnd.png](figures/crossEnd.png) + +- **FlexAlign.SpaceBetween**: The items are evenly distributed in the container along the cross axis, with the first and last items aligned with the edges of the cross axis. + + ```ts + Flex({ justifyContent: FlexAlign.SpaceBetween, wrap: FlexWrap.Wrap, alignContent: FlexAlign.SpaceBetween }) { + Text('1').width('30%').height(20).backgroundColor(0xF5DEB3) + Text('2').width('60%').height(20).backgroundColor(0xD2B48C) + Text('3').width('40%').height(20).backgroundColor(0xD2B48C) + Text('4').width('30%').height(20).backgroundColor(0xF5DEB3) + Text('5').width('20%').height(20).backgroundColor(0xD2B48C) + } + .width('90%') + .height(100) + .backgroundColor(0xAFEEEE) + ``` + + ![crossSpacebetween.png](figures/crossSpacebetween.png) + +- **FlexAlign.SpaceAround**: The items are evenly distributed in the container along the cross axis. The spacing before the first item and after the last item is half of the spacing between two adjacent items. + + ```ts + Flex({ justifyContent: FlexAlign.SpaceBetween, wrap: FlexWrap.Wrap, alignContent: FlexAlign.SpaceAround }) { + Text('1').width('30%').height(20).backgroundColor(0xF5DEB3) + Text('2').width('60%').height(20).backgroundColor(0xD2B48C) + Text('3').width('40%').height(20).backgroundColor(0xD2B48C) + Text('4').width('30%').height(20).backgroundColor(0xF5DEB3) + Text('5').width('20%').height(20).backgroundColor(0xD2B48C) + } + .width('90%') + .height(100) + .backgroundColor(0xAFEEEE) + ``` + + ![crossSpacearound.png](figures/crossSpacearound.png) + +- **FlexAlign.SpaceEvenly**: The items are evenly distributed in the container along the cross axis. The spacing between each two adjacent items, the spacing between the start edge and the first item, and the spacing between the end edge and the last item, are the same. + + ```ts + Flex({ justifyContent: FlexAlign.SpaceBetween, wrap: FlexWrap.Wrap, alignContent: FlexAlign.SpaceAround }) { + Text('1').width('30%').height(20).backgroundColor(0xF5DEB3) + Text('2').width('60%').height(20).backgroundColor(0xD2B48C) + Text('3').width('40%').height(20).backgroundColor(0xD2B48C) + Text('4').width('30%').height(20).backgroundColor(0xF5DEB3) + Text('5').width('20%').height(20).backgroundColor(0xD2B48C) + } + .width('90%') + .height(100) + .backgroundColor(0xAFEEEE) + ``` + + ![crossSpaceevenly.png](figures/crossSpaceevenly.png) + +### Adaptive Stretching of Flex Layout + +When the size of the container in the flex layout is not large enough, the following attributes of the child component can be used to achieve adaptive layout. +- **flexBasis**: base size of the child component in the container along the main axis. It sets the space occupied by the child component. If this attribute is not set or is set to **auto**, the space occupied by the child component is the value of width/height. + + ```ts + Flex() { + Text('flexBasis("auto")') + .flexBasis('auto') // When width is not set and flexBasis is set to auto, the content is loose. + .height(100) + .backgroundColor(0xF5DEB3) + Text('flexBasis("auto")'+' width("40%")') + .width('40%') + .flexBasis('auto') // When width is set and flexBasis is set to auto, the value of width is used. + .height(100) + .backgroundColor(0xD2B48C) + + Text('flexBasis(100)') // When width is not set and flexBasis is set to 100, the width is 100 vp. + .flexBasis(100) + .height(100) + .backgroundColor(0xF5DEB3) + + Text('flexBasis(100)') + .flexBasis(100) + .width(200) // When width is set to 200 and flexBasis 100, the width is 100 vp, which means that the settings of flexBasis take precedence. + .height(100) + .backgroundColor(0xD2B48C) + }.width('90%').height(120).padding(10).backgroundColor(0xAFEEEE) + ``` + + ![](figures/flexbasis.png) -- **FlexAlign.End**: The items are packed to the end of the container. +- **flexGrow**: percentage of the flex layout's remaining space that is allocated to the child component. In other words, it is the grow factor of the child component. -- **FlexAlign.SpaceBetween**: The items are evenly distributed; the first item is aligned with the main-start while the last item is aligned with the main-end. + ```ts + Flex() { + Text('flexGrow(1)') + .flexGrow(2) + .width(100) + .height(100) + .backgroundColor(0xF5DEB3) + + Text('flexGrow(3)') + .flexGrow(2) + .width(100) + .height(100) + .backgroundColor(0xD2B48C) + + Text('no flexGrow') + .width(100) + .height(100) + .backgroundColor(0xF5DEB3) + }.width(400).height(120).padding(10).backgroundColor(0xAFEEEE) + ``` + + ![](figures/flexgrow.png) -- **FlexAlign.SpaceAround**: The items are evenly distributed, with the space between the item and the main-start and between the item and the main-end equals half of the space between adjacent items. +In the preceding figure, the width of the parent container is 400 vp, the original width of the three child components is 100 vp, which adds up to the total width of 300 vp. The remaining space 100 vp is allocated to the child components based on their **flexGrow** settings. Child components that do not have **flexGrow** set are not involved in the allocation of remaining space. +The first child component and the second child component receive their share of remaining space at the 2:3 ratio. The width of the first child component is 100 vp + 100 vp x 2/5 = 140 vp, and the width of the second child component is 100 vp + 100 vp x 3/5 = 160 vp. -- **FlexAlign.SpaceEvenly**: The items are evenly distributed, with the space between the item and the main-start and between the item and the main-end equals the space between adjacent items. +- **flexShrink**: shrink factor of the child component when the size of all child components is larger than the flex container. + ```ts + Flex({ direction: FlexDirection.Row }) { + Text('flexShrink(3)') + .flexShrink(3) + .width(200) + .height(100) + .backgroundColor(0xF5DEB3) + + Text('no flexShrink') + .width(200) + .height(100) + .backgroundColor(0xD2B48C) + + Text('flexShrink(2)') + .flexShrink(2) + .width(200) + .height(100) + .backgroundColor(0xF5DEB3) + }.width(400).height(120).padding(10).backgroundColor(0xAFEEEE) + ``` + + ![](figures/flexshrink.png) ## Example Scenario -In this example, a flex layout is designed to achieve the following effects: The child components are laid out horizontally on a single line, even when the total width of the child components exceeds the width of the container; the child components are horizontally aligned at both ends and vertically aligned toward the center of the container; the space is evenly divided by the child components except for the start and end ones. +With the flex layout, child components can be arranged horizontally, aligned at both edges, evenly spaced, and centered in the vertical direction. The sample code is as follows: ```ts -@Entry +@Entry @Component struct FlexExample { build() { @@ -358,7 +569,6 @@ struct FlexExample { } .height(70) .width('90%') - .padding(10) .backgroundColor(0xAFEEEE) }.width('100%').margin({ top: 5 }) }.width('100%') @@ -366,5 +576,4 @@ struct FlexExample { } ``` - -![en-us_image_0000001261605867](figures/en-us_image_0000001261605867.png) +![en-us_image_0000001261605867](figures/flexExample.png) diff --git a/en/application-dev/website.md b/en/application-dev/website.md index 9f4a69cf61b3e6967575bdfd8e60660b8481af19..8eb6c7e4ba47d1f1950a4c787ebf1481ef6e96f4 100644 --- a/en/application-dev/website.md +++ b/en/application-dev/website.md @@ -34,40 +34,38 @@ - [Ability Assistant Usage](ability/ability-assistant-guidelines.md) - [ContinuationManager Development](ability/continuationmanager.md) - [Test Framework Usage](ability/ability-delegator.md) + + + - UI Development - [ArkUI Overview](ui/arkui-overview.md) - ArkTS-based Declarative Development Paradigm - [Overview](ui/ui-ts-overview.md) - - Framework Overview - - File Organization - - [Directory Structure](ui/ts-framework-directory.md) - - [Rules for Accessing Application Code Files](ui/ts-framework-file-access-rules.md) - - Resource Management - - [Resource File Categories](ui/ui-ts-basic-resource-file-categories.md) - - [Accessing Resources](ui/ts-resource-access.md) - - [Pixel Units](ui/ts-pixel-units.md) - - Componentization - - [Initialization of Custom Components' Member Variables](ui/ts-custom-component-initialization.md) - - [Custom Component Lifecycle Callbacks](ui/ts-custom-component-lifecycle-callbacks.md) - - [Component Creation and Re-initialization](ui/ts-component-creation-re-initialization.md) - - Common Component Development Guidelines - - [Button](ui/ui-ts-basic-components-button.md) - - [Web](ui/ui-ts-components-web.md) - - Common Layout Development Guidelines - - [Flex Layout](ui/ui-ts-layout-flex.md) - - [Grid Layout](ui/ui-ts-layout-grid-container.md) - - [Media Query](ui/ui-ts-layout-mediaquery.md) - - Experiencing the Declarative UI - - [Creating a Declarative UI Project](ui/ui-ts-creating-project.md) - - [Getting to Know Components](ui/ui-ts-components.md) + - [Declarative UI Development Guidelines](ui/ui-ts-developing-intro.md) + - Declarative UI Development Examples - [Creating a Simple Page](ui/ui-ts-creating-simple-page.md) - - Defining Page Layout and Connection - - [Building a Food Data Model](ui/ui-ts-building-data-model.md) - - [Building a Food Category List Layout](ui/ui-ts-building-category-list-layout.md) - - [Building a Food Category Grid Layout](ui/ui-ts-building-category-grid-layout.md) - - [Implementing Page Redirection and Data Transmission](ui/ui-ts-page-redirection-data-transmission.md) - - [Recommendations for Improving Performance](ui/ts-performance-improvement-recommendation.md) - - JavaScript-compatible Web-like Development Paradigm + - Building a Comprehensive Example + - [Building a Food Data Model](ui/ui-ts-building-data-model.md) + - [Building a Food Category List Layout](ui/ui-ts-building-category-list-layout.md) + - [Building a Food Category Grid Layout](ui/ui-ts-building-category-grid-layout.md) + - [Implementing Page Redirection and Data Transmission](ui/ui-ts-page-redirection-data-transmission.md) + - Adding a Splash Screen Animation + - [Using the Drawing Feature](ui/ui-ts-drawing-feature.md) + - [Using the Animation Feature](ui/ui-ts-animation-feature.md) + - [Common Components](ui/ui-ts-components-intro.md) + - Common Layout Development + - Adaptive Layouts + - [Linear Layout](ui/ui-ts-layout-linear.md) + - [Statck Layout](ui/ui-ts-layout-stack.md) + - [Flex Layout](ui/ui-ts-layout-flex.md) + - [Grid Layout](ui/ui-ts-layout-grid.md) + - Responsive Layouts + - [Grid Layout](ui/ui-ts-layout-grid-container-new.md) + - [Media Query](ui/ui-ts-layout-mediaquery.md) + - [Custom Component Lifecycle Callbacks](ui/ui-ts-custom-component-lifecycle-callbacks.md) + - [Web Component Development](ui/ui-ts-components-web.md) + - [Recommendations for Improving Performance](ui/ui-ts-performance-improvement-recommendation.md) + - UI Development with JavaScript-compatible Web-like Development Paradigm - [Overview](ui/ui-js-overview.md) - Framework - [File Organization](ui/js-framework-file.md) @@ -163,9 +161,14 @@ - [OpenSL ES Audio Playback Development](media/opensles-playback.md) - [OpenSL ES Audio Recording Development](media/opensles-capture.md) - [Audio Interruption Mode Development](media/audio-interruptmode.md) + - [Volume Management Development](media/audio-volume-manager.md) + - [Audio Routing and Device Management Development](media/audio-routing-manager.md) - Video - [Video Playback Development](media/video-playback.md) - [Video Recording Development](media/video-recorder.md) + - AVSession + - [AVSession Overview](media/avsession-overview.md) + - [AVSession Development](media/avsession-guidelines.md) - Image - [Image Development](media/image.md) - Camera @@ -183,6 +186,9 @@ - Key Management - [HUKS Overview](security/huks-overview.md) - [HUKS Development](security/huks-guidelines.md) + - Crypto Framework + - [Crypto Framework Overview](security/cryptoFramework-overview.md) + - [Crypto Framework Development](security/cryptoFramework-guidelines.md) - hapsigner - [hapsigner Overview](security/hapsigntool-overview.md) - [hapsigner Guide](security/hapsigntool-guidelines.md) @@ -216,13 +222,20 @@ - Data Share - [DataShare Overview](database/database-datashare-overview.md) - [DataShare Development](database/database-datashare-guidelines.md) + - File Management + - MediaLibrary + - [MediaLibrary Development Overview](file-management/medialibrary-overview.md) + - [Media Asset Management](file-management/medialibrary-resource-guidelines.md) + - [File Path Management](file-management/medialibrary-filepath-guidelines.md) + - [Album Management](file-management/medialibrary-album-guidelines.md) + - Task Management - Background Task Management - [Background Task Management Overview](task-management/background-task-overview.md) - - [Background Task Management Development](task-management/background-task-dev-guide.md) - - Work Scheduler - - [Work Scheduler Overview](task-management/work-scheduler-overview.md) + - [Transient Task Development](task-management/transient-task-dev-guide.md) + - [Continuous Task Development](task-management/continuous-task-dev-guide.md) - [Work Scheduler Development](task-management/work-scheduler-dev-guide.md) + - [Efficiency Resource Request Development](task-management/efficiency-resources-apply-dev-guide.md) - Device - USB Service - [USB Service Overview](device/usb-overview.md) @@ -240,19 +253,16 @@ - Update Service - [Sample Server Overview](device/sample-server-overview.md) - [Sample Server Development](device/sample-server-guidelines.md) + - Update Service + - [Sample Server Overview](device/sample-server-overview.md) + - [Sample Server Development](device/sample-server-guidelines.md) - Device Usage Statistics - [Device Usage Statistics Overview](device-usage-statistics/device-usage-statistics-overview.md) - - [Device Usage Statistics Development](device-usage-statistics/device-usage-statistics-dev-guide.md) + - [Device Usage Statistics Development](device-usage-statistics/device-usage-statistics-use-guide.md) - DFX - - Application Event Logging - - [Overview of Application Event Logging](dfx/hiappevent-overview.md) - - [Development of Application Event Logging](dfx/hiappevent-guidelines.md) - - Performance Tracing - - [Overview of Performance Tracing](dfx/hitracemeter-overview.md) - - [Development of Performance Tracing](dfx/hitracemeter-guidelines.md) - - Distributed Call Chain Tracing - - [Overview of Distributed Call Chain Tracing](dfx/hitracechain-overview.md) - - [Development of Distributed Call Chain Tracing](dfx/hitracechain-guidelines.md) + - [Development of Application Event Logging](dfx/hiappevent-guidelines.md) + - [Development of Performance Tracing](dfx/hitracemeter-guidelines.md) + - [Development of Distributed Call Chain Tracing](dfx/hitracechain-guidelines.md) - Error Management - [Development of Error Manager](dfx/errormanager-guidelines.md) - Internationalization @@ -274,6 +284,7 @@ - API References - [SysCap List](reference/syscap-list.md) - Component Reference (ArkTS-based Declarative Development Paradigm) + - [Component Overview](reference/arkui-ts/ts-components-summary.md) - Universal Component Information - Universal Events - [Click Event](reference/arkui-ts/ts-universal-events-click.md) @@ -339,6 +350,8 @@ - [LoadingProgress](reference/arkui-ts/ts-basic-components-loadingprogress.md) - [Marquee](reference/arkui-ts/ts-basic-components-marquee.md) - [Navigation](reference/arkui-ts/ts-basic-components-navigation.md) + - [NavRouter](reference/arkui-ts/ts-basic-components-navrouter.md) + - [NavDestination](reference/arkui-ts/ts-basic-components-navdestination.md) - [PatternLock](reference/arkui-ts/ts-basic-components-patternlock.md) - [PluginComponent](reference/arkui-ts/ts-basic-components-plugincomponent.md) - [Progress](reference/arkui-ts/ts-basic-components-progress.md) @@ -372,6 +385,7 @@ - [ColumnSplit](reference/arkui-ts/ts-container-columnsplit.md) - [Counter](reference/arkui-ts/ts-container-counter.md) - [Flex](reference/arkui-ts/ts-container-flex.md) + - [FlowItem](reference/arkui-ts/ts-container-flowitem.md) - [GridContainer](reference/arkui-ts/ts-container-gridcontainer.md) - [GridCol](reference/arkui-ts/ts-container-gridcol.md) - [GridRow](reference/arkui-ts/ts-container-gridrow.md) @@ -392,7 +406,8 @@ - [Swiper](reference/arkui-ts/ts-container-swiper.md) - [Tabs](reference/arkui-ts/ts-container-tabs.md) - [TabContent](reference/arkui-ts/ts-container-tabcontent.md) - - Media Components + - [WaterFlow](reference/arkui-ts/ts-container-waterflow.md) + - Media Component - [Video](reference/arkui-ts/ts-media-components-video.md) - Drawing Components - [Circle](reference/arkui-ts/ts-drawing-components-circle.md) @@ -420,7 +435,6 @@ - [Component Transition](reference/arkui-ts/ts-transition-animation-component.md) - [Transition of Shared Elements](reference/arkui-ts/ts-transition-animation-shared-elements.md) - [Motion Path Animation](reference/arkui-ts/ts-motion-path-animation.md) - - Global UI Methods - Pop-up Window - [Alert Dialog Box](reference/arkui-ts/ts-methods-alert-dialog-box.md) @@ -430,8 +444,12 @@ - [Time Picker Dialog Box](reference/arkui-ts/ts-methods-timepicker-dialog.md) - [Text Picker Dialog Box](reference/arkui-ts/ts-methods-textpicker-dialog.md) - [Menu](reference/arkui-ts/ts-methods-menu.md) + - [State Management with Application-level Variables](reference/arkui-ts/ts-state-management.md) + - [Pixel Units](reference/arkui-ts/ts-pixel-units.md) - [Built-in Enums](reference/arkui-ts/ts-appendix-enums.md) - [Types](reference/arkui-ts/ts-types.md) + - Deprecated Components + - [GridContainer](reference/arkui-ts/ts-container-gridcontainer.md) - Component Reference (JavaScript-compatible Web-like Development Paradigm) - Universal Component Information - [Universal Attributes](reference/arkui-js/js-components-common-attributes.md) @@ -527,122 +545,224 @@ - [animateTransform](reference/arkui-js/js-components-svg-animatetransform.md) - Custom Components - [Basic Usage](reference/arkui-js/js-components-custom-basic-usage.md) - - [Style Inheritance](reference/arkui-js/js-components-custom-style.md) - - [Custom Events](reference/arkui-js/js-components-custom-events.md) - [props](reference/arkui-js/js-components-custom-props.md) - - [Event Parameter](reference/arkui-js/js-components-custom-event-parameter.md) + - [Style Inheritance](reference/arkui-js/js-components-custom-style.md) - [slot](reference/arkui-js/js-components-custom-slot.md) - [Lifecycle Definition](reference/arkui-js/js-components-custom-lifecycle.md) - [Data Type Attributes](reference/arkui-js/js-appendix-types.md) + - JS Service Widget UI Components + - JS Service Widget UI Framework + - [File Organization](reference/js-service-widget-ui/js-service-widget-file.md) + - Syntax + - [HML](reference/js-service-widget-ui/js-service-widget-syntax-hml.md) + - [CSS](reference/js-service-widget-ui/js-service-widget-syntax-css.md) + - [Multi-Language Capability](reference/js-service-widget-ui/js-service-widget-multiple-languages.md) + - [Version Compatibility Adaptation](reference/js-service-widget-ui/js-service-widget-version-compatibility.md) + - [Theme Configuration](reference/js-service-widget-ui/js-service-widget-theme.md) + - Components + - Universal + - [Universal Attributes](reference/js-service-widget-ui/js-service-widget-common-attributes.md) + - [Universal Styles](reference/js-service-widget-ui/js-service-widget-common-styles.md) + - [Universal Events](reference/js-service-widget-ui/js-service-widget-common-events.md) + - [Gradient Styles](reference/js-service-widget-ui/js-service-widget-common-gradient.md) + - [Media Query](reference/js-service-widget-ui/js-service-widget-common-mediaquery.md) + - [Custom Font Styles](reference/js-service-widget-ui/js-service-widget-common-customizing-font.md) + - [Accessibility](reference/js-service-widget-ui/js-service-widget-common-accessibility.md) + - [Atomic Layout](reference/js-service-widget-ui/js-service-widget-common-atomic-layout.md) + - Container Components + - [badge](reference/js-service-widget-ui/js-service-widget-container-badge.md) + - [div](reference/js-service-widget-ui/js-service-widget-container-div.md) + - [list](reference/js-service-widget-ui/js-service-widget-container-list.md) + - [list-item](reference/js-service-widget-ui/js-service-widget-container-list-item.md) + - [stack](reference/js-service-widget-ui/js-service-widget-container-stack.md) + - [swiper](reference/js-service-widget-ui/js-service-widget-container-swiper.md) + - Basic Components + - [button](reference/js-service-widget-ui/js-service-widget-basic-button.md) + - [calendar](reference/js-service-widget-ui/js-service-widget-basic-calendar.md) + - [chart](reference/js-service-widget-ui/js-service-widget-basic-chart.md) + - [clock](reference/js-service-widget-ui/js-service-widget-basic-clock.md) + - [divider](reference/js-service-widget-ui/js-service-widget-basic-divider.md) + - [image](reference/js-service-widget-ui/js-service-widget-basic-image.md) + - [input](reference/js-service-widget-ui/js-service-widget-basic-input.md) + - [progress](reference/js-service-widget-ui/js-service-widget-basic-progress.md) + - [span](reference/js-service-widget-ui/js-service-widget-basic-span.md) + - [text](reference/js-service-widget-ui/js-service-widget-basic-text.md) + - [Custom Component Basic Usage](reference/js-service-widget-ui/js-service-widget-custom-basic-usage.md) + - [Data Types](reference/js-service-widget-ui/js-service-widget-appendix-types.md) - JS and TS APIs - [API Reference Document Description](reference/apis/development-intro.md) - Ability Framework - - FA Model - - [@ohos.ability.featureAbility](reference/apis/js-apis-featureAbility.md) - - [@ohos.ability.particleAbility](reference/apis/js-apis-particleAbility.md) - - [dataAbilityHelper](reference/apis/js-apis-dataAbilityHelper.md) - - [context](reference/apis/js-apis-Context.md) - - Stage Model + - Stage Model (Recommended) + - [@ohos.app.ability.Ability](reference/apis/js-apis-app-ability-ability.md) + - [@ohos.app.ability.AbilityConstant](reference/apis/js-apis-app-ability-abilityConstant.md) + - [@ohos.app.ability.abilityLifecycleCallback](reference/apis/js-apis-app-ability-abilityLifecycleCallback.md) + - [@ohos.app.ability.AbilityStage](reference/apis/js-apis-app-ability-abilityStage.md) + - [@ohos.app.ability.common](reference/apis/js-apis-app-ability-common.md) + - [@ohos.app.ability.contextConstant](reference/apis/js-apis-app-ability-contextConstant.md) + - [@ohos.app.ability.EnvironmentCallback](reference/apis/js-apis-app-ability-environmentCallback.md) + - [@ohos.app.ability.ExtensionAbility](reference/apis/js-apis-app-ability-extensionAbility.md) + - [@ohos.app.ability.ServiceExtensionAbility](reference/apis/js-apis-app-ability-serviceExtensionAbility.md) + - [@ohos.app.ability.StartOptions](reference/apis/js-apis-app-ability-startOptions.md) + - [@ohos.app.ability.UIAbility](reference/apis/js-apis-app-ability-uiAbility.md) + - [@ohos.app.form.FormExtensionAbility](reference/apis/js-apis-app-form-formExtensionAbility.md) + - Stage Model (To Be Deprecated Soon) - [@ohos.application.Ability](reference/apis/js-apis-application-ability.md) - [@ohos.application.AbilityConstant](reference/apis/js-apis-application-abilityConstant.md) - - [@ohos.application.AbilityStage](reference/apis/js-apis-application-abilitystage.md) - - [@ohos.application.abilityLifecycleCallback](reference/apis/js-apis-application-abilityLifecycleCallback.md) + - [@ohos.application.AbilityLifecycleCallback](reference/apis/js-apis-application-abilityLifecycleCallback.md) + - [@ohos.application.AbilityStage](reference/apis/js-apis-application-abilityStage.md) + - [@ohos.application.context](reference/apis/js-apis-application-context.md) - [@ohos.application.DataShareExtensionAbility](reference/apis/js-apis-application-DataShareExtensionAbility.md) - - [@ohos.application.FormExtension](reference/apis/js-apis-formextension.md) - - [@ohos.application.ServiceExtensionAbility](reference/apis/js-apis-service-extension-ability.md) - - [@ohos.application.StartOptions](reference/apis/js-apis-application-StartOptions.md) + - [@ohos.application.EnvironmentCallback](reference/apis/js-apis-application-environmentCallback.md) + - [@ohos.application.ExtensionAbility](reference/apis/js-apis-application-extensionAbility.md) + - [@ohos.application.FormExtension](reference/apis/js-apis-application-formExtension.md) + - [@ohos.application.ServiceExtensionAbility](reference/apis/js-apis-application-serviceExtensionAbility.md) + - [@ohos.application.StartOptions](reference/apis/js-apis-application-startOptions.md) - [@ohos.application.StaticSubscriberExtensionAbility](reference/apis/js-apis-application-staticSubscriberExtensionAbility.md) - - [@ohos.application.WindowExtensionAbility](reference/apis/js-apis-application-WindowExtensionAbility.md) - - [AbilityContext](reference/apis/js-apis-ability-context.md) - - [ApplicationContext](reference/apis/js-apis-application-applicationContext.md) - - [AbilityStageContext](reference/apis/js-apis-abilitystagecontext.md) - - [Context](reference/apis/js-apis-application-context.md) - - [ExtensionContext](reference/apis/js-apis-extension-context.md) - - [FormExtensionContext](reference/apis/js-apis-formextensioncontext.md) - - [PermissionRequestResult](reference/apis/js-apis-permissionrequestresult.md) - - [ServiceExtensionContext](reference/apis/js-apis-service-extension-context.md) - - FA and Stage Models - - [@ohos.ability.dataUriUtils](reference/apis/js-apis-DataUriUtils.md) + - FA Model + - [@ohos.ability.ability](reference/apis/js-apis-ability-ability.md) + - [@ohos.ability.featureAbility](reference/apis/js-apis-ability-featureAbility.md) + - [@ohos.ability.particleAbility](reference/apis/js-apis-ability-particleAbility.md) + - Both Models (Recommended) + - [@ohos.app.ability.abilityDelegatorRegistry](reference/apis/js-apis-app-ability-abilityDelegatorRegistry.md) + - [@ohos.app.ability.abilityManager](reference/apis/js-apis-app-ability-abilityManager.md) + - [@ohos.app.ability.appManager](reference/apis/js-apis-app-ability-appManager.md) + - [@ohos.app.ability.appRecovery](reference/apis/js-apis-app-ability-appRecovery.md) + - [@ohos.app.ability.Configuration](reference/apis/js-apis-app-ability-configuration.md) + - [@ohos.app.ability.ConfigurationConstant](reference/apis/js-apis-app-ability-configurationConstant.md) + - [@ohos.app.ability.dataUriUtils](reference/apis/js-apis-app-ability-dataUriUtils.md) + - [@ohos.app.ability.errorManager](reference/apis/js-apis-app-ability-errorManager.md) + - [@ohos.app.ability.missionManager](reference/apis/js-apis-app-ability-missionManager.md) + - [@ohos.app.ability.quickFixManager](reference/apis/js-apis-app-ability-quickFixManager.md) + - [@ohos.app.ability.Want](reference/apis/js-apis-app-ability-want.md) + - [@ohos.app.ability.wantAgent](reference/apis/js-apis-app-ability-wantAgent.md) + - [@ohos.app.ability.wantConstant](reference/apis/js-apis-app-ability-wantConstant.md) + - [@ohos.app.form.formBindingData](reference/apis/js-apis-app-form-formBindingData.md) + - [@ohos.app.form.formHost](reference/apis/js-apis-app-form-formHost.md) + - [@ohos.app.form.formInfo](reference/apis/js-apis-app-form-formInfo.md) + - [@ohos.app.form.formProvider](reference/apis/js-apis-app-form-formProvider.md) + - Both Models (To Be Deprecated Soon) + - [@ohos.ability.dataUriUtils](reference/apis/js-apis-ability-dataUriUtils.md) - [@ohos.ability.errorCode](reference/apis/js-apis-ability-errorCode.md) - [@ohos.ability.wantConstant](reference/apis/js-apis-ability-wantConstant.md) - - [@ohos.application.abilityDelegatorRegistry](reference/apis/js-apis-abilityDelegatorRegistry.md) + - [@ohos.application.abilityDelegatorRegistry](reference/apis/js-apis-application-abilityDelegatorRegistry.md) - [@ohos.application.abilityManager](reference/apis/js-apis-application-abilityManager.md) - - [@ohos.application.AccessibilityExtensionAbility](reference/apis/js-apis-accessibility-extension-context.md) - - [@ohos.application.AccessibilityExtensionAbility](reference/apis/js-apis-application-AccessibilityExtensionAbility.md) - - [@ohos.application.appManager](reference/apis/js-apis-appmanager.md) - - [@ohos.application.Configuration](reference/apis/js-apis-configuration.md) - - [@ohos.application.ConfigurationConstant](reference/apis/js-apis-configurationconstant.md) - - [@ohos.application.EnvironmentCallback](reference/apis/js-apis-application-EnvironmentCallback.md) - - [@ohos.application.errorManager](reference/apis/js-apis-errorManager.md) - - [@ohos.application.formBindingData](reference/apis/js-apis-formbindingdata.md) - - [@ohos.application.formError](reference/apis/js-apis-formerror.md) - - [@ohos.application.formHost](reference/apis/js-apis-formhost.md) - - [@ohos.application.formInfo](reference/apis/js-apis-formInfo.md) - - [@ohos.application.formProvider](reference/apis/js-apis-formprovider.md) - - [@ohos.application.missionManager](reference/apis/js-apis-missionManager.md) - - [@ohos.application.quickFixManager](reference/apis/js-apis-application-quickFixManager.md) - - [@ohos.application.Want](reference/apis/js-apis-application-Want.md) - - [@ohos.continuation.continuationManager](reference/apis/js-apis-continuation-continuationExtraParams.md) - - [@ohos.continuation.continuationManager](reference/apis/js-apis-continuation-continuationManager.md) + - [@ohos.application.appManager](reference/apis/js-apis-application-appManager.md) + - [@ohos.application.Configuration](reference/apis/js-apis-application-configuration.md) + - [@ohos.application.ConfigurationConstant](reference/apis/js-apis-application-configurationConstant.md) + - [@ohos.application.errorManager](reference/apis/js-apis-application-errorManager.md) + - [@ohos.application.formBindingData](reference/apis/js-apis-application-formBindingData.md) + - [@ohos.application.formError](reference/apis/js-apis-application-formError.md) + - [@ohos.application.formHost](reference/apis/js-apis-application-formHost.md) + - [@ohos.application.formInfo](reference/apis/js-apis-application-formInfo.md) + - [@ohos.application.formProvider](reference/apis/js-apis-application-formProvider.md) + - [@ohos.application.missionManager](reference/apis/js-apis-application-missionManager.md) + - [@ohos.application.Want](reference/apis/js-apis-application-want.md) - [@ohos.wantAgent](reference/apis/js-apis-wantAgent.md) - - [abilityDelegator](reference/apis/js-apis-application-abilityDelegator.md) - - [abilityDelegatorArgs](reference/apis/js-apis-application-abilityDelegatorArgs.md) - - [abilityMonitor](reference/apis/js-apis-application-abilityMonitor.md) - - [AbilityRunningInfo](reference/apis/js-apis-abilityrunninginfo.md) - - [ExtensionRunningInfo](reference/apis/js-apis-extensionrunninginfo.md) - - [MissionSnapshot](reference/apis/js-apis-application-MissionSnapshot.md) - - [ProcessRunningInfo](reference/apis/js-apis-processrunninginfo.md) - - [ProcessRunningInformation](reference/apis/js-apis-processrunninginformation.md) - - [shellCmdResult](reference/apis/js-apis-application-shellCmdResult.md) - - [ContinuationResult](reference/apis/js-apis-continuation-continuationResult.md) + - Dependent Elements and Definitions + - ability + - [abilityResult](reference/apis/js-apis-inner-ability-abilityResult.md) + - [connectOptions](reference/apis/js-apis-inner-ability-connectOptions.md) + - [dataAbilityHelper](reference/apis/js-apis-inner-ability-dataAbilityHelper.md) + - [dataAbilityOperation](reference/apis/js-apis-inner-ability-dataAbilityOperation.md) + - [dataAbilityResult](reference/apis/js-apis-inner-ability-dataAbilityResult.md) + - [startAbilityParameter](reference/apis/js-apis-inner-ability-startAbilityParameter.md) + - [want](reference/apis/js-apis-inner-ability-want.md) + - app + - [appVersionInfo](reference/apis/js-apis-inner-app-appVersionInfo.md) + - [context](reference/apis/js-apis-inner-app-context.md) + - [processInfo](reference/apis/js-apis-inner-app-processInfo.md) + - application + - [AbilityContext](reference/apis/js-apis-ability-context.md) + - [abilityDelegator](reference/apis/js-apis-inner-application-abilityDelegator.md) + - [abilityDelegatorArgs](reference/apis/js-apis-inner-application-abilityDelegatorArgs.md) + - [abilityMonitor](reference/apis/js-apis-inner-application-abilityMonitor.md) + - [AbilityRunningInfo](reference/apis/js-apis-inner-application-abilityRunningInfo.md) + - [AbilityStageContext](reference/apis/js-apis-inner-application-abilityStageContext.md) + - [AbilityStateData](reference/apis/js-apis-inner-application-abilityStateData.md) + - [abilityStageMonitor](reference/apis/js-apis-inner-application-abilityStageMonitor.md) + - [ApplicationContext](reference/apis/js-apis-inner-application-applicationContext.md) + - [ApplicationStateObserver](reference/apis/js-apis-inner-application-applicationStateObserver.md) + - [AppStateData](reference/apis/js-apis-inner-application-appStateData.md) + - [BaseContext](reference/apis/js-apis-inner-application-baseContext.md) + - [Context](reference/apis/js-apis-inner-application-context.md) + - [ContinueCallback](reference/apis/js-apis-inner-application-continueCallback.md) + - [ContinueDeviceInfo](reference/apis/js-apis-inner-application-continueDeviceInfo.md) + - [ErrorObserver](reference/apis/js-apis-inner-application-errorObserver.md) + - [ExtensionContext](reference/apis/js-apis-inner-application-extensionContext.md) + - [ExtensionRunningInfo](reference/apis/js-apis-inner-application-extensionRunningInfo.md) + - [FormExtensionContext](reference/apis/js-apis-inner-application-formExtensionContext.md) + - [MissionCallbacks](reference/apis/js-apis-inner-application-missionCallbacks.md) + - [MissionDeviceInfo](reference/apis/js-apis-inner-application-missionDeviceInfo.md) + - [MissionInfo](reference/apis/js-apis-inner-application-missionInfo.md) + - [MissionListener](reference/apis/js-apis-inner-application-missionListener.md) + - [MissionParameter](reference/apis/js-apis-inner-application-missionParameter.md) + - [MissionSnapshot](reference/apis/js-apis-inner-application-missionSnapshot.md) + - [PermissionRequestResult](reference/apis/js-apis-inner-application-permissionRequestResult.md) + - [ProcessData](reference/apis/js-apis-inner-application-processData.md) + - [ProcessRunningInfo](reference/apis/js-apis-inner-application-processRunningInfo.md) + - [ProcessRunningInformation](reference/apis/js-apis-inner-application-processRunningInformation.md) + - [ServiceExtensionContext](reference/apis/js-apis-inner-application-serviceExtensionContext.md) + - [UIAbilityContext](reference/apis/js-apis-inner-application-uiAbilityContext.md) + - [shellCmdResult](reference/apis/js-apis-inner-application-shellCmdResult.md) + - wantAgent + - [triggerInfo](reference/apis/js-apis-inner-wantAgent-triggerInfo.md) + - [wantAgentInfo](reference/apis/js-apis-inner-wantAgent-wantAgentInfo.md) + - Continuation + - [@ohos.continuation.continuationManager (continuationManager)](reference/apis/js-apis-continuation-continuationManager.md) + - continuation + - [continuationExtraParams](reference/apis/js-apis-continuation-continuationExtraParams.md) + - [continuationResult](reference/apis/js-apis-continuation-continuationResult.md) - Common Event and Notification - [@ohos.commonEvent](reference/apis/js-apis-commonEvent.md) - [@ohos.events.emitter](reference/apis/js-apis-emitter.md) - [@ohos.notification](reference/apis/js-apis-notification.md) - [@ohos.reminderAgent](reference/apis/js-apis-reminderAgent.md) - - [EventHub](reference/apis/js-apis-eventhub.md) + - application + - [EventHub](reference/apis/js-apis-inner-application-eventHub.md) - Bundle Management - - [@ohos.bundle](reference/apis/js-apis-Bundle.md) - - [@ohos.bundle.defaultAppManager](reference/apis/js-apis-bundle-defaultAppManager.md) - - [@ohos.bundle.innerBundleManager)](reference/apis/js-apis-Bundle-InnerBundleManager.md) - - [@ohos.bundleState](reference/apis/js-apis-deviceUsageStatistics.md) - - [@ohos.distributedBundle](reference/apis/js-apis-Bundle-distributedBundle.md) + - [@ohos.bundle.appControl](reference/apis/js-apis-appControl.md) + - [@ohos.bundle.bundleManager](reference/apis/js-apis-bundleManager.md) + - [@ohos.bundle.bundleMonitor](reference/apis/js-apis-bundleMonitor.md) + - [@ohos.bundle.defaultAppManager](reference/apis/js-apis-defaultAppManager.md) + - [@ohos.bundle.distributedBundle](reference/apis/js-apis-distributedBundle.md) + - [@ohos.bundle.freeInstall](reference/apis/js-apis-freeInstall.md) + - [@ohos.bundle.installer](reference/apis/js-apis-installer.md) + - [@ohos.bundle.launcherBundleManager](reference/apis/js-apis-launcherBundleManager.md) - [@ohos.zlib](reference/apis/js-apis-zlib.md) - - [AbilityInfo](reference/apis/js-apis-bundle-AbilityInfo.md) - - [ApplicationInfo](reference/apis/js-apis-bundle-ApplicationInfo.md) - - [BundleInfo](reference/apis/js-apis-bundle-BundleInfo.md) - - [BundleInstaller](reference/apis/js-apis-bundle-BundleInstaller.md) - - [BundleStatusCallback](reference/apis/js-apis-Bundle-BundleStatusCallback.md) - - [CustomizeData](reference/apis/js-apis-bundle-CustomizeData.md) - - [DispatchInfo](reference/apis/js-apis-dispatchInfo.md) - - [ElementName](reference/apis/js-apis-bundle-ElementName.md) - - [ExtensionAbilityInfo](reference/apis/js-apis-bundle-ExtensionAbilityInfo.md) - - [HapModuleInfo](reference/apis/js-apis-bundle-HapModuleInfo.md) - - [LauncherAbilityInfo](reference/apis/js-apis-bundle-LauncherAbilityInfo.md) - - [Metadata](reference/apis/js-apis-bundle-Metadata.md) - - [ModuleInfo](reference/apis/js-apis-bundle-ModuleInfo.md) - - [PackInfo](reference/apis/js-apis-bundle-PackInfo.md) - - [PermissionDef](reference/apis/js-apis-bundle-PermissionDef.md) - - [RemoteAbilityInfo](reference/apis/js-apis-bundle-remoteAbilityInfo.md) - - [ShortcutInfo](reference/apis/js-apis-bundle-ShortcutInfo.md) + - bundleManager + - [abilityInfo](reference/apis/js-apis-bundleManager-abilityInfo.md) + - [applicationInfo](reference/apis/js-apis-bundleManager-applicationInfo.md) + - [bundleInfo](reference/apis/js-apis-bundleManager-bundleInfo.md) + - [dispatchInfo](reference/apis/js-apis-bundleManager-dispatchInfo.md) + - [elementName](reference/apis/js-apis-bundleManager-elementName.md) + - [extensionAbilityInfo](reference/apis/js-apis-bundleManager-extensionAbilityInfo.md) + - [hapModuleInfo](reference/apis/js-apis-bundleManager-hapModuleInfo.md) + - [launcherAbilityInfo](reference/apis/js-apis-bundleManager-launcherAbilityInfo.md) + - [metadata](reference/apis/js-apis-bundleManager-metadata.md) + - [packInfo](reference/apis/js-apis-bundleManager-packInfo.md) + - [permissionDef](reference/apis/js-apis-bundleManager-permissionDef.md) + - [remoteAbilityInfo](reference/apis/js-apis-bundleManager-remoteAbilityInfo.md) + - [shortcutInfo](reference/apis/js-apis-bundleManager-shortcutInfo.md) - UI Page - [@ohos.animator](reference/apis/js-apis-animator.md) - [@ohos.mediaquery](reference/apis/js-apis-mediaquery.md) - - [@ohos.prompt](reference/apis/js-apis-prompt.md) + - [@ohos.promptAction](reference/apis/js-apis-promptAction.md) - [@ohos.router](reference/apis/js-apis-router.md) - - [@ohos.uiAppearance](reference/apis/js-apis-uiappearance.md) - Graphics - [@ohos.animation.windowAnimationManager](reference/apis/js-apis-windowAnimationManager.md) + - [@ohos.application.WindowExtensionAbility](reference/apis/js-apis-application-windowExtensionAbility.md) - [@ohos.display](reference/apis/js-apis-display.md) - [@ohos.effectKit](reference/apis/js-apis-effectKit.md) - [@ohos.graphics.colorSpaceManager](reference/apis/js-apis-colorSpaceManager.md) - [@ohos.screen](reference/apis/js-apis-screen.md) - [@ohos.screenshot](reference/apis/js-apis-screenshot.md) - [@ohos.window](reference/apis/js-apis-window.md) + - webgl - [webgl](reference/apis/js-apis-webgl.md) - [webgl2](reference/apis/js-apis-webgl2.md) - Media - [@ohos.multimedia.audio](reference/apis/js-apis-audio.md) + - [@ohos.multimedia.avsession](reference/apis/js-apis-avsession.md) - [@ohos.multimedia.camera](reference/apis/js-apis-camera.md) - [@ohos.multimedia.image](reference/apis/js-apis-image.md) - [@ohos.multimedia.media](reference/apis/js-apis-media.md) @@ -651,18 +771,16 @@ - [@ohos.intl](reference/apis/js-apis-intl.md) - [@ohos.resourceManager](reference/apis/js-apis-resource-manager.md) - Resource Scheduling - - [@ohos.backgroundTaskManager](reference/apis/js-apis-backgroundTaskManager.md) - [@ohos.distributedMissionManager](reference/apis/js-apis-distributedMissionManager.md) - - [@ohos.workScheduler](reference/apis/js-apis-workScheduler.md) + - [@ohos.reminderAgentManager](reference/apis/js-apis-reminderAgentManager.md) + - [@ohos.resourceschedule.backgroundTaskManager](reference/apis/js-apis-resourceschedule-backgroundTaskManager.md) + - [@ohos.resourceschedule.workScheduler](reference/apis/js-apis-resourceschedule-workScheduler.md) + - [@ohos.resourceschedule.usageStatistics](reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md) - [@ohos.WorkSchedulerExtensionAbility](reference/apis/js-apis-WorkSchedulerExtensionAbility.md) - - Custom Management - - [@ohos.configPolicy](reference/apis/js-apis-config-policy.md) - - [@ohos.EnterpriseAdminExtensionAbility](reference/apis/js-apis-EnterpriseAdminExtensionAbility.md) - - [@ohos.enterpriseDeviceManager](reference/apis/js-apis-enterprise-device-manager.md) - - [DeviceSettingsManager](reference/apis/js-apis-enterpriseDeviceManager-DeviceSettingsManager.md) - Security - [@ohos.abilityAccessCtrl](reference/apis/js-apis-abilityAccessCtrl.md) - [@ohos.privacyManager](reference/apis/js-apis-privacyManager.md) + - [@ohos.security.cryptoFramework](reference/apis/js-apis-cryptoFramework.md) - [@ohos.security.huks](reference/apis/js-apis-huks.md) - [@ohos.userIAM.faceAuth](reference/apis/js-apis-useriam-faceauth.md) - [@ohos.userIAM.userAuth](reference/apis/js-apis-useriam-userauth.md) @@ -672,15 +790,17 @@ - [@ohos.data.dataShare](reference/apis/js-apis-data-dataShare.md) - [@ohos.data.dataSharePredicates](reference/apis/js-apis-data-dataSharePredicates.md) - [@ohos.data.dataShareResultSet](reference/apis/js-apis-data-DataShareResultSet.md) - - [@ohos.data.distributedData](reference/apis/js-apis-distributed-data.md) - [@ohos.data.distributedDataObject](reference/apis/js-apis-data-distributedobject.md) + - [@ohos.data.distributedKVStore](reference/apis/js-apis-distributedKVStore.md) - [@ohos.data.preferences](reference/apis/js-apis-data-preferences.md) - [@ohos.data.rdb](reference/apis/js-apis-data-rdb.md) - [@ohos.data.ValuesBucket](reference/apis/js-apis-data-ValuesBucket.md) + - data/rdb - [resultSet](reference/apis/js-apis-data-resultset.md) - File Management - - [@ohos.document](reference/apis/js-apis-document.md) - [@ohos.environment](reference/apis/js-apis-environment.md) + - [@ohos.data.fileAccess](reference/apis/js-apis-fileAccess.md) + - [@ohos.fileExtensionInfo](reference/apis/js-apis-fileExtensionInfo.md) - [@ohos.fileio](reference/apis/js-apis-fileio.md) - [@ohos.filemanagement.userfile_manager](reference/apis/js-apis-userfilemanager.md) - [@ohos.multimedia.medialibrary](reference/apis/js-apis-medialibrary.md) @@ -700,11 +820,8 @@ - [@ohos.net.connection](reference/apis/js-apis-net-connection.md) - [@ohos.net.ethernet](reference/apis/js-apis-net-ethernet.md) - [@ohos.net.http](reference/apis/js-apis-http.md) - - [@ohos.net.policy](reference/apis/js-apis-net-policy.md) - [@ohos.net.sharing](reference/apis/js-apis-net-sharing.md) - [@ohos.net.socket](reference/apis/js-apis-socket.md) - - [@ohos.net.statistics](reference/apis/js-apis-net-statistics.md) - - [@ohos.net.tlsSocket](reference/apis/js-apis-tlsSocket.md) - [@ohos.net.webSocket](reference/apis/js-apis-webSocket.md) - [@ohos.request](reference/apis/js-apis-request.md) - Connectivity @@ -722,22 +839,25 @@ - [@ohos.accessibility](reference/apis/js-apis-accessibility.md) - [@ohos.accessibility.config](reference/apis/js-apis-accessibility-config.md) - [@ohos.faultLogger](reference/apis/js-apis-faultLogger.md) - - [@ohos.hiAppEvent](reference/apis/js-apis-hiappevent.md) - [@ohos.hichecker](reference/apis/js-apis-hichecker.md) - [@ohos.hidebug](reference/apis/js-apis-hidebug.md) - [@ohos.hilog](reference/apis/js-apis-hilog.md) - [@ohos.hiSysEvent](reference/apis/js-apis-hisysevent.md) - [@ohos.hiTraceChain](reference/apis/js-apis-hitracechain.md) - [@ohos.hiTraceMeter](reference/apis/js-apis-hitracemeter.md) - - [@ohos.inputMethod](reference/apis/js-apis-inputmethod.md) - - [@ohos.inputMethodEngine](reference/apis/js-apis-inputmethodengine.md) + - [@ohos.hiviewdfx.hiAppEvent](reference/apis/js-apis-hiviewdfx-hiappevent.md) + - [@ohos.inputmethod](reference/apis/js-apis-inputmethod.md) + - [@ohos.inputmethodengine](reference/apis/js-apis-inputmethodengine.md) - [@ohos.inputmethodextensionability](reference/apis/js-apis-inputmethod-extension-ability.md) - [@ohos.inputmethodextensioncontext](reference/apis/js-apis-inputmethod-extension-context.md) + - [@ohos.inputmethodsubtype](reference/apis/js-apis-inputmethod-subtype.md) - [@ohos.pasteboard](reference/apis/js-apis-pasteboard.md) - [@ohos.screenLock](reference/apis/js-apis-screen-lock.md) - [@ohos.systemTime](reference/apis/js-apis-system-time.md) - [@ohos.systemTimer](reference/apis/js-apis-system-timer.md) - [@ohos.wallpaper](reference/apis/js-apis-wallpaper.md) + - [@ohos.web.webview](reference/apis/js-apis-webview.md) + - [console](reference/apis/js-apis-logs.md) - [Timer](reference/apis/js-apis-timer.md) - Device Management - [@ohos.batteryInfo](reference/apis/js-apis-battery-info.md) @@ -747,6 +867,7 @@ - [@ohos.geolocation](reference/apis/js-apis-geolocation.md) - [@ohos.multimodalInput.inputConsumer](reference/apis/js-apis-inputconsumer.md) - [@ohos.multimodalInput.inputDevice](reference/apis/js-apis-inputdevice.md) + - [@ohos.multimodalInput.inputDeviceCooperate](reference/apis/js-apis-cooperate.md) - [@ohos.multimodalInput.inputEvent](reference/apis/js-apis-inputevent.md) - [@ohos.multimodalInput.inputEventClient](reference/apis/js-apis-inputeventclient.md) - [@ohos.multimodalInput.inputMonitor](reference/apis/js-apis-inputmonitor.md) @@ -759,7 +880,8 @@ - [@ohos.runningLock](reference/apis/js-apis-runninglock.md) - [@ohos.sensor](reference/apis/js-apis-sensor.md) - [@ohos.settings](reference/apis/js-apis-settings.md) - - [@ohos.systemParameter](reference/apis/js-apis-system-parameter.md) + - [@ohos.stationary](reference/apis/js-apis-stationary.md) + - [@ohos.systemParameterV9](reference/apis/js-apis-system-parameterV9.md) - [@ohos.thermal](reference/apis/js-apis-thermal.md) - [@ohos.update](reference/apis/js-apis-update.md) - [@ohos.usb](reference/apis/js-apis-usb.md) @@ -768,6 +890,10 @@ - [@ohos.account.appAccount](reference/apis/js-apis-appAccount.md) - [@ohos.account.distributedAccount](reference/apis/js-apis-distributed-account.md) - [@ohos.account.osAccount](reference/apis/js-apis-osAccount.md) + + - Custom Management + - [@ohos.configPolicy](reference/apis/js-apis-configPolicy.md) + - [@ohos.EnterpriseAdminExtensionAbility](reference/apis/js-apis-EnterpriseAdminExtensionAbility.md) - Language Base Class Library - [@ohos.buffer](reference/apis/js-apis-buffer.md) - [@ohos.convertxml](reference/apis/js-apis-convertxml.md) @@ -792,11 +918,24 @@ - [@ohos.worker](reference/apis/js-apis-worker.md) - [@ohos.xml](reference/apis/js-apis-xml.md) - Test - - [@ohos.application.testRunner](reference/apis/js-apis-testRunner.md) + - [@ohos.application.testRunner (TestRunner)](reference/apis/js-apis-application-testRunner.md) - [@ohos.uitest](reference/apis/js-apis-uitest.md) - APIs No Longer Maintained + - [@ohos.backgroundTaskManager](reference/apis/js-apis-backgroundTaskManager.md) + - [@ohos.bundle](reference/apis/js-apis-Bundle.md) + - [@ohos.bundle.innerBundleManager](reference/apis/js-apis-Bundle-InnerBundleManager.md) + - [@ohos.bundleState](reference/apis/js-apis-deviceUsageStatistics.md) - [@ohos.bytrace](reference/apis/js-apis-bytrace.md) - [@ohos.data.storage](reference/apis/js-apis-data-storage.md) + - [@ohos.data.distributedData](reference/apis/js-apis-distributed-data.md) + - [@ohos.distributedBundle](reference/apis/js-apis-Bundle-distributedBundle.md) + - [@ohos.document](reference/apis/js-apis-document.md) + - [@ohos.geolocation](reference/apis/js-apis-geolocation.md) + - [@ohos.hiAppEvent](reference/apis/js-apis-hiappevent.md) + - [@ohos.prompt](reference/apis/js-apis-prompt.md) + - [@ohos.reminderAgent](reference/apis/js-apis-reminderAgent.md) + - [@ohos.systemParameter](reference/apis/js-apis-system-parameter.md) + - [@ohos.usb](reference/apis/js-apis-usb-deprecated.md) - [@system.app](reference/apis/js-apis-system-app.md) - [@system.battery](reference/apis/js-apis-system-battery.md) - [@system.bluetooth](reference/apis/js-apis-system-bluetooth.md) @@ -816,7 +955,75 @@ - [@system.sensor](reference/apis/js-apis-system-sensor.md) - [@system.storage](reference/apis/js-apis-system-storage.md) - [@system.vibrator](reference/apis/js-apis-system-vibrate.md) - - [console](reference/apis/js-apis-logs.md) + - bundle + - [abilityInfo](reference/apis/js-apis-bundle-AbilityInfo.md) + - [applicationInfo](reference/apis/js-apis-bundle-ApplicationInfo.md) + - [bundleInfo](reference/apis/js-apis-bundle-BundleInfo.md) + - [bundleInstaller](reference/apis/js-apis-bundle-BundleInstaller.md) + - [bundleStatusCallback](reference/apis/js-apis-Bundle-BundleStatusCallback.md) + - [customizeData](reference/apis/js-apis-bundle-CustomizeData.md) + - [elementName](reference/apis/js-apis-bundle-ElementName.md) + - [hapModuleInfo](reference/apis/js-apis-bundle-HapModuleInfo.md) + - [launcherAbilityInfo](reference/apis/js-apis-bundle-LauncherAbilityInfo.md) + - [moduleInfo](reference/apis/js-apis-bundle-ModuleInfo.md) + - [PermissionDef](reference/apis/js-apis-bundle-PermissionDef.md) + - [remoteAbilityInfo](reference/apis/js-apis-bundle-remoteAbilityInfo.md) + - [shortcutInfo](reference/apis/js-apis-bundle-ShortcutInfo.md) + - Error Codes + - Ability Framework + - [Ability Error Codes](reference/errorcodes/errorcode-ability.md) + - [Distributed Scheduler Error Codes](reference/errorcodes/errorcode-DistributedSchedule.md) + - Bundle Management + - [Bundle Error Codes](reference/errorcodes/errorcode-bundle.md) + - [zlib Error Codes](reference/errorcodes/errorcode-zlib.md) + - UI Page + - [promptAction Error Codes](reference/errorcodes/errorcode-promptAction.md) + - [Router Error Codes](reference/errorcodes/errorcode-router.md) + - Graphics + - [colorSpaceManager Error Codes](reference/errorcodes/errorcode-colorspace-manager.md) + - [Display Error Codes](reference/errorcodes/errorcode-display.md) + - [Window Error Codes](reference/errorcodes/errorcode-window.md) + - Media + - [Audio Error Codes](reference/errorcodes/errorcode-audio.md) + - [Media Error Codes](reference/errorcodes/errorcode-media.md) + - [AVSession Management Error Codes](reference/errorcodes/errorcode-avsession.md) + - Resource Management + - [I18N Error Codes](reference/errorcodes/errorcode-i18n.md) + - [Resource Manager Error Codes](reference/errorcodes/errorcode-resource-manager.md) + - Resource Scheduling + - [backgroundTaskManager Error Codes](reference/errorcodes/errorcode-backgroundTaskMgr.md) + - [DeviceUsageStatistics Error Codes](reference/errorcodes/errorcode-DeviceUsageStatistics.md) + - [reminderAgentManager Error Codes](reference/errorcodes/errorcode-reminderAgentManager.md) + - [workScheduler Error Codes](reference/errorcodes/errorcode-workScheduler.md) + - Security + - [Ability Access Control Error Codes](reference/errorcodes/errorcode-access-token.md) + - [HUKS Error Codes](reference/errorcodes/errorcode-huks.md) + - Data Management + - [RDB Error Codes](reference/errorcodes/errorcode-data-rdb.md) + - [Preferences Error Codes](reference/errorcodes/errorcode-preferences.md) + - Network Management + - [Upload and Download Error Codes](reference/errorcodes/errorcode-request.md) + - Basic Features + - [FaultLogger Error Codes](reference/errorcodes/errorcode-faultlogger.md) + - [Application Event Logging Error Codes](reference/errorcodes/errorcode-hiappevent.md) + - [HiSysEvent Error Codes](reference/errorcodes/errorcode-hisysevent.md) + - [HiDebug Error Codes](reference/errorcodes/errorcode-hiviewdfx-hidebug.md) + - [Input Method Framework Error Codes](reference/errorcodes/errorcode-inputmethod-framework.md) + - [Pasteboard Error Codes](reference/errorcodes/errorcode-pasteboard.md) + - [Webview Error Codes](reference/errorcodes/errorcode-webview.md) + - Account Management + - [Account Error Codes](reference/errorcodes/errorcode-account.md) + - [App Account Error Codes](reference/errorcodes/errorcode-app-account.md) + - Device Management + - [Device Management Error Codes](reference/errorcodes/errorcode-device-manager.md) + - [Screen Hopping Error Codes](reference/errorcodes/errorcode-multimodalinput.md) + - [Sensor Error Codes](reference/errorcodes/errorcode-sensor.md) + - [Vibrator Error Codes](reference/errorcodes/errorcode-vibrator.md) + - [System Parameter Error Codes](reference/errorcodes/errorcode-system-parameterV9.md) + - [USB Error Codes](reference/errorcodes/errorcode-usb.md) + - Language Base Class Library + - [Buffer Error Codes](reference/errorcodes/errorcode-buffer.md) + - [containers Error Codes](reference/errorcodes/errorcode-containers.md) - Native APIs - Standard Libraries Supported by Native APIs - [Node_API](reference/native-lib/third_party_napi/napi.md) @@ -829,10 +1036,13 @@ - FAQs - [Guide to Switching to Full SDK](quick-start/full-sdk-switch-guide.md) - [Ability Framework Development](faqs/faqs-ability.md) - - [ArkUI (JavaScript) Development](faqs/faqs-ui-js.md) + - [Bundle Management Development](faqs/faqs-bundle.md) - [ArkUI (ArkTS) Development](faqs/faqs-ui-ets.md) + + - [ArkUI (JavaScript) Development](faqs/faqs-ui-js.md) - [Graphics and Image Development](faqs/faqs-graphics.md) - [File Management Development](faqs/faqs-file-management.md) + - [Media Development](faqs/faqs-media.md) - [Network and Connection Development](faqs/faqs-connectivity.md) - [Device Management Development](faqs/faqs-data-management.md) - [Device Management Development](faqs/faqs-device-management.md) diff --git a/en/contribute/code-contribution.md b/en/contribute/code-contribution.md index 6b540115fac2034d50361bf0d9f62aee451f94b4..a761bd38a8b59626d41f8744e0c9d03c48d8d10f 100644 --- a/en/contribute/code-contribution.md +++ b/en/contribute/code-contribution.md @@ -25,6 +25,9 @@ Develop, review, and test code following the OpenHarmony coding standards. Make ### Introducing Open-source Software For details, see [Introducing Open-Source Software](introducing-open-source-software.md). +### Test Guide + +[OpenHarmony Secure Test Guide](OpenHarmony-security-test-guide.md) ## Contribution Workflow @@ -32,7 +35,10 @@ For details, see [Contribution Process](contribution-process.md). ## Security Issue Disclosure -- [OpenHarmony Security Vulnerability Governance](https://gitee.com/openharmony/security/blob/master/en/security-process/README.md) -- [OpenHarmony Security and Disclosure Statement](https://gitee.com/openharmony/security/blob/master/en/security-process/security-disclosure.md) +- [OpenHarmony Security Vulnerability Governance](https://gitee.com/openharmony/security/blob/master/en/security-process/README.md) + +- [OpenHarmony Security and Disclosure Statement](https://gitee.com/openharmony/security/blob/master/en/security-process/security-disclosure.md) + + diff --git a/en/device-dev/driver/driver-peripherals-codec-des.md b/en/device-dev/driver/driver-peripherals-codec-des.md index fcc4ccf2c47a05a71e06bce9f5e695586024a12c..9dd9e1d07cfd7b964b10a3175095dc73dcd91228 100644 --- a/en/device-dev/driver/driver-peripherals-codec-des.md +++ b/en/device-dev/driver/driver-peripherals-codec-des.md @@ -3,9 +3,9 @@ ## Overview ### Function -The OpenHarmony codec Hardware Device Interface (HDI) driver framework implements the video hardware codec driver based on OpenMAX. It provides APIs for the upper-layer media services to obtain component encoding and decoding capabilities, create a component, set parameters, transfer data, and destroy a component. The codec driver can encode video data in YUV or RGB format to H.264 or H.265 format, and decode raw stream data from H.264 or H.265 format to YUV or RGB format. This document describes the codec functionality developed based on the OpenHarmony Hardware Driver Foundation (HDF). +The codec Hardware Device Interface (HDI) driver framework is implemented based on OpenHarmony Hardware Driver Foundation (HDF). The HDI driver framework implements the video hardware codec driver based on OpenMAX. It provides APIs for the upper-layer media services to obtain component encoding and decoding capabilities, create a component, set parameters, transfer data, and destroy a component. The codec driver can encode video data in YUV or RGB format to H.264 or H.265 format, and decode raw stream data from H.264 or H.265 format to YUV or RGB format. -The codec HDI driver framework is implemented based on the HDF. The figure below shows the codec HDI driver framework. +The figure below shows the codec HDI driver framework. **Figure 1** Codec HDI driver framework @@ -16,7 +16,7 @@ The codec HDI driver framework is implemented based on the HDF. The figure below - Codec HDI Adapter: HDI implementation layer, which implements HDI APIs and interacts with OpenMAX Integration layer (IL). - OpenMAX IL interface: provides OpenMAX IL APIs to directly interact with the codec HDI driver. - Vendor Impl: vendor adaptation layer, which is the OpenMAX implementation layer adapted by each vendor. -- Codec Hardware: hardware decoding device. +- Codec Hardware: hardware coding and decoding device. ### Basic Concepts Before you get started, understand the following concepts: @@ -39,7 +39,7 @@ Before you get started, understand the following concepts: - Component - An OpenMAX IL component, which is an abstraction of modules in video streams. The components in this document refer to codec components for video encoding and decoding. + An OpenMAX IL component, which is an abstraction of modules in video streams. The components in this document refer to codec components used for video encoding and decoding. ### Constraints @@ -56,20 +56,20 @@ The codec module implements hardware encoding and decoding of video data. It con - codec_component_manager.h - | API | Description | + | API | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------| | int32_t (*CreateComponent)(struct CodecComponentType **component, uint32_t *componentId, char *compName, int64_t appData, struct CodecCallbackType *callbacks) | Creates a codec component instance. | - | int32_t (*DestroyComponent)(uint32_t componentId) | Destroys a component instance. | + | int32_t (*DestroyComponent)(uint32_t componentId) | Destroys a codec component instance. | - codec_component _if.h | API | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- | | int32_t (*SendCommand)(struct CodecComponentType *self, enum OMX_COMMANDTYPE cmd, uint32_t param, int8_t *cmdData, uint32_t cmdDataLen) | Sends commands to a component. | - | int32_t (*GetParameter)(struct CodecComponentType *self, uint32_t paramIndex, int8_t *paramStruct, uint32_t paramStructLen) | Obtains component parameter settings. | + | int32_t (*GetParameter)(struct CodecComponentType *self, uint32_t paramIndex, int8_t *paramStruct, uint32_t paramStructLen) | Obtains component parameter settings. | | int32_t (*SetParameter)(struct CodecComponentType *self, uint32_t index, int8_t *paramStruct, uint32_t paramStructLen) | Sets component parameters. | | int32_t (*GetState)(struct CodecComponentType *self, enum OMX_STATETYPE *state) | Obtains the component status. | - | int32_t (*UseBuffer)(struct CodecComponentType *self, uint32_t portIndex, struct OmxCodecBuffer *buffer) | Specifies the buffer of a component port. | + | int32_t (*UseBuffer)(struct CodecComponentType *self, uint32_t portIndex, struct OmxCodecBuffer *buffer) | Requests a port buffer for the component. | | int32_t (*FreeBuffer)(struct CodecComponentType *self, uint32_t portIndex, const struct OmxCodecBuffer *buffer) | Releases the buffer. | | int32_t (*EmptyThisBuffer)(struct CodecComponentType *self, const struct OmxCodecBuffer *buffer) | Empties this buffer. | | int32_t (*FillThisBuffer)(struct CodecComponentType *self, const struct OmxCodecBuffer *buffer) | Fills this buffer. | @@ -88,7 +88,7 @@ For more information, see [codec](https://gitee.com/openharmony/drivers_peripher The codec HDI driver development procedure is as follows: #### Registering and Initializing the Driver -Define the **HdfDriverEntry** structure (which defines the driver initialization method) and fill in the **g_codecComponentDriverEntry** structure to implement the **Bind()**, **Init()**, and **Release()** pointers. +Define the **HdfDriverEntry** structure (which defines the driver initialization method) and fill in the **g_codecComponentDriverEntry** structure to implement the pointers in **Bind()**, **Init()**, and **Release()**. ```c struct HdfDriverEntry g_codecComponentDriverEntry = { @@ -133,7 +133,7 @@ HDF_INIT(g_codecComponentDriverEntry); // Register HdfDriverEntry of the codec H } ``` -- **HdfCodecComponentTypeDriverInit**: loads the attribute configuration from the HDF configuration source (HCS). +- **HdfCodecComponentTypeDriverInit**: loads the attribute configuration in the HDF Configuration Source (HCS). ```c int32_t HdfCodecComponentTypeDriverInit(struct HdfDeviceObject *deviceObject) @@ -170,12 +170,11 @@ The HCS consists of the following: - Device configuration - Configuration of the supported components -The HCS includes the driver node, loading sequence, and service name. For details about the HCS syntax, see [Configuration Management](driver-hdf-manage.md). +You need to configure the driver node, loading sequence, and service name. For details about the HCS syntax, see [Configuration Management](driver-hdf-manage.md). -Configuration file Path of the standard system: -vendor/hihope/rk3568/hdf_config/uhdf/ +The following uses the RK3568 development board as an example. The configuration files of the standard system are in the **vendor/hihope/rk3568/hdf_config/uhdf/** directory. -1. Device configuration +1. Configure the device. Add the **codec_omx_service** configuration to **codec_host** in **device_info.hcs**. The following is an example: ```c @@ -189,31 +188,31 @@ vendor/hihope/rk3568/hdf_config/uhdf/ priority = 100; // Priority. moduleName = "libcodec_hdi_omx_server.z.so"; // Dynamic library of the driver. serviceName = "codec_hdi_omx_service"; // Service name of the driver. - deviceMatchAttr = "codec_component_capabilities"; //Attribute configuration. + deviceMatchAttr = "codec_component_capabilities"; // Attribute configuration. } } } ``` -2. Configuration of supported components +2. Configure supported components. - Add the component configuration to the **media_codec\codec_component_capabilities.hcs file**. The following is an example: + Add the component configuration to the **media_codec\codec_component_capabilities.hcs** file. The following is an example: ```c - /* node name explanation -- HDF_video_hw_enc_avc_rk: + /* Explanation to the node name HDF_video_hw_enc_avc_rk: ** ** HDF____________video__________________hw____________________enc____________avc_______rk ** | | | | | | - ** HDF or OMX video or audio hardware or software encoder or decoder mime vendor + ** HDF or OMX video or audio hardware or software encoder or decoder MIME vendor */ HDF_video_hw_enc_avc_rk { - role = 1; // Role of the AvCodec. + role = 1; // Role of the audio and video codec. type = 1; // Codec type. name = "OMX.rk.video_encoder.avc"; // Component name. supportProfiles = [1, 32768, 2, 32768, 8, 32768]; // Supported profiles. maxInst = 4; // Maximum number of instances. isSoftwareCodec = false; // Whether it is software codec. processModeMask = []; // Codec processing mode. - capsMask = [0x01]; // Codec playback capabilities. + capsMask = [0x01]; // CodecCapsMask configuration. minBitRate = 1; // Minimum bit rate. maxBitRate = 40000000; // Maximum bit rate. minWidth = 176; // Minimum video width. @@ -239,7 +238,7 @@ vendor/hihope/rk3568/hdf_config/uhdf/ ### Development Example After completing codec module driver adaptation, use the HDI APIs provided by the codec module for further development. The codec HDI provides the following features: -1. Provides codec HDI APIs for video services to implement encoding and decoding of video services. +1. Provides codec HDI APIs for video services to implement encoding and decoding for video services. 2. Provides standard interfaces for device developers to ensure that the OEM vendors comply with the HDI adapter standard. This promises a healthy evolution of the ecosystem. The development procedure is as follows: @@ -248,7 +247,7 @@ The development procedure is as follows: 2. Set codec parameters and information such as the video width, height, and bit rate. 3. Apply for input and output buffers. 4. Flip codec buffers, enable the component to enter the **OMX_Executing** state, and process the callbacks. -5. Deinitialize the interface instance, destroy the buffers, close the component, and releases all interface objects. +5. Deinitialize the interface instance, destroy the buffers, close the component, and releases all interface instances. #### Initializing the Driver Initialize the interface instance and callbacks, and create a component. @@ -352,7 +351,7 @@ Perform the following steps: 1. Use **UseBuffer()** to apply for input and output buffers and save the buffer IDs. The buffer IDs can be used for subsequent buffer flipping. 2. Check whether the corresponding port is enabled. If not, enable the port first. -3. Use **SendCommand()** to change the component status to OMX_StateIdle, and wait until the operation result is obtained. +3. Use **SendCommand()** to change the component status to **OMX_StateIdle**, and wait until the operation result is obtained. ```cpp // Apply for the input buffer. auto ret = UseBufferOnPort(PortIndex::PORT_INDEX_INPUT); @@ -376,7 +375,7 @@ HDF_LOGI("Wait for OMX_StateIdle status"); this->WaitForStatusChanged(); ``` -Implement **UseBufferOnPort** as follows: +Implement **UseBufferOnPort()** as follows: ```cpp bool CodecHdiDecode::UseBufferOnPort(enum PortIndex portIndex) @@ -392,22 +391,22 @@ bool CodecHdiDecode::UseBufferOnPort(enum PortIndex portIndex) auto err = client_->GetParameter(client_, OMX_IndexParamPortDefinition, (int8_t *)¶m, sizeof(param)); if (err != HDF_SUCCESS) { HDF_LOGE("%{public}s failed to GetParameter with OMX_IndexParamPortDefinition : portIndex[%{public}d]", - __func__, portIndex); + __func__, portIndex); return false; } bufferSize = param.nBufferSize; bufferCount = param.nBufferCountActual; bPortEnable = param.bEnabled; HDF_LOGI("buffer index [%{public}d], buffer size [%{public}d], " - "buffer count [%{public}d], portEnable[%{public}d], err [%{public}d]", - portIndex, bufferSize, bufferCount, bPortEnable, err); + "buffer count [%{public}d], portEnable[%{public}d], err [%{public}d]", + portIndex, bufferSize, bufferCount, bPortEnable, err); { OMX_PARAM_BUFFERSUPPLIERTYPE param; InitParam(param); param.nPortIndex = (uint32_t)portIndex; auto err = client_->GetParameter(client_, OMX_IndexParamCompBufferSupplier, (int8_t *)¶m, sizeof(param)); HDF_LOGI("param.eBufferSupplier[%{public}d] isSupply [%{public}d], err [%{public}d]", param.eBufferSupplier, - this->isSupply_, err); + this->isSupply_, err); } // Set the port buffer. UseBufferOnPort(portIndex, bufferCount, bufferSize); @@ -483,7 +482,7 @@ if (err != HDF_SUCCESS) { HDF_LOGE("%{public}s failed to SendCommand with OMX_CommandStateSet:OMX_StateIdle", __func__); return; } -// Set the output buffer. +// Set the output buffer to fill. for (auto bufferId : unUsedOutBuffers_) { HDF_LOGI("fill bufferid [%{public}d]", bufferId); auto iter = omxBuffers_.find(bufferId); @@ -536,7 +535,7 @@ while (!this->exit_) { client_->SendCommand(client_, OMX_CommandStateSet, OMX_StateIdle, NULL, 0); ``` -Automatic framing is not supported in rk OMX decoding. Therefore, you need to manually divide data into frames. Currently, data is divided into frames from code 0x000001 or 0x00000001 and sent to the server for processing. The sample code is as follows: +The RK3568 development board does not support data framing. Therefore, you need to manually divide the data into frames. Data is divided from code 0x000001 or 0x00000001 and sent to the server for processing. The sample code is as follows: ```cpp // Read a file by frame. @@ -581,8 +580,8 @@ bool OMXCore::ReadOnePacket(FILE* fp, char* buf, uint32_t& nFilled) The codec HDI provides the following callbacks: - **EventHandler**: Called when a command is executed. For example, when the command for changing the component state from **OMX_StateIdle** to **OMX_StateExecuting** is executed, this callback is invoked to return the result. -- **EmptyBufferDone**: Called when the input data is consumed. If the client needs to fill in data to encode or decode, call **EmptyThisBuffer()**. -- **FillBufferDone**: Called when the output data is filled. If the client needs to read the encoded or decoded data, call **FillThisBuffer()**. +- **EmptyBufferDone**: Called when the input data is consumed. If the client needs to fill data to encode or decode, it must call **EmptyThisBuffer()** again. +- **FillBufferDone**: Called when the output data is filled. If the client needs to read the encoded or decoded data, it must call **FillThisBuffer()** again. ```cpp // EmptyBufferDone example @@ -646,8 +645,7 @@ int32_t OMXCore::onFillBufferDone(struct OmxCodecBuffer* pBuffer) int32_t CodecHdiDecode::OnEvent(struct CodecCallbackType *self, enum OMX_EVENTTYPE event, struct EventInfo *info) { HDF_LOGI("onEvent: appData[0x%{public}p], eEvent [%{public}d], " - "nData1[%{public}d]", - info->appData, event, info->data1); + "nData1[%{public}d]", info->appData, event, info->data1); switch (event) { case OMX_EventCmdComplete: { OMX_COMMANDTYPE cmd = (OMX_COMMANDTYPE)info->data1; @@ -665,7 +663,7 @@ int32_t CodecHdiDecode::OnEvent(struct CodecCallbackType *self, enum OMX_EVENTTY ``` #### Destroying a Component -Change the component state to IDLE, release the input and output buffers, change the component state to **OMX_StateLoaded**, and call **DestoryComponent** to destroy the component. +Change the component state to **OMX_StateIdle**, release the input and output buffers, change the component state to **OMX_StateLoaded**, and call **DestoryComponent** to destroy the component. ##### Example of Releasing Buffers @@ -721,7 +719,7 @@ OpenMAX does not support framing. **Solution** -Transfer data frame by frame when **EmptyThisBuffer** is called. +Pass in one frame at a time when **EmptyThisBuffer** is call. ## Only Green Screen Displayed During the Decoding Process @@ -751,11 +749,11 @@ After the generated video stream (H.264 stream) is written to a file, the video **Solution** -View the **codec_host** log generated during encoding, search for "encode params init settings", and check for incorrect parameters. If **framerate** is **0**, **xFramerate** is incorrectly set. In this case, move the framerate leftwards by 16 bits. +View the **codec_host** log generated during encoding, search for "encode params init settings", and check for incorrect parameters. If **framerate** is **0**, **xFramerate** is incorrectly set. In this case, move the frame rate leftwards by 16 bits. -Check the value of **OMX_VIDEO_PARAM_AVCTYPE**, and set it correctly. +Check and correct the setting of **OMX_VIDEO_PARAM_AVCTYPE**. # Reference -For more information, see [Codec](https://gitee.com/openharmony/drivers_peripheral/tree/master/codec). +For more information, see [codec](https://gitee.com/openharmony/drivers_peripheral/tree/master/codec). diff --git a/en/device-dev/kernel/kernel-standard-build.md b/en/device-dev/kernel/kernel-standard-build.md index 3c950570cf2ae2638fd00a68756c3cefaaf3ddce..03abfc7b80146f9710c2711dbf650419b752e6ea 100644 --- a/en/device-dev/kernel/kernel-standard-build.md +++ b/en/device-dev/kernel/kernel-standard-build.md @@ -9,8 +9,8 @@ The following uses the Hi3516D V300 board and Ubuntu x86 server as an example. Perform a full build for the project to generate the **uImage** kernel image. -``` -./build.sh --product-name hispark_taurus_standard # Build the hispark_taurus_standard image. - --build-target build_kernel # Build the uImage kernel image of hispark_taurus_standard. - --gn-args linux_kernel_version=\"linux-5.10\" # Specify the kernel version. +```bash +./build.sh --product-name hispark_taurus_standard # Build the hispark_taurus_standard image. + --build-target build_kernel # Build the uImage kernel image of hispark_taurus_standard. + --gn-args linux_kernel_version=\"linux-5.10\" # Specify the kernel version. ``` diff --git a/en/device-dev/kernel/kernel-standard-mm-eswap.md b/en/device-dev/kernel/kernel-standard-mm-eswap.md index e44534ed70119aea30ec3b406f775d39732caaa0..86417cb169bac8ae5b84e7b9bc64df7313c9f51d 100644 --- a/en/device-dev/kernel/kernel-standard-mm-eswap.md +++ b/en/device-dev/kernel/kernel-standard-mm-eswap.md @@ -1,4 +1,4 @@ -# Enhanced Swap +# ESwap ## Basic Concepts @@ -8,30 +8,33 @@ Enhanced Swap (ESwap) allows a custom partition to serve as a swap partition and ## Configuring zram and ESwap +> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
+> Enable ESwap before zram is enabled. If ESwap is not used, you can enable zram alone. If a device does not have the storage device for swap-out or have the corresponding storage partition created, you can enable zram to reclaim memory using **zswapd**. + ### Enabling ESwap 1. Enable related configuration items and dependencies. To enable ESwap, you must enable the corresponding configuration items and dependencies during kernel compilation. The configuration items related to ESwap are as follows: ``` - CONFIG_HYPERHOLD=y - CONFIG_HYPERHOLD_DEBUG=y - CONFIG_HYPERHOLD_ZSWAPD=y - CONFIG_HYPERHOLD_FILE_LRU=y - CONFIG_HYPERHOLD_MEMCG=y - CONFIG_ZRAM_GROUP=y - CONFIG_ZRAM_GROUP_DEBUG=y - CONFIG_ZLIST_DEBUG=y - CONFIG_ZRAM_GROUP_WRITEBACK=y + CONFIG_HYPERHOLD=y // Enable Hyperhold + CONFIG_HYPERHOLD_DEBUG=y // Enable Hyperhold debug + CONFIG_HYPERHOLD_ZSWAPD=y // Enable the zswapd thread to reclaim Anon pages in background + CONFIG_HYPERHOLD_FILE_LRU=y // Enable Hyperhold FILE LRU + CONFIG_HYPERHOLD_MEMCG=y // Enable Memcg management in Hyperhold + CONFIG_ZRAM_GROUP=y // Enable Manage Zram objs with mem_cgroup + CONFIG_ZRAM_GROUP_DEBUG=y // Enable Manage Zram objs with mem_cgroup Debug + CONFIG_ZLIST_DEBUG=y // Enable Debug info for zram group list + CONFIG_ZRAM_GROUP_WRITEBACK=y // Enable write back grouped zram objs to Hyperhold driver ``` Enable the following dependencies: ``` - CONFIG_MEMCG=y - CONFIG_SWAP=y - CONFIG_ZSMALLOC=y - CONFIG_ZRAM=y + CONFIG_MEMCG=y // Enable memory controller + CONFIG_SWAP=y // Enable paging of anonymous memory (swap) + CONFIG_ZSMALLOC=y // Enable memory allocator for compressed pages + CONFIG_ZRAM=y // Enable compressed RAM block device support ``` 2. Create an ESwap device. @@ -56,11 +59,11 @@ Enhanced Swap (ESwap) allows a custom partition to serve as a swap partition and By default, ESwap encrypts the data swapped out. If the ESwap device created in step 2 supports inline encryption, you can disable the ESwap software encryption function. ```Bash - // Check whether hardware-based encryption is supported and enabled. If yes, disable software encryption. Otherwise, do not perform this operation. + // Check whether hardware-based encryption is supported and enabled. If yes, disable software encryption. Otherwise, do not disable software encryption. echo 0 > /proc/sys/kernel/hyperhold/soft_crypt ``` - > ![icon-caution.gif](../public_sys-resources/icon-caution.gif) **CAUTION**
+ > ![icon-caution.gif](public_sys-resources/icon-caution.gif) **CAUTION**
> For security purposes, all swapped content must be encrypted. If the ESwap device created does not support inline encryption or the inline encryption macro is not enabled during compilation, ESwap cannot be enabled after software encryption is disabled. 4. Enable ESwap. @@ -72,9 +75,6 @@ Enhanced Swap (ESwap) allows a custom partition to serve as a swap partition and ``` -> ![icon-note.gif](../public_sys-resources/icon-note.gif) **NOTE**
-> Enable ESwap before zram is enabled. If ESwap is not used, you can enable zram only. If a device does not have the storage device for swap-out or have the corresponding storage partition created, you can enable zram to reclaim memory using **zswapd**. - ### Enabling zram 1. Initialize zram. @@ -88,7 +88,7 @@ Enhanced Swap (ESwap) allows a custom partition to serve as a swap partition and echo 512M > /sys/block/zram0/disksize ``` - > ![icon-note.gif](../public_sys-resources/icon-note.gif) **NOTE**
+ > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
> The parameters and functions of **/sys/block/zram0/group** are as follows: > > - **disable**: disables the function. @@ -115,7 +115,7 @@ Enhanced Swap (ESwap) allows a custom partition to serve as a swap partition and echo force_disable > /proc/sys/kernel/hyperhold/enable ``` - > ![icon-note.gif](../public_sys-resources/icon-note.gif) **NOTE**
+ > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
> The difference of the two commands is as follows: > > - **disable**: If there is no data in the ESwap partition, disable ESwap. Otherwise, changes ESwap to **readonly** mode. @@ -132,42 +132,46 @@ Enhanced Swap (ESwap) allows a custom partition to serve as a swap partition and ## ESwap APIs -ESwap provides APIs to control swap-in and swap-out policies and record the current status. These APIs are located in the directory to which memcg is mounted, for example, `/dev/memcg/`. +ESwap provides APIs to control swap-in and swap-out policies and record the current status. These APIs are located in the directory to which memcg is mounted, for example, **/dev/memcg/**. -| Category| API| Description| -| -------- | -------- | -------- | -| Control| [avail_buffers](#avail_buffers) | Sets the buffer range.| -| | [zswapd_single_memcg_param](#zswapd_single_memcg_param) | Sets memcg configuration.| -| | [zram_wm_ratio](#zram_wm_ratio) | Sets the zram swap-out waterline.| -| Status| [zswapd_pressure_show](#zswapd_pressure_show) | Records the current buffer and refault.| -| | [stat](#stat) | Checks the real-time status of ESwap.| -| | [zswapd_vmstat_show](#zswapd_vmstat_show) | Records events during the zswapd running.| +| Category| API| Description| Reference Value| +| -------- | -------- | -------- | -------- | +| Control| [avail_buffers](#avail_buffers) | Sets the buffer range.| 300 250 350 200 | +| | [zswapd_single_memcg_param](#zswapd_single_memcg_param) | Sets memcg configuration.| 300 40 0 0 | +| | [zram_wm_ratio](#zram_wm_ratio) | Sets the zram swap-out waterline.| 0 | +| Status| [zswapd_pressure_show](#zswapd_pressure_show) | Records the current buffer and refault.| NA | +| | [stat](#stat) | Checks the real-time status of ESwap.| NA | +| | [zswapd_vmstat_show](#zswapd_vmstat_show) | Records events during the zswapd running.| NA | -> ![icon-caution.gif](../public_sys-resources/icon-caution.gif) **CAUTION**
+> ![icon-caution.gif](public_sys-resources/icon-caution.gif) **CAUTION**
> Only **avail_buffers** proactively wakes up zswapd because the buffer waterline is adjusted. Other control APIs do not proactively wake up zswapd, but their configuration takes effect only after zswapd is woken up. -The APIs are described as follows: ### avail_buffers The **avail_buffers** API sets the buffer range [min_avail_buffers, high_avail_buffers]. When the current buffer is less than the value of **min_avail_buffers**, zswapd will be woken up to reclaim anonymous pages. The expected amount of memory to reclaim is the difference between the value of **high_avail_buffers** and the current system buffer value. In fact, less memory is reclaimed due to reasons such as reclamation failure. + The parameters include the following: -- **avail_buffers** indicates the expected buffer value. + +- **avail_buffers** indicates the expected buffer value. - **free_swap_threshold** indicates the threshold of the free capacity of the swap partition. After zswapd is woken up to reclaim memory, press events, such as medium press and critical press, will be recorded based on the current system status and the settings of these two parameters. -You can proactively adjust the values to trigger zswapd reclamation. -Example: + +You can proactively adjust the values to trigger zswapd reclamation. + +**Example**: + `echo 1000 950 1050 0 > /dev/memcg/memory.avail_buffers` -Default value: +**Default value**: ``` - avail_buffers: 0 - min_avail_buffers: 0 - high_avail_buffers: 0 - free_swap_threshold: 0 +avail_buffers: 0 +min_avail_buffers: 0 +high_avail_buffers: 0 +free_swap_threshold: 0 ``` -Limit: +**Limit**: 0<=min_avail_buffers<=avail_buffers<=high_avail_buffers @@ -177,25 +181,29 @@ The values are all integers. ### zswapd_single_memcg_param -The **zswapd_single_memcg_param** API sets the memcg configuration. The parameters include the following: +**zswapd_single_memcg_param** sets the memcg configuration. The parameters include the following: + - **score** indicates the current memcg reclamation priority. - **ub_mem2zram_ratio** indicates the memory compression ratio to zram. - **ub_zram2ufs_ratio** indicates the ratio of zram to ESwap. - **refault_threshold** indicates the refault threshold. + You can modify the parameters to control zram compression and ESwap. -Example: + +**Example**: + `echo 60 10 50 > memory.zswapd_single_memcg_param` -Default value: +**Default value**: ``` - memcg score: 300 - memcg ub_mem2zram_ratio: 60 - memcg ub_zram2ufs_ratio: 10 - memcg refault_threshold: 50 +memcg score: 300 +memcg ub_mem2zram_ratio: 60 +memcg ub_zram2ufs_ratio: 10 +memcg refault_threshold: 50 ``` -Limit: +**Limit**: 0<=ub_mem2zram_ratio<=100 @@ -207,17 +215,21 @@ The values are all integers. ### zram_wm_ratio -The **zram_wm_ratio** API sets the zram swap-out waterline. When the size of the compressed anonymous page in the zram partition is greater than the total size of zram multiplied by **zram_wm_ratio**, the page is swapped out to the ESwap partition. The swap is performed after zswapd is woken up by the buffer waterline. The system defaults the value **0** as **37**. You can change the value as required. -Example: +**zram_wm_ratio** sets the zram swap-out waterline. When the size of the compressed anonymous page in the zram partition is greater than the total size of zram multiplied by **zram_wm_ratio**, the page is swapped out to the ESwap partition. The swap is performed after zswapd is woken up by the buffer waterline. The system defaults the value **0** as **37**. + +You can change the value as required. + +**Example**: + `echo 30 > /dev/memcg/memory.zram_wm_ratio` -Default value: +**Default value**: ``` - zram_wm_ratio: 0 +zram_wm_ratio: 0 ``` -Limit: +**Limit**: 0<=zram_wm_ratio<=100 @@ -225,7 +237,7 @@ The value is an integer. ### zswapd_pressure_show -The **zswapd_pressure_show** API records the zswapd status. **buffer_size** indicates the current buffer size of the system, and **recent_refault** indicates the number of refaults occurred. +**zswapd_pressure_show** records the zswapd status. **buffer_size** indicates the current buffer size of the system, and **recent_refault** indicates the number of refaults occurred. ### stat @@ -235,12 +247,12 @@ In addition to **memcg.stat**, the **stat** API is added with **Anon**, **File** ### zswapd_vmstat_show -The **zswapd_vmstat_show** API records events occurred during the zswapd running. +**zswapd_vmstat_show** records events occurred during the zswapd running. ## Triggering zswapd -You can check the current buffer value by running `cat /dev/memcg/memory.zswapd_pressure_show`. For example, if the current buffer value is 1200, you can adjust the buffer range to wake up zswapd. +You can run **cat /dev/memcg/memory.zswapd_pressure_show** to check the current buffer value. For example, if the current buffer value is 1200, you can adjust the buffer range to a value greater than 1200 to wake up zswapd. ```Bash echo 1300 1250 1350 0 > /dev/memcg/memory.avail_buffers diff --git a/en/device-dev/kernel/kernel-standard-overview.md b/en/device-dev/kernel/kernel-standard-overview.md index 8c9fdc21f6e0eb3771f631843bb40e4dff2f42d4..619fbed21b20ef3fcc90e593e5c77b52c291e2c5 100644 --- a/en/device-dev/kernel/kernel-standard-overview.md +++ b/en/device-dev/kernel/kernel-standard-overview.md @@ -1,17 +1,18 @@ # Linux Kernel Overview +The standard-system devices come with application processors and memory greater than 128 MiB. OpenHarmony uses the Linux kernel as the base kernel so that appropriate OS kernels can be provided for devices with different resource limitations. -OpenHarmony adopts the Linux kernel as the basic kernel for standard-system devices \(reference memory ≥ 128 MiB\) so that appropriate OS kernels can be selected for the devices subject to resource limitations and therefore provide basic capabilities for upper-layer apps. ## Linux Kernel Versions -Linux kernel versions are classified into the stable version and long-term support \(LTS\) version. +- Linux kernel versions are classified into the stable version and long-term support (LTS) version. -The stable version is released approximately every 3 months to support the latest hardware, improve performance, and fix bugs. Its disadvantage is that the overall maintenance lifespan is short, making long-term stable support unavailable for software. +- The stable version is released approximately every 3 months to support the latest hardware, improve performance, and fix bugs. Its disadvantage is that the overall maintenance lifespan is short, making long-term stable support unavailable for software. -The LTS version provides long-term kernel maintenance \(in fixing bugs and security vulnerabilities\). Generally, the maintenance lifespan is six years. By contrast, non-LTS kernel versions whose maintenance lifespan ranges from six months to two years cannot cover the entire lifespan of their products and may leave the products open to security vulnerabilities. In addition, new features are not added in the LTS version update, which ensures the version stability. Therefore, LTS versions are more suitable for commercial products that pursue stability and security. -## OpenHarmony Kernel Version Selection +- The LTS version provides long-term kernel maintenance (in fixing bugs and security vulnerabilities). Generally, the maintenance lifespan is six years. By contrast, non-LTS kernel versions whose maintenance lifespan ranges from six months to two years cannot cover the entire lifespan of their products and may leave the products open to security vulnerabilities. In addition, new features are not added in the LTS version update, which ensures the version stability. Therefore, LTS versions are more suitable for commercial products that pursue stability and security. -The Linux kernel in OpenHarmony selects appropriate LTS versions as its basic versions. Currently, it supports Linux-4.19 and Linux-5.10. +## OpenHarmony Kernel Versions + +OpenHarmony uses Linux LTS versions as its base kernel. Currently, it supports Linux-4.19 and Linux-5.10. diff --git a/en/device-dev/kernel/kernel-standard-patch.md b/en/device-dev/kernel/kernel-standard-patch.md index 55448b5f893fc22fa938b8ea111fc42ce92d6068..549be494a1920ab16a199263cfd4aa6e56e0793c 100644 --- a/en/device-dev/kernel/kernel-standard-patch.md +++ b/en/device-dev/kernel/kernel-standard-patch.md @@ -1,39 +1,26 @@ # Applying Patches on Development Boards -1. Apply the HDF patches. - - Apply the HDF patches based on the kernel version in the **kernel/linux/build** repository. For details, see the method for applying the HDF patch in **kernel.mk**. - - ``` - $(OHOS_BUILD_HOME)/drivers/hdf_core/adapter/khdf/linux/patch_hdf.sh $(OHOS_BUILD_HOME) $(KERNEL_SRC_TMP_PATH) $(KERNEL_PATCH_PATH) $(DEVICE_NAME) - ``` - -2. Apply the chip driver patches. - - The following uses Hi3516D V300 as an example: - - In the **kernel/linux/build** repository, place the chip module patches in the corresponding path based on the patch path and naming rules for the chip module in **kernel.mk**. - - ``` - DEVICE_PATCH_DIR := $(OHOS_BUILD_HOME)/kernel/linux/patches/${KERNEL_VERSION}/$(DEVICE_NAME)_patch - DEVICE_PATCH_FILE := $(DEVICE_PATCH_DIR)/$(DEVICE_NAME).patch - ``` - - ``` - - ``` - -3. Modify the **config** file to be built. - - In the **kernel/linux/build** repository, place the chip module **config** file in the corresponding path based on the file path and naming rules for the chip module in **kernel.mk**. - - ``` - KERNEL_CONFIG_PATH := $(OHOS_BUILD_HOME)/kernel/linux/config/${KERNEL_VERSION} - DEFCONFIG_FILE := $(DEVICE_NAME)_$(BUILD_TYPE)_defconfig - ``` - - >![](../public_sys-resources/icon-notice.gif) **NOTICE**
- >In the OpenHarmony project build process, patches are applied after the code environment of **kernel/linux/linux-\*.\*** is copied. Before running the OpenHarmony version-level build command, ensure that the source code environment of **kernel/linux/linux-\*.\*** is available. - >After the build is complete, the kernel is generated in the kernel directory in the **out** directory. Modify the **config** file based on the kernel generated, and copy the generated **.config** file to the corresponding path in the **config** repository. Then, the configuration takes effect. - - +1. Apply HDF patches. + Apply the HDF patches based on the kernel version. For details, see [kernel.mk](https://gitee.com/openharmony/kernel_linux_build/blob/master/kernel.mk). + ```makefile + $(OHOS_BUILD_HOME)/drivers/hdf_core/adapter/khdf/linux/patch_hdf.sh $(OHOS_BUILD_HOME) $(KERNEL_SRC_TMP_PATH) $(KERNEL_PATCH_PATH) $(DEVICE_NAME) + ``` + +2. Apply the chip driver patch. The following uses Hi3516D V300 as an example. + Place the chip component patches in the related directory. For details about the patch directory and naming rules, see [kernel.mk](https://gitee.com/openharmony/kernel_linux_build/blob/master/kernel.mk). + ```makefile + DEVICE_PATCH_DIR := $(OHOS_BUILD_HOME)/kernel/linux/patches/${KERNEL_VERSION}/$(DEVICE_NAME)_patch + DEVICE_PATCH_FILE := $(DEVICE_PATCH_DIR)/$(DEVICE_NAME).patch + ``` + +3. Modify the **config** file to build. + Place the chip component **config** in the related directory. For details about the patch directory and naming rules, see [kernel.mk](https://gitee.com/openharmony/kernel_linux_build/blob/master/kernel.mk). + ```makefile + KERNEL_CONFIG_PATH := $(OHOS_BUILD_HOME)/kernel/linux/config/${KERNEL_VERSION} + DEFCONFIG_FILE := $(DEVICE_NAME)_$(BUILD_TYPE)_defconfig + ``` + + > **NOTICE**
+ > In the OpenHarmony project build process, patches are installed after "kernel/linux/linux-\*.\*" is copied. Before using the version-level build command of OpenHarmony, ensure that the "kernel/linux/linux-\*.\*" source code is available. + > + > After the build is complete, the kernel is generated in the kernel directory in the **out** directory. Modify the **config** file for the target platform based on the kernel generated, and copy the generated **.config** file to the corresponding path of the platform in the **config** repository. Then, the configuration takes effect. diff --git a/en/device-dev/kernel/kernel-standard-sched-rtg.md b/en/device-dev/kernel/kernel-standard-sched-rtg.md index 61a36ab5bb7aad13789b0ce053e3dbcd73be6b25..71bf4959b4b5772ec72aecac2945352de958bf43 100644 --- a/en/device-dev/kernel/kernel-standard-sched-rtg.md +++ b/en/device-dev/kernel/kernel-standard-sched-rtg.md @@ -48,14 +48,3 @@ STATE COMM PID PRIO CPU // Thread information, including th --------------------------------------------------------- S bash 436 120 1(0-3) ``` - -## Available APIs - -The RTG provides the device node and ioctl APIs for querying and configuring group information. The device node is in **/dev/sched_rtg_ctrl**. - -| Request | Description | -| ------------------- | ------------------- | -| CMD_ID_SET_RTG | Creates an RTG, and adds, updates, or deletes threads in the group. | -| CMD_ID_SET_CONFIG | Sets global group attributes, for example, the maximum number of real-time RTGs. | -| CMD_ID_SET_RTG_ATTR | Sets specified group attributes, for example, the thread priority. | -| CMD_ID_SET_MIN_UTIL | Sets the minimum utilization of an RTG. | diff --git a/en/device-dev/subsystems/Readme-EN.md b/en/device-dev/subsystems/Readme-EN.md index 7acc0662535adc30158ecaa188051c0a49645354..a124e6470632802f156c8be1138dcc34ba19510d 100644 --- a/en/device-dev/subsystems/Readme-EN.md +++ b/en/device-dev/subsystems/Readme-EN.md @@ -82,6 +82,8 @@ - [Parameter Management](subsys-boot-init-sysparam.md) - [Sandbox Management](subsys-boot-init-sandbox.md) - [Plug-in Management](subsys-boot-init-plugin.md) + - [Component-based Startup](subsys-boot-init-sub-unit.md) + - [init Run Log Standardization](subsys-boot-init-log.md) - [appspawn Module](subsys-boot-appspawn.md) - [bootstrap Module](subsys-boot-bootstrap.md) - [FAQs](subsys-boot-faqs.md) diff --git a/en/device-dev/subsystems/subsys-boot-init-log.md b/en/device-dev/subsystems/subsys-boot-init-log.md new file mode 100644 index 0000000000000000000000000000000000000000..db7500c6d0442d054fecac560fececac1bb11598 --- /dev/null +++ b/en/device-dev/subsystems/subsys-boot-init-log.md @@ -0,0 +1,75 @@ +# init Run Log Standardization +## Overview +### Introduction +Basic functions of a log include recording key nodes and troubleshooting faults during the init startup process. +- Logs help troubleshoot faults, check the startup duration of each subsystem, command execution duration, and more. + +- Log tags (including **param**, **uevent**, and **module**) for different modules can be viewed. + +- Logs can be printed for key phases, for example, the startup of the first phase, a required partition and its device node, **uevent** creation, service startup, and more. + +- Logs can be printed according to the specified log level. Currently, the following log levels are available: **INIT_DEBUG**, **INIT_INFO**, **INIT_WARN**, **INIT_ERROR**, and **INIT_FATAL**. + +### Basic Concepts + +The implementation of init logs varies according to the OpenHarmony version. +- OpenHarmony standard: The init log is implemented via **dmesg log** of the Linux kernel. +- OpenHarmony LiteOS L1: The init log is implemented via **hilog**. +- OpenHarmony LiteOS L0: The init log is implemented via **printf**. + +### Constraints +None + +## How to Develop +### Use Cases +init logs are mainly used to start modules (like **param**, **ueventd**, and **module**) during init startup, and are used in the open API **begetutils**. + +### Available APIs + +**Table 1** Log APIs +| API | Format and Example | Description | +| ----------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| INIT_LOGV | INIT_LOGV("Add %s to job %s", service->name, jobName); | Prints the log of the DEBUG level. | +| INIT_LOGI | INIT_LOGI("Start init first stage."); | Prints the log of the INFO level. | +| INIT_LOGW | INIT_LOGW("initialize signal handler failed"); | Prints the log of the WARN level. | +| INIT_LOGE | INIT_LOGE("Failed to format other opt"); | Prints the log of the ERROR level. | +| INIT_LOGF | INIT_LOGF("Failed to init system"); | Prints the log of the FATAL level. | +| INIT_ERROR_CHECK | INIT_ERROR_CHECK(ctx != NULL, return NULL, "Failed to get cmd args "); | Prints a log and executes **return NULL** when **ctx != NULL** is not true.| +| INIT_INFO_CHECK | INIT_INFO_CHECK(sockopt != NULL, return SERVICE_FAILURE, "Failed to malloc for service %s", service->name); | Prints a log and executes **return SERVICE_FAILURE** when **sockopt != NULL** is not true.| +| INIT_WARNING_CHECK | INIT_WARNING_CHECK(argsCount <= SPACES_CNT_IN_CMD_MAX, argsCount = SPACES_CNT_IN_CMD_MAX, "Too much arguments for command, max number is %d", SPACES_CNT_IN_CMD_MAX); | Prints a log and executes **argsCount = SPACES_CNT_IN_CMD_MAX** when **argsCount <= SPACES_CNT_IN_CMD_MAX** is not true.| +| INIT_CHECK | INIT_CHECK(arg != NULL, return NULL); | Executes **return NULL** when **arg != NULL** is not true. | +| INIT_CHECK_RETURN_VALUE | INIT_CHECK_RETURN_VALUE(errno == 0, -1); | Executes **return -1** when **errno == 0** is not true. | +| INIT_CHECK_ONLY_RETURN | INIT_CHECK_ONLY_RETURN(cmd != NULL); | Executes **return** when **cmd != NULL** is not true. | +| INIT_CHECK_ONLY_ELOG | INIT_CHECK_ONLY_ELOG(execv(argv[0], argv) == 0, "execv %s failed! err %d.", argv[0], errno); | Prints only **log "execv %s failed! err %d."** when **execv(argv[0], argv) == 0** is not true.| + +### Development Example + + 1. Call an API to print the log. + + For example, call **INIT_LOGI("Start init first stage.")** in **//base/startup/init/services/init/standard/init.c** to print the log. + ```c + void SystemPrepare(void) + { + MountBasicFs(); + CreateDeviceNode(); + LogInit(); + // Make sure init logs are always printed to /dev/kmsg. + EnableDevKmsg(); + INIT_LOGI("Start init first stage."); + // Only the OpenHarmony standard system supports + // two stages of init. + // In updater mode, only one stage of init is supported. + if (InUpdaterMode() == 0) { + StartInitSecondStage(); + } + } + ``` + Run **dmesg** to check the printed log **Start init first stage.** + + 2. Set the log level by using the begetctl command. + + The command is **begetctl setloglevel level**, where **level** indicates one of the following log levels: **0** (**INIT_DEBUG**), **1** (**INIT_INFO**), **2** (**INIT_WARN**), **3** (**INIT_ERROR**), and **4** (**INIT_FATAL**). + + After the setting is complete, the level set via **g_logLevel** of init takes effect immediately, and log APIs can print logs only when their log levels are higher than or equal to this level. For example, **begetctl setloglevel 3** sets the log level to **INIT_ERROR**. In this case, only **INIT_LOGE** and **INIT_LOGF** will print logs. + + After the system is restarted, the configured log level will take effect after the **load_persist_params** command in the **init.cfg** file is executed. diff --git a/en/device-dev/subsystems/subsys-boot-init-sub-unit.md b/en/device-dev/subsystems/subsys-boot-init-sub-unit.md new file mode 100644 index 0000000000000000000000000000000000000000..2e1407b9fd8dc6a29e74b91b4c1bc414a7eaae73 --- /dev/null +++ b/en/device-dev/subsystems/subsys-boot-init-sub-unit.md @@ -0,0 +1,121 @@ +# Component-based Startup +## Overview +### Function Introduction +This subsystem provides the following functions: +- Builds four basic component images and provides component-based directories, including: + - System component: **system** + - Common product configuration component: **sys_prod** + - Chipset component: **chipset** + - Hardware configuration component: **chip_prod** +- Ensures that system parameters and startup scripts can be scanned and initialized by component priority. +- Independently compiles and builds the **system** component and **chipset** component. + +### Basic Concepts +- Basic Components + + **system**: serves as the file system mount point, and functions as a platform service irrelevant to the chipset and hardware. + **sys_prod**: extends and customizes capabilities of the **system** component, bears product-level differentiated capabilities, and stores product-related configuration files. + **chipset**: serves as the file system mount point, and offers unified hardware abstraction services for the **system** component. Same chipset platforms can use the same **chipset** component. + **chip_prod**: offers specific hardware capabilities of a peripheral board and product-level differentiated hardware configurations, as well as chipset-related configuration files. + +- Component-based compilation and building + + Use **target_cpu** to specify the instruction set of the **system** component. Use **inherit** to inherit the common component set such as **base**, **headless**, and **rich**. Use **subsystems** to define more components for a specific product type. + +- System parameters and startup scripts scanned and initialized by component priority + + System parameters and startup scripts include the CFG configuration file, PARAM file, sandbox JSON configuration file, and module plugin library file of a service. The following are related files that are in ascending order in terms of priority: **/system**, **/chipset**, **/sys_prod**, and **/chip_prod**. A file with a higher priority replaces and updates the configuration file with a lower priority. + + +### Constraints +Standard and small systems support component-based compilation and building. System parameters and startup scripts are scanned and initialized by component priority. + +## How to Develop +### When to Use +Component-based startup enables vendors and hardware platforms to quickly develop products through modular combination. The following uses RK3568 as an example to illustrate component-based startup in detail. + +### Building and Compiling RK3568 Based on Components +The **//vendor/hihope/rk3568/config.json** configuration file implements components required for building the product: + + { + "product_name": "rk3568", + "device_company": "rockchip", + ... + "target_cpu": "arm", + ... + "inherit": [ "productdefine/common/inherit/rich.json", "productdefine/common/inherit/chipset_common.json" ], + "subsystems": [ + { + "subsystem": "security", + "components": [ + { + "component": "selinux", + "features": [] + } + ] + } + ... + } + +The example above indicates the product name, chipset vendor, supported instruction set, and more. **inherit** indicates the dependent common components, and **subsystems** indicates other components. +The following illustrates the configuration of the **system** component in the **//productdefine/common/inherit/rich.json** file. The **system** component can also include **base.json** (list of minimal components that all products must contain) and **headless.json** (list of minimal components with which products having no UI allow for application installation and management). + + { + "version": "3.0", + "subsystems": [ + { + "subsystem": "arkui", + "components": [ + { + "component": "ace_engine", + "features": [] + }, + { + "component": "napi", + "features": [] + } + ] + }, + { + "subsystem": "account", + "components": [ + { + "component": "os_account", + "features": [] + } + ] + }, + ... + } + +### Scanning and Initializing System Parameters by Priority +The following are CFG files of a service, which are in ascending order in terms of priority: **/system/etc**, **/system/etc/init**, and **/chipset/etc**. A file with a higher priority replaces and updates the configuration file with a lower priority. The following uses **/system/etc/init/camera_service.cfg** as an example: + + { + "services" : [{ + "name" : "camera_service", + "path" : ["/system/bin/sa_main", "/system/profile/camera_service.xml"], + "uid" : "cameraserver", + "gid" : ["system", "shell"], + "secon" : "u:r:camera_service:s0", + "permission" : ["ohos.permission.GET_SENSITIVE_PERMISSIONS"], + "permission_acls" : ["ohos.permission.GET_SENSITIVE_PERMISSIONS"] + }] + } + +**/chipset/etc/camera_B_service.cfg** exists at the same time. + + { + "services" : [{ + "name" : "camera_service", + "path" : ["/system/bin/sa_main", "/system/profile/camera_B_service.xml"], + "uid" : "cameraserver", + "gid" : ["system", "shell"], + "secon" : "u:r:camera_service:s0", + "permission" : ["ohos.permission.GET_SENSITIVE_PERMISSIONS"], + "permission_acls" : ["ohos.permission.GET_SENSITIVE_PERMISSIONS"], + "disabled" : 1 + }] + } + +Based on the priority requirement, the **path** attribute of the **camera_service** service will be replaced by **["/system/bin/sa_main", "/system/profile/camera_B_service.xml"]** that has a higher priority, and the **disabled** attribute is added. diff --git a/en/device-dev/subsystems/subsys-dfx-hisysevent-tool.md b/en/device-dev/subsystems/subsys-dfx-hisysevent-tool.md index 4dccc4dbf082cc1121443c00adbef531b2b5ed23..cb0f8cead65cd1faed98c723d30f557b4302bbab 100644 --- a/en/device-dev/subsystems/subsys-dfx-hisysevent-tool.md +++ b/en/device-dev/subsystems/subsys-dfx-hisysevent-tool.md @@ -42,7 +42,7 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** | Option| Description| | -------- | -------- | | -t | Event tag used to filter subscribed real-time system events.| - | -c | Matching rule for event tags. The options can be **WHOLE_WORD**, **PREFIX**, or **REGULAR**.| + | -c | Matching rule for event tags. The option can be **WHOLE_WORD**, **PREFIX**, or **REGULAR**.| Example: @@ -67,7 +67,7 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** | -------- | -------- | | -o | Event domain used to filter subscribed real-time system events.| | -n | Event name used to filter subscribed real-time system events.| - | -c | Matching rule for event domains and event names. The options can be **WHOLE_WORD**, PREFIX, or **REGULAR**.| + | -c | Matching rule for event domains and event names. The option can be **WHOLE_WORD**, PREFIX, or **REGULAR**.| Example: @@ -83,6 +83,30 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** > **NOTE** > If **-t**, **-o**, and **-n** are specified, the system checks whether the configured event tag is null. If the event tag is not null, the system filters system events based on the matching rules for the event tag. Otherwise, the system filters system events based on the matching rules for the event domain and event name. +- Command for subscribing to real-time system events by event type: + + ``` + hisysevent -r -g [FAULT|STATISTIC|SECURITY|BEHAVIOR] + ``` + + Description of command options: + + | Option| Description| + | -------- | -------- | + | -g | Type of the system events to be subscribed to. The option can be **FAULT**, **STATISTIC**, **SECURITY**, or **BEHAVIOR**.| + + Example: + + ``` + # hisysevent -r -o "RELIABILITY" -n "APP_FREEZE" -g FAULT + {"domain_":"RELIABILITY","name_":"APP_FREEZE","type_":1,"time_":1501963989773,"pid_":1505,"uid_":10002,"FAULT_TYPE":"4","MODULE":"com.ohos.screenlock","REASON":"NO_DRAW","SUMMARY":"SUMMARY:\n","LOG_PATH":"/data/log/faultlog/faultlogger/appfreeze-com.ohos.screenlock-10002-20170805201309","HAPPEN_TIME":1501963989773,"VERSION":"1.0.0","level_":"CRITICAL","tag_":"STABILITY","id_":"16367997008075110557","info_":""} + # hisysevent -r -o "POWER\w{0,8}" -n "POWER_RUNNINGLOCK" -c REGULAR -g STATISTIC + {"domain_":"POWER","name_":"POWER_RUNNINGLOCK","type_":2,"time_":1667485283785,"tz_":"+0000","pid_":538,"tid_":684,"uid_":5523,"PID":360,"UID":1001,"STATE":0,"TYPE":1,"NAME":"telRilRequestRunningLock","LOG_LEVEL":2,"TAG":"DUBAI_TAG_RUNNINGLOCK_REMOVE","MESSAGE":"token=25956496","level_":"MINOR","tag_":"PowerStats","id_":"11994072552538324655","info_":""} + # hisysevent -r -o "ACCOU\w+" -c REGULAR -g SECURITY + {"domain_":"ACCOUNT","name_":"PERMISSION_EXCEPTION","type_":3,"time_":1667484405993,"tz_":"+0000","pid_":614,"tid_":614,"uid_":3058,"CALLER_UID":1024,"CALLER_PID":523,"PERMISSION_NAME":"ohos.permission.MANAGE_LOCAL_ACCOUNTS","level_":"CRITICAL","tag_":"security","id_":"15077995598140341422","info_":""} + # hisysevent -r -o MULTIMODALINPUT -g BEHAVIOR + {"domain_":"MULTIMODALINPUT","name_":"Z_ORDER_WINDOW_CHANGE","type_":4,"time_":1667549852735,"tz_":"+0000","pid_":2577,"tid_":2588,"uid_":6696,"OLD_ZORDER_FIRST_WINDOWID":-1,"NEW_ZORDER_FIRST_WINDOWID":2,"OLD_ZORDER_FIRST_WINDOWPID":-1,"NEW_ZORDER_FIRST_WINDOWPID":1458,"MSG":"The ZorderFirstWindow changing succeeded","level_":"MINOR","tag_":"PowerStats","id_":"16847308118559691400","info_":""} + ``` ## Querying Historical System Events @@ -139,6 +163,56 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** {"domain_":"RELIABILITY","name_":"APP_FREEZE","type_":1,"time_":1501964222980,"pid_":1505,"uid_":10002,"FAULT_TYPE":"4","MODULE":"com.ohos.screenlock","REASON":"NO_DRAW","SUMMARY":"SUMMARY:\n","LOG_PATH":"/data/log/faultlog/faultlogger/appfreeze-com.ohos.screenlock-10002-20170805201702","HAPPEN_TIME":1501964222980,"VERSION":"1.0.0","level_":"CRITICAL","tag_":"STABILITY","id_":"10435592800188571430","info_":""} ``` +- Command for querying historical system events by event domain and event name: + + ``` + hisysevent -l -o -n [-c WHOLE_WORD] + ``` + + Description of command options: + + | Option| Description| + | -------- | -------- | + | -o | Domain based on which historical system events are queried.| + | -n | Name based on which historical system events are queried.| + | -c | Rule for matching the domain and name of historical system events. The option can only be **WHOLE_WORD**.| + + Example: + + ``` + # hisysevent -l -n "APP_FREEZE" + {"domain_":"RELIABILITY","name_":"APP_FREEZE","type_":1,"time_":1501963989773,"pid_":1505,"uid_":10002,"FAULT_TYPE":"4","MODULE":"com.ohos.screenlock","REASON":"NO_DRAW","SUMMARY":"SUMMARY:\n","LOG_PATH":"/data/log/faultlog/faultlogger/appfreeze-com.ohos.screenlock-10002-20170805201309","HAPPEN_TIME":1501963989773,"VERSION":"1.0.0","level_":"CRITICAL","tag_":"STABILITY","id_":"16367997008075110557","info_":""} + # hisysevent -r -o "RELIABILITY" + {"domain_":"RELIABILITY","name_":"APP_FREEZE","type_":1,"time_":1501963989773,"pid_":1505,"uid_":10002,"FAULT_TYPE":"4","MODULE":"com.ohos.screenlock","REASON":"NO_DRAW","SUMMARY":"SUMMARY:\n","LOG_PATH":"/data/log/faultlog/faultlogger/appfreeze-com.ohos.screenlock-10002-20170805201544","HAPPEN_TIME":1501963989773,"VERSION":"1.0.0","level_":"CRITICAL","tag_":"STABILITY","id_":"13456525196455104060","info_":""} + # hisysevent -r -o "RELIABILITY" -n "APP_FREEZE" -c WHOLE_WORD + {"domain_":"RELIABILITY","name_":"APP_FREEZE","type_":1,"time_":1501963989773,"pid_":1505,"uid_":10002,"FAULT_TYPE":"4","MODULE":"com.ohos.screenlock","REASON":"NO_DRAW","SUMMARY":"SUMMARY:\n","LOG_PATH":"/data/log/faultlog/faultlogger/appfreeze-com.ohos.screenlock-10002-20170805201633","HAPPEN_TIME":1501963989773,"VERSION":"1.0.0","level_":"CRITICAL","tag_":"STABILITY","id_":"12675246910904037271","info_":""} + ``` + +- Command for querying historical system events by event type: + + ``` + hisysevent -l -g [FAULT|STATISTIC|SECURITY|BEHAVIOR] + ``` + + Description of command options: + + | Option| Description| + | -------- | -------- | + | -g | Type of the historical system events to be queried. The option can be **FAULT**, **STATISTIC**, **SECURITY**, or **BEHAVIOR**.| + + Example: + + ``` + # hisysevent -l -o "RELIABILITY" -g FAULT + {"domain_":"RELIABILITY","name_":"APP_FREEZE","type_":1,"time_":1501963989773,"pid_":1505,"uid_":10002,"FAULT_TYPE":"4","MODULE":"com.ohos.screenlock","REASON":"NO_DRAW","SUMMARY":"SUMMARY:\n","LOG_PATH":"/data/log/faultlog/faultlogger/appfreeze-com.ohos.screenlock-10002-20170805201309","HAPPEN_TIME":1501963989773,"VERSION":"1.0.0","level_":"CRITICAL","tag_":"STABILITY","id_":"16367997008075110557","info_":""} + # hisysevent -l -n "POWER_RUNNINGLOCK" -c WHOLE_WORD -g STATISTIC + {"domain_":"POWER","name_":"POWER_RUNNINGLOCK","type_":2,"time_":1667485283785,"tz_":"+0000","pid_":538,"tid_":684,"uid_":5523,"PID":360,"UID":1001,"STATE":0,"TYPE":1,"NAME":"telRilRequestRunningLock","LOG_LEVEL":2,"TAG":"DUBAI_TAG_RUNNINGLOCK_REMOVE","MESSAGE":"token=25956496","level_":"MINOR","tag_":"PowerStats","id_":"11994072552538324655","info_":""} + # hisysevent -l -g SECURITY + {"domain_":"ACCOUNT","name_":"PERMISSION_EXCEPTION","type_":3,"time_":1667484405993,"tz_":"+0000","pid_":614,"tid_":614,"uid_":3058,"CALLER_UID":1024,"CALLER_PID":523,"PERMISSION_NAME":"ohos.permission.MANAGE_LOCAL_ACCOUNTS","level_":"CRITICAL","tag_":"security","id_":"15077995598140341422","info_":""} + # hisysevent -l -o MULTIMODALINPUT -g BEHAVIOR + {"domain_":"MULTIMODALINPUT","name_":"Z_ORDER_WINDOW_CHANGE","type_":4,"time_":1667549852735,"tz_":"+0000","pid_":2577,"tid_":2588,"uid_":6696,"OLD_ZORDER_FIRST_WINDOWID":-1,"NEW_ZORDER_FIRST_WINDOWID":2,"OLD_ZORDER_FIRST_WINDOWPID":-1,"NEW_ZORDER_FIRST_WINDOWPID":1458,"MSG":"The ZorderFirstWindow changing succeeded","level_":"MINOR","tag_":"PowerStats","id_":"16847308118559691400","info_":""} + ``` + ## System Event Validity Check - Enabling system event validity check diff --git a/en/device-dev/website.md b/en/device-dev/website.md index c5191347e5d75b4af97ca4cac89f7f0a10026363..68f4122ee8059c2fcc1f708043f30815a0671934 100644 --- a/en/device-dev/website.md +++ b/en/device-dev/website.md @@ -142,7 +142,7 @@ - [Mutex](kernel/kernel-mini-basic-ipc-mutex.md) - [Queue](kernel/kernel-mini-basic-ipc-queue.md) - [Semaphore](kernel/kernel-mini-basic-ipc-sem.md) - - [Time Management](kernel/kernel-basic-mini-time.md) + - [Time Management](kernel/kernel-mini-basic-time.md) - [Software Timer](kernel/kernel-mini-basic-soft.md) - [Doubly Linked List](kernel/kernel-mini-basic-list.md) - Extended Components diff --git a/en/release-notes/OpenHarmony-v2.2-beta2.md b/en/release-notes/OpenHarmony-v2.2-beta2.md index cfa49a7202091c9e6d068dff91b11fd1ca470c98..91bcaffdad2f96c96baabb848032aad0fa94b220 100644 --- a/en/release-notes/OpenHarmony-v2.2-beta2.md +++ b/en/release-notes/OpenHarmony-v2.2-beta2.md @@ -99,9 +99,9 @@ This release provides the following new and enhanced features based on OpenHarmo For details, see: -- [JS API Differences](api-change/v2.2-beta2/js-apidiff-v2.2-beta2.md) +- [JS API Differences](api-diff/v2.2-beta2/js-apidiff-v2.2-beta2.md) -- [Native API Differences](api-change/v2.2-beta2/native-apidiff-v2.2-beta2.md) +- [Native API Differences](api-diff/v2.2-beta2/native-apidiff-v2.2-beta2.md) ## Resolved Issues diff --git a/en/release-notes/OpenHarmony-v3.0-LTS.md b/en/release-notes/OpenHarmony-v3.0-LTS.md index 131148f4ad92d542b68d70cc2f84edf865383c02..c6d160b70d9cf25a688d734274289631e36e231a 100644 --- a/en/release-notes/OpenHarmony-v3.0-LTS.md +++ b/en/release-notes/OpenHarmony-v3.0-LTS.md @@ -127,7 +127,7 @@ This version has the following updates to OpenHarmony 2.2 Beta2. ### API Updates -For details, see [JS API Differences](api-change/v3.0-LTS/js-apidiff-v3.0-lts.md). +For details, see [JS API Differences](api-diff/v3.0-LTS/js-apidiff-v3.0-lts.md). ### Chip and Development Board Adaptation diff --git a/en/release-notes/OpenHarmony-v3.0.7-LTS.md b/en/release-notes/OpenHarmony-v3.0.7-LTS.md new file mode 100644 index 0000000000000000000000000000000000000000..dbfc9f2d438a9dcede7fd8f265b89fa9a665e32f --- /dev/null +++ b/en/release-notes/OpenHarmony-v3.0.7-LTS.md @@ -0,0 +1,124 @@ +# OpenHarmony 3.0.7 LTS + + +## Version Description + +OpenHarmony 3.0.7 LTS is a maintenance version of OpenHarmony 3.0 LTS. It has rectified certain issues detected in OpenHarmony 3.0.6 LTS. + + +## Version mapping + + **Table 1** Version mapping of software and tools + +| Software/Tool| Version| Remarks| +| -------- | -------- | -------- | +| OpenHarmony | 3.0.7 LTS| NA | +| (Optional) HUAWEI DevEco Studio| 3.0 Beta3 for OpenHarmony | Recommended for developing OpenHarmony applications| +| (Optional) HUAWEI DevEco Device Tool| 3.0 Release | Recommended for developing OpenHarmony smart devices| + + +## Source Code Acquisition + + +### Prerequisites + +1. Register your account with Gitee. + +2. Register an SSH public key for access to Gitee. + +3. Install the [git client](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) and [git-lfs](https://gitee.com/vcs-all-in-one/git-lfs?_from=gitee_search#downloading), and configure user information. + + ``` + git config --global user.name "yourname" + git config --global user.email "your-email-address" + git config --global credential.helper store + ``` + +4. Run the following commands to install the **repo** tool: + + ``` + curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo # If you do not have the permission, download the tool to another directory and configure it as an environment variable by running the chmod a+x /usr/local/bin/repo command. + pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests + ``` + + +### Acquiring Source Code Using the repo Tool + +**Method 1 (recommended)**: Use the **repo** tool to download the source code over SSH. (You must have an SSH public key for access to Gitee.) + + +``` +repo init -u git@gitee.com:openharmony/manifest.git -b refs/tags/OpenHarmony-v3.0.7-LTS --no-repo-verify +repo sync -c +repo forall -c 'git lfs pull' +``` + +**Method 2**: Use the **repo** tool to download the source code over HTTPS. + + +``` +repo init -u https://gitee.com/openharmony/manifest.git -b refs/tags/OpenHarmony-v3.0.7-LTS --no-repo-verify +repo sync -c +repo forall -c 'git lfs pull' +``` + + +### Acquiring Source Code from Mirrors + + **Table 2** Mirrors for acquiring source code + +| LTS Code| Version| Mirror| SHA-256 Checksum| +| -------- | -------- | -------- | -------- | +| Full code base (for mini, small, and standard systems)| 3.0.7 | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.0.7/code-v3.0.7-LTS.tar.gz)| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.0.7/code-v3.0.7-LTS.tar.gz.sha256)| +| Standard system Hi3516 solution (binary)| 3.0.7 | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.0.7/standard.tar.gz)| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.0.7/standard.tar.gz.sha256)| +| Mini system Hi3861 solution (binary)| 3.0.7 | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.0.7/hispark_pegasus.tar.gz) | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.0.7/hispark_pegasus.tar.gz.sha256) | +| Small system Hi3516 solution - LiteOS (binary)| 3.0.7 | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.0.7/hispark_taurus.tar.gz) | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.0.7/hispark_taurus.tar.gz.sha256) | +| Small system Hi3516 solution - Linux (binary)| 3.0.7 | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.0.7/hispark_taurus_linux.tar.gz) | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.0.7/hispark_taurus_linux.tar.gz.sha256) | + + +## What's New + + +### Feature Updates + +This version does not involve feature updates. + + +### API Updates + +This version does not involve API updates. + + +### Chip and Development Board Adaptation + +For details about the adaptation status, see [SIG-Devboard](https://gitee.com/openharmony/community/blob/master/sig/sig-devboard/sig_devboard.md). + + +## Fixed Security Vulnerabilities + + **Table 3** Fixed security vulnerabilities + +| Issue No.| Description| PR Link| +| -------- | -------- | -------- | +| I5VFI7 | Security vulnerabilities of the Kernel_linux_5.10 component: CVE-2022-3303, CVE-2022-42703, CVE-2022-20422, CVE-2022-41222, CVE-2022-3239, CVE-2022-20423 and CVE-2022-41850 | [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/508) | +| I5UHPU | Security vulnerabilities of the Kernel_linux_5.10 component: CVE-2022-40768, CVE-2022-3577, CVE-2022-20409, CVE-2022-3566, CVE-2022-3606, CVE-2022-3564 and CVE-2022-3649| [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/506) | +| I5QBIA | Security vulnerability of the Kernel_linux_5.10 component: CVE-2022-1184 | [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/475) | +| I5VFK1 | Security vulnerabilities of the Kernel_linux_5.10 component: CVE-2022-20421, CVE-2022-42719, CVE-2022-42720, CVE-2022-42721, CVE-2022-42722, CVE-2022-41674, CVE-2022-3535, CVE-2022-3521, CVE-2022-3565, CVE-2022-3594, CVE-2022-3435, CVE-2022-41849, CVE-2022-3524, CVE-2022-3542, and CVE-2022-3534| [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/503) | +| I5OJL9 | Security vulnerability of the Kernel_linux_5.10 component: CVE-2022-26373 | [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/495) | +| I5WC2X | Security vulnerabilities of the Kernel_linux_5.10 component: CVE-2022-23816, CVE-2022-29901, and CVE-2022-29900| [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/494) | +| I5VQVK | Security vulnerability of the Kernel_linux_5.10 component: CVE-2022-1462 | [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/490) | +| I5VP0D | Security vulnerabilities of the Kernel_linux_5.10 component: CVE-2022-39189, CVE-2022-39190, and CVE-2022-2663| [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/489) | +| I5QBPW | Security vulnerabilities of the Kernel_linux_5.10 component: CVE-2022-39188, CVE-2022-3078, CVE-2022-2905, and CVE-2022-39842| [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/481) | +| I5SCE3 | Security vulnerabilities of the Kernel_linux_5.10 component: CVE-2022-3202 and CVE-2022-40307| [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/464) | +| I5QBK8 | Security vulnerabilities of the Kernel_linux_5.10 component: CVE-2022-3028, CVE-2022-2977, and CVE-2022-2964| [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/442) | +| I5RQTK | Security vulnerability of the Kernel_linux_5.10 component: CVE-2022-3061 | [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/444) | +| I5R8CM | Security vulnerabilities of the Kernel_linux_5.10 component: CVE-2022-2959 and CVE-2022-2991| [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/436) | +| I5R8BB | Security vulnerability of the Kernel_linux_5.10 component: CVE-2022-2503 | [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/435) | +| I5R6VI | Security vulnerability of the Kernel_linux_5.10 component: CVE-2022-2938 | [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/434) | +| I5ZA11 | Security vulnerabilities of the curl component: CVE-2022-32221, CVE-2022-42915, and CVE-2022-42916| [PR](https://gitee.com/openharmony/third_party_curl/pulls/90) | +| I5QBFJ | Security vulnerability of the curl component: CVE-2022-35252 | [PR](https://gitee.com/openharmony/third_party_curl/pulls/85) | +| I5UHWM | Security vulnerability of the wayland component: CVE-2021-3782 | [PR](https://gitee.com/openharmony/third_party_wayland_standard/pulls/22) | +| I5MVPK | Security vulnerability on the css-what component: CVE-2021-33587 | [PR](https://gitee.com/openharmony/third_party_css-what/pulls/9) | +| I5YR0H | Security vulnerability of the gstreamer component: CVE-2021-3185 | [PR](https://gitee.com/openharmony/third_party_gstreamer/pulls/207) | +| I5XT87 | Security vulnerability of the expat component: CVE-2022-43680 | [PR](https://gitee.com/openharmony/third_party_expat/pulls/22) | +| I5SD4W | Security vulnerability of the expat component: CVE-2022-40674 | [PR](https://gitee.com/openharmony/third_party_expat/pulls/19) | diff --git a/en/release-notes/OpenHarmony-v3.1-beta.md b/en/release-notes/OpenHarmony-v3.1-beta.md index 473ab75402e29ce5e78e90f793e14b4423ce19f8..634f1f6b31479e4539512502d38be6e9c0047ea5 100644 --- a/en/release-notes/OpenHarmony-v3.1-beta.md +++ b/en/release-notes/OpenHarmony-v3.1-beta.md @@ -128,11 +128,11 @@ This version has the following updates to OpenHarmony 3.0 LTS. For details, see the following: -_[JS API Differences](api-change/v3.1-beta/js-apidiff-v3.1-beta.md)_ +_[JS API Differences](api-diff/v3.1-beta/js-apidiff-v3.1-beta.md)_ -_[Native API Differences](api-change/v3.1-beta/native-apidiff-v3.1-beta.md)_ +_[Native API Differences](api-diff/v3.1-beta/native-apidiff-v3.1-beta.md)_ -_[Changelog](api-change/v3.1-beta/changelog-v3.1-beta.md)_ +_[Changelog](api-diff/v3.1-beta/changelog-v3.1-beta.md)_ ### Chip and Development Board Adaptation diff --git a/en/release-notes/OpenHarmony-v3.1-release.md b/en/release-notes/OpenHarmony-v3.1-release.md index 21ab0449d8b55b0cda5cc901d9999d85699a08d7..ca16c902177dabef16878612b208fe60bc3ec142 100644 --- a/en/release-notes/OpenHarmony-v3.1-release.md +++ b/en/release-notes/OpenHarmony-v3.1-release.md @@ -189,7 +189,7 @@ This version has the following updates to OpenHarmony 3.1 Beta. For details, see the following: -*[API Differences](api-change/v3.1-Release/Readme-EN.md)* +*[API Differences](api-diff/v3.1-Release/Readme-EN.md)* ### Chip and Development Board Adaptation diff --git a/en/release-notes/OpenHarmony-v3.1.4-release.md b/en/release-notes/OpenHarmony-v3.1.4-release.md index 3307d25c774707b1b0093c7d83d0c4583e21c8c2..0ba5cadb252fc8d9770759b02359ae428422f151 100644 --- a/en/release-notes/OpenHarmony-v3.1.4-release.md +++ b/en/release-notes/OpenHarmony-v3.1.4-release.md @@ -13,7 +13,7 @@ OpenHarmony 3.1.4 Release provides enhanced system security over OpenHarmony 3.1 | Software/Tool| Version| Remarks| | -------- | -------- | -------- | | OpenHarmony | 3.1.4 Release| NA | -| Full SDK | Ohos_sdk_full 3.1.9.7 (API Version 8 Release)| This toolkit is intended for original equipment manufacturers (OEMs) and contains system APIs that require system permissions.
To use the Full SDK, you must manually obtain it from the mirror and switch to it in DevEco Studio. For details, see [Guide to Switching to Full SDK](../application-dev/quick-start/full-sdk-switch-guide.md).| +| Full SDK | Ohos_sdk_full 3.1.9.7 (API Version 8 Relese) | This toolkit is intended for original equipment manufacturers (OEMs) and contains system APIs that require system permissions.
To use the Full SDK, you must manually obtain it from the mirror and switch to it in DevEco Studio. For details, see [Guide to Switching to Full SDK](../application-dev/quick-start/full-sdk-switch-guide.md).| | Public SDK | Ohos_sdk_public 3.1.9.7 (API Version 8 Release)| This toolkit is intended for application developers and does not contain system APIs that require system permissions.
It is provided as standard in DevEco Studio 3.0 Beta4 or later.| | (Optional) HUAWEI DevEco Studio| 3.1 Preview for OpenHarmony| Recommended for developing OpenHarmony applications| | (Optional) HUAWEI DevEco Device Tool| 3.0 Release| Recommended for developing OpenHarmony smart devices| @@ -75,12 +75,12 @@ repo forall -c 'git lfs pull' | Source Code| Version| Mirror| SHA-256 Checksum| | -------- | -------- | -------- | -------- | -| Full code base (for mini, small, and standard systems)| 3.1.4 Release | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/code-v3.1.4-Release.tar.gz) | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/code-v3.1.4-Release.tar.gz.sha256) | -| Hi3516 standard system solution (binary)| 3.1.4 Release | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/standard_hi3516.tar.gz) | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/standard_hi3516.tar.gz.sha256) | -| RK3568 standard system solution (binary)| 3.1.4 Release | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/standard_rk3568.tar.gz) | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/standard_rk3568.tar.gz.sha256) | -| Hi3861 mini system solution (binary)| 3.1.4 Release | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/hispark_pegasus.tar.gz) | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/hispark_pegasus.tar.gz.sha256) | -| Hi3516 small system solution - LiteOS (binary)| 3.1.4 Release | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/hispark_taurus.tar.gz) | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/hispark_taurus.tar.gz.sha256) | -| Hi3516 small system solution - Linux (binary)| 3.1.4 Release | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/hispark_taurus_linux.tar.gz) | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/hispark_taurus_linux.tar.gz.sha256) | +| Full code base (for mini, small, and standard systems)| 3.1.4 Release| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/code-v3.1.4-Release-2022-12-12.tar.gz)| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/code-v3.1.4-Release-2022-12-12.tar.gz.sha256)| +| Hi3516 standard system solution (binary)| 3.1.4 Release| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/standard_hi3516.tar.gz) | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/standard_hi3516.tar.gz.sha256) | +| RK3568 standard system solution (binary)| 3.1.4 Release| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/standard_rk3568.tar.gz) | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/standard_rk3568.tar.gz.sha256) | +| Hi3861 mini system solution (binary)| 3.1.4 Release| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/hispark_pegasus.tar.gz) | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/hispark_pegasus.tar.gz.sha256) | +| Hi3516 small system solution - LiteOS (binary)| 3.1.4 Release| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/hispark_taurus.tar.gz) | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/hispark_taurus.tar.gz.sha256) | +| Hi3516 small system solution - Linux (binary)| 3.1.4 Release| [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/hispark_taurus_linux.tar.gz) | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/hispark_taurus_linux.tar.gz.sha256) | | Full SDK package for the standard system (macOS)| 3.1.9.7 | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/ohos-sdk-mac-full.tar.gz) | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/ohos-sdk-mac-full.tar.gz.sha256) | | Full SDK package for the standard system (Windows/Linux)| 3.1.9.7 | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/ohos-sdk-full.tar.gz) | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/ohos-sdk-full.tar.gz.sha256) | | Public SDK package for the standard system (macOS)| 3.1.9.7 | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/ohos-sdk-mac-public.tar.gz) | [Download](https://mirrors.huaweicloud.com/openharmony/os/3.1.4/ohos-sdk-mac-public.tar.gz.sha256) | diff --git a/en/release-notes/OpenHarmony-v3.2-beta1.md b/en/release-notes/OpenHarmony-v3.2-beta1.md index af1d74702410ed1a557c02a2ab67bc289b74ae3c..55b353757fd8ea063d99eae61469785f506f8ec8 100644 --- a/en/release-notes/OpenHarmony-v3.2-beta1.md +++ b/en/release-notes/OpenHarmony-v3.2-beta1.md @@ -172,7 +172,7 @@ This version has the following updates to OpenHarmony 3.1 Release. ### API Updates -*[API Differences](api-change/v3.2-beta1/Readme-EN.md)* +*[API Differences](api-diff/v3.2-beta1/Readme-EN.md)* ### Chip and Development Board Adaptation @@ -204,7 +204,7 @@ For details about the adaptation status, see [SIG-Devboard](https://gitee.com/op | ArkUI | [Game2048](https://gitee.com/openharmony/applications_app_samples/tree/master/ETSUI/Game2048) | This sample shows how to develop a 2048 game using the **\** component.| eTS | | Window Manager| [Window](https://gitee.com/openharmony/applications_app_samples/tree/master/Graphics/Window) | This sample shows how to create a window, display an application over another application in the form of a floating window, and display an application on split screens.| eTS | | Distributed data management| [Preference](https://gitee.com/openharmony/applications_app_samples/tree/master/data/Preferences) | This sample shows the theme switching function of preferences.| eTS | -| ArkUI | [NativeAPI](https://gitee.com/openharmony/applications_app_samples/tree/master/Native/NativeAPI) | This sample shows how to call C++ APIs in eTS and how C++ APIs call back JS APIs to play the Gomoku game. The native APIs implement the calculation logic, and eTS implements UI rendering and re-rendering.| eTS/C++ | +| ArkUI | [NativeAPI](https://gitee.com/openharmony/app_samples/tree/master/Native/NativeAPI) | This sample shows how to call C++ APIs in eTS and how C++ APIs call back JS APIs to play the Gomoku game. The native APIs implement the calculation logic, and eTS implements UI rendering and re-rendering.| eTS/C++ | | Globalization| [International](https://gitee.com/openharmony/applications_app_samples/tree/master/common/International) | This sample shows how to use APIs related to i18n, intl, and resourceManager in eTS to set the system language, region, time, and time zone. It also provides locale setting examples.| eTS | For more information, visit [Samples](https://gitee.com/openharmony/applications_app_samples). diff --git a/en/release-notes/OpenHarmony-v3.2-beta3.md b/en/release-notes/OpenHarmony-v3.2-beta3.md index 932b16e58b23e08e69fe12daf47acc007a6f4926..506724c24b4a915053f0e7733157e398642e7a01 100644 --- a/en/release-notes/OpenHarmony-v3.2-beta3.md +++ b/en/release-notes/OpenHarmony-v3.2-beta3.md @@ -176,7 +176,7 @@ This version has the following updates to OpenHarmony 3.2 Beta2. For details about the API changes, see the following: -[API Differences](api-change/v3.2-beta3/Readme-EN.md) +[API Differences](api-diff/v3.2-beta3/js-apidiff-ability.md) ### Chip and Development Board Adaptation diff --git a/en/release-notes/OpenHarmony-v3.2-beta4.md b/en/release-notes/OpenHarmony-v3.2-beta4.md new file mode 100644 index 0000000000000000000000000000000000000000..c92fa7205174bab896b300e5641f368c70918ffd --- /dev/null +++ b/en/release-notes/OpenHarmony-v3.2-beta4.md @@ -0,0 +1,247 @@ +# OpenHarmony 3.2 Beta4 + + +## Version Description + +OpenHarmony 3.2 Beta4 provides the following enhancements over OpenHarmony 3.2 Beta3: + +**Enhanced basic capabilities for the standard system** + +The program access control subsystem supports forward-edge Control Flow Integrity (CFI) and provides enhanced API exception handling. + +The kernel subsystem provides enhanced HyperHold memory expansion and F2FS device performance optimization. + +The multimodal input subsystem allows applications to enable or disable keys on the keyboard and supports multi-hotspot related to input devices. + +The graphics subsystem supports graphics data transmission based on shared memory, YUV graphics layers, GPU compositing on RenderService, and rotation and dynamic resolution of the virtual screen. + +The update subsystem supports A/B hot updates, and A/B partition device updates for flashd and SD/OTG. + +The globalization subsystem supports on-demand subscription of device management events, overlay differentiation of system resources, and cross-OS resource management. + +The Misc services subsystem supports file upload in PUT mode, download task configuration, input method framework optimization and enhancement, and printing service framework. + +The DFX subsystem supports collection of power consumption data, system event data, and perf data. + +ArkTS APIs support error code reporting, which delivers higher exception handling efficiency. + +**Enhanced application development framework for the standard system** + +Dynamic library isolation is supported, and applications to be disposed can be interrupted during runtime management. + +Window property setting and ArkTS widget interaction are supported. The **\** provides the container component capability. + +Application dependencies can be configured. The list of installed and uninstalled applications can be added, deleted, and queried. The list of applications that are forbidden to run can be added, deleted, and queried. + +**Enhanced distributed capabilities for the standard system** + +The distributed hardware supports the request and import of credential parameters of the same account. + + +## Version mapping + + **Table 1** Version mapping of software and tools + +| Software/Tool| Version| Remarks| +| -------- | -------- | -------- | +| OpenHarmony | 3.2 Beta4 | NA | +| Public SDK | Ohos_sdk_public 3.2.9.2 (API Version 9 Beta4) | This toolkit is intended for application developers and does not contain system APIs that require system permissions. It is provided as standard in DevEco Studio.| +| Full SDK | Ohos_sdk_full 3.2.9.2 (API Version 9 Beta4) | This toolkit is intended for original equipment manufacturers (OEMs) and contains system APIs that require system permissions. To use the Full SDK, you must manually obtain it from the mirror and switch to it in DevEco Studio. For details, see [Guide to Switching to Full SDK](../application-dev/quick-start/full-sdk-switch-guide.md).| +| (Optional) HUAWEI DevEco Studio| 3.1 Canary1 | Recommended for developing OpenHarmony applications| +| (Optional) HUAWEI DevEco Device Tool| 3.1 Beta1 | Recommended for developing OpenHarmony smart devices| + + +## Source Code Acquisition + + +### Prerequisites + +1. Register your account with Gitee. + +2. Register an SSH public key for access to Gitee. + +3. Install the [git client](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) and [git-lfs](https://gitee.com/vcs-all-in-one/git-lfs?_from=gitee_search#downloading), and configure user information. + + ``` + git config --global user.name "yourname" + git config --global user.email "your-email-address" + git config --global credential.helper store + ``` + +4. Run the following commands to install the **repo** tool: + + ``` + curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo # If you do not have the permission, download the tool to another directory and configure it as an environment variable by running the chmod a+x /usr/local/bin/repo command. + pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests + ``` + + +### Acquiring Source Code Using the repo Tool + +**Method 1 (recommended)** + +Use the **repo** tool to download the source code over SSH. (You must have an SSH public key for access to Gitee.) + +- Obtain the source code from the version branch. You can obtain the latest source code of the version branch, which includes the code that has been incorporated into the branch up until the time you run the following commands: + ``` + repo init -u git@gitee.com:openharmony/manifest.git -b OpenHarmony-3.2-Beta4 --no-repo-verify + repo sync -c + repo forall -c 'git lfs pull' + ``` + +- Obtain the source code from the version tag, which is the same as that released with the version. + ``` + repo init -u git@gitee.com:openharmony/manifest.git -b refs/tags/OpenHarmony-v3.2-Beta4 --no-repo-verify + repo sync -c + repo forall -c 'git lfs pull' + ``` + +**Method 2** + +Use the **repo** tool to download the source code over HTTPS. + +- Obtain the source code from the version branch. You can obtain the latest source code of the version branch, which includes the code that has been incorporated into the branch up until the time you run the following commands: + ``` + repo init -u https://gitee.com/openharmony/manifest -b OpenHarmony-3.2-Beta4 --no-repo-verify + repo sync -c + repo forall -c 'git lfs pull' + ``` + +- Obtain the source code from the version tag, which is the same as that released with the version. + ``` + repo init -u https://gitee.com/openharmony/manifest -b refs/tags/OpenHarmony-v3.2-Beta4 --no-repo-verify + repo sync -c + repo forall -c 'git lfs pull' + ``` + +### Acquiring Source Code from Mirrors + +**Table 2** Mirrors for acquiring source code + +| Source Code | Version| Mirror | SHA-256 Checksum | Software Package Size| +| --------------------------------------- | ------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -------- | +| Full code base (for mini, small, and standard systems) | 3.2 Beta4 | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/code-v3.2-Beta4.tar.gz) | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/code-v3.2-Beta4.tar.gz.sha256) | 19.0 GB | +| Hi3861 mini system solution (binary) | 3.2 Beta4 | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_pegasus.tar.gz) | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_pegasus.tar.gz.sha256) | 22.6 MB | +| Hi3516 mini system solution - LiteOS (binary)| 3.2 Beta4 | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta4/hispark_taurus_LiteOS.tar.gz) | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta4/hispark_taurus_LiteOS.tar.gz.sha256) | 293.9 MB | +| Hi3516 mini system solution - Linux (binary) | 3.2 Beta4 | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta4/hispark_taurus_Linux.tar.gz) | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta4/hispark_taurus_Linux.tar.gz.sha256) | 173.2 MB | +| RK3568 standard system solution (binary) | 3.2 Beta4 | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/dayu200_standard_arm32.tar.gz) | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/dayu200_standard_arm32.tar.gz.sha256) | 3.2 GB | +| Full SDK package for the standard system (macOS) | 3.2.9.2 | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/ohos-sdk-mac-full.tar.gz) | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/ohos-sdk-mac-full.tar.gz.sha256) | 662.5 MB | +| Full SDK package for the standard system (Windows\Linux) | 3.2.9.2 | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/ohos-sdk-windows_linux-full.tar.gz) | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/ohos-sdk-windows_linux-full.tar.gz.sha256) | 1.5 GB | +| Public SDK package for the standard system (macOS) | 3.2.9.2 | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/ohos-sdk-mac-public.tar.gz) | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/ohos-sdk-mac-public.tar.gz.sha256) | 622.2 MB | +| Public SDK package for the standard system (Windows\Linux) | 3.2.9.2 | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/ohos-sdk-windows_linux-public.tar.gz) | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/ohos-sdk-windows_linux-public.tar.gz.sha256) | 1.5 GB | + + +### Prerequisites + +1. Register your account with Gitee. + +2. Register an SSH public key for access to Gitee. + +3. Install the [git client](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) and [git-lfs](https://gitee.com/vcs-all-in-one/git-lfs?_from=gitee_search#downloading), and configure user information. + + ``` + git config --global user.name "yourname" + git config --global user.email "your-email-address" + git config --global credential.helper store + ``` + +4. Run the following commands to install the **repo** tool: + + ``` + curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo # If you do not have the permission, download the tool to another directory and configure it as an environment variable by running the chmod a+x /usr/local/bin/repo command. + pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests + ``` + +## What's New + +This version has the following updates to OpenHarmony 3.2 Beta3. + + +### Feature Updates + + **Table 3** New and enhanced features + +| Subsystem| Standard System| Mini and Small Systems| +| -------- | -------- | -------- | +| Common| ArkTS APIs support error code reporting, which delivers higher exception handling efficiency.| NA | +| Ability framework| The runtime management dialog box is optimized.
The following requirement is involved:
I5X5J9 [ability_runtime] Optimized runtime management dialog box| NA | +| ArkUI development framework| - The **\** component is reconstructed in the split-column scenario and single-page scenario.
- The **\** provides the container component capability.
The following requirements are involved:
I5X5GE Enhanced interaction normalization capability
I5X5FX ArkTS widget interaction
I5X5G3 Reconstructed **\** component in the split-column scenario
I5X5G4 Reconstructed **\** component in the single-page scenario
I5X5GG Container component capability of the **\**| NA | +| Program access control subsystem| Privacy control is provided for the use of sensitive resources.
The following requirements are involved:
I5RWXF [New feature] Global microphone setting management
I5RWX8 [New feature] Microphone usage status management| NA | +| SAMGR| Distributed invoking component management is added to prevent malicious application startup or keepalive.
The following requirements are involved:
I5T6GJ [Distributed component management] [DMS] Ability component launch management
I5T6HF [Distributed component management] [DMS] ServiceAbility/ServiceExtensionAbility component launch management| NA | +| Multimedia subsystem| - Privacy control is provided for the use of sensitive resources.
- The volume can be set based on the device group, and the DTMF dial tone can be played.
The following requirements are involved:
I5X5HT [Enhanced feature] Device group based volume setting
I5X5IF [New feature] Voice broadcast playback type and voice recognition recording type
I5X48J [New feature] Support for the DTMF dial tone| NA | +| Test subsystem| The kernel memory event analysis capability is added to SmartPerf-Host to enhance performance fault locating.
The following requirement is involved:
I5X55J [New feature] Kernel memory event analysis| NA | +| Bundle management framework| Application installation and startup management is added.
The following requirements are involved:
I5MZ8K [New feature] Adding, deleting, and querying the list of applications that are forbidden to run
I5MZ8Q [New Feature] Adding, deleting, and querying the list of installed and uninstalled applications| NA | +| Common event and notification subsystem| The custom system HAP dialog box is used to replace the original **UIService** dialog box, reducing the ArkUI memory usage.
The following requirement is involved:
I5X5L0 Using a preset application instead of **UIService** to display a notification dialog box| NA | +| Distributed hardware subsystem| The implementation of the PIN dialog box is optimized for higher module stability.
The following requirement is involved:
I5X5KX [Enhanced feature] Optimized implementation of the PIN dialog box| NA | +| Update subsystem| The A/B hot upgrade feature is added.
The following requirements are involved:
I5X4RO [Enhanced feature] A/B update support for the update_service component
I5X4RQ [Updater] Output of the A/B hot update documents
I5X4RR [New feature] A/B partition device update for flashd
I5X4RT [New feature] A/B partition device update for SD/OTG
I5X4RU [New feature] Support for A/B hot update| NA | +| Kernel subsystem| The ARM 64 CPU can restrict privileged users from accessing memory that can be accessed by non-privileged users. If a privileged user attempts to access such memory, an exception is thrown.
The HyperHold memory uses the high-speed swap partition technology and corresponding policies to support application keepalive.
The following requirements are involved:
I5X5AR [New feature] ARM 64 support for PAN
I5X5AS [New feature] ARM 64 support for PXN
I5X5B9 [New feature] HyperHold memory expansion: The high-speed swap partition technology and corresponding policies are used to support application keepalive.| NA | +| Graphics subsystem| The pointer style can be set in the window drag-and-drop scenario.
The following requirement is involved:
I5X5D9 Setting the pointer style in the window drag-and-drop scenario| NA | +| Multi-language runtime subsystem| AOT PGO files can be generated.
The following requirements are involved:
I5X5K3 [New specifications] Generation of AOT PGO files
I5X5K2 [New specifications] AOT PGO configuration| NA | +| Web subsystem| - The webview component allows users to select and copy both text and text on pages.
- The web component supports window events, full-screen events, and URL obtaining.
The following requirements are involved:
I5QA3D [New feature] [webview] Content selection and copy on a page with both texts and images
I5X53B [Enhanced feature] URL obtaining support by the web component
I5R6E0 [New specifications] Full-screen event support by the web component
I5X53C [New specifications] Window event support by the web component| NA | +| Misc services subsystem| - The input method framework supports listening for the switching of input methods and input method subtypes.
- Files can be uploaded in PUT mode.
The following requirements are involved:
I5X5LA [input_method_fwk] Listening for the switching of input methods and input method subtypes
I5X5LR [request] File uploading in PUT mode| NA | +| USB subsystem| The dialog box displayed for permission request is adapted to the new system dialog box solution.
The following requirement is involved:
I5UYX4 [New feature] Adaptation of the permission request dialog box to the new system dialog box solution| NA | +| File management subsystem| High-frequency APIs, such as APIs for opening and reading a file, are compatible across platforms.
The following requirements are involved:
I5X5E5 [fileAPI] [Capability bridging] Bridging the file I/O capability of the target platform
I5X5E6 [fileAPI] [Capability bridging] Bridging the file I/O capability of the target platform
I5X4P2 [filePicker] Modification to the file access framework interface| NA | +| DFX | - HiTrace provides a unified dotting interface and call link interface.
- The power consumption data and system event data can be collected.
- Perf data can be collected during the startup of the JS HAP.
The following requirements are involved:
I5X4TY [New feature] Unified dotting interface of HiTrace: HiTraceMeter
I5X4U1 [New feature] Unified call link interface of HiTrace: HiTraceChain
I5X4TD [New feature] Power consumption data collection
I5X4TE [New feature] System event data collection
I5X4TL [New feature] Collection of perf data during JS HAP startup| NA | + + + +For details about the API changes, see the following: + +[API Differences](api-diff/v3.2-beta4/js-apidiff-ability.md) + + + +### Chip and Development Board Adaptation + +For details about the adaptation status, see [SIG-Devboard](https://gitee.com/openharmony/community/blob/master/sig/sig-devboard/sig_devboard.md). + +### Samples + +The following samples written in ArkTS are added. + + **Table 4** New samples + +| Subsystem
| Name| Introduction| +| -------- | -------- | -------- | +| Common event and notification subsystem| [Event Notification](https://gitee.com/openharmony/applications_app_samples/tree/master/Notification/CustomEmitter)| This sample shows the in-process event notification. After a user selects an offering and submits an order, the selected offering is displayed in the order list.| +| Data management subsystem| [Cross-Application Data Sharing](https://gitee.com/openharmony/applications_app_samples/tree/master/data/CrossAppDataShare)| This sample implements cross-application data sharing. It provides contacts (data provider) and contacts assistant (data user). Contacts support functionalities such as adding, deleting, modifying, and querying contacts data. Contacts assistant supports contacts data synchronization and merging of duplicate data.| +| Multimedia subsystem| [Background Music Playback](https://gitee.com/openharmony/applications_app_samples/tree/master/ResourcesSchedule/PlayMusicBackground)| This sample implements the request for a continuous task to continue music playback in the background. It is based on the stage model.| +| Resource scheduler subsystem| [Agent-Powered Scheduled Reminder](https://gitee.com/openharmony/applications_app_samples/tree/master/ResourcesSchedule/ReminderAgentManager)| This sample uses agent-powered scheduled reminder to create three types of scheduled reminders: alarm clocks, calendar events, and countdown timers. Agent-powered scheduled reminder ensures that the timing and pop-up notification functions will be performed by the system service agent in the background when the application is frozen or exits.| +| File management subsystem| [Storage Space Statistics](https://gitee.com/openharmony/applications_app_samples/tree/master/FileManager/StorageStatistic)| This sample uses the application package management, application space statistics, and volume management modules to implement the viewing of storage space information of the current device, all installed applications, and all available volumes.| +| Window manager| [Screenshot](https://gitee.com/openharmony/applications_app_samples/tree/master/Graphics/Screenshot)| This sample uses the screenshot, window, and display modules to take screenshots, switch the privacy window, and query the privacy window, in sequence.| +| Bundle management framework| [Multi-HAP](https://gitee.com/openharmony/applications_app_samples/tree/master/bundle/MultiHap)| This sample shows the development of multi-HAP. The sample app includes one entry HAP and two feature HAPs. The two feature HAPs provide audio and video playback components, respectively. The two components are also used in the entry component.| +| Ability framework| [Ability Launch Mode](https://gitee.com/openharmony/applications_app_samples/tree/master/ability/AbilityStartMode)| This sample shows how to implement the standard, singleton, and specified ability launch modes in the stage model.| +| Resource management| [Application Theme Switch](https://gitee.com/openharmony/applications_app_samples/tree/master/ETSUI/ApplicationThemeSwitch)| This sample creates the **dark** and **light** folders at the same level as the **base** folder to configure resources related to the dark and light themes. The custom theme file is configured in the **ThemeConst** file to implement multi-theme switching by controlling variables.| + +For more information, visit [Samples](https://gitee.com/openharmony/app_samples). + + + +## Resolved Issues + + **Table 5** Resolved issues + +| Issue No.| Description| +| -------- | -------- | +| I5S40B | The actual sliding frame rate of **Contacts** is 30.3 fps, which is less than the baseline value (54 fps) by 23.7 fps.| +| I5MVDK | A crash occurs when a socket fuzz test is performed on **/data/data/.pulse_dir/runtime/cli**.| +| I5M3UO | [TTE WRC team] There is new line injection via the Wi-Fi SSID in the wifi_manager_service.| +| I5SXXR | High-privilege processes exist in lightweight graphics.| + + +## Known Issues + + **Table 6** Known issues + +| Issue No.| Description| Impact| To Be Resolved By| +| -------- | -------- | -------- | -------- | +| I5KMQX | [rk3568] [ToC] [Probability: inevitably] The actual delay for a switch between the contacts and dialing subtabs is 1770.8 ms, which is 1330 ms longer than the baseline value (440 ms).| The overall static KPIs and load meet the requirements, and the impact is controllable.| 2022-12-30| +| I61M6T | In the resident memory test performed on the RK3568 device, the actual value of the com.ohos.launcher process is 99514 KB, which exceeds the baseline value (84279 KB) by 14.8 MB.| The entire system memory meets the requirement, and the impact is controllable.| 2022-12-30| +| I59QII | In the resident memory test performed on the RK3568 device, the actual value of the netmanager process is 3884 KB, which exceeds the baseline value (1241 KB) by 2.58 MB. In the memory test, the actual value of the netmanager process exceeds the baseline value (1241 KB) by 1 MB.| The entire system memory meets the requirement, and the impact is controllable.| 2022-12-30| +| I5Q5PR | In the resident memory test performed on the RK3568 device, the actual value of the wifi_hal_service process is 4374 KB, which exceeds the baseline value (829 KB) by 3.4 MB.| The entire system memory meets the requirement, and the impact is controllable.| 2022-12-30| +| I61E1I | BR P2P transmission fails between RK3568 devices.| DSoftBus can transmit data through Bluetooth and LAN, but fails to do so using BR P2P.| 2022-12-30| +| I63DX6 | Wi-Fi P2P transmission fails between RK3568 devices| DSoftBus can transmit data through Bluetooth and LAN, but fails to do so using Wi-Fi P2P.| 2022-12-30| +| I63FEA | [rk3568] When the system camera application is started, the preview image rotates 90 degrees counterclockwise.| This is a hardware adaptation problem. It occurs on RK3568 devices with 8 GB memory, but not on RK3568 devices with 4 GB memory| 2022-12-30| +| I62EW1 | The media_server (L1) processes use the root permission.| Some chip component services are running in the media_server process, and therefore the root permission is required. Decoupling is required.| 2022-12-30| +| I5XYRX, I5YTYX, I5YU16, I5YUB4, I5YUBS| The functions related to the Bluetooth protocol stack module have an out-of-bounds read vulnerability.| The functions have an out-of-bounds read vulnerability.| 2022-12-30| +| I5SSEW, I5UFS1, I5ICMZ, I5ICM7, I5QC6H, I5R2L5, I5R2LI, I5SQO0, I5UDY5, I5YPMZ| The giflib component, das u-boot component, and kernel have known vulnerabilities.| The solutions to the vulnerabilities will be synchronized after they are released on the official website. No patch solution is available by now.| 2022-12-30| diff --git a/en/release-notes/Readme.md b/en/release-notes/Readme.md index f17941a51e6a3aeda9802db1bea4f937433a054b..9488272e72b92c4f3a73baebd22faaa748bf1a91 100644 --- a/en/release-notes/Readme.md +++ b/en/release-notes/Readme.md @@ -1,6 +1,7 @@ # OpenHarmony Release Notes ## OpenHarmony 3.x Releases +- [OpenHarmony v3.2 Beta4 (2022-11-30)](OpenHarmony-v3.2-beta4.md) - [OpenHarmony v3.2 Beta3 (2022-09-30)](OpenHarmony-v3.2-beta3.md) - [OpenHarmony v3.2 Beta2 (2022-07-30)](OpenHarmony-v3.2-beta2.md) - [OpenHarmony v3.2 Beta1 (2022-05-31)](OpenHarmony-v3.2-beta1.md) @@ -11,6 +12,7 @@ - [OpenHarmony v3.1.1 Release (2022-05-31)](OpenHarmony-v3.1.1-release.md) - [OpenHarmony v3.1 Beta (2021-12-31)](OpenHarmony-v3.1-beta.md) - [OpenHarmony v3.0 LTS (2021-09-30)](OpenHarmony-v3.0-LTS.md) +- [OpenHarmony v3.0.7 LTS (2022-12-05)](OpenHarmony-v3.0.7-LTS.md) - [OpenHarmony v3.0.6 LTS (2022-09-15)](OpenHarmony-v3.0.6-LTS.md) - [OpenHarmony v3.0.5 LTS (2022-07-01)](OpenHarmony-v3.0.5-LTS.md) - [OpenHarmony v3.0.3 LTS (2022-04-08)](OpenHarmony-v3.0.3-LTS.md) diff --git a/en/release-notes/api-change/v3.2-beta2/Readme-EN.md b/en/release-notes/api-change/v3.2-beta2/Readme-EN.md deleted file mode 100644 index 9c0ced90f4aaeb828bdc7aeffe8d52204cfd1f67..0000000000000000000000000000000000000000 --- a/en/release-notes/api-change/v3.2-beta2/Readme-EN.md +++ /dev/null @@ -1,36 +0,0 @@ -# Readme - -This directory records the API changes in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1, including new, updated, deprecated, and deleted APIs. - -- JS API Differences - - [Ability framework](js-apidiff-ability.md) - - [Accessibility subsystem](js-apidiff-accessibility.md) - - [Account subsystem](js-apidiff-account.md) - - [ArkUI development framework](js-apidiff-arkui.md) - - [Bundle management framework](js-apidiff-bundle.md) - - [Communication subsystem](js-apidiff-communicate.md) - - [Utils subsystem](js-apidiff-compiler-and-runtime.md) - - [DFX subsystem](js-apidiff-dfx.md) - - [Distributed data management subsystem](js-apidiff-distributed-data.md) - - [Common event and notification subsystem](js-apidiff-event-and-notification.md) - - [File management subsystem](js-apidiff-file-management.md) - - [Location subsystem](js-apidiff-geolocation.md) - - [Globalization subsystem](js-apidiff-global.md) - - [Graphics subsystem](js-apidiff-graphic.md) - - [Misc services subsystem](js-apidiff-misc.md) - - [Multimodal input subsystem](js-apidiff-multi-modal-input.md) - - [Multimedia subsystem](js-apidiff-multimedia.md) - - [Resource scheduler subsystem](js-apidiff-resource-scheduler.md) - - [Security subsystem](js-apidiff-security.md) - - [Pan-sensor subsystem](js-apidiff-sensor.md) - - [DSoftBus subsystem](js-apidiff-soft-bus.md) - - [Test subsystem](js-apidiff-unitest.md) - - [Update subsystem](js-apidiff-update.md) - - [USB subsystem](js-apidiff-usb.md) - - [User IAM subsystem](js-apidiff-user-authentication.md) - - [Web subsystem](js-apidiff-web.md) - - [Window manager subsystem](js-apidiff-window.md) -- ChangeLog - - [Updates (OpenHarmony 3.2 Beta1 -> OpenHarmony 3.2 Beta2)](changelog-v3.2-beta2.md) - - [Adaptation Guide for the Application Sandbox](application-sandbox-adaptation-guide.md) - diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-ability.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-ability.md new file mode 100644 index 0000000000000000000000000000000000000000..a2cf423feeac39f83fff80bacf420d3910bf6aee --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-ability.md @@ -0,0 +1,837 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_APP_ACCOUNT_AUTH|@ohos.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.Ability
Class name: Ability|@ohos.app.ability.Ability.d.ts| +|Added||Module name: ohos.app.ability.Ability
Class name: Ability
Method or attribute name: onConfigurationUpdate|@ohos.app.ability.Ability.d.ts| +|Added||Module name: ohos.app.ability.Ability
Class name: Ability
Method or attribute name: onMemoryLevel|@ohos.app.ability.Ability.d.ts| +|Added||Module name: ohos.app.ability.Ability
Class name: Ability
Method or attribute name: onSaveState|@ohos.app.ability.Ability.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: AbilityConstant|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LaunchParam|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LaunchParam
Method or attribute name: launchReason|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LaunchParam
Method or attribute name: lastExitReason|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LaunchReason|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LaunchReason
Method or attribute name: UNKNOWN|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LaunchReason
Method or attribute name: START_ABILITY|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LaunchReason
Method or attribute name: CALL|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LaunchReason
Method or attribute name: CONTINUATION|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LaunchReason
Method or attribute name: APP_RECOVERY|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LastExitReason|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LastExitReason
Method or attribute name: UNKNOWN|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LastExitReason
Method or attribute name: ABILITY_NOT_RESPONDING|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LastExitReason
Method or attribute name: NORMAL|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnContinueResult|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnContinueResult
Method or attribute name: AGREE|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnContinueResult
Method or attribute name: REJECT|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnContinueResult
Method or attribute name: MISMATCH|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: MemoryLevel|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: MemoryLevel
Method or attribute name: MEMORY_LEVEL_MODERATE|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: MemoryLevel
Method or attribute name: MEMORY_LEVEL_LOW|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: MemoryLevel
Method or attribute name: MEMORY_LEVEL_CRITICAL|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: WindowMode|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: WindowMode
Method or attribute name: WINDOW_MODE_UNDEFINED|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: WindowMode
Method or attribute name: WINDOW_MODE_FULLSCREEN|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: WindowMode
Method or attribute name: WINDOW_MODE_SPLIT_PRIMARY|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: WindowMode
Method or attribute name: WINDOW_MODE_SPLIT_SECONDARY|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: WindowMode
Method or attribute name: WINDOW_MODE_FLOATING|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnSaveResult|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnSaveResult
Method or attribute name: ALL_AGREE|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnSaveResult
Method or attribute name: CONTINUATION_REJECT|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnSaveResult
Method or attribute name: CONTINUATION_MISMATCH|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnSaveResult
Method or attribute name: RECOVERY_AGREE|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnSaveResult
Method or attribute name: RECOVERY_REJECT|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnSaveResult
Method or attribute name: ALL_REJECT|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: StateType|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: StateType
Method or attribute name: CONTINUATION|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: StateType
Method or attribute name: APP_RECOVERY|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.abilityDelegatorRegistry
Class name: abilityDelegatorRegistry|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|Added||Module name: ohos.app.ability.abilityDelegatorRegistry
Class name: abilityDelegatorRegistry
Method or attribute name: getAbilityDelegator|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|Added||Module name: ohos.app.ability.abilityDelegatorRegistry
Class name: abilityDelegatorRegistry
Method or attribute name: getArguments|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|Added||Module name: ohos.app.ability.abilityDelegatorRegistry
Class name: AbilityLifecycleState|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|Added||Module name: ohos.app.ability.abilityDelegatorRegistry
Class name: AbilityLifecycleState
Method or attribute name: UNINITIALIZED|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|Added||Module name: ohos.app.ability.abilityDelegatorRegistry
Class name: AbilityLifecycleState
Method or attribute name: CREATE|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|Added||Module name: ohos.app.ability.abilityDelegatorRegistry
Class name: AbilityLifecycleState
Method or attribute name: FOREGROUND|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|Added||Module name: ohos.app.ability.abilityDelegatorRegistry
Class name: AbilityLifecycleState
Method or attribute name: BACKGROUND|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|Added||Module name: ohos.app.ability.abilityDelegatorRegistry
Class name: AbilityLifecycleState
Method or attribute name: DESTROY|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback
Method or attribute name: onAbilityCreate|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback
Method or attribute name: onWindowStageCreate|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback
Method or attribute name: onWindowStageActive|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback
Method or attribute name: onWindowStageInactive|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback
Method or attribute name: onWindowStageDestroy|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback
Method or attribute name: onAbilityDestroy|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback
Method or attribute name: onAbilityForeground|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback
Method or attribute name: onAbilityBackground|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback
Method or attribute name: onAbilityContinue|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: abilityManager|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: AbilityState|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: AbilityState
Method or attribute name: INITIAL|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: AbilityState
Method or attribute name: FOREGROUND|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: AbilityState
Method or attribute name: BACKGROUND|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: AbilityState
Method or attribute name: FOREGROUNDING|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: AbilityState
Method or attribute name: BACKGROUNDING|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: abilityManager
Method or attribute name: updateConfiguration|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: abilityManager
Method or attribute name: updateConfiguration|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: abilityManager
Method or attribute name: getAbilityRunningInfos|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: abilityManager
Method or attribute name: getAbilityRunningInfos|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: abilityManager
Method or attribute name: getExtensionRunningInfos|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: abilityManager
Method or attribute name: getExtensionRunningInfos|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: abilityManager
Method or attribute name: getTopAbility|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: abilityManager
Method or attribute name: getTopAbility|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.AbilityStage
Class name: AbilityStage|@ohos.app.ability.AbilityStage.d.ts| +|Added||Module name: ohos.app.ability.AbilityStage
Class name: AbilityStage
Method or attribute name: context|@ohos.app.ability.AbilityStage.d.ts| +|Added||Module name: ohos.app.ability.AbilityStage
Class name: AbilityStage
Method or attribute name: onCreate|@ohos.app.ability.AbilityStage.d.ts| +|Added||Module name: ohos.app.ability.AbilityStage
Class name: AbilityStage
Method or attribute name: onAcceptWant|@ohos.app.ability.AbilityStage.d.ts| +|Added||Module name: ohos.app.ability.AbilityStage
Class name: AbilityStage
Method or attribute name: onConfigurationUpdate|@ohos.app.ability.AbilityStage.d.ts| +|Added||Module name: ohos.app.ability.AbilityStage
Class name: AbilityStage
Method or attribute name: onMemoryLevel|@ohos.app.ability.AbilityStage.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ApplicationState|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ApplicationState
Method or attribute name: STATE_CREATE|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ApplicationState
Method or attribute name: STATE_FOREGROUND|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ApplicationState
Method or attribute name: STATE_ACTIVE|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ApplicationState
Method or attribute name: STATE_BACKGROUND|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ApplicationState
Method or attribute name: STATE_DESTROY|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ProcessState|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ProcessState
Method or attribute name: STATE_CREATE|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ProcessState
Method or attribute name: STATE_FOREGROUND|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ProcessState
Method or attribute name: STATE_ACTIVE|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ProcessState
Method or attribute name: STATE_BACKGROUND|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ProcessState
Method or attribute name: STATE_DESTROY|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: on_applicationState|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: on_applicationState|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: off_applicationState|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: off_applicationState|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: getForegroundApplications|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: getForegroundApplications|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: killProcessWithAccount|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: killProcessWithAccount|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: isRunningInStabilityTest|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: isRunningInStabilityTest|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: killProcessesByBundleName|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: killProcessesByBundleName|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: clearUpApplicationData|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: clearUpApplicationData|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: isRamConstrainedDevice|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: isRamConstrainedDevice|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: getAppMemorySize|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: getAppMemorySize|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: getProcessRunningInformation|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: getProcessRunningInformation|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: appRecovery|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: RestartFlag|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: RestartFlag
Method or attribute name: ALWAYS_RESTART|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: RestartFlag
Method or attribute name: CPP_CRASH_NO_RESTART|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: RestartFlag
Method or attribute name: JS_CRASH_NO_RESTART|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: RestartFlag
Method or attribute name: APP_FREEZE_NO_RESTART|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: RestartFlag
Method or attribute name: NO_RESTART|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: SaveOccasionFlag|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: SaveOccasionFlag
Method or attribute name: SAVE_WHEN_ERROR|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: SaveOccasionFlag
Method or attribute name: SAVE_WHEN_BACKGROUND|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: SaveModeFlag|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: SaveModeFlag
Method or attribute name: SAVE_WITH_FILE|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: SaveModeFlag
Method or attribute name: SAVE_WITH_SHARED_MEMORY|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: appRecovery
Method or attribute name: enableAppRecovery|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: appRecovery
Method or attribute name: restartApp|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: appRecovery
Method or attribute name: saveAppState|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.common
Class name: common|@ohos.app.ability.common.d.ts| +|Added||Module name: ohos.app.ability.common
Class name: AreaMode|@ohos.app.ability.common.d.ts| +|Added||Module name: ohos.app.ability.common
Class name: AreaMode
Method or attribute name: EL1|@ohos.app.ability.common.d.ts| +|Added||Module name: ohos.app.ability.common
Class name: AreaMode
Method or attribute name: EL2|@ohos.app.ability.common.d.ts| +|Added||Module name: ohos.app.ability.Configuration
Class name: Configuration|@ohos.app.ability.Configuration.d.ts| +|Added||Module name: ohos.app.ability.Configuration
Class name: Configuration
Method or attribute name: language|@ohos.app.ability.Configuration.d.ts| +|Added||Module name: ohos.app.ability.Configuration
Class name: Configuration
Method or attribute name: colorMode|@ohos.app.ability.Configuration.d.ts| +|Added||Module name: ohos.app.ability.Configuration
Class name: Configuration
Method or attribute name: direction|@ohos.app.ability.Configuration.d.ts| +|Added||Module name: ohos.app.ability.Configuration
Class name: Configuration
Method or attribute name: screenDensity|@ohos.app.ability.Configuration.d.ts| +|Added||Module name: ohos.app.ability.Configuration
Class name: Configuration
Method or attribute name: displayId|@ohos.app.ability.Configuration.d.ts| +|Added||Module name: ohos.app.ability.Configuration
Class name: Configuration
Method or attribute name: hasPointerDevice|@ohos.app.ability.Configuration.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ConfigurationConstant|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ColorMode|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ColorMode
Method or attribute name: COLOR_MODE_NOT_SET|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ColorMode
Method or attribute name: COLOR_MODE_DARK|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ColorMode
Method or attribute name: COLOR_MODE_LIGHT|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: Direction|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: Direction
Method or attribute name: DIRECTION_NOT_SET|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: Direction
Method or attribute name: DIRECTION_VERTICAL|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: Direction
Method or attribute name: DIRECTION_HORIZONTAL|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ScreenDensity|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ScreenDensity
Method or attribute name: SCREEN_DENSITY_NOT_SET|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ScreenDensity
Method or attribute name: SCREEN_DENSITY_SDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ScreenDensity
Method or attribute name: SCREEN_DENSITY_MDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ScreenDensity
Method or attribute name: SCREEN_DENSITY_LDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ScreenDensity
Method or attribute name: SCREEN_DENSITY_XLDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ScreenDensity
Method or attribute name: SCREEN_DENSITY_XXLDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ScreenDensity
Method or attribute name: SCREEN_DENSITY_XXXLDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.contextConstant
Class name: contextConstant|@ohos.app.ability.contextConstant.d.ts| +|Added||Module name: ohos.app.ability.contextConstant
Class name: AreaMode|@ohos.app.ability.contextConstant.d.ts| +|Added||Module name: ohos.app.ability.contextConstant
Class name: AreaMode
Method or attribute name: EL1|@ohos.app.ability.contextConstant.d.ts| +|Added||Module name: ohos.app.ability.contextConstant
Class name: AreaMode
Method or attribute name: EL2|@ohos.app.ability.contextConstant.d.ts| +|Added||Module name: ohos.app.ability.EnvironmentCallback
Class name: EnvironmentCallback|@ohos.app.ability.EnvironmentCallback.d.ts| +|Added||Module name: ohos.app.ability.EnvironmentCallback
Class name: EnvironmentCallback
Method or attribute name: onConfigurationUpdated|@ohos.app.ability.EnvironmentCallback.d.ts| +|Added||Module name: ohos.app.ability.errorManager
Class name: errorManager|@ohos.app.ability.errorManager.d.ts| +|Added||Module name: ohos.app.ability.errorManager
Class name: errorManager
Method or attribute name: on_error|@ohos.app.ability.errorManager.d.ts| +|Added||Module name: ohos.app.ability.errorManager
Class name: errorManager
Method or attribute name: off_error|@ohos.app.ability.errorManager.d.ts| +|Added||Module name: ohos.app.ability.errorManager
Class name: errorManager
Method or attribute name: off_error|@ohos.app.ability.errorManager.d.ts| +|Added||Module name: ohos.app.ability.ExtensionAbility
Class name: ExtensionAbility|@ohos.app.ability.ExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: on_mission|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: off_mission|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: off_mission|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: getMissionInfo|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: getMissionInfo|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: getMissionInfos|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: getMissionInfos|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: getMissionSnapShot|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: getMissionSnapShot|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: getLowResolutionMissionSnapShot|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: getLowResolutionMissionSnapShot|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: lockMission|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: lockMission|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: unlockMission|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: unlockMission|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: clearMission|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: clearMission|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: clearAllMissions|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: clearAllMissions|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: moveMissionToFront|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: moveMissionToFront|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: moveMissionToFront|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: quickFixManager|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: HapModuleQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: HapModuleQuickFixInfo
Method or attribute name: moduleName|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: HapModuleQuickFixInfo
Method or attribute name: originHapHash|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: HapModuleQuickFixInfo
Method or attribute name: quickFixFilePath|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: ApplicationQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: bundleName|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: bundleVersionCode|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: bundleVersionName|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: quickFixVersionCode|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: quickFixVersionName|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: hapModuleQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: quickFixManager
Method or attribute name: applyQuickFix|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: quickFixManager
Method or attribute name: applyQuickFix|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: quickFixManager
Method or attribute name: getApplicationQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: quickFixManager
Method or attribute name: getApplicationQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility
Method or attribute name: context|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility
Method or attribute name: onCreate|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility
Method or attribute name: onDestroy|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility
Method or attribute name: onRequest|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility
Method or attribute name: onConnect|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility
Method or attribute name: onDisconnect|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility
Method or attribute name: onReconnect|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility
Method or attribute name: onConfigurationUpdate|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility
Method or attribute name: onDump|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.StartOptions
Class name: StartOptions|@ohos.app.ability.StartOptions.d.ts| +|Added||Module name: ohos.app.ability.StartOptions
Class name: StartOptions
Method or attribute name: windowMode|@ohos.app.ability.StartOptions.d.ts| +|Added||Module name: ohos.app.ability.StartOptions
Class name: StartOptions
Method or attribute name: displayId|@ohos.app.ability.StartOptions.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: OnReleaseCallback|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: OnReleaseCallback
Method or attribute name: OnReleaseCallback|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: CalleeCallback|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: CalleeCallback
Method or attribute name: CalleeCallback|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Caller|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Caller
Method or attribute name: call|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Caller
Method or attribute name: callWithResult|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Caller
Method or attribute name: release|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Caller
Method or attribute name: onRelease|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Caller
Method or attribute name: on_release|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Caller
Method or attribute name: off_release|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Caller
Method or attribute name: off_release|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Callee|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Callee
Method or attribute name: on|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Callee
Method or attribute name: off|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: context|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: launchWant|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: lastRequestWant|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: callee|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onCreate|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onWindowStageCreate|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onWindowStageDestroy|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onWindowStageRestore|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onDestroy|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onForeground|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onBackground|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onContinue|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onNewWant|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onDump|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: deviceId|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: bundleName|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: abilityName|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: uri|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: type|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: flags|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: action|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: parameters|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: entities|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: moduleName|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getBundleName|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getBundleName|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getUid|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getUid|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getWant|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getWant|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: cancel|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: cancel|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: trigger|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: trigger|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: equal|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: equal|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getWantAgent|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getWantAgent|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getOperationType|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getOperationType|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: ONE_TIME_FLAG|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: NO_BUILD_FLAG|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: CANCEL_PRESENT_FLAG|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: UPDATE_PRESENT_FLAG|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: CONSTANT_FLAG|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: REPLACE_ELEMENT|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: REPLACE_ACTION|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: REPLACE_URI|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: REPLACE_ENTITIES|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: REPLACE_BUNDLE|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: OperationType|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: OperationType
Method or attribute name: UNKNOWN_TYPE|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: OperationType
Method or attribute name: START_ABILITY|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: OperationType
Method or attribute name: START_ABILITIES|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: OperationType
Method or attribute name: START_SERVICE|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: OperationType
Method or attribute name: SEND_COMMON_EVENT|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: CompleteData|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: CompleteData
Method or attribute name: info|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: CompleteData
Method or attribute name: want|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: CompleteData
Method or attribute name: finalCode|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: CompleteData
Method or attribute name: finalData|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: CompleteData
Method or attribute name: extraInfo|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: wantConstant|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_HOME|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_DIAL|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_SEARCH|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_WIRELESS_SETTINGS|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_MANAGE_APPLICATIONS_SETTINGS|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_APPLICATION_DETAILS_SETTINGS|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_SET_ALARM|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_SHOW_ALARMS|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_SNOOZE_ALARM|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_DISMISS_ALARM|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_DISMISS_TIMER|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_SEND_SMS|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_CHOOSE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_IMAGE_CAPTURE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_VIDEO_CAPTURE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_SELECT|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_SEND_DATA|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_SEND_MULTIPLE_DATA|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_SCAN_MEDIA_FILE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_VIEW_DATA|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_EDIT_DATA|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: INTENT_PARAMS_INTENT|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: INTENT_PARAMS_TITLE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_FILE_SELECT|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: PARAMS_STREAM|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_APP_ACCOUNT_AUTH|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_MARKET_DOWNLOAD|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_MARKET_CROWDTEST|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: DLP_PARAMS_SANDBOX|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: DLP_PARAMS_BUNDLE_NAME|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: DLP_PARAMS_MODULE_NAME|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: DLP_PARAMS_ABILITY_NAME|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: DLP_PARAMS_INDEX|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Entity|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Entity
Method or attribute name: ENTITY_DEFAULT|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Entity
Method or attribute name: ENTITY_HOME|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Entity
Method or attribute name: ENTITY_VOICE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Entity
Method or attribute name: ENTITY_BROWSABLE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Entity
Method or attribute name: ENTITY_VIDEO|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_AUTH_READ_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_AUTH_WRITE_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_ABILITY_FORWARD_RESULT|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_ABILITY_CONTINUATION|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_NOT_OHOS_COMPONENT|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_ABILITY_FORM_ENABLED|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_AUTH_PERSISTABLE_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_AUTH_PREFIX_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_ABILITYSLICE_MULTI_DEVICE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_START_FOREGROUND_ABILITY|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_ABILITY_CONTINUATION_REVERSIBLE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_INSTALL_ON_DEMAND|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_INSTALL_WITH_BACKGROUND_MODE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_ABILITY_CLEAR_MISSION|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_ABILITY_NEW_MISSION|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_ABILITY_MISSION_TOP|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.form.formBindingData
Class name: formBindingData|@ohos.app.form.formBindingData.d.ts| +|Added||Module name: ohos.app.form.formBindingData
Class name: formBindingData
Method or attribute name: createFormBindingData|@ohos.app.form.formBindingData.d.ts| +|Added||Module name: ohos.app.form.formBindingData
Class name: FormBindingData|@ohos.app.form.formBindingData.d.ts| +|Added||Module name: ohos.app.form.formBindingData
Class name: FormBindingData
Method or attribute name: data|@ohos.app.form.formBindingData.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: context|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: onAddForm|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: onCastToNormalForm|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: onUpdateForm|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: onChangeFormVisibility|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: onFormEvent|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: onRemoveForm|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: onConfigurationUpdate|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: onAcquireFormState|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: onShareForm|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: deleteForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: deleteForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: releaseForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: releaseForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: releaseForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: requestForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: requestForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: castToNormalForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: castToNormalForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyVisibleForms|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyVisibleForms|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyInvisibleForms|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyInvisibleForms|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: enableFormsUpdate|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: enableFormsUpdate|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: disableFormsUpdate|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: disableFormsUpdate|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: isSystemReady|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: isSystemReady|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: getAllFormsInfo|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: getAllFormsInfo|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: getFormsInfo|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: getFormsInfo|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: getFormsInfo|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: deleteInvalidForms|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: deleteInvalidForms|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: acquireFormState|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: acquireFormState|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: on_formUninstall|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: off_formUninstall|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyFormsVisible|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyFormsVisible|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyFormsEnableUpdate|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyFormsEnableUpdate|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: shareForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: shareForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyFormsPrivacyProtected|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyFormsPrivacyProtected|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: formInfo|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: bundleName|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: moduleName|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: abilityName|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: name|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: description|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: type|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: jsComponentName|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: colorMode|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: isDefault|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: updateEnabled|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: formVisibleNotify|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: relatedBundleName|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: scheduledUpdateTime|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: formConfigAbility|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: updateDuration|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: defaultDimension|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: supportDimensions|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: customizeData|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormType|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormType
Method or attribute name: JS|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormType
Method or attribute name: eTS|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: ColorMode|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: ColorMode
Method or attribute name: MODE_AUTO|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: ColorMode
Method or attribute name: MODE_DARK|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: ColorMode
Method or attribute name: MODE_LIGHT|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormStateInfo|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormStateInfo
Method or attribute name: formState|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormStateInfo
Method or attribute name: want|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormState|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormState
Method or attribute name: UNKNOWN|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormState
Method or attribute name: DEFAULT|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormState
Method or attribute name: READY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: IDENTITY_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: DIMENSION_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: NAME_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: MODULE_NAME_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: WIDTH_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: HEIGHT_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: TEMPORARY_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: BUNDLE_NAME_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: ABILITY_NAME_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: DEVICE_ID_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfoFilter|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfoFilter
Method or attribute name: moduleName|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormDimension|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormDimension
Method or attribute name: Dimension_1_2|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormDimension
Method or attribute name: Dimension_2_2|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormDimension
Method or attribute name: Dimension_2_4|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormDimension
Method or attribute name: Dimension_4_4|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormDimension
Method or attribute name: Dimension_2_1|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: VisibilityType|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: VisibilityType
Method or attribute name: FORM_VISIBLE|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: VisibilityType
Method or attribute name: FORM_INVISIBLE|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: setFormNextRefreshTime|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: setFormNextRefreshTime|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: updateForm|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: updateForm|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: getFormsInfo|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: getFormsInfo|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: getFormsInfo|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: requestPublishForm|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: requestPublishForm|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: requestPublishForm|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: isRequestPublishFormSupported|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: isRequestPublishFormSupported|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.application.Ability
Class name: Ability
Method or attribute name: onSaveState|@ohos.application.Ability.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: LaunchReason
Method or attribute name: APP_RECOVERY|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: OnSaveResult|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: OnSaveResult
Method or attribute name: ALL_AGREE|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: OnSaveResult
Method or attribute name: CONTINUATION_REJECT|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: OnSaveResult
Method or attribute name: CONTINUATION_MISMATCH|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: OnSaveResult
Method or attribute name: RECOVERY_AGREE|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: OnSaveResult
Method or attribute name: RECOVERY_REJECT|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: OnSaveResult
Method or attribute name: ALL_REJECT|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: StateType|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: StateType
Method or attribute name: CONTINUATION|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: StateType
Method or attribute name: APP_RECOVERY|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.ExtensionAbility
Class name: ExtensionAbility|@ohos.application.ExtensionAbility.d.ts| +|Added||Module name: ohos.application.ExtensionAbility
Class name: ExtensionAbility
Method or attribute name: onConfigurationUpdated|@ohos.application.ExtensionAbility.d.ts| +|Added||Module name: ohos.application.ExtensionAbility
Class name: ExtensionAbility
Method or attribute name: onMemoryLevel|@ohos.application.ExtensionAbility.d.ts| +|Added||Module name: ohos.application.formHost
Class name: formHost
Method or attribute name: notifyFormsPrivacyProtected|@ohos.application.formHost.d.ts| +|Added||Module name: ohos.application.formHost
Class name: formHost
Method or attribute name: notifyFormsPrivacyProtected|@ohos.application.formHost.d.ts| +|Added||Module name: ohos.application.formInfo
Class name: FormType
Method or attribute name: eTS|@ohos.application.formInfo.d.ts| +|Added||Module name: ohos.application.formInfo
Class name: VisibilityType|@ohos.application.formInfo.d.ts| +|Added||Module name: ohos.application.formInfo
Class name: VisibilityType
Method or attribute name: FORM_VISIBLE|@ohos.application.formInfo.d.ts| +|Added||Module name: ohos.application.formInfo
Class name: VisibilityType
Method or attribute name: FORM_INVISIBLE|@ohos.application.formInfo.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: registerContinuation|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: registerContinuation|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: registerContinuation|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: unregisterContinuation|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: unregisterContinuation|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: updateContinuationState|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: updateContinuationState|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: startContinuationDeviceManager|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: startContinuationDeviceManager|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: startContinuationDeviceManager|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.distributedMissionManager
Class name: distributedMissionManager
Method or attribute name: continueMission|@ohos.distributedMissionManager.d.ts| +|Added||Module name: ohos.distributedMissionManager
Class name: distributedMissionManager
Method or attribute name: continueMission|@ohos.distributedMissionManager.d.ts| +|Added||Module name: AbilityContext
Class name: AbilityContext
Method or attribute name: connectServiceExtensionAbility|AbilityContext.d.ts| +|Added||Module name: AbilityContext
Class name: AbilityContext
Method or attribute name: connectServiceExtensionAbilityWithAccount|AbilityContext.d.ts| +|Added||Module name: AbilityContext
Class name: AbilityContext
Method or attribute name: disconnectServiceExtensionAbility|AbilityContext.d.ts| +|Added||Module name: AbilityContext
Class name: AbilityContext
Method or attribute name: disconnectServiceExtensionAbility|AbilityContext.d.ts| +|Added||Method or attribute name: waitAbilityMonitor
Function name: waitAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback): void;|abilityDelegator.d.ts| +|Added||Method or attribute name: waitAbilityMonitor
Function name: waitAbilityMonitor(monitor: AbilityMonitor, timeout: number, callback: AsyncCallback): void;|abilityDelegator.d.ts| +|Added||Method or attribute name: waitAbilityMonitor
Function name: waitAbilityMonitor(monitor: AbilityMonitor, timeout?: number): Promise;|abilityDelegator.d.ts| +|Added||Method or attribute name: getAbilityState
Function name: getAbilityState(ability: UIAbility): number;|abilityDelegator.d.ts| +|Added||Method or attribute name: getCurrentTopAbility
Function name: getCurrentTopAbility(callback: AsyncCallback): void;|abilityDelegator.d.ts| +|Added||Method or attribute name: getCurrentTopAbility
Function name: getCurrentTopAbility(): Promise|abilityDelegator.d.ts| +|Added||Method or attribute name: doAbilityForeground
Function name: doAbilityForeground(ability: UIAbility, callback: AsyncCallback): void;|abilityDelegator.d.ts| +|Added||Method or attribute name: doAbilityForeground
Function name: doAbilityForeground(ability: UIAbility): Promise;|abilityDelegator.d.ts| +|Added||Method or attribute name: doAbilityBackground
Function name: doAbilityBackground(ability: UIAbility, callback: AsyncCallback): void;|abilityDelegator.d.ts| +|Added||Method or attribute name: doAbilityBackground
Function name: doAbilityBackground(ability: UIAbility): Promise;|abilityDelegator.d.ts| +|Added||Module name: abilityMonitor
Class name: AbilityMonitor
Method or attribute name: moduleName|abilityMonitor.d.ts| +|Added||Method or attribute name: onAbilityCreate
Function name: onAbilityCreate?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|Added||Method or attribute name: onAbilityForeground
Function name: onAbilityForeground?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|Added||Method or attribute name: onAbilityBackground
Function name: onAbilityBackground?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|Added||Method or attribute name: onAbilityDestroy
Function name: onAbilityDestroy?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|Added||Method or attribute name: onWindowStageCreate
Function name: onWindowStageCreate?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|Added||Method or attribute name: onWindowStageRestore
Function name: onWindowStageRestore?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|Added||Method or attribute name: onWindowStageDestroy
Function name: onWindowStageDestroy?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: on_abilityLifecycle|ApplicationContext.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: off_abilityLifecycle|ApplicationContext.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: off_abilityLifecycle|ApplicationContext.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: on_environment|ApplicationContext.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: off_environment|ApplicationContext.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: off_environment|ApplicationContext.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: getProcessRunningInformation|ApplicationContext.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: getProcessRunningInformation|ApplicationContext.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: killProcessesBySelf|ApplicationContext.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: killProcessesBySelf|ApplicationContext.d.ts| +|Added||Module name: ContinueCallback
Class name: ContinueCallback|ContinueCallback.d.ts| +|Added||Module name: ContinueCallback
Class name: ContinueCallback
Method or attribute name: onContinueDone|ContinueCallback.d.ts| +|Added||Module name: ContinueDeviceInfo
Class name: ContinueDeviceInfo|ContinueDeviceInfo.d.ts| +|Added||Module name: ContinueDeviceInfo
Class name: ContinueDeviceInfo
Method or attribute name: srcDeviceId|ContinueDeviceInfo.d.ts| +|Added||Module name: ContinueDeviceInfo
Class name: ContinueDeviceInfo
Method or attribute name: dstDeviceId|ContinueDeviceInfo.d.ts| +|Added||Module name: ContinueDeviceInfo
Class name: ContinueDeviceInfo
Method or attribute name: missionId|ContinueDeviceInfo.d.ts| +|Added||Module name: ContinueDeviceInfo
Class name: ContinueDeviceInfo
Method or attribute name: wantParam|ContinueDeviceInfo.d.ts| +|Added||Module name: MissionListener
Class name: MissionListener
Method or attribute name: onMissionLabelUpdated|MissionListener.d.ts| +|Added||Module name: ServiceExtensionContext
Class name: ServiceExtensionContext
Method or attribute name: connectServiceExtensionAbility|ServiceExtensionContext.d.ts| +|Added||Module name: ServiceExtensionContext
Class name: ServiceExtensionContext
Method or attribute name: connectServiceExtensionAbilityWithAccount|ServiceExtensionContext.d.ts| +|Added||Module name: ServiceExtensionContext
Class name: ServiceExtensionContext
Method or attribute name: disconnectServiceExtensionAbility|ServiceExtensionContext.d.ts| +|Added||Module name: ServiceExtensionContext
Class name: ServiceExtensionContext
Method or attribute name: disconnectServiceExtensionAbility|ServiceExtensionContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: abilityInfo|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: currentHapModuleInfo|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: config|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityByCall|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityForResult|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityForResult|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityForResult|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityForResultWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityForResultWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityForResultWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startServiceExtensionAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startServiceExtensionAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: stopServiceExtensionAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: stopServiceExtensionAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: stopServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: stopServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: terminateSelf|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: terminateSelf|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: terminateSelfWithResult|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: terminateSelfWithResult|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: connectServiceExtensionAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: connectServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: disconnectServiceExtensionAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: disconnectServiceExtensionAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: setMissionLabel|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: setMissionLabel|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: setMissionIcon|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: setMissionIcon|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: requestPermissionsFromUser|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: requestPermissionsFromUser|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: restoreWindowStage|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: isTerminating|UIAbilityContext.d.ts| +|Deleted|Module name: ohos.application.context
Class name: AreaMode||@ohos.application.context.d.ts| +|Deleted|Module name: ohos.application.context
Class name: AreaMode
Method or attribute name: EL1||@ohos.application.context.d.ts| +|Deleted|Module name: ohos.application.context
Class name: AreaMode
Method or attribute name: EL2||@ohos.application.context.d.ts| +|Deleted|Module name: ohos.application.formInfo
Class name: VisibilityType||@ohos.application.formInfo.d.ts| +|Deleted|Module name: ohos.application.formInfo
Class name: VisibilityType
Method or attribute name: FORM_VISIBLE||@ohos.application.formInfo.d.ts| +|Deleted|Module name: ohos.application.formInfo
Class name: VisibilityType
Method or attribute name: FORM_INVISIBLE||@ohos.application.formInfo.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: quickFixManager||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: HapModuleQuickFixInfo||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: HapModuleQuickFixInfo
Method or attribute name: moduleName||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: HapModuleQuickFixInfo
Method or attribute name: originHapHash||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: HapModuleQuickFixInfo
Method or attribute name: quickFixFilePath||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: ApplicationQuickFixInfo||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: bundleName||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: bundleVersionCode||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: bundleVersionName||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: quickFixVersionCode||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: quickFixVersionName||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: hapModuleQuickFixInfo||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: quickFixManager
Method or attribute name: applyQuickFix||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: quickFixManager
Method or attribute name: applyQuickFix||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: quickFixManager
Method or attribute name: getApplicationQuickFixInfo||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: quickFixManager
Method or attribute name: getApplicationQuickFixInfo||@ohos.application.quickFixManager.d.ts| +|Model changed|Class name: ability
model: @Stage Model Only|Class name: ability
model: @ FA Model Only|@ohos.ability.ability.d.ts| +|Model changed|Class name: AbilityContext
model: @Stage Model Only|Class name: AbilityContext
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: abilityInfo
model: @Stage Model Only|Method or attribute name: abilityInfo
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: currentHapModuleInfo
model: @Stage Model Only|Method or attribute name: currentHapModuleInfo
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: config
model: @Stage Model Only|Method or attribute name: config
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @Stage Model Only|Method or attribute name: startAbility
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @Stage Model Only|Method or attribute name: startAbility
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @Stage Model Only|Method or attribute name: startAbility
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityByCall
model: @Stage Model Only|Method or attribute name: startAbilityByCall
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityForResult
model: @Stage Model Only|Method or attribute name: startAbilityForResult
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityForResult
model: @Stage Model Only|Method or attribute name: startAbilityForResult
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityForResult
model: @Stage Model Only|Method or attribute name: startAbilityForResult
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityForResultWithAccount
model: @Stage Model Only|Method or attribute name: startAbilityForResultWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityForResultWithAccount
model: @Stage Model Only|Method or attribute name: startAbilityForResultWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityForResultWithAccount
model: @Stage Model Only|Method or attribute name: startAbilityForResultWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbility
model: @Stage Model Only|Method or attribute name: startServiceExtensionAbility
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbility
model: @Stage Model Only|Method or attribute name: startServiceExtensionAbility
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @Stage Model Only|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @Stage Model Only|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbility
model: @Stage Model Only|Method or attribute name: stopServiceExtensionAbility
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbility
model: @Stage Model Only|Method or attribute name: stopServiceExtensionAbility
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @Stage Model Only|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @Stage Model Only|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: terminateSelf
model: @Stage Model Only|Method or attribute name: terminateSelf
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: terminateSelf
model: @Stage Model Only|Method or attribute name: terminateSelf
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: terminateSelfWithResult
model: @Stage Model Only|Method or attribute name: terminateSelfWithResult
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: terminateSelfWithResult
model: @Stage Model Only|Method or attribute name: terminateSelfWithResult
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: setMissionLabel
model: @Stage Model Only|Method or attribute name: setMissionLabel
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: setMissionIcon
model: @Stage Model Only|Method or attribute name: setMissionIcon
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: isTerminating
model: @Stage Model Only|Method or attribute name: isTerminating
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Class name: ApplicationContext
model: @Stage Model Only|Class name: ApplicationContext
model: @Stage Model Only|ApplicationContext.d.ts| +|Model changed|Class name: Context
model: @Stage Model Only|Class name: Context
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: resourceManager
model: @Stage Model Only|Method or attribute name: resourceManager
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: applicationInfo
model: @Stage Model Only|Method or attribute name: applicationInfo
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: cacheDir
model: @Stage Model Only|Method or attribute name: cacheDir
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: tempDir
model: @Stage Model Only|Method or attribute name: tempDir
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: distributedFilesDir
model: @Stage Model Only|Method or attribute name: distributedFilesDir
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: eventHub
model: @Stage Model Only|Method or attribute name: eventHub
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: area
model: @Stage Model Only|Method or attribute name: area
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: createBundleContext
model: @Stage Model Only|Method or attribute name: createBundleContext
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: createModuleContext
model: @Stage Model Only|Method or attribute name: createModuleContext
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: createModuleContext
model: @Stage Model Only|Method or attribute name: createModuleContext
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: getApplicationContext
model: @Stage Model Only|Method or attribute name: getApplicationContext
model: @Stage Model Only|Context.d.ts| +|Model changed|Class name: AreaMode
model: @Stage Model Only|Class name: AreaMode
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: EL1
model: @Stage Model Only|Method or attribute name: EL1
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: EL2
model: @Stage Model Only|Method or attribute name: EL2
model: @Stage Model Only|Context.d.ts| +|Model changed|Class name: EventHub
model: @Stage Model Only|Class name: EventHub
model: @Stage Model Only|EventHub.d.ts| +|Model changed|Method or attribute name: on
model: @Stage Model Only|Method or attribute name: on
model: @Stage Model Only|EventHub.d.ts| +|Model changed|Method or attribute name: off
model: @Stage Model Only|Method or attribute name: off
model: @Stage Model Only|EventHub.d.ts| +|Model changed|Method or attribute name: emit
model: @Stage Model Only|Method or attribute name: emit
model: @Stage Model Only|EventHub.d.ts| +|Model changed|Class name: FormExtensionContext
model: @Stage Model Only|Class name: FormExtensionContext
model: @Stage Model Only|FormExtensionContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @Stage Model Only|Method or attribute name: startAbility
model: @Stage Model Only|FormExtensionContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @Stage Model Only|Method or attribute name: startAbility
model: @Stage Model Only|FormExtensionContext.d.ts| +|Model changed|Class name: ServiceExtensionContext
model: @Stage Model Only|Class name: ServiceExtensionContext
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @Stage Model Only|Method or attribute name: startAbility
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @Stage Model Only|Method or attribute name: startAbility
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @Stage Model Only|Method or attribute name: startAbility
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbility
model: @Stage Model Only|Method or attribute name: startServiceExtensionAbility
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbility
model: @Stage Model Only|Method or attribute name: startServiceExtensionAbility
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @Stage Model Only|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @Stage Model Only|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbility
model: @Stage Model Only|Method or attribute name: stopServiceExtensionAbility
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbility
model: @Stage Model Only|Method or attribute name: stopServiceExtensionAbility
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @Stage Model Only|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @Stage Model Only|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: terminateSelf
model: @Stage Model Only|Method or attribute name: terminateSelf
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: terminateSelf
model: @Stage Model Only|Method or attribute name: terminateSelf
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startAbilityByCall
model: @Stage Model Only|Method or attribute name: startAbilityByCall
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Access level changed|Method or attribute name: startAbilityByCall
Access level: public API|Method or attribute name: startAbilityByCall
Access level: system API|AbilityContext.d.ts| +|Access level changed|Method or attribute name: isTerminating
Access level: public API|Method or attribute name: isTerminating
Access level: system API|AbilityContext.d.ts| +|Deprecated version changed|Class name: wantConstant
Deprecated version: N/A|Class name: wantConstant
Deprecated version: 9
New API: ohos.app.ability.wantConstant |@ohos.ability.wantConstant.d.ts| +|Deprecated version changed|Method or attribute name: ACTION_APP_ACCOUNT_OAUTH
Deprecated version: N/A|Method or attribute name: ACTION_APP_ACCOUNT_OAUTH
Deprecated version: 9
New API: wantConstant.Action|@ohos.ability.wantConstant.d.ts| +|Deprecated version changed|Class name: OnReleaseCallBack
Deprecated version: N/A|Class name: OnReleaseCallBack
Deprecated version: 9
New API: ohos.app.ability.UIAbility |@ohos.application.Ability.d.ts| +|Deprecated version changed|Class name: CalleeCallBack
Deprecated version: N/A|Class name: CalleeCallBack
Deprecated version: 9
New API: ohos.app.ability.UIAbility |@ohos.application.Ability.d.ts| +|Deprecated version changed|Class name: Caller
Deprecated version: N/A|Class name: Caller
Deprecated version: 9
New API: ohos.app.ability.UIAbility |@ohos.application.Ability.d.ts| +|Deprecated version changed|Class name: Callee
Deprecated version: N/A|Class name: Callee
Deprecated version: 9
New API: ohos.app.ability.UIAbility |@ohos.application.Ability.d.ts| +|Deprecated version changed|Class name: Ability
Deprecated version: N/A|Class name: Ability
Deprecated version: 9
New API: ohos.app.ability.UIAbility |@ohos.application.Ability.d.ts| +|Deprecated version changed|Class name: AbilityConstant
Deprecated version: N/A|Class name: AbilityConstant
Deprecated version: 9
New API: ohos.app.ability.AbilityConstant |@ohos.application.AbilityConstant.d.ts| +|Deprecated version changed|Class name: abilityDelegatorRegistry
Deprecated version: N/A|Class name: abilityDelegatorRegistry
Deprecated version: 9
New API: ohos.app.ability.abilityDelegatorRegistry |@ohos.application.abilityDelegatorRegistry.d.ts| +|Deprecated version changed|Class name: AbilityLifecycleCallback
Deprecated version: N/A|Class name: AbilityLifecycleCallback
Deprecated version: 9
New API: ohos.app.ability.AbilityLifecycleCallback |@ohos.application.AbilityLifecycleCallback.d.ts| +|Deprecated version changed|Class name: abilityManager
Deprecated version: N/A|Class name: abilityManager
Deprecated version: 9
New API: ohos.app.ability.abilityManager |@ohos.application.abilityManager.d.ts| +|Deprecated version changed|Class name: AbilityStage
Deprecated version: N/A|Class name: AbilityStage
Deprecated version: 9
New API: ohos.app.ability.AbilityStage |@ohos.application.AbilityStage.d.ts| +|Deprecated version changed|Class name: appManager
Deprecated version: N/A|Class name: appManager
Deprecated version: 9
New API: ohos.app.ability.appManager |@ohos.application.appManager.d.ts| +|Deprecated version changed|Class name: Configuration
Deprecated version: N/A|Class name: Configuration
Deprecated version: 9
New API: ohos.app.ability.Configuration |@ohos.application.Configuration.d.ts| +|Deprecated version changed|Class name: ConfigurationConstant
Deprecated version: N/A|Class name: ConfigurationConstant
Deprecated version: 9
New API: ohos.app.ability.ConfigurationConstant |@ohos.application.ConfigurationConstant.d.ts| +|Deprecated version changed|Class name: context
Deprecated version: N/A|Class name: context
Deprecated version: 9
New API: ohos.app.ability.common |@ohos.application.context.d.ts| +|Deprecated version changed|Class name: EnvironmentCallback
Deprecated version: N/A|Class name: EnvironmentCallback
Deprecated version: 9
New API: ohos.app.ability.EnvironmentCallback |@ohos.application.EnvironmentCallback.d.ts| +|Deprecated version changed|Class name: errorManager
Deprecated version: N/A|Class name: errorManager
Deprecated version: 9
New API: ohos.app.ability.errorManager |@ohos.application.errorManager.d.ts| +|Deprecated version changed|Class name: formBindingData
Deprecated version: N/A|Class name: formBindingData
Deprecated version: 9
New API: ohos.app.form.formBindingData |@ohos.application.formBindingData.d.ts| +|Deprecated version changed|Class name: FormExtension
Deprecated version: N/A|Class name: FormExtension
Deprecated version: 9
New API: ohos.app.form.FormExtensionAbility |@ohos.application.FormExtension.d.ts| +|Deprecated version changed|Class name: formHost
Deprecated version: N/A|Class name: formHost
Deprecated version: 9
New API: ohos.app.form.formHost |@ohos.application.formHost.d.ts| +|Deprecated version changed|Class name: formInfo
Deprecated version: N/A|Class name: formInfo
Deprecated version: 9
New API: ohos.app.form.formInfo |@ohos.application.formInfo.d.ts| +|Deprecated version changed|Class name: formProvider
Deprecated version: N/A|Class name: formProvider
Deprecated version: 9
New API: ohos.app.form.formProvider |@ohos.application.formProvider.d.ts| +|Deprecated version changed|Class name: missionManager
Deprecated version: N/A|Class name: missionManager
Deprecated version: 9
New API: ohos.app.ability.missionManager |@ohos.application.missionManager.d.ts| +|Deprecated version changed|Class name: ServiceExtensionAbility
Deprecated version: N/A|Class name: ServiceExtensionAbility
Deprecated version: 9
New API: ohos.app.ability.ServiceExtensionAbility |@ohos.application.ServiceExtensionAbility.d.ts| +|Deprecated version changed|Class name: StartOptions
Deprecated version: N/A|Class name: StartOptions
Deprecated version: 9
New API: ohos.app.ability.StartOptions |@ohos.application.StartOptions.d.ts| +|Deprecated version changed|Class name: Want
Deprecated version: N/A|Class name: Want
Deprecated version: 9
New API: ohos.app.ability.Want |@ohos.application.Want.d.ts| +|Deprecated version changed|Method or attribute name: register
Deprecated version: N/A|Method or attribute name: register
Deprecated version: 9
New API: ohos.continuation.continuationManager.registerContinuation |@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Method or attribute name: register
Deprecated version: N/A|Method or attribute name: register
Deprecated version: 9|@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Method or attribute name: register
Deprecated version: N/A|Method or attribute name: register
Deprecated version: 9|@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Method or attribute name: unregister
Deprecated version: N/A|Method or attribute name: unregister
Deprecated version: 9
New API: ohos.continuation.continuationManager.unregisterContinuation |@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Method or attribute name: unregister
Deprecated version: N/A|Method or attribute name: unregister
Deprecated version: 9|@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Method or attribute name: updateConnectStatus
Deprecated version: N/A|Method or attribute name: updateConnectStatus
Deprecated version: 9
New API: ohos.continuation.continuationManager.updateContinuationState |@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Method or attribute name: updateConnectStatus
Deprecated version: N/A|Method or attribute name: updateConnectStatus
Deprecated version: 9|@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Method or attribute name: startDeviceManager
Deprecated version: N/A|Method or attribute name: startDeviceManager
Deprecated version: 9
New API: ohos.continuation.continuationManager.startContinuationDeviceManager |@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Method or attribute name: startDeviceManager
Deprecated version: N/A|Method or attribute name: startDeviceManager
Deprecated version: 9|@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Method or attribute name: startDeviceManager
Deprecated version: N/A|Method or attribute name: startDeviceManager
Deprecated version: 9|@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Class name: wantAgent
Deprecated version: N/A|Class name: wantAgent
Deprecated version: 9
New API: ohos.app.ability.wantAgent |@ohos.wantAgent.d.ts| +|Deprecated version changed|Method or attribute name: connectAbility
Deprecated version: N/A|Method or attribute name: connectAbility
Deprecated version: 9
New API: connectServiceExtensionAbility |AbilityContext.d.ts| +|Deprecated version changed|Method or attribute name: connectAbilityWithAccount
Deprecated version: N/A|Method or attribute name: connectAbilityWithAccount
Deprecated version: 9
New API: connectServiceExtensionAbilityWithAccount |AbilityContext.d.ts| +|Deprecated version changed|Method or attribute name: disconnectAbility
Deprecated version: N/A|Method or attribute name: disconnectAbility
Deprecated version: 9
New API: disconnectServiceExtensionAbility |AbilityContext.d.ts| +|Deprecated version changed|Method or attribute name: disconnectAbility
Deprecated version: N/A|Method or attribute name: disconnectAbility
Deprecated version: 9|AbilityContext.d.ts| +|Deprecated version changed|Method or attribute name: registerAbilityLifecycleCallback
Deprecated version: N/A|Method or attribute name: registerAbilityLifecycleCallback
Deprecated version: 9
New API: on |ApplicationContext.d.ts| +|Deprecated version changed|Method or attribute name: unregisterAbilityLifecycleCallback
Deprecated version: N/A|Method or attribute name: unregisterAbilityLifecycleCallback
Deprecated version: 9
New API: off |ApplicationContext.d.ts| +|Deprecated version changed|Method or attribute name: unregisterAbilityLifecycleCallback
Deprecated version: N/A|Method or attribute name: unregisterAbilityLifecycleCallback
Deprecated version: 9|ApplicationContext.d.ts| +|Deprecated version changed|Method or attribute name: registerEnvironmentCallback
Deprecated version: N/A|Method or attribute name: registerEnvironmentCallback
Deprecated version: 9
New API: on |ApplicationContext.d.ts| +|Deprecated version changed|Method or attribute name: unregisterEnvironmentCallback
Deprecated version: N/A|Method or attribute name: unregisterEnvironmentCallback
Deprecated version: 9
New API: off |ApplicationContext.d.ts| +|Deprecated version changed|Method or attribute name: unregisterEnvironmentCallback
Deprecated version: N/A|Method or attribute name: unregisterEnvironmentCallback
Deprecated version: 9|ApplicationContext.d.ts| +|Deprecated version changed|Method or attribute name: connectAbility
Deprecated version: N/A|Method or attribute name: connectAbility
Deprecated version: 9
New API: connectServiceExtensionAbility |ServiceExtensionContext.d.ts| +|Deprecated version changed|Method or attribute name: connectAbilityWithAccount
Deprecated version: N/A|Method or attribute name: connectAbilityWithAccount
Deprecated version: 9
New API: connectServiceExtensionAbilityWithAccount |ServiceExtensionContext.d.ts| +|Deprecated version changed|Method or attribute name: disconnectAbility
Deprecated version: N/A|Method or attribute name: disconnectAbility
Deprecated version: 9
New API: disconnectServiceExtensionAbility |ServiceExtensionContext.d.ts| +|Deprecated version changed|Method or attribute name: disconnectAbility
Deprecated version: N/A|Method or attribute name: disconnectAbility
Deprecated version: 9|ServiceExtensionContext.d.ts| +|Initial version changed|Class name: AbilityDelegator
Initial version: 8|Class name: AbilityDelegator
Initial version: 9|abilityDelegator.d.ts| +|Permission deleted|Class name: distributedMissionManager
Permission: ohos.permission.MANAGE_MISSIONS|Class name: distributedMissionManager
Permission: N/A|@ohos.distributedMissionManager.d.ts| +|Error code added||Method or attribute name: on_deviceConnect
Error code: 401, 16600001, 16600002, 16600004|@ohos.continuation.continuationManager.d.ts| +|Error code added||Method or attribute name: on_deviceDisconnect
Error code: 401, 16600001, 16600002, 16600004|@ohos.continuation.continuationManager.d.ts| +|Error code added||Method or attribute name: startSyncRemoteMissions
Error code: 201, 401|@ohos.distributedMissionManager.d.ts| +|Error code added||Method or attribute name: stopSyncRemoteMissions
Error code: 201, 401|@ohos.distributedMissionManager.d.ts| +|Error code added||Method or attribute name: registerMissionListener
Error code: 201, 401|@ohos.distributedMissionManager.d.ts| +|Error code added||Method or attribute name: startAbility
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbility
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbility
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityByCall
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityForResult
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityForResult
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityForResult
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityForResultWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityForResultWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityForResultWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startServiceExtensionAbility
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startServiceExtensionAbility
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startServiceExtensionAbilityWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startServiceExtensionAbilityWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: stopServiceExtensionAbility
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: stopServiceExtensionAbility
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: stopServiceExtensionAbilityWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: stopServiceExtensionAbilityWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: terminateSelf
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: terminateSelf
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: terminateSelfWithResult
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: terminateSelfWithResult
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: setMissionLabel
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: setMissionIcon
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: addAbilityMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: addAbilityMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: addAbilityStageMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: addAbilityStageMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: removeAbilityMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: removeAbilityMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: removeAbilityStageMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: removeAbilityStageMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: waitAbilityStageMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: waitAbilityStageMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: waitAbilityStageMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: startAbility
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: startAbility
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: printSync
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: finishTest
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: finishTest
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: createBundleContext
Error code: 401|Context.d.ts| +|Error code added||Method or attribute name: createModuleContext
Error code: 401|Context.d.ts| +|Error code added||Method or attribute name: createModuleContext
Error code: 401|Context.d.ts| +|Error code added||Method or attribute name: on
Error code: 401|EventHub.d.ts| +|Error code added||Method or attribute name: off
Error code: 401|EventHub.d.ts| +|Error code added||Method or attribute name: emit
Error code: 401|EventHub.d.ts| +|Error code added||Method or attribute name: startAbility
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startAbility
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startAbility
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startAbilityWithAccount
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startAbilityWithAccount
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startAbilityWithAccount
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startServiceExtensionAbility
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startServiceExtensionAbility
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startServiceExtensionAbilityWithAccount
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startServiceExtensionAbilityWithAccount
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: stopServiceExtensionAbility
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: stopServiceExtensionAbility
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: stopServiceExtensionAbilityWithAccount
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: stopServiceExtensionAbilityWithAccount
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: terminateSelf
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: terminateSelf
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startAbilityByCall
Error code: 401|ServiceExtensionContext.d.ts| +|Permission added|Method or attribute name: startSyncRemoteMissions
Permission: N/A|Method or attribute name: startSyncRemoteMissions
Permission: ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| +|Permission added|Method or attribute name: startSyncRemoteMissions
Permission: N/A|Method or attribute name: startSyncRemoteMissions
Permission: ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| +|Permission added|Method or attribute name: stopSyncRemoteMissions
Permission: N/A|Method or attribute name: stopSyncRemoteMissions
Permission: ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| +|Permission added|Method or attribute name: stopSyncRemoteMissions
Permission: N/A|Method or attribute name: stopSyncRemoteMissions
Permission: ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| +|Permission added|Method or attribute name: registerMissionListener
Permission: N/A|Method or attribute name: registerMissionListener
Permission: ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| +|Permission added|Method or attribute name: registerMissionListener
Permission: N/A|Method or attribute name: registerMissionListener
Permission: ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| +|Permission added|Method or attribute name: unRegisterMissionListener
Permission: N/A|Method or attribute name: unRegisterMissionListener
Permission: ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| +|Access level changed|Method or attribute name: startAbilityByCall
Access level: public API|Method or attribute name: startAbilityByCall
Access level: system API|AbilityContext.d.ts| +|Access level changed|Method or attribute name: isTerminating
Access level: public API|Method or attribute name: isTerminating
Access level: system API|AbilityContext.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-accessibility.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-accessibility.md new file mode 100644 index 0000000000000000000000000000000000000000..9ddac51d885c1cd11d4ef4bbc40e659a61d677b9 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-accessibility.md @@ -0,0 +1,52 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.accessibility.config
Class name: config
Method or attribute name: on_enabledAccessibilityExtensionListChange|@ohos.accessibility.config.d.ts| +|Added||Module name: ohos.accessibility.config
Class name: config
Method or attribute name: off_enabledAccessibilityExtensionListChange|@ohos.accessibility.config.d.ts| +|Added||Module name: ohos.accessibility
Class name: accessibility
Method or attribute name: getAccessibilityExtensionList|@ohos.accessibility.d.ts| +|Added||Module name: ohos.accessibility
Class name: accessibility
Method or attribute name: getAccessibilityExtensionList|@ohos.accessibility.d.ts| +|Added||Module name: ohos.accessibility
Class name: accessibility
Method or attribute name: sendAccessibilityEvent|@ohos.accessibility.d.ts| +|Added||Module name: ohos.accessibility
Class name: accessibility
Method or attribute name: sendAccessibilityEvent|@ohos.accessibility.d.ts| +|Added||Module name: ohos.accessibility.GesturePath
Class name: GesturePath|@ohos.accessibility.GesturePath.d.ts| +|Added||Module name: ohos.accessibility.GesturePath
Class name: GesturePath
Method or attribute name: ructor(durationTime|@ohos.accessibility.GesturePath.d.ts| +|Added||Module name: ohos.accessibility.GesturePath
Class name: GesturePath
Method or attribute name: points|@ohos.accessibility.GesturePath.d.ts| +|Added||Module name: ohos.accessibility.GesturePath
Class name: GesturePath
Method or attribute name: durationTime|@ohos.accessibility.GesturePath.d.ts| +|Added||Module name: ohos.accessibility.GesturePoint
Class name: GesturePoint|@ohos.accessibility.GesturePoint.d.ts| +|Added||Module name: ohos.accessibility.GesturePoint
Class name: GesturePoint
Method or attribute name: ructor(positionX|@ohos.accessibility.GesturePoint.d.ts| +|Added||Module name: ohos.accessibility.GesturePoint
Class name: GesturePoint
Method or attribute name: positionX|@ohos.accessibility.GesturePoint.d.ts| +|Added||Module name: ohos.accessibility.GesturePoint
Class name: GesturePoint
Method or attribute name: positionY|@ohos.accessibility.GesturePoint.d.ts| +|Added||Method or attribute name: performAction
Function name: performAction(actionName: string, parameters?: object): Promise;|AccessibilityExtensionContext.d.ts| +|Added||Method or attribute name: performAction
Function name: performAction(actionName: string, callback: AsyncCallback): void;|AccessibilityExtensionContext.d.ts| +|Added||Method or attribute name: performAction
Function name: performAction(actionName: string, parameters: object, callback: AsyncCallback): void;|AccessibilityExtensionContext.d.ts| +|Deleted|Module name: ohos.accessibility.config
Class name: config
Method or attribute name: on_enableAbilityListsStateChanged||@ohos.accessibility.config.d.ts| +|Deleted|Module name: ohos.accessibility.config
Class name: config
Method or attribute name: off_enableAbilityListsStateChanged||@ohos.accessibility.config.d.ts| +|Deleted|Module name: ohos.application.AccessibilityExtensionAbility
Class name: GesturePath||@ohos.application.AccessibilityExtensionAbility.d.ts| +|Deleted|Module name: ohos.application.AccessibilityExtensionAbility
Class name: GesturePath
Method or attribute name: points||@ohos.application.AccessibilityExtensionAbility.d.ts| +|Deleted|Module name: ohos.application.AccessibilityExtensionAbility
Class name: GesturePath
Method or attribute name: durationTime||@ohos.application.AccessibilityExtensionAbility.d.ts| +|Deleted|Module name: ohos.application.AccessibilityExtensionAbility
Class name: GesturePoint||@ohos.application.AccessibilityExtensionAbility.d.ts| +|Deleted|Module name: ohos.application.AccessibilityExtensionAbility
Class name: GesturePoint
Method or attribute name: positionX||@ohos.application.AccessibilityExtensionAbility.d.ts| +|Deleted|Module name: ohos.application.AccessibilityExtensionAbility
Class name: GesturePoint
Method or attribute name: positionY||@ohos.application.AccessibilityExtensionAbility.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityLists
Deprecated version: N/A|Method or attribute name: getAbilityLists
Deprecated version: 9
New API: ohos.accessibility|@ohos.accessibility.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityLists
Deprecated version: N/A|Method or attribute name: getAbilityLists
Deprecated version: 9|@ohos.accessibility.d.ts| +|Deprecated version changed|Method or attribute name: sendEvent
Deprecated version: N/A|Method or attribute name: sendEvent
Deprecated version: 9
New API: ohos.accessibility|@ohos.accessibility.d.ts| +|Deprecated version changed|Method or attribute name: sendEvent
Deprecated version: N/A|Method or attribute name: sendEvent
Deprecated version: 9|@ohos.accessibility.d.ts| +|Error code added||Method or attribute name: enableAbility
Error code: 201, 401, 9300001, 9300002|@ohos.accessibility.config.d.ts| +|Error code added||Method or attribute name: disableAbility
Error code: 201, 401, 9300001|@ohos.accessibility.config.d.ts| +|Error code added||Method or attribute name: set
Error code: 201, 401|@ohos.accessibility.config.d.ts| +|Error code added||Method or attribute name: on
Error code: 401|@ohos.accessibility.config.d.ts| +|Error code added||Method or attribute name: on_accessibilityStateChange
Error code: 401|@ohos.accessibility.d.ts| +|Error code added||Method or attribute name: on_touchGuideStateChange
Error code: 401|@ohos.accessibility.d.ts| +|Error code added||Method or attribute name: off_accessibilityStateChange
Error code: 401|@ohos.accessibility.d.ts| +|Error code added||Method or attribute name: off_touchGuideStateChange
Error code: 401|@ohos.accessibility.d.ts| +|Error code added||Method or attribute name: on_enableChange
Error code: 401|@ohos.accessibility.d.ts| +|Error code added||Method or attribute name: on_styleChange
Error code: 401|@ohos.accessibility.d.ts| +|Error code added||Method or attribute name: off_enableChange
Error code: 401|@ohos.accessibility.d.ts| +|Error code added||Method or attribute name: off_styleChange
Error code: 401|@ohos.accessibility.d.ts| +|Error code added||Method or attribute name: setTargetBundleName
Error code: 401|AccessibilityExtensionContext.d.ts| +|Error code added||Method or attribute name: getFocusElement
Error code: 9300003|AccessibilityExtensionContext.d.ts| +|Error code added||Method or attribute name: getWindowRootElement
Error code: 9300003|AccessibilityExtensionContext.d.ts| +|Error code added||Method or attribute name: getWindows
Error code: 9300003|AccessibilityExtensionContext.d.ts| +|Error code added||Method or attribute name: injectGesture
Error code: 401, 9300003|AccessibilityExtensionContext.d.ts| +|Error code added||Method or attribute name: attributeValue
Error code: 401, 9300004|AccessibilityExtensionContext.d.ts| +|Error code added||Method or attribute name: findElement
Error code: 401|AccessibilityExtensionContext.d.ts| +|Error code added||Method or attribute name: findElement
Error code: 401|AccessibilityExtensionContext.d.ts| +|Error code added||Method or attribute name: findElement
Error code: 401|AccessibilityExtensionContext.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-account.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-account.md new file mode 100644 index 0000000000000000000000000000000000000000..363817022ff3350edb2335abeab8a9f37e669327 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-account.md @@ -0,0 +1,225 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: createAccount|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: createAccount|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: createAccount|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: createAccountImplicitly|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: createAccountImplicitly|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: removeAccount|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: removeAccount|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setAppAccess|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setAppAccess|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: checkDataSyncEnabled|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: checkDataSyncEnabled|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setCredential|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setCredential|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setDataSyncEnabled|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setDataSyncEnabled|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setCustomData|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setCustomData|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: getAllAccounts
Function name: getAllAccounts(callback: AsyncCallback>): void;|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: getAllAccounts
Function name: getAllAccounts(): Promise>;|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAccountsByOwner|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAccountsByOwner|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getCredential|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getCredential|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getCustomData|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getCustomData|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getCustomDataSync|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: on_accountChange|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: off_accountChange|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: auth|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: auth|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAuthToken|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAuthToken|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setAuthToken|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setAuthToken|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: deleteAuthToken|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: deleteAuthToken|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setAuthTokenVisibility|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setAuthTokenVisibility|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: checkAuthTokenVisibility|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: checkAuthTokenVisibility|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAllAuthTokens|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAllAuthTokens|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAuthList|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAuthList|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAuthCallback|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAuthCallback|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: queryAuthenticatorInfo|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: queryAuthenticatorInfo|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: deleteCredential|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: deleteCredential|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: selectAccountsByOptions
Function name: selectAccountsByOptions(options: SelectAccountsOptions, callback: AsyncCallback>): void;|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: verifyCredential
Function name: verifyCredential(name: string, owner: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: verifyCredential
Function name: verifyCredential(name: string, owner: string, options: VerifyCredentialOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: setAuthenticatorProperties
Function name: setAuthenticatorProperties(owner: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: setAuthenticatorProperties
Function name: setAuthenticatorProperties(owner: string, options: SetPropertiesOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthTokenInfo|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthTokenInfo
Method or attribute name: authType|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthTokenInfo
Method or attribute name: token|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthTokenInfo
Method or attribute name: account|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthResult|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthResult
Method or attribute name: account|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthResult
Method or attribute name: tokenInfo|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: CreateAccountOptions|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: CreateAccountOptions
Method or attribute name: customData|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: CreateAccountImplicitlyOptions|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: CreateAccountImplicitlyOptions
Method or attribute name: requiredLabels|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: CreateAccountImplicitlyOptions
Method or attribute name: authType|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: CreateAccountImplicitlyOptions
Method or attribute name: parameters|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: Constants
Method or attribute name: ACTION_CREATE_ACCOUNT_IMPLICITLY|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: Constants
Method or attribute name: ACTION_AUTH|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: Constants
Method or attribute name: ACTION_VERIFY_CREDENTIAL|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: Constants
Method or attribute name: ACTION_SET_AUTHENTICATOR_PROPERTIES|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthCallback|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthCallback
Method or attribute name: onResult|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthCallback
Method or attribute name: onRequestRedirected|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthCallback
Method or attribute name: onRequestContinued|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: Authenticator
Method or attribute name: createAccountImplicitly|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: Authenticator
Method or attribute name: auth|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: verifyCredential
Function name: verifyCredential(name: string, options: VerifyCredentialOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: setProperties
Function name: setProperties(options: SetPropertiesOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: checkAccountLabels
Function name: checkAccountLabels(name: string, labels: Array, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: isAccountRemovable
Function name: isAccountRemovable(name: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.distributedAccount
Class name: DistributedAccountAbility
Method or attribute name: getOsAccountDistributedInfo|@ohos.account.distributedAccount.d.ts| +|Added||Module name: ohos.account.distributedAccount
Class name: DistributedAccountAbility
Method or attribute name: getOsAccountDistributedInfo|@ohos.account.distributedAccount.d.ts| +|Added||Module name: ohos.account.distributedAccount
Class name: DistributedAccountAbility
Method or attribute name: setOsAccountDistributedInfo|@ohos.account.distributedAccount.d.ts| +|Added||Module name: ohos.account.distributedAccount
Class name: DistributedAccountAbility
Method or attribute name: setOsAccountDistributedInfo|@ohos.account.distributedAccount.d.ts| +|Added||Module name: ohos.account.distributedAccount
Class name: DistributedInfo
Method or attribute name: nickname|@ohos.account.distributedAccount.d.ts| +|Added||Module name: ohos.account.distributedAccount
Class name: DistributedInfo
Method or attribute name: avatar|@ohos.account.distributedAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkMultiOsAccountEnabled|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkMultiOsAccountEnabled|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkOsAccountActivated|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkOsAccountActivated|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkConstraintEnabled|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkConstraintEnabled|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkOsAccountTestable|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkOsAccountTestable|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkOsAccountVerified|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkOsAccountVerified|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkOsAccountVerified|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getOsAccountCount|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getOsAccountCount|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryOsAccountLocalIdFromProcess|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryOsAccountLocalIdFromProcess|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryOsAccountLocalIdFromUid|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryOsAccountLocalIdFromUid|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryOsAccountLocalIdFromDomain|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryOsAccountLocalIdFromDomain|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getOsAccountConstraints|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getOsAccountConstraints|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getActivatedOsAccountIds|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getActivatedOsAccountIds|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getCurrentOsAccount|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getCurrentOsAccount|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getOsAccountType|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getOsAccountType|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryDistributedVirtualDeviceId|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryDistributedVirtualDeviceId|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryOsAccountLocalIdBySerialNumber|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryOsAccountLocalIdBySerialNumber|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: querySerialNumberByOsAccountLocalId|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: querySerialNumberByOsAccountLocalId|@ohos.account.osAccount.d.ts| +|Added||Method or attribute name: cancelAuth
Function name: cancelAuth(contextID: Uint8Array): void;|@ohos.account.osAccount.d.ts| +|Added||Method or attribute name: registerInputer
Function name: registerInputer(inputer: IInputer): void;|@ohos.account.osAccount.d.ts| +|Added||Method or attribute name: cancel
Function name: cancel(challenge: Uint8Array): void;|@ohos.account.osAccount.d.ts| +|Deleted|Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAssociatedDataSync||@ohos.account.appAccount.d.ts| +|Deleted|Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: deleteAccountCredential||@ohos.account.appAccount.d.ts| +|Deleted|Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: deleteAccountCredential||@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: addAccount
Deprecated version: N/A|Method or attribute name: addAccount
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: addAccount
Deprecated version: N/A|Method or attribute name: addAccount
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: addAccount
Deprecated version: N/A|Method or attribute name: addAccount
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: addAccountImplicitly
Deprecated version: N/A|Method or attribute name: addAccountImplicitly
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: deleteAccount
Deprecated version: N/A|Method or attribute name: deleteAccount
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: deleteAccount
Deprecated version: N/A|Method or attribute name: deleteAccount
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: disableAppAccess
Deprecated version: N/A|Method or attribute name: disableAppAccess
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: disableAppAccess
Deprecated version: N/A|Method or attribute name: disableAppAccess
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: enableAppAccess
Deprecated version: N/A|Method or attribute name: enableAppAccess
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: enableAppAccess
Deprecated version: N/A|Method or attribute name: enableAppAccess
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: checkAppAccountSyncEnable
Deprecated version: N/A|Method or attribute name: checkAppAccountSyncEnable
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: checkAppAccountSyncEnable
Deprecated version: N/A|Method or attribute name: checkAppAccountSyncEnable
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setAccountCredential
Deprecated version: N/A|Method or attribute name: setAccountCredential
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setAccountCredential
Deprecated version: N/A|Method or attribute name: setAccountCredential
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setAccountExtraInfo
Deprecated version: N/A|Method or attribute name: setAccountExtraInfo
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setAccountExtraInfo
Deprecated version: N/A|Method or attribute name: setAccountExtraInfo
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setAppAccountSyncEnable
Deprecated version: N/A|Method or attribute name: setAppAccountSyncEnable
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setAppAccountSyncEnable
Deprecated version: N/A|Method or attribute name: setAppAccountSyncEnable
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setAssociatedData
Deprecated version: N/A|Method or attribute name: setAssociatedData
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setAssociatedData
Deprecated version: N/A|Method or attribute name: setAssociatedData
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAllAccessibleAccounts
Deprecated version: N/A|Method or attribute name: getAllAccessibleAccounts
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAllAccessibleAccounts
Deprecated version: N/A|Method or attribute name: getAllAccessibleAccounts
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAllAccounts
Deprecated version: N/A|Method or attribute name: getAllAccounts
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAllAccounts
Deprecated version: N/A|Method or attribute name: getAllAccounts
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAccountCredential
Deprecated version: N/A|Method or attribute name: getAccountCredential
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAccountCredential
Deprecated version: N/A|Method or attribute name: getAccountCredential
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAccountExtraInfo
Deprecated version: N/A|Method or attribute name: getAccountExtraInfo
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAccountExtraInfo
Deprecated version: N/A|Method or attribute name: getAccountExtraInfo
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAssociatedData
Deprecated version: N/A|Method or attribute name: getAssociatedData
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAssociatedData
Deprecated version: N/A|Method or attribute name: getAssociatedData
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: on_change
Deprecated version: N/A|Method or attribute name: on_change
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: off_change
Deprecated version: N/A|Method or attribute name: off_change
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: authenticate
Deprecated version: N/A|Method or attribute name: authenticate
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOAuthToken
Deprecated version: N/A|Method or attribute name: getOAuthToken
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOAuthToken
Deprecated version: N/A|Method or attribute name: getOAuthToken
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setOAuthToken
Deprecated version: N/A|Method or attribute name: setOAuthToken
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setOAuthToken
Deprecated version: N/A|Method or attribute name: setOAuthToken
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: deleteOAuthToken
Deprecated version: N/A|Method or attribute name: deleteOAuthToken
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: deleteOAuthToken
Deprecated version: N/A|Method or attribute name: deleteOAuthToken
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setOAuthTokenVisibility
Deprecated version: N/A|Method or attribute name: setOAuthTokenVisibility
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setOAuthTokenVisibility
Deprecated version: N/A|Method or attribute name: setOAuthTokenVisibility
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: checkOAuthTokenVisibility
Deprecated version: N/A|Method or attribute name: checkOAuthTokenVisibility
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: checkOAuthTokenVisibility
Deprecated version: N/A|Method or attribute name: checkOAuthTokenVisibility
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAllOAuthTokens
Deprecated version: N/A|Method or attribute name: getAllOAuthTokens
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAllOAuthTokens
Deprecated version: N/A|Method or attribute name: getAllOAuthTokens
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOAuthList
Deprecated version: N/A|Method or attribute name: getOAuthList
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOAuthList
Deprecated version: N/A|Method or attribute name: getOAuthList
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAuthenticatorCallback
Deprecated version: N/A|Method or attribute name: getAuthenticatorCallback
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAuthenticatorCallback
Deprecated version: N/A|Method or attribute name: getAuthenticatorCallback
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAuthenticatorInfo
Deprecated version: N/A|Method or attribute name: getAuthenticatorInfo
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAuthenticatorInfo
Deprecated version: N/A|Method or attribute name: getAuthenticatorInfo
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Class name: OAuthTokenInfo
Deprecated version: N/A|Class name: OAuthTokenInfo
Deprecated version: 9
New API: appAccount.AuthTokenInfo |@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: ACTION_ADD_ACCOUNT_IMPLICITLY
Deprecated version: N/A|Method or attribute name: ACTION_ADD_ACCOUNT_IMPLICITLY
Deprecated version: 9
New API: appAccount.Constants|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: ACTION_AUTHENTICATE
Deprecated version: N/A|Method or attribute name: ACTION_AUTHENTICATE
Deprecated version: 9
New API: appAccount.Constants|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Class name: ResultCode
Deprecated version: N/A|Class name: ResultCode
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Class name: AuthenticatorCallback
Deprecated version: N/A|Class name: AuthenticatorCallback
Deprecated version: 9
New API: AppAccount.AuthCallback |@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: addAccountImplicitly
Deprecated version: N/A|Method or attribute name: addAccountImplicitly
Deprecated version: 9
New API: appAccount.Authenticator|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: authenticate
Deprecated version: N/A|Method or attribute name: authenticate
Deprecated version: 9
New API: appAccount.Authenticator|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: queryOsAccountDistributedInfo
Deprecated version: N/A|Method or attribute name: queryOsAccountDistributedInfo
Deprecated version: 9
New API: distributedAccount.DistributedAccountAbility|@ohos.account.distributedAccount.d.ts| +|Deprecated version changed|Method or attribute name: queryOsAccountDistributedInfo
Deprecated version: N/A|Method or attribute name: queryOsAccountDistributedInfo
Deprecated version: 9|@ohos.account.distributedAccount.d.ts| +|Deprecated version changed|Method or attribute name: updateOsAccountDistributedInfo
Deprecated version: N/A|Method or attribute name: updateOsAccountDistributedInfo
Deprecated version: 9
New API: distributedAccount.DistributedAccountAbility|@ohos.account.distributedAccount.d.ts| +|Deprecated version changed|Method or attribute name: updateOsAccountDistributedInfo
Deprecated version: N/A|Method or attribute name: updateOsAccountDistributedInfo
Deprecated version: 9|@ohos.account.distributedAccount.d.ts| +|Deprecated version changed|Method or attribute name: isMultiOsAccountEnable
Deprecated version: N/A|Method or attribute name: isMultiOsAccountEnable
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isMultiOsAccountEnable
Deprecated version: N/A|Method or attribute name: isMultiOsAccountEnable
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isOsAccountActived
Deprecated version: N/A|Method or attribute name: isOsAccountActived
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isOsAccountActived
Deprecated version: N/A|Method or attribute name: isOsAccountActived
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isOsAccountConstraintEnable
Deprecated version: N/A|Method or attribute name: isOsAccountConstraintEnable
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isOsAccountConstraintEnable
Deprecated version: N/A|Method or attribute name: isOsAccountConstraintEnable
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isTestOsAccount
Deprecated version: N/A|Method or attribute name: isTestOsAccount
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isTestOsAccount
Deprecated version: N/A|Method or attribute name: isTestOsAccount
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isOsAccountVerified
Deprecated version: N/A|Method or attribute name: isOsAccountVerified
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isOsAccountVerified
Deprecated version: N/A|Method or attribute name: isOsAccountVerified
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isOsAccountVerified
Deprecated version: N/A|Method or attribute name: isOsAccountVerified
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getCreatedOsAccountsCount
Deprecated version: N/A|Method or attribute name: getCreatedOsAccountsCount
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getCreatedOsAccountsCount
Deprecated version: N/A|Method or attribute name: getCreatedOsAccountsCount
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountLocalIdFromProcess
Deprecated version: N/A|Method or attribute name: getOsAccountLocalIdFromProcess
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountLocalIdFromProcess
Deprecated version: N/A|Method or attribute name: getOsAccountLocalIdFromProcess
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountLocalIdFromUid
Deprecated version: N/A|Method or attribute name: getOsAccountLocalIdFromUid
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountLocalIdFromUid
Deprecated version: N/A|Method or attribute name: getOsAccountLocalIdFromUid
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountLocalIdFromDomain
Deprecated version: N/A|Method or attribute name: getOsAccountLocalIdFromDomain
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountLocalIdFromDomain
Deprecated version: N/A|Method or attribute name: getOsAccountLocalIdFromDomain
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountAllConstraints
Deprecated version: N/A|Method or attribute name: getOsAccountAllConstraints
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountAllConstraints
Deprecated version: N/A|Method or attribute name: getOsAccountAllConstraints
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: queryActivatedOsAccountIds
Deprecated version: N/A|Method or attribute name: queryActivatedOsAccountIds
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: queryActivatedOsAccountIds
Deprecated version: N/A|Method or attribute name: queryActivatedOsAccountIds
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: queryCurrentOsAccount
Deprecated version: N/A|Method or attribute name: queryCurrentOsAccount
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: queryCurrentOsAccount
Deprecated version: N/A|Method or attribute name: queryCurrentOsAccount
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountTypeFromProcess
Deprecated version: N/A|Method or attribute name: getOsAccountTypeFromProcess
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountTypeFromProcess
Deprecated version: N/A|Method or attribute name: getOsAccountTypeFromProcess
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getDistributedVirtualDeviceId
Deprecated version: N/A|Method or attribute name: getDistributedVirtualDeviceId
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getDistributedVirtualDeviceId
Deprecated version: N/A|Method or attribute name: getDistributedVirtualDeviceId
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountLocalIdBySerialNumber
Deprecated version: N/A|Method or attribute name: getOsAccountLocalIdBySerialNumber
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountLocalIdBySerialNumber
Deprecated version: N/A|Method or attribute name: getOsAccountLocalIdBySerialNumber
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getSerialNumberByOsAccountLocalId
Deprecated version: N/A|Method or attribute name: getSerialNumberByOsAccountLocalId
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getSerialNumberByOsAccountLocalId
Deprecated version: N/A|Method or attribute name: getSerialNumberByOsAccountLocalId
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Permission added|Method or attribute name: isOsAccountVerified
Permission: N/A|Method or attribute name: isOsAccountVerified
Permission: ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS.|@ohos.account.osAccount.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-application.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-application.md new file mode 100644 index 0000000000000000000000000000000000000000..429c2fe80a5e81c6f026783204aba88bf877e8ee --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-application.md @@ -0,0 +1,170 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.contact
Class name: Contact|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: INVALID_CONTACT_ID|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: id|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: key|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: contactAttributes|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: emails|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: events|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: groups|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: imAddresses|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: phoneNumbers|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: portrait|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: postalAddresses|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: relations|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: sipAddresses|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: websites|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: name|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: nickName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: note|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: organization|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ContactAttributes|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ContactAttributes
Method or attribute name: attributes|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_CONTACT_EVENT|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_EMAIL|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_GROUP_MEMBERSHIP|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_IM|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_NAME|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_NICKNAME|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_NOTE|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_ORGANIZATION|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_PHONE|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_PORTRAIT|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_POSTAL_ADDRESS|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_RELATION|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_SIP_ADDRESS|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_WEBSITE|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email
Method or attribute name: CUSTOM_LABEL|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email
Method or attribute name: EMAIL_HOME|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email
Method or attribute name: EMAIL_WORK|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email
Method or attribute name: EMAIL_OTHER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email
Method or attribute name: INVALID_LABEL_ID|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email
Method or attribute name: email|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email
Method or attribute name: labelName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email
Method or attribute name: displayName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email
Method or attribute name: labelId|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Event|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Event
Method or attribute name: CUSTOM_LABEL|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Event
Method or attribute name: EVENT_ANNIVERSARY|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Event
Method or attribute name: EVENT_OTHER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Event
Method or attribute name: EVENT_BIRTHDAY|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Event
Method or attribute name: INVALID_LABEL_ID|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Event
Method or attribute name: eventDate|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Event
Method or attribute name: labelName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Event
Method or attribute name: labelId|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Group|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Group
Method or attribute name: groupId|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Group
Method or attribute name: title|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Holder|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Holder
Method or attribute name: bundleName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Holder
Method or attribute name: displayName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Holder
Method or attribute name: holderId|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: CUSTOM_LABEL|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: IM_AIM|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: IM_MSN|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: IM_YAHOO|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: IM_SKYPE|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: IM_QQ|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: IM_ICQ|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: IM_JABBER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: INVALID_LABEL_ID|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: imAddress|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: labelName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: labelId|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name
Method or attribute name: familyName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name
Method or attribute name: familyNamePhonetic|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name
Method or attribute name: fullName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name
Method or attribute name: givenName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name
Method or attribute name: givenNamePhonetic|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name
Method or attribute name: middleName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name
Method or attribute name: middleNamePhonetic|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name
Method or attribute name: namePrefix|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name
Method or attribute name: nameSuffix|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: NickName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: NickName
Method or attribute name: nickName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Note|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Note
Method or attribute name: noteContent|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Organization|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Organization
Method or attribute name: name|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Organization
Method or attribute name: title|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: CUSTOM_LABEL|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_HOME|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_MOBILE|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_WORK|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_FAX_WORK|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_FAX_HOME|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_PAGER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_OTHER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_CALLBACK|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_CAR|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_COMPANY_MAIN|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_ISDN|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_MAIN|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_OTHER_FAX|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_RADIO|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_TELEX|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_TTY_TDD|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_WORK_MOBILE|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_WORK_PAGER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_ASSISTANT|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_MMS|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: INVALID_LABEL_ID|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: labelName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: phoneNumber|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: labelId|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Portrait|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Portrait
Method or attribute name: uri|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: CUSTOM_LABEL|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: ADDR_HOME|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: ADDR_WORK|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: ADDR_OTHER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: INVALID_LABEL_ID|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: city|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: country|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: labelName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: neighborhood|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: pobox|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: postalAddress|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: postcode|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: region|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: street|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: labelId|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: CUSTOM_LABEL|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_ASSISTANT|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_BROTHER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_CHILD|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_DOMESTIC_PARTNER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_FATHER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_FRIEND|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_MANAGER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_MOTHER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_PARENT|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_PARTNER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_REFERRED_BY|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_RELATIVE|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_SISTER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_SPOUSE|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: INVALID_LABEL_ID|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: labelName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: relationName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: labelId|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: SipAddress|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: SipAddress
Method or attribute name: CUSTOM_LABEL|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: SipAddress
Method or attribute name: SIP_HOME|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: SipAddress
Method or attribute name: SIP_WORK|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: SipAddress
Method or attribute name: SIP_OTHER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: SipAddress
Method or attribute name: INVALID_LABEL_ID|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: SipAddress
Method or attribute name: labelName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: SipAddress
Method or attribute name: sipAddress|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: SipAddress
Method or attribute name: labelId|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Website|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Website
Method or attribute name: website|@ohos.contact.d.ts| +|Added||Module name: ohos.telephony.call
Class name: AudioDevice
Method or attribute name: DEVICE_MIC|@ohos.telephony.call.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-arkui.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-arkui.md new file mode 100644 index 0000000000000000000000000000000000000000..4e45de29dbe37a829a9dd618b97f5a7fec877d4b --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-arkui.md @@ -0,0 +1,183 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.animator
Class name: AnimatorResult
Method or attribute name: reset|@ohos.animator.d.ts| +|Added||Module name: ohos.animator
Class name: Animator
Method or attribute name: create|@ohos.animator.d.ts| +|Added||Module name: ohos.promptAction
Class name: promptAction|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowToastOptions|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowToastOptions
Method or attribute name: message|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowToastOptions
Method or attribute name: duration|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowToastOptions
Method or attribute name: bottom|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: Button|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: Button
Method or attribute name: text|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: Button
Method or attribute name: color|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowDialogSuccessResponse|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowDialogSuccessResponse
Method or attribute name: index|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowDialogOptions|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowDialogOptions
Method or attribute name: title|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowDialogOptions
Method or attribute name: message|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowDialogOptions
Method or attribute name: buttons|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ActionMenuSuccessResponse|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ActionMenuSuccessResponse
Method or attribute name: index|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ActionMenuOptions|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ActionMenuOptions
Method or attribute name: title|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ActionMenuOptions
Method or attribute name: buttons|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: promptAction
Method or attribute name: showToast|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: promptAction
Method or attribute name: showDialog|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: promptAction
Method or attribute name: showDialog|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: promptAction
Method or attribute name: showActionMenu|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: promptAction
Method or attribute name: showActionMenu|@ohos.promptAction.d.ts| +|Added||Module name: ohos.router
Class name: RouterOptions|@ohos.router.d.ts| +|Added||Module name: ohos.router
Class name: router
Method or attribute name: pushUrl|@ohos.router.d.ts| +|Added||Module name: ohos.router
Class name: router
Method or attribute name: pushUrl|@ohos.router.d.ts| +|Added||Module name: ohos.router
Class name: router
Method or attribute name: pushUrl|@ohos.router.d.ts| +|Added||Module name: ohos.router
Class name: router
Method or attribute name: pushUrl|@ohos.router.d.ts| +|Added||Module name: ohos.router
Class name: router
Method or attribute name: replaceUrl|@ohos.router.d.ts| +|Added||Module name: ohos.router
Class name: router
Method or attribute name: replaceUrl|@ohos.router.d.ts| +|Added||Module name: ohos.router
Class name: router
Method or attribute name: replaceUrl|@ohos.router.d.ts| +|Added||Module name: ohos.router
Class name: router
Method or attribute name: replaceUrl|@ohos.router.d.ts| +|Added||Module name: ohos.router
Class name: router
Method or attribute name: enableBackPageAlert|@ohos.router.d.ts| +|Added||Module name: common
Class name:
Method or attribute name: postCardAction|common.d.ts| +|Added||Module name: common
Class name: PopupOptions
Method or attribute name: showInSubWindow|common.d.ts| +|Added||Module name: common
Class name: CustomPopupOptions
Method or attribute name: showInSubWindow|common.d.ts| +|Added||Module name: common
Class name: LayoutBorderInfo|common.d.ts| +|Added||Module name: common
Class name: LayoutBorderInfo
Method or attribute name: borderWidth|common.d.ts| +|Added||Module name: common
Class name: LayoutBorderInfo
Method or attribute name: margin|common.d.ts| +|Added||Module name: common
Class name: LayoutBorderInfo
Method or attribute name: padding|common.d.ts| +|Added||Module name: common
Class name: LayoutInfo|common.d.ts| +|Added||Module name: common
Class name: LayoutInfo
Method or attribute name: position|common.d.ts| +|Added||Module name: common
Class name: LayoutInfo
Method or attribute name: constraint|common.d.ts| +|Added||Module name: common
Class name: LayoutChild|common.d.ts| +|Added||Module name: common
Class name: LayoutChild
Method or attribute name: name|common.d.ts| +|Added||Module name: common
Class name: LayoutChild
Method or attribute name: id|common.d.ts| +|Added||Module name: common
Class name: LayoutChild
Method or attribute name: constraint|common.d.ts| +|Added||Module name: common
Class name: LayoutChild
Method or attribute name: borderInfo|common.d.ts| +|Added||Module name: common
Class name: LayoutChild
Method or attribute name: position|common.d.ts| +|Added||Module name: common
Class name: LayoutChild
Method or attribute name: measure|common.d.ts| +|Added||Module name: common
Class name: LayoutChild
Method or attribute name: layout|common.d.ts| +|Added||Module name: common
Class name: CustomComponent
Method or attribute name: onLayout|common.d.ts| +|Added||Module name: common
Class name: CustomComponent
Method or attribute name: onMeasure|common.d.ts| +|Added||Module name: common
Class name: CustomComponent
Method or attribute name: pageTransition|common.d.ts| +|Added||Module name: common_ts_ets_api
Class name: AppStorage
Method or attribute name: Clear|common_ts_ets_api.d.ts| +|Added||Module name: enums
Class name: TitleHeight|enums.d.ts| +|Added||Module name: enums
Class name: TitleHeight
Method or attribute name: MainOnly|enums.d.ts| +|Added||Module name: enums
Class name: TitleHeight
Method or attribute name: MainWithSub|enums.d.ts| +|Added||Module name: flow_item
Class name: FlowItemInterface|flow_item.d.ts| +|Added||Module name: flow_item
Class name: FlowItemInterface
Method or attribute name: FlowItemInterface|flow_item.d.ts| +|Added||Module name: flow_item
Class name: FlowItemAttribute|flow_item.d.ts| +|Added||Method or attribute name: FormComponentInterface
Function name: (value: {
id: number;
name: string;
bundle: string;
ability: string;
module: string;
dimension?: FormDimension;
temporary?: boolean;
want?: import('../api/@ohos.application.Want').default;
}): FormComponentAttribute;|form_component.d.ts| +|Added||Module name: navigation
Class name: NavigationCommonTitle|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationCommonTitle
Method or attribute name: main|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationCommonTitle
Method or attribute name: sub|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationCustomTitle|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationCustomTitle
Method or attribute name: builder|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationCustomTitle
Method or attribute name: height|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationMode|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationMode
Method or attribute name: Stack|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationMode
Method or attribute name: Split|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationMode
Method or attribute name: Auto|navigation.d.ts| +|Added||Module name: navigation
Class name: NavBarPosition|navigation.d.ts| +|Added||Module name: navigation
Class name: NavBarPosition
Method or attribute name: Start|navigation.d.ts| +|Added||Module name: navigation
Class name: NavBarPosition
Method or attribute name: End|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationAttribute
Method or attribute name: navBarWidth|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationAttribute
Method or attribute name: navBarPosition|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationAttribute
Method or attribute name: mode|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationAttribute
Method or attribute name: backButtonIcon|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationAttribute
Method or attribute name: hideNavBar|navigation.d.ts| +|Added||Method or attribute name: title
Function name: title(value: string \| CustomBuilder \| NavigationCommonTitle \| NavigationCustomTitle): NavigationAttribute;|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationAttribute
Method or attribute name: onNavBarStateChange|navigation.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationCommonTitle|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationCommonTitle
Method or attribute name: main|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationCommonTitle
Method or attribute name: sub|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationCustomTitle|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationCustomTitle
Method or attribute name: builder|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationCustomTitle
Method or attribute name: height|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationInterface|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationInterface
Method or attribute name: NavDestinationInterface|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationAttribute|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationAttribute
Method or attribute name: title|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationAttribute
Method or attribute name: hideTitleBar|nav_destination.d.ts| +|Added||Module name: nav_router
Class name: NavRouterInterface|nav_router.d.ts| +|Added||Module name: nav_router
Class name: NavRouterInterface
Method or attribute name: NavRouterInterface|nav_router.d.ts| +|Added||Module name: nav_router
Class name: NavRouterAttribute|nav_router.d.ts| +|Added||Module name: nav_router
Class name: NavRouterAttribute
Method or attribute name: onStateChange|nav_router.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowOptions|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowOptions
Method or attribute name: footer|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowOptions
Method or attribute name: scroller|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowInterface|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowInterface
Method or attribute name: WaterFlowInterface|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowAttribute|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowAttribute
Method or attribute name: columnsTemplate|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowAttribute
Method or attribute name: itemConstraintSize|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowAttribute
Method or attribute name: rowsTemplate|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowAttribute
Method or attribute name: columnsGap|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowAttribute
Method or attribute name: rowsGap|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowAttribute
Method or attribute name: layoutDirection|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowAttribute
Method or attribute name: onReachStart|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowAttribute
Method or attribute name: onReachEnd|water_flow.d.ts| +|Added||Module name: web
Class name: FullScreenExitHandler|web.d.ts| +|Added||Module name: web
Class name: FullScreenExitHandler
Method or attribute name: exitFullScreen|web.d.ts| +|Added||Module name: web
Class name: ControllerHandler|web.d.ts| +|Added||Module name: web
Class name: ControllerHandler
Method or attribute name: setWebController|web.d.ts| +|Added||Module name: web
Class name: WebController
Method or attribute name: getUrl|web.d.ts| +|Added||Method or attribute name: controller
Function name: controller: WebController \| WebviewController;|web.d.ts| +|Added||Method or attribute name: javaScriptProxy
Function name: javaScriptProxy(javaScriptProxy: { object: object, name: string, methodList: Array,
controller: WebController \| WebviewController }): WebAttribute;|web.d.ts| +|Added||Module name: web
Class name: WebAttribute
Method or attribute name: onFullScreenExit|web.d.ts| +|Added||Module name: web
Class name: WebAttribute
Method or attribute name: onFullScreenEnter|web.d.ts| +|Added||Module name: web
Class name: WebAttribute
Method or attribute name: onWindowNew|web.d.ts| +|Added||Module name: web
Class name: WebAttribute
Method or attribute name: onWindowExit|web.d.ts| +|Added||Module name: web
Class name: WebAttribute
Method or attribute name: multiWindowAccess|web.d.ts| +|Added||Module name: viewmodel
Class name: ViewModel
Method or attribute name: $t|viewmodel.d.ts| +|Added||Module name: viewmodel
Class name: ElementReferences
Method or attribute name: ElementReferences|viewmodel.d.ts| +|Deleted|Module name: ohos.uiAppearance
Class name: uiAppearance||@ohos.uiAppearance.d.ts| +|Deleted|Module name: ohos.uiAppearance
Class name: DarkMode||@ohos.uiAppearance.d.ts| +|Deleted|Module name: ohos.uiAppearance
Class name: DarkMode
Method or attribute name: ALWAYS_DARK||@ohos.uiAppearance.d.ts| +|Deleted|Module name: ohos.uiAppearance
Class name: DarkMode
Method or attribute name: ALWAYS_LIGHT||@ohos.uiAppearance.d.ts| +|Deleted|Module name: ohos.uiAppearance
Class name: uiAppearance
Method or attribute name: setDarkMode||@ohos.uiAppearance.d.ts| +|Deleted|Module name: ohos.uiAppearance
Class name: uiAppearance
Method or attribute name: setDarkMode||@ohos.uiAppearance.d.ts| +|Deleted|Module name: ohos.uiAppearance
Class name: uiAppearance
Method or attribute name: getDarkMode||@ohos.uiAppearance.d.ts| +|Deleted|Module name: web
Class name: WebAttribute
Method or attribute name: fileFromUrlAccess||web.d.ts| +|Access level changed|Method or attribute name: springMotion
Access level: public API|Method or attribute name: springMotion
Access level: system API|@ohos.curves.d.ts| +|Access level changed|Method or attribute name: responsiveSpringMotion
Access level: public API|Method or attribute name: responsiveSpringMotion
Access level: system API|@ohos.curves.d.ts| +|Access level changed|Class name: BlurStyle
Access level: public API|Class name: BlurStyle
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: Thin
Access level: public API|Method or attribute name: Thin
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: Regular
Access level: public API|Method or attribute name: Regular
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: Thick
Access level: public API|Method or attribute name: Thick
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: backgroundBlurStyle
Access level: public API|Method or attribute name: backgroundBlurStyle
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: extendViewModel
Access level: public API|Method or attribute name: extendViewModel
Access level: system API|viewmodel.d.ts| +|Deprecated version changed|Method or attribute name: update
Deprecated version: N/A|Method or attribute name: update
Deprecated version: 9
New API: ohos.animator.reset |@ohos.animator.d.ts| +|Deprecated version changed|Method or attribute name: createAnimator
Deprecated version: N/A|Method or attribute name: createAnimator
Deprecated version: 9
New API: ohos.animator.create |@ohos.animator.d.ts| +|Deprecated version changed|Class name: prompt
Deprecated version: N/A|Class name: prompt
Deprecated version: 9
New API: ohos.promptAction |@ohos.prompt.d.ts| +|Deprecated version changed|Method or attribute name: push
Deprecated version: N/A|Method or attribute name: push
Deprecated version: 9
New API: ohos.router.router|@ohos.router.d.ts| +|Deprecated version changed|Method or attribute name: replace
Deprecated version: N/A|Method or attribute name: replace
Deprecated version: 9
New API: ohos.router.router|@ohos.router.d.ts| +|Deprecated version changed|Method or attribute name: enableAlertBeforeBackPage
Deprecated version: N/A|Method or attribute name: enableAlertBeforeBackPage
Deprecated version: 9
New API: ohos.router.router|@ohos.router.d.ts| +|Deprecated version changed|Method or attribute name: staticClear
Deprecated version: N/A|Method or attribute name: staticClear
Deprecated version: 9
New API: AppStorage.Clear |common_ts_ets_api.d.ts| +|Deprecated version changed|Method or attribute name: subTitle
Deprecated version: N/A|Method or attribute name: subTitle
Deprecated version: 9
New API: title |navigation.d.ts| +|Deprecated version changed|Method or attribute name: ructor(message
Deprecated version: N/A|Method or attribute name: ructor(message
Deprecated version: 9
New API: ohos.web.ConsoleMessage|web.d.ts| +|Deprecated version changed|Class name: WebController
Deprecated version: N/A|Class name: WebController
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController |web.d.ts| +|Deprecated version changed|Method or attribute name: onInactive
Deprecated version: N/A|Method or attribute name: onInactive
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: onActive
Deprecated version: N/A|Method or attribute name: onActive
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: zoom
Deprecated version: N/A|Method or attribute name: zoom
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: clearHistory
Deprecated version: N/A|Method or attribute name: clearHistory
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: runJavaScript
Deprecated version: N/A|Method or attribute name: runJavaScript
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: loadData
Deprecated version: N/A|Method or attribute name: loadData
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: loadUrl
Deprecated version: N/A|Method or attribute name: loadUrl
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: refresh
Deprecated version: N/A|Method or attribute name: refresh
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: stop
Deprecated version: N/A|Method or attribute name: stop
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: registerJavaScriptProxy
Deprecated version: N/A|Method or attribute name: registerJavaScriptProxy
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: deleteJavaScriptRegister
Deprecated version: N/A|Method or attribute name: deleteJavaScriptRegister
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: getHitTest
Deprecated version: N/A|Method or attribute name: getHitTest
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: requestFocus
Deprecated version: N/A|Method or attribute name: requestFocus
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: accessBackward
Deprecated version: N/A|Method or attribute name: accessBackward
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: accessForward
Deprecated version: N/A|Method or attribute name: accessForward
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: accessStep
Deprecated version: N/A|Method or attribute name: accessStep
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: backward
Deprecated version: N/A|Method or attribute name: backward
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: forward
Deprecated version: N/A|Method or attribute name: forward
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Initial version changed|Method or attribute name: extendViewModel
Initial version: |Method or attribute name: extendViewModel
Initial version: 4|viewmodel.d.ts| +|Access level changed|Method or attribute name: springMotion
Access level: public API|Method or attribute name: springMotion
Access level: system API|@ohos.curves.d.ts| +|Access level changed|Method or attribute name: responsiveSpringMotion
Access level: public API|Method or attribute name: responsiveSpringMotion
Access level: system API|@ohos.curves.d.ts| +|Access level changed|Class name: BlurStyle
Access level: public API|Class name: BlurStyle
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: Thin
Access level: public API|Method or attribute name: Thin
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: Regular
Access level: public API|Method or attribute name: Regular
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: Thick
Access level: public API|Method or attribute name: Thick
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: backgroundBlurStyle
Access level: public API|Method or attribute name: backgroundBlurStyle
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: extendViewModel
Access level: public API|Method or attribute name: extendViewModel
Access level: system API|viewmodel.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-battery.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-battery.md new file mode 100644 index 0000000000000000000000000000000000000000..5a64b73afc104608ed9bef532f31bfbfee8c838a --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-battery.md @@ -0,0 +1,75 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.power
Class name: power
Method or attribute name: shutdown|@ohos.power.d.ts| +|Added||Module name: ohos.power
Class name: power
Method or attribute name: reboot|@ohos.power.d.ts| +|Added||Module name: ohos.power
Class name: power
Method or attribute name: isActive|@ohos.power.d.ts| +|Added||Module name: ohos.power
Class name: power
Method or attribute name: wakeup|@ohos.power.d.ts| +|Added||Module name: ohos.power
Class name: power
Method or attribute name: suspend|@ohos.power.d.ts| +|Added||Method or attribute name: getPowerMode
Function name: function getPowerMode(): DevicePowerMode;|@ohos.power.d.ts| +|Added||Module name: ohos.runningLock
Class name: RunningLock
Method or attribute name: hold|@ohos.runningLock.d.ts| +|Added||Module name: ohos.runningLock
Class name: RunningLock
Method or attribute name: isHolding|@ohos.runningLock.d.ts| +|Added||Module name: ohos.runningLock
Class name: RunningLock
Method or attribute name: unhold|@ohos.runningLock.d.ts| +|Added||Module name: ohos.runningLock
Class name: runningLock
Method or attribute name: isSupported|@ohos.runningLock.d.ts| +|Added||Module name: ohos.runningLock
Class name: runningLock
Method or attribute name: create|@ohos.runningLock.d.ts| +|Added||Module name: ohos.runningLock
Class name: runningLock
Method or attribute name: create|@ohos.runningLock.d.ts| +|Added||Module name: ohos.thermal
Class name: thermal
Method or attribute name: registerThermalLevelCallback|@ohos.thermal.d.ts| +|Added||Module name: ohos.thermal
Class name: thermal
Method or attribute name: unregisterThermalLevelCallback|@ohos.thermal.d.ts| +|Added||Module name: ohos.thermal
Class name: thermal
Method or attribute name: getLevel|@ohos.thermal.d.ts| +|Deleted|Module name: ohos.power
Class name: power
Method or attribute name: shutdownDevice||@ohos.power.d.ts| +|Deleted|Module name: ohos.power
Class name: power
Method or attribute name: wakeupDevice||@ohos.power.d.ts| +|Deleted|Module name: ohos.power
Class name: power
Method or attribute name: suspendDevice||@ohos.power.d.ts| +|Deprecated version changed|Method or attribute name: rebootDevice
Deprecated version: N/A|Method or attribute name: rebootDevice
Deprecated version: 9
New API: {@link power|@ohos.power.d.ts| +|Deprecated version changed|Method or attribute name: isScreenOn
Deprecated version: N/A|Method or attribute name: isScreenOn
Deprecated version: 9
New API: {@link power|@ohos.power.d.ts| +|Deprecated version changed|Method or attribute name: isScreenOn
Deprecated version: N/A|Method or attribute name: isScreenOn
Deprecated version: 9|@ohos.power.d.ts| +|Deprecated version changed|Method or attribute name: lock
Deprecated version: N/A|Method or attribute name: lock
Deprecated version: 9
New API: {@link RunningLock|@ohos.runningLock.d.ts| +|Deprecated version changed|Method or attribute name: isUsed
Deprecated version: N/A|Method or attribute name: isUsed
Deprecated version: 9
New API: {@link RunningLock|@ohos.runningLock.d.ts| +|Deprecated version changed|Method or attribute name: unlock
Deprecated version: N/A|Method or attribute name: unlock
Deprecated version: 9
New API: {@link RunningLock|@ohos.runningLock.d.ts| +|Deprecated version changed|Method or attribute name: isRunningLockTypeSupported
Deprecated version: N/A|Method or attribute name: isRunningLockTypeSupported
Deprecated version: 9
New API: {@link RunningLock|@ohos.runningLock.d.ts| +|Deprecated version changed|Method or attribute name: isRunningLockTypeSupported
Deprecated version: N/A|Method or attribute name: isRunningLockTypeSupported
Deprecated version: 9|@ohos.runningLock.d.ts| +|Deprecated version changed|Method or attribute name: createRunningLock
Deprecated version: N/A|Method or attribute name: createRunningLock
Deprecated version: 9
New API: {@link RunningLock|@ohos.runningLock.d.ts| +|Deprecated version changed|Method or attribute name: createRunningLock
Deprecated version: N/A|Method or attribute name: createRunningLock
Deprecated version: 9|@ohos.runningLock.d.ts| +|Deprecated version changed|Method or attribute name: subscribeThermalLevel
Deprecated version: N/A|Method or attribute name: subscribeThermalLevel
Deprecated version: 9
New API: {@link thermal|@ohos.thermal.d.ts| +|Deprecated version changed|Method or attribute name: unsubscribeThermalLevel
Deprecated version: N/A|Method or attribute name: unsubscribeThermalLevel
Deprecated version: 9
New API: {@link thermal|@ohos.thermal.d.ts| +|Deprecated version changed|Method or attribute name: getThermalLevel
Deprecated version: N/A|Method or attribute name: getThermalLevel
Deprecated version: 9
New API: {@link thermal|@ohos.thermal.d.ts| +|Deprecated version changed|Class name: BatteryResponse
Deprecated version: 9|Class name: BatteryResponse
Deprecated version: 6|@system.battery.d.ts| +|Deprecated version changed|Method or attribute name: charging
Deprecated version: 9|Method or attribute name: charging
Deprecated version: 6|@system.battery.d.ts| +|Deprecated version changed|Method or attribute name: level
Deprecated version: 9|Method or attribute name: level
Deprecated version: 6|@system.battery.d.ts| +|Deprecated version changed|Class name: GetStatusOptions
Deprecated version: 9|Class name: GetStatusOptions
Deprecated version: 6|@system.battery.d.ts| +|Deprecated version changed|Method or attribute name: success
Deprecated version: 9|Method or attribute name: success
Deprecated version: 6|@system.battery.d.ts| +|Deprecated version changed|Method or attribute name: fail
Deprecated version: 9|Method or attribute name: fail
Deprecated version: 6|@system.battery.d.ts| +|Deprecated version changed|Method or attribute name: complete
Deprecated version: 9|Method or attribute name: complete
Deprecated version: 6|@system.battery.d.ts| +|Deprecated version changed|Class name: Battery
Deprecated version: 9|Class name: Battery
Deprecated version: 6|@system.battery.d.ts| +|Deprecated version changed|Method or attribute name: getStatus
Deprecated version: 9|Method or attribute name: getStatus
Deprecated version: 6|@system.battery.d.ts| +|Deprecated version changed|Class name: BrightnessResponse
Deprecated version: 9|Class name: BrightnessResponse
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: value
Deprecated version: 9|Method or attribute name: value
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Class name: GetBrightnessOptions
Deprecated version: 9|Class name: GetBrightnessOptions
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: success
Deprecated version: 9|Method or attribute name: success
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: fail
Deprecated version: 9|Method or attribute name: fail
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: complete
Deprecated version: 9|Method or attribute name: complete
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Class name: SetBrightnessOptions
Deprecated version: 9|Class name: SetBrightnessOptions
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: value
Deprecated version: 9|Method or attribute name: value
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: success
Deprecated version: 9|Method or attribute name: success
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: fail
Deprecated version: 9|Method or attribute name: fail
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: complete
Deprecated version: 9|Method or attribute name: complete
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Class name: BrightnessModeResponse
Deprecated version: 9|Class name: BrightnessModeResponse
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: mode
Deprecated version: 9|Method or attribute name: mode
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Class name: GetBrightnessModeOptions
Deprecated version: 9|Class name: GetBrightnessModeOptions
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: success
Deprecated version: 9|Method or attribute name: success
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: fail
Deprecated version: 9|Method or attribute name: fail
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: complete
Deprecated version: 9|Method or attribute name: complete
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Class name: SetBrightnessModeOptions
Deprecated version: 9|Class name: SetBrightnessModeOptions
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: mode
Deprecated version: 9|Method or attribute name: mode
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: success
Deprecated version: 9|Method or attribute name: success
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: fail
Deprecated version: 9|Method or attribute name: fail
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: complete
Deprecated version: 9|Method or attribute name: complete
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Class name: SetKeepScreenOnOptions
Deprecated version: 9|Class name: SetKeepScreenOnOptions
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: keepScreenOn
Deprecated version: 9|Method or attribute name: keepScreenOn
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: success
Deprecated version: 9|Method or attribute name: success
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: fail
Deprecated version: 9|Method or attribute name: fail
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: complete
Deprecated version: 9|Method or attribute name: complete
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Class name: Brightness
Deprecated version: 9|Class name: Brightness
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: getValue
Deprecated version: 9|Method or attribute name: getValue
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: setValue
Deprecated version: 9|Method or attribute name: setValue
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: getMode
Deprecated version: 9|Method or attribute name: getMode
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: setMode
Deprecated version: 9|Method or attribute name: setMode
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: setKeepScreenOn
Deprecated version: 9|Method or attribute name: setKeepScreenOn
Deprecated version: 7|@system.brightness.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-bundle.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-bundle.md new file mode 100644 index 0000000000000000000000000000000000000000..d69e86233f8fc50471910d95003caaf79e8c9d63 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-bundle.md @@ -0,0 +1,385 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.bundle.appControl
Class name: appControl|@ohos.bundle.appControl.d.ts| +|Added||Module name: ohos.bundle.appControl
Class name: appControl
Method or attribute name: setDisposedStatus|@ohos.bundle.appControl.d.ts| +|Added||Module name: ohos.bundle.appControl
Class name: appControl
Method or attribute name: setDisposedStatus|@ohos.bundle.appControl.d.ts| +|Added||Module name: ohos.bundle.appControl
Class name: appControl
Method or attribute name: getDisposedStatus|@ohos.bundle.appControl.d.ts| +|Added||Module name: ohos.bundle.appControl
Class name: appControl
Method or attribute name: getDisposedStatus|@ohos.bundle.appControl.d.ts| +|Added||Module name: ohos.bundle.appControl
Class name: appControl
Method or attribute name: deleteDisposedStatus|@ohos.bundle.appControl.d.ts| +|Added||Module name: ohos.bundle.appControl
Class name: appControl
Method or attribute name: deleteDisposedStatus|@ohos.bundle.appControl.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_INFO_WITH_APPLICATION|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_INFO_WITH_HAP_MODULE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_INFO_WITH_ABILITY|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_INFO_WITH_REQUESTED_PERMISSION|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_INFO_WITH_DISABLE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_INFO_WITH_SIGNATURE_INFO|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ApplicationFlag|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ApplicationFlag
Method or attribute name: GET_APPLICATION_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ApplicationFlag
Method or attribute name: GET_APPLICATION_INFO_WITH_PERMISSION|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ApplicationFlag
Method or attribute name: GET_APPLICATION_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ApplicationFlag
Method or attribute name: GET_APPLICATION_INFO_WITH_DISABLE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityFlag|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityFlag
Method or attribute name: GET_ABILITY_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityFlag
Method or attribute name: GET_ABILITY_INFO_WITH_PERMISSION|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityFlag
Method or attribute name: GET_ABILITY_INFO_WITH_APPLICATION|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityFlag
Method or attribute name: GET_ABILITY_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityFlag
Method or attribute name: GET_ABILITY_INFO_WITH_DISABLE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityFlag
Method or attribute name: GET_ABILITY_INFO_ONLY_SYSTEM_APP|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityFlag|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityFlag
Method or attribute name: GET_EXTENSION_ABILITY_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityFlag
Method or attribute name: GET_EXTENSION_ABILITY_INFO_WITH_PERMISSION|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityFlag
Method or attribute name: GET_EXTENSION_ABILITY_INFO_WITH_APPLICATION|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityFlag
Method or attribute name: GET_EXTENSION_ABILITY_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: FORM|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: WORK_SCHEDULER|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: INPUT_METHOD|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: SERVICE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: ACCESSIBILITY|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: DATA_SHARE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: FILE_SHARE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: STATIC_SUBSCRIBER|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: WALLPAPER|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: BACKUP|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: WINDOW|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: ENTERPRISE_ADMIN|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: THUMBNAIL|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: PREVIEW|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: UNSPECIFIED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: PermissionGrantState|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: PermissionGrantState
Method or attribute name: PERMISSION_DENIED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: PermissionGrantState
Method or attribute name: PERMISSION_GRANTED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: SupportWindowMode|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: SupportWindowMode
Method or attribute name: FULL_SCREEN|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: SupportWindowMode
Method or attribute name: SPLIT|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: SupportWindowMode
Method or attribute name: FLOATING|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: LaunchType|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: LaunchType
Method or attribute name: SINGLETON|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: LaunchType
Method or attribute name: STANDARD|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: LaunchType
Method or attribute name: SPECIFIED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityType|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityType
Method or attribute name: PAGE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityType
Method or attribute name: SERVICE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityType
Method or attribute name: DATA|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: UNSPECIFIED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: LANDSCAPE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: PORTRAIT|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: FOLLOW_RECENT|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: LANDSCAPE_INVERTED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: PORTRAIT_INVERTED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_LANDSCAPE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_PORTRAIT|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_RESTRICTED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_LANDSCAPE_RESTRICTED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_PORTRAIT_RESTRICTED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: LOCKED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleInfoForSelf|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleInfoForSelf|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAllBundleInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAllBundleInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAllBundleInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAllApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAllApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAllApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: queryAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: queryAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: queryAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: queryExtensionAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: queryExtensionAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: queryExtensionAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleNameByUid|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleNameByUid|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleArchiveInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleArchiveInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: cleanBundleCacheFiles|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: cleanBundleCacheFiles|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: setApplicationEnabled|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: setApplicationEnabled|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: setAbilityEnabled|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: setAbilityEnabled|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: isApplicationEnabled|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: isApplicationEnabled|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: isAbilityEnabled|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: isAbilityEnabled|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getLaunchWantForBundle|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getLaunchWantForBundle|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getLaunchWantForBundle|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getProfileByAbility|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getProfileByAbility|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getProfileByExtensionAbility|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getProfileByExtensionAbility|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getPermissionDef|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getPermissionDef|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAbilityLabel|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAbilityLabel|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAbilityIcon|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAbilityIcon|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getApplicationInfoSync|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getApplicationInfoSync|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleInfoSync|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleInfoSync|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: bundleMonitor|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: BundleChangedInfo|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: BundleChangedInfo
Method or attribute name: bundleName|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: BundleChangedInfo
Method or attribute name: userId|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: bundleMonitor
Method or attribute name: on_add|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: bundleMonitor
Method or attribute name: on_update|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: bundleMonitor
Method or attribute name: on_remove|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: bundleMonitor
Method or attribute name: off_add|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: bundleMonitor
Method or attribute name: off_update|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: bundleMonitor
Method or attribute name: off_remove|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.defaultAppManager
Class name: ApplicationType|@ohos.bundle.defaultAppManager.d.ts| +|Added||Method or attribute name: BROWSER
Function name: BROWSER = "Web Browser"|@ohos.bundle.defaultAppManager.d.ts| +|Added||Method or attribute name: IMAGE
Function name: IMAGE = "Image Gallery"|@ohos.bundle.defaultAppManager.d.ts| +|Added||Method or attribute name: AUDIO
Function name: AUDIO = "Audio Player"|@ohos.bundle.defaultAppManager.d.ts| +|Added||Method or attribute name: VIDEO
Function name: VIDEO = "Video Player"|@ohos.bundle.defaultAppManager.d.ts| +|Added||Method or attribute name: PDF
Function name: PDF = "PDF Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|Added||Method or attribute name: WORD
Function name: WORD = "Word Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|Added||Method or attribute name: EXCEL
Function name: EXCEL = "Excel Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|Added||Method or attribute name: PPT
Function name: PPT = "PPT Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|Added||Module name: ohos.bundle.distributedBundle
Class name: distributedBundle|@ohos.bundle.distributedBundle.d.ts| +|Added||Module name: ohos.bundle.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|Added||Module name: ohos.bundle.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|Added||Module name: ohos.bundle.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|Added||Module name: ohos.bundle.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|Added||Module name: ohos.bundle.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|Added||Module name: ohos.bundle.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|Added||Module name: ohos.bundle.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|Added||Module name: ohos.bundle.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: freeInstall|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: UpgradeFlag|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: UpgradeFlag
Method or attribute name: NOT_UPGRADE|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: UpgradeFlag
Method or attribute name: SINGLE_UPGRADE|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: UpgradeFlag
Method or attribute name: RELATION_UPGRADE|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: BundlePackFlag|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: BundlePackFlag
Method or attribute name: GET_PACK_INFO_ALL|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: BundlePackFlag
Method or attribute name: GET_PACKAGES|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: BundlePackFlag
Method or attribute name: GET_BUNDLE_SUMMARY|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: BundlePackFlag
Method or attribute name: GET_MODULE_SUMMARY|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: freeInstall
Method or attribute name: setHapModuleUpgradeFlag|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: freeInstall
Method or attribute name: setHapModuleUpgradeFlag|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: freeInstall
Method or attribute name: isHapModuleRemovable|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: freeInstall
Method or attribute name: isHapModuleRemovable|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: freeInstall
Method or attribute name: getBundlePackInfo|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: freeInstall
Method or attribute name: getBundlePackInfo|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: freeInstall
Method or attribute name: getDispatchInfo|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: freeInstall
Method or attribute name: getDispatchInfo|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: installer|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: installer
Method or attribute name: getBundleInstaller|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: installer
Method or attribute name: getBundleInstaller|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: BundleInstaller|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: BundleInstaller
Method or attribute name: install|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: BundleInstaller
Method or attribute name: uninstall|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: BundleInstaller
Method or attribute name: recover|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: HashParam|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: HashParam
Method or attribute name: moduleName|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: HashParam
Method or attribute name: hashValue|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: InstallParam|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: InstallParam
Method or attribute name: userId|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: InstallParam
Method or attribute name: installFlag|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: InstallParam
Method or attribute name: isKeepData|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: InstallParam
Method or attribute name: hashParams|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: InstallParam
Method or attribute name: crowdtestDeadline|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.launcherBundleManager
Class name: launcherBundleManager|@ohos.bundle.launcherBundleManager.d.ts| +|Added||Module name: ohos.bundle.launcherBundleManager
Class name: launcherBundleManager
Method or attribute name: getLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| +|Added||Module name: ohos.bundle.launcherBundleManager
Class name: launcherBundleManager
Method or attribute name: getLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| +|Added||Module name: ohos.bundle.launcherBundleManager
Class name: launcherBundleManager
Method or attribute name: getAllLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| +|Added||Module name: ohos.bundle.launcherBundleManager
Class name: launcherBundleManager
Method or attribute name: getAllLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| +|Added||Module name: ohos.bundle.launcherBundleManager
Class name: launcherBundleManager
Method or attribute name: getShortcutInfo|@ohos.bundle.launcherBundleManager.d.ts| +|Added||Module name: ohos.bundle.launcherBundleManager
Class name: launcherBundleManager
Method or attribute name: getShortcutInfo|@ohos.bundle.launcherBundleManager.d.ts| +|Added||Module name: ohos.zlib
Class name: zlib
Method or attribute name: compressFile|@ohos.zlib.d.ts| +|Added||Module name: ohos.zlib
Class name: zlib
Method or attribute name: compressFile|@ohos.zlib.d.ts| +|Added||Module name: ohos.zlib
Class name: zlib
Method or attribute name: decompressFile|@ohos.zlib.d.ts| +|Added||Module name: ohos.zlib
Class name: zlib
Method or attribute name: decompressFile|@ohos.zlib.d.ts| +|Added||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: type|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: orientation|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: launchType|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: supportWindowModes|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: windowSize|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: WindowSize|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: WindowSize
Method or attribute name: maxWindowRatio|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: WindowSize
Method or attribute name: minWindowRatio|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: WindowSize
Method or attribute name: maxWindowWidth|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: WindowSize
Method or attribute name: minWindowWidth|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: WindowSize
Method or attribute name: maxWindowHeight|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: WindowSize
Method or attribute name: minWindowHeight|abilityInfo.d.ts| +|Added||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: labelId|applicationInfo.d.ts| +|Added||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: iconId|applicationInfo.d.ts| +|Added||Module name: bundleInfo
Class name: BundleInfo
Method or attribute name: hapModulesInfo|bundleInfo.d.ts| +|Added||Module name: bundleInfo
Class name: BundleInfo
Method or attribute name: permissionGrantStates|bundleInfo.d.ts| +|Added||Module name: bundleInfo
Class name: BundleInfo
Method or attribute name: signatureInfo|bundleInfo.d.ts| +|Added||Module name: bundleInfo
Class name: SignatureInfo|bundleInfo.d.ts| +|Added||Module name: bundleInfo
Class name: SignatureInfo
Method or attribute name: appId|bundleInfo.d.ts| +|Added||Module name: bundleInfo
Class name: SignatureInfo
Method or attribute name: fingerprint|bundleInfo.d.ts| +|Added||Module name: dispatchInfo
Class name: DispatchInfo
Method or attribute name: dispatchAPIVersion|dispatchInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: extensionAbilityType|extensionAbilityInfo.d.ts| +|Added||Module name: hapModuleInfo
Class name: HapModuleInfo
Method or attribute name: abilitiesInfo|hapModuleInfo.d.ts| +|Added||Module name: hapModuleInfo
Class name: HapModuleInfo
Method or attribute name: extensionAbilitiesInfo|hapModuleInfo.d.ts| +|Added||Module name: hapModuleInfo
Class name: HapModuleInfo
Method or attribute name: moduleSourceDir|hapModuleInfo.d.ts| +|Added||Module name: packInfo
Class name: PackageConfig
Method or attribute name: deviceTypes|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ExtensionAbility|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ExtensionAbility
Method or attribute name: name|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ExtensionAbility
Method or attribute name: forms|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleConfigInfo
Method or attribute name: mainAbility|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleConfigInfo
Method or attribute name: deviceTypes|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleConfigInfo
Method or attribute name: extensionAbilities|packInfo.d.ts| +|Added||Module name: packInfo
Class name: AbilityFormInfo
Method or attribute name: supportDimensions|packInfo.d.ts| +|Added||Module name: packInfo
Class name: AbilityFormInfo
Method or attribute name: defaultDimension|packInfo.d.ts| +|Added||Module name: permissionDef
Class name: PermissionDef|permissionDef.d.ts| +|Added||Module name: permissionDef
Class name: PermissionDef
Method or attribute name: permissionName|permissionDef.d.ts| +|Added||Module name: permissionDef
Class name: PermissionDef
Method or attribute name: grantMode|permissionDef.d.ts| +|Added||Module name: permissionDef
Class name: PermissionDef
Method or attribute name: labelId|permissionDef.d.ts| +|Added||Module name: permissionDef
Class name: PermissionDef
Method or attribute name: descriptionId|permissionDef.d.ts| +|Added||Module name: shortcutInfo
Class name: ShortcutInfo
Method or attribute name: moduleName|shortcutInfo.d.ts| +|Added||Module name: shortcutInfo
Class name: ShortcutWant
Method or attribute name: targetAbility|shortcutInfo.d.ts| +|Deprecated version changed|Class name: bundle
Deprecated version: N/A|Class name: bundle
Deprecated version: 9
New API: ohos.bundle.bundleManager |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: BundleFlag
Deprecated version: N/A|Class name: BundleFlag
Deprecated version: 9
New API: ohos.bundle.bundleManager.BundleFlag|@ohos.bundle.d.ts| +|Deprecated version changed|Class name: ExtensionFlag
Deprecated version: N/A|Class name: ExtensionFlag
Deprecated version: 9
New API: ohos.bundle.bundleManager.ExtensionAbilityFlag |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: ColorMode
Deprecated version: N/A|Class name: ColorMode
Deprecated version: 9
New API: ohos.bundle.bundleManager |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: GrantStatus
Deprecated version: N/A|Class name: GrantStatus
Deprecated version: 9
New API: bundleInfo.PermissionGrantStatus |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: AbilityType
Deprecated version: N/A|Class name: AbilityType
Deprecated version: 9
New API: abilityInfo.AbilityType |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: AbilitySubType
Deprecated version: N/A|Class name: AbilitySubType
Deprecated version: 9
New API: ohos.bundle.bundleManager |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: DisplayOrientation
Deprecated version: N/A|Class name: DisplayOrientation
Deprecated version: 9
New API: abilityInfo.DisplayOrientation |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: LaunchMode
Deprecated version: N/A|Class name: LaunchMode
Deprecated version: 9
New API: bundleManager/AbilityInfo.LaunchType |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: ExtensionAbilityType
Deprecated version: N/A|Class name: ExtensionAbilityType
Deprecated version: 9
New API: bundleManager/ExtensionAbilityInfo.ExtensionAbilityType |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: BundleOptions
Deprecated version: N/A|Class name: BundleOptions
Deprecated version: 9
New API: ohos.bundle.bundleManager |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: InstallErrorCode
Deprecated version: N/A|Class name: InstallErrorCode
Deprecated version: 9
New API: ohos.bundle.bundleManager |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: UpgradeFlag
Deprecated version: N/A|Class name: UpgradeFlag
Deprecated version: 9
New API: ohos.bundle.freeInstall|@ohos.bundle.d.ts| +|Deprecated version changed|Class name: SupportWindowMode
Deprecated version: N/A|Class name: SupportWindowMode
Deprecated version: 9
New API: bundleManager/AbilityInfo.SupportWindowMode |@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getBundleInfo
Deprecated version: N/A|Method or attribute name: getBundleInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getBundleInfo
Deprecated version: N/A|Method or attribute name: getBundleInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getBundleInfo
Deprecated version: N/A|Method or attribute name: getBundleInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getBundleInstaller
Deprecated version: N/A|Method or attribute name: getBundleInstaller
Deprecated version: 9
New API: ohos.bundle.installer|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getBundleInstaller
Deprecated version: N/A|Method or attribute name: getBundleInstaller
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityInfo
Deprecated version: N/A|Method or attribute name: getAbilityInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityInfo
Deprecated version: N/A|Method or attribute name: getAbilityInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getApplicationInfo
Deprecated version: N/A|Method or attribute name: getApplicationInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getApplicationInfo
Deprecated version: N/A|Method or attribute name: getApplicationInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getApplicationInfo
Deprecated version: N/A|Method or attribute name: getApplicationInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: queryAbilityByWant
Deprecated version: N/A|Method or attribute name: queryAbilityByWant
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: queryAbilityByWant
Deprecated version: N/A|Method or attribute name: queryAbilityByWant
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: queryAbilityByWant
Deprecated version: N/A|Method or attribute name: queryAbilityByWant
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAllBundleInfo
Deprecated version: N/A|Method or attribute name: getAllBundleInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAllBundleInfo
Deprecated version: N/A|Method or attribute name: getAllBundleInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAllBundleInfo
Deprecated version: N/A|Method or attribute name: getAllBundleInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAllApplicationInfo
Deprecated version: N/A|Method or attribute name: getAllApplicationInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAllApplicationInfo
Deprecated version: N/A|Method or attribute name: getAllApplicationInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAllApplicationInfo
Deprecated version: N/A|Method or attribute name: getAllApplicationInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getNameForUid
Deprecated version: N/A|Method or attribute name: getNameForUid
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getNameForUid
Deprecated version: N/A|Method or attribute name: getNameForUid
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getBundleArchiveInfo
Deprecated version: N/A|Method or attribute name: getBundleArchiveInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getBundleArchiveInfo
Deprecated version: N/A|Method or attribute name: getBundleArchiveInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getLaunchWantForBundle
Deprecated version: N/A|Method or attribute name: getLaunchWantForBundle
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getLaunchWantForBundle
Deprecated version: N/A|Method or attribute name: getLaunchWantForBundle
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: cleanBundleCacheFiles
Deprecated version: N/A|Method or attribute name: cleanBundleCacheFiles
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: cleanBundleCacheFiles
Deprecated version: N/A|Method or attribute name: cleanBundleCacheFiles
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: setApplicationEnabled
Deprecated version: N/A|Method or attribute name: setApplicationEnabled
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: setApplicationEnabled
Deprecated version: N/A|Method or attribute name: setApplicationEnabled
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: setAbilityEnabled
Deprecated version: N/A|Method or attribute name: setAbilityEnabled
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: setAbilityEnabled
Deprecated version: N/A|Method or attribute name: setAbilityEnabled
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: queryExtensionAbilityInfos
Deprecated version: N/A|Method or attribute name: queryExtensionAbilityInfos
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: queryExtensionAbilityInfos
Deprecated version: N/A|Method or attribute name: queryExtensionAbilityInfos
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: queryExtensionAbilityInfos
Deprecated version: N/A|Method or attribute name: queryExtensionAbilityInfos
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getPermissionDef
Deprecated version: N/A|Method or attribute name: getPermissionDef
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getPermissionDef
Deprecated version: N/A|Method or attribute name: getPermissionDef
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityLabel
Deprecated version: N/A|Method or attribute name: getAbilityLabel
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityLabel
Deprecated version: N/A|Method or attribute name: getAbilityLabel
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityIcon
Deprecated version: N/A|Method or attribute name: getAbilityIcon
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityIcon
Deprecated version: N/A|Method or attribute name: getAbilityIcon
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: isAbilityEnabled
Deprecated version: N/A|Method or attribute name: isAbilityEnabled
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: isAbilityEnabled
Deprecated version: N/A|Method or attribute name: isAbilityEnabled
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: isApplicationEnabled
Deprecated version: N/A|Method or attribute name: isApplicationEnabled
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: isApplicationEnabled
Deprecated version: N/A|Method or attribute name: isApplicationEnabled
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: setModuleUpgradeFlag
Deprecated version: N/A|Method or attribute name: setModuleUpgradeFlag
Deprecated version: 9
New API: ohos.bundle.freeInstall|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: setModuleUpgradeFlag
Deprecated version: N/A|Method or attribute name: setModuleUpgradeFlag
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: isModuleRemovable
Deprecated version: N/A|Method or attribute name: isModuleRemovable
Deprecated version: 9
New API: ohos.bundle.freeInstall|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: isModuleRemovable
Deprecated version: N/A|Method or attribute name: isModuleRemovable
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getBundlePackInfo
Deprecated version: N/A|Method or attribute name: getBundlePackInfo
Deprecated version: 9
New API: ohos.bundle.freeInstall|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getBundlePackInfo
Deprecated version: N/A|Method or attribute name: getBundlePackInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityInfo
Deprecated version: N/A|Method or attribute name: getAbilityInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityInfo
Deprecated version: N/A|Method or attribute name: getAbilityInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getDispatcherVersion
Deprecated version: N/A|Method or attribute name: getDispatcherVersion
Deprecated version: 9
New API: ohos.bundle.freeInstall|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getDispatcherVersion
Deprecated version: N/A|Method or attribute name: getDispatcherVersion
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityLabel
Deprecated version: N/A|Method or attribute name: getAbilityLabel
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityLabel
Deprecated version: N/A|Method or attribute name: getAbilityLabel
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityIcon
Deprecated version: N/A|Method or attribute name: getAbilityIcon
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityIcon
Deprecated version: N/A|Method or attribute name: getAbilityIcon
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getProfileByAbility
Deprecated version: N/A|Method or attribute name: getProfileByAbility
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getProfileByAbility
Deprecated version: N/A|Method or attribute name: getProfileByAbility
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getProfileByExtensionAbility
Deprecated version: N/A|Method or attribute name: getProfileByExtensionAbility
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getProfileByExtensionAbility
Deprecated version: N/A|Method or attribute name: getProfileByExtensionAbility
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: setDisposedStatus
Deprecated version: N/A|Method or attribute name: setDisposedStatus
Deprecated version: 9
New API: ohos.bundle.appControl|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: setDisposedStatus
Deprecated version: N/A|Method or attribute name: setDisposedStatus
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getDisposedStatus
Deprecated version: N/A|Method or attribute name: getDisposedStatus
Deprecated version: 9
New API: ohos.bundle.appControl|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getDisposedStatus
Deprecated version: N/A|Method or attribute name: getDisposedStatus
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getApplicationInfoSync
Deprecated version: N/A|Method or attribute name: getApplicationInfoSync
Deprecated version: 9
New API: ohos.bundle.appControl|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getApplicationInfoSync
Deprecated version: N/A|Method or attribute name: getApplicationInfoSync
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getBundleInfoSync
Deprecated version: N/A|Method or attribute name: getBundleInfoSync
Deprecated version: 9
New API: ohos.bundle.appControl|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getBundleInfoSync
Deprecated version: N/A|Method or attribute name: getBundleInfoSync
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getLauncherAbilityInfos
Deprecated version: N/A|Method or attribute name: getLauncherAbilityInfos
Deprecated version: 9
New API: ohos.bundle.launcherBundleManager|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: getLauncherAbilityInfos
Deprecated version: N/A|Method or attribute name: getLauncherAbilityInfos
Deprecated version: 9|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: on_BundleStatusChange
Deprecated version: N/A|Method or attribute name: on_BundleStatusChange
Deprecated version: 9
New API: ohos.bundle.bundleMonitor|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: on_BundleStatusChange
Deprecated version: N/A|Method or attribute name: on_BundleStatusChange
Deprecated version: 9|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: off_BundleStatusChange
Deprecated version: N/A|Method or attribute name: off_BundleStatusChange
Deprecated version: 9
New API: ohos.bundle.bundleMonitor|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: off_BundleStatusChange
Deprecated version: N/A|Method or attribute name: off_BundleStatusChange
Deprecated version: 9|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: getAllLauncherAbilityInfos
Deprecated version: N/A|Method or attribute name: getAllLauncherAbilityInfos
Deprecated version: 9
New API: ohos.bundle.launcherBundleManager|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: getAllLauncherAbilityInfos
Deprecated version: N/A|Method or attribute name: getAllLauncherAbilityInfos
Deprecated version: 9|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: getShortcutInfos
Deprecated version: N/A|Method or attribute name: getShortcutInfos
Deprecated version: 9
New API: ohos.bundle.launcherBundleManager|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: getShortcutInfos
Deprecated version: N/A|Method or attribute name: getShortcutInfos
Deprecated version: 9|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Class name: distributedBundle
Deprecated version: N/A|Class name: distributedBundle
Deprecated version: 9
New API: ohos.bundle.distributeBundle |@ohos.distributedBundle.d.ts| +|Deprecated version changed|Method or attribute name: getRemoteAbilityInfo
Deprecated version: N/A|Method or attribute name: getRemoteAbilityInfo
Deprecated version: 9
New API: ohos.bundle.distributeBundle|@ohos.distributedBundle.d.ts| +|Deprecated version changed|Method or attribute name: getRemoteAbilityInfo
Deprecated version: N/A|Method or attribute name: getRemoteAbilityInfo
Deprecated version: 9|@ohos.distributedBundle.d.ts| +|Deprecated version changed|Method or attribute name: getRemoteAbilityInfos
Deprecated version: N/A|Method or attribute name: getRemoteAbilityInfos
Deprecated version: 9
New API: ohos.bundle.distributeBundle|@ohos.distributedBundle.d.ts| +|Deprecated version changed|Method or attribute name: getRemoteAbilityInfos
Deprecated version: N/A|Method or attribute name: getRemoteAbilityInfos
Deprecated version: 9|@ohos.distributedBundle.d.ts| +|Deprecated version changed|Class name: ErrorCode
Deprecated version: N/A|Class name: ErrorCode
Deprecated version: 9|@ohos.zlib.d.ts| +|Deprecated version changed|Method or attribute name: zipFile
Deprecated version: N/A|Method or attribute name: zipFile
Deprecated version: 9
New API: ohos.zlib|@ohos.zlib.d.ts| +|Deprecated version changed|Method or attribute name: unzipFile
Deprecated version: N/A|Method or attribute name: unzipFile
Deprecated version: 9
New API: ohos.zlib|@ohos.zlib.d.ts| +|Deprecated version changed|Class name: AbilityInfo
Deprecated version: N/A|Class name: AbilityInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager.AbilityInfo |abilityInfo.d.ts| +|Deprecated version changed|Class name: ApplicationInfo
Deprecated version: N/A|Class name: ApplicationInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager.ApplicationInfo |applicationInfo.d.ts| +|Deprecated version changed|Class name: UsedScene
Deprecated version: N/A|Class name: UsedScene
Deprecated version: 9
New API: ohos.bundle.bundleManager.UsedScene |bundleInfo.d.ts| +|Deprecated version changed|Class name: ReqPermissionDetail
Deprecated version: N/A|Class name: ReqPermissionDetail
Deprecated version: 9
New API: ohos.bundle.bundleManager.ReqPermissionDetail |bundleInfo.d.ts| +|Deprecated version changed|Class name: BundleInfo
Deprecated version: N/A|Class name: BundleInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager.BundleInfo |bundleInfo.d.ts| +|Deprecated version changed|Class name: InstallParam
Deprecated version: N/A|Class name: InstallParam
Deprecated version: 9
New API: ohos.bundle.installer|bundleInstaller.d.ts| +|Deprecated version changed|Method or attribute name: userId
Deprecated version: N/A|Method or attribute name: userId
Deprecated version: 9
New API: ohos.bundle.installer.InstallParam|bundleInstaller.d.ts| +|Deprecated version changed|Method or attribute name: installFlag
Deprecated version: N/A|Method or attribute name: installFlag
Deprecated version: 9
New API: ohos.bundle.installer.InstallParam|bundleInstaller.d.ts| +|Deprecated version changed|Method or attribute name: isKeepData
Deprecated version: N/A|Method or attribute name: isKeepData
Deprecated version: 9
New API: ohos.bundle.installer.InstallParam|bundleInstaller.d.ts| +|Deprecated version changed|Class name: InstallStatus
Deprecated version: N/A|Class name: InstallStatus
Deprecated version: 9|bundleInstaller.d.ts| +|Deprecated version changed|Method or attribute name: status
Deprecated version: N/A|Method or attribute name: status
Deprecated version: 9|bundleInstaller.d.ts| +|Deprecated version changed|Method or attribute name: statusMessage
Deprecated version: N/A|Method or attribute name: statusMessage
Deprecated version: 9|bundleInstaller.d.ts| +|Deprecated version changed|Class name: BundleInstaller
Deprecated version: N/A|Class name: BundleInstaller
Deprecated version: 9
New API: ohos.bundle.installer|bundleInstaller.d.ts| +|Deprecated version changed|Method or attribute name: install
Deprecated version: N/A|Method or attribute name: install
Deprecated version: 9
New API: ohos.bundle.installer.BundleInstaller|bundleInstaller.d.ts| +|Deprecated version changed|Method or attribute name: uninstall
Deprecated version: N/A|Method or attribute name: uninstall
Deprecated version: 9
New API: ohos.bundle.installer.BundleInstaller|bundleInstaller.d.ts| +|Deprecated version changed|Method or attribute name: recover
Deprecated version: N/A|Method or attribute name: recover
Deprecated version: 9
New API: ohos.bundle.installer.BundleInstaller|bundleInstaller.d.ts| +|Deprecated version changed|Class name: BundleStatusCallback
Deprecated version: N/A|Class name: BundleStatusCallback
Deprecated version: 9|bundleStatusCallback.d.ts| +|Deprecated version changed|Class name: CustomizeData
Deprecated version: N/A|Class name: CustomizeData
Deprecated version: 9
New API: ohos.bundle.bundleManager.Metadata |customizeData.d.ts| +|Deprecated version changed|Class name: ElementName
Deprecated version: N/A|Class name: ElementName
Deprecated version: 9
New API: ohos.bundle.bundleManager.ElementName |elementName.d.ts| +|Deprecated version changed|Class name: ExtensionAbilityInfo
Deprecated version: N/A|Class name: ExtensionAbilityInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager.ExtensionAbilityInfo |extensionAbilityInfo.d.ts| +|Deprecated version changed|Class name: HapModuleInfo
Deprecated version: N/A|Class name: HapModuleInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager.HapModuleInfo |hapModuleInfo.d.ts| +|Deprecated version changed|Class name: LauncherAbilityInfo
Deprecated version: N/A|Class name: LauncherAbilityInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager.LauncherAbilityInfo |launcherAbilityInfo.d.ts| +|Deprecated version changed|Class name: Metadata
Deprecated version: N/A|Class name: Metadata
Deprecated version: 9
New API: ohos.bundle.bundleManager.Metadata |metadata.d.ts| +|Deprecated version changed|Class name: ModuleInfo
Deprecated version: N/A|Class name: ModuleInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager.HapModuleInfo |moduleInfo.d.ts| +|Deprecated version changed|Class name: PermissionDef
Deprecated version: N/A|Class name: PermissionDef
Deprecated version: 9
New API: ohos.bundle.bundleManager.PermissionDef |PermissionDef.d.ts| +|Deprecated version changed|Class name: RemoteAbilityInfo
Deprecated version: N/A|Class name: RemoteAbilityInfo
Deprecated version: 9
New API: ohos.bundle.distributedBundle.RemoteAbilityInfo |remoteAbilityInfo.d.ts| +|Deprecated version changed|Class name: ShortcutWant
Deprecated version: N/A|Class name: ShortcutWant
Deprecated version: 9
New API: ohos.bundle.launcherBundleManager.ShortcutWant |shortcutInfo.d.ts| +|Deprecated version changed|Class name: ShortcutInfo
Deprecated version: N/A|Class name: ShortcutInfo
Deprecated version: 9
New API: ohos.bundle.launcherBundleManager.ShortcutInfo |shortcutInfo.d.ts| +|Error code added||Method or attribute name: isDefaultApplication
Error code: 401, 801|@ohos.bundle.defaultAppManager.d.ts| +|Error code added||Method or attribute name: isDefaultApplication
Error code: 401, 801|@ohos.bundle.defaultAppManager.d.ts| +|Error code added||Method or attribute name: getDefaultApplication
Error code: 201, 401, 801, 17700004, 17700023, 17700025|@ohos.bundle.defaultAppManager.d.ts| +|Error code added||Method or attribute name: getDefaultApplication
Error code: 201, 401, 801, 17700004, 17700023, 17700025|@ohos.bundle.defaultAppManager.d.ts| +|Error code added||Method or attribute name: setDefaultApplication
Error code: 201, 401, 801, 17700004, 17700025, 17700028|@ohos.bundle.defaultAppManager.d.ts| +|Error code added||Method or attribute name: setDefaultApplication
Error code: 201, 401, 801, 17700004, 17700025, 17700028|@ohos.bundle.defaultAppManager.d.ts| +|Error code added||Method or attribute name: resetDefaultApplication
Error code: 201, 401, 801, 17700004, 17700025|@ohos.bundle.defaultAppManager.d.ts| +|Error code added||Method or attribute name: resetDefaultApplication
Error code: 201, 401, 801, 17700004, 17700025|@ohos.bundle.defaultAppManager.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-communication.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-communication.md new file mode 100644 index 0000000000000000000000000000000000000000..4c173e4a8ea77ac52d79faa923370e4fbf730903 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-communication.md @@ -0,0 +1,837 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.net.connection
Class name: NetHandle
Method or attribute name: bindSocket|@ohos.net.connection.d.ts| +|Added||Module name: ohos.net.connection
Class name: NetHandle
Method or attribute name: bindSocket|@ohos.net.connection.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: ethernet|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: ethernet
Method or attribute name: getIfaceConfig|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: ethernet
Method or attribute name: getIfaceConfig|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: ethernet
Method or attribute name: setIfaceConfig|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: ethernet
Method or attribute name: setIfaceConfig|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: ethernet
Method or attribute name: isIfaceActive|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: ethernet
Method or attribute name: isIfaceActive|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: ethernet
Method or attribute name: getAllActiveIfaces|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: ethernet
Method or attribute name: getAllActiveIfaces|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: InterfaceConfiguration|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: InterfaceConfiguration
Method or attribute name: mode|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: InterfaceConfiguration
Method or attribute name: ipAddr|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: InterfaceConfiguration
Method or attribute name: route|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: InterfaceConfiguration
Method or attribute name: gateway|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: InterfaceConfiguration
Method or attribute name: netMask|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: InterfaceConfiguration
Method or attribute name: dnsServers|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: IPSetMode|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: IPSetMode
Method or attribute name: STATIC|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: IPSetMode
Method or attribute name: DHCP|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpRequestOptions
Method or attribute name: expectDataType|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpRequestOptions
Method or attribute name: usingCache|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpRequestOptions
Method or attribute name: priority|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpRequestOptions
Method or attribute name: usingProtocol|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpProtocol|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpProtocol
Method or attribute name: HTTP1_1|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpProtocol
Method or attribute name: HTTP2|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpDataType|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpDataType
Method or attribute name: STRING|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpDataType
Method or attribute name: OBJECT|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpDataType
Method or attribute name: ARRAY_BUFFER|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpResponse
Method or attribute name: resultType|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: http
Method or attribute name: createHttpResponseCache|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpResponseCache|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpResponseCache
Method or attribute name: flush|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpResponseCache
Method or attribute name: flush|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpResponseCache
Method or attribute name: delete|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpResponseCache
Method or attribute name: delete|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.socket
Class name: socket
Method or attribute name: constructTLSSocketInstance|@ohos.net.socket.d.ts| +|Added||Method or attribute name: socketLinger
Function name: socketLinger?: {on: boolean, linger: number};|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getCertificate|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getCertificate|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getRemoteCertificate|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getRemoteCertificate|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getProtocol|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getProtocol|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getCipherSuite|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getCipherSuite|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getSignatureAlgorithms|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getSignatureAlgorithms|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: connect|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: connect|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: send|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: send|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSecureOptions|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSecureOptions
Method or attribute name: ca|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSecureOptions
Method or attribute name: cert|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSecureOptions
Method or attribute name: key|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSecureOptions
Method or attribute name: passwd|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSecureOptions
Method or attribute name: protocols|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSecureOptions
Method or attribute name: useRemoteCipherPrefer|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSecureOptions
Method or attribute name: signatureAlgorithms|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSecureOptions
Method or attribute name: cipherSuite|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSConnectOptions|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSConnectOptions
Method or attribute name: address|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSConnectOptions
Method or attribute name: secureOptions|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSConnectOptions
Method or attribute name: ALPNProtocols|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: Protocol|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: Protocol
Method or attribute name: TLSv12|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: Protocol
Method or attribute name: TLSv13|@ohos.net.socket.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: TnfType|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: TnfType
Method or attribute name: TNF_EMPTY|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: TnfType
Method or attribute name: TNF_WELL_KNOWN|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: TnfType
Method or attribute name: TNF_MEDIA|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: TnfType
Method or attribute name: TNF_ABSOLUTE_URI|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: TnfType
Method or attribute name: TNF_EXT_APP|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: TnfType
Method or attribute name: TNF_UNKNOWN|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: TnfType
Method or attribute name: TNF_UNCHANGED|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NfcForumType|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NfcForumType
Method or attribute name: NFC_FORUM_TYPE_1|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NfcForumType
Method or attribute name: NFC_FORUM_TYPE_2|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NfcForumType
Method or attribute name: NFC_FORUM_TYPE_3|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NfcForumType
Method or attribute name: NFC_FORUM_TYPE_4|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NfcForumType
Method or attribute name: MIFARE_CLASSIC|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: RTD_TEXT|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: RTD_URI|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicType|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicType
Method or attribute name: TYPE_UNKNOWN|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicType
Method or attribute name: TYPE_CLASSIC|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicType
Method or attribute name: TYPE_PLUS|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicType
Method or attribute name: TYPE_PRO|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicSize|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicSize
Method or attribute name: MC_SIZE_MINI|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicSize
Method or attribute name: MC_SIZE_1K|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicSize
Method or attribute name: MC_SIZE_2K|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicSize
Method or attribute name: MC_SIZE_4K|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareUltralightType|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareUltralightType
Method or attribute name: TYPE_UNKNOWN|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareUltralightType
Method or attribute name: TYPE_ULTRALIGHT|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareUltralightType
Method or attribute name: TYPE_ULTRALIGHT_C|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getIsoDep|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getNdef|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getMifareClassic|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getMifareUltralight|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getNdefFormatable|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getTagInfo|@ohos.nfc.tag.d.ts| +|Added||Method or attribute name: uid
Function name: uid: number[];|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NdefRecord|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NdefRecord
Method or attribute name: tnf|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NdefRecord
Method or attribute name: rtdType|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NdefRecord
Method or attribute name: id|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NdefRecord
Method or attribute name: payload|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: CHECK_PARAM_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: OS_MMAP_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: OS_IOCTL_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: WRITE_TO_ASHMEM_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: READ_FROM_ASHMEM_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: ONLY_PROXY_OBJECT_PERMITTED_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: ONLY_REMOTE_OBJECT_PERMITTED_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: COMMUNICATION_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: PROXY_OR_REMOTE_OBJECT_INVALID_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: WRITE_DATA_TO_MESSAGE_SEQUENCE_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: READ_DATA_FROM_MESSAGE_SEQUENCE_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: PARCEL_MEMORY_ALLOC_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: CALL_JS_METHOD_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: OS_DUP_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: create|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: reclaim|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeRemoteObject|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readRemoteObject|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeInterfaceToken|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readInterfaceToken|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: getSize|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: getCapacity|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: setSize|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: setCapacity|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: getWritableBytes|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: getReadableBytes|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: getReadPosition|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: getWritePosition|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: rewindRead|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: rewindWrite|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeNoException|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readException|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeByte|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeShort|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeInt|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeLong|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeFloat|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeDouble|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeBoolean|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeChar|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeString|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeParcelable|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeByteArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeShortArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeIntArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeLongArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeFloatArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeDoubleArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeBooleanArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeCharArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeStringArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeParcelableArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeRemoteObjectArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readByte|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readShort|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readInt|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readLong|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readFloat|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readDouble|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readBoolean|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readChar|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readString|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readParcelable|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readByteArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readByteArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readShortArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readShortArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readIntArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readIntArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readLongArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readLongArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readFloatArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readFloatArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readDoubleArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readDoubleArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readBooleanArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readBooleanArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readCharArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readCharArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readStringArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readStringArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readParcelableArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readRemoteObjectArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readRemoteObjectArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: closeFileDescriptor|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: dupFileDescriptor|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: containFileDescriptors|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeFileDescriptor|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readFileDescriptor|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeAshmem|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readAshmem|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: getRawDataCapacity|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeRawData|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readRawData|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Parcelable|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Parcelable
Method or attribute name: marshalling|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Parcelable
Method or attribute name: unmarshalling|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RequestResult|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RequestResult
Method or attribute name: errCode|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RequestResult
Method or attribute name: code|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RequestResult
Method or attribute name: data|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RequestResult
Method or attribute name: reply|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: IRemoteObject
Method or attribute name: getLocalInterface|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: IRemoteObject
Method or attribute name: sendMessageRequest|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: IRemoteObject
Method or attribute name: sendMessageRequest|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: IRemoteObject
Method or attribute name: registerDeathRecipient|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: IRemoteObject
Method or attribute name: unregisterDeathRecipient|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageOption
Method or attribute name: ructor(async?|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageOption
Method or attribute name: isAsync|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageOption
Method or attribute name: setAsync|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteObject
Method or attribute name: getLocalInterface|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteObject
Method or attribute name: getDescriptor|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteObject
Method or attribute name: onRemoteMessageRequest|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteObject
Method or attribute name: sendMessageRequest|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteObject
Method or attribute name: sendMessageRequest|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteObject
Method or attribute name: modifyLocalInterface|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteProxy
Method or attribute name: getLocalInterface|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteProxy
Method or attribute name: registerDeathRecipient|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteProxy
Method or attribute name: unregisterDeathRecipient|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteProxy
Method or attribute name: getDescriptor|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteProxy
Method or attribute name: sendMessageRequest|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteProxy
Method or attribute name: sendMessageRequest|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: IPCSkeleton
Method or attribute name: flushCmdBuffer|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: IPCSkeleton
Method or attribute name: restoreCallingIdentity|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Ashmem
Method or attribute name: create|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Ashmem
Method or attribute name: create|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Ashmem
Method or attribute name: mapTypedAshmem|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Ashmem
Method or attribute name: mapReadWriteAshmem|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Ashmem
Method or attribute name: mapReadonlyAshmem|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Ashmem
Method or attribute name: setProtectionType|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Ashmem
Method or attribute name: writeAshmem|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Ashmem
Method or attribute name: readAshmem|@ohos.rpc.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: enableWifi|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: disableWifi|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: isWifiActive|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: scan|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getScanResults|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getScanResults|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getScanResultsSync|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: addDeviceConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: addDeviceConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: addCandidateConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: addCandidateConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: removeCandidateConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: removeCandidateConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getCandidateConfigs|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: connectToCandidateConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: connectToNetwork|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: connectToDevice|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: disconnect|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getSignalLevel|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getLinkedInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getLinkedInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: isConnected|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getSupportedFeatures|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: isFeatureSupported|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getDeviceMacAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getIpInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getCountryCode|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: reassociate|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: reconnect|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getDeviceConfigs|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: updateNetwork|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: disableNetwork|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: removeAllNetwork|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: removeDevice|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: enableHotspot|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: disableHotspot|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: isHotspotDualBandSupported|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: isHotspotActive|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: setHotspotConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getHotspotConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getStations|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getP2pLinkedInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getP2pLinkedInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getCurrentGroup|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getCurrentGroup|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getP2pPeerDevices|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getP2pPeerDevices|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getP2pLocalDevice|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getP2pLocalDevice|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: createGroup|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: removeGroup|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: p2pConnect|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: p2pDisconnect|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: startDiscoverDevices|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: stopDiscoverDevices|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: deletePersistentGroup|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getP2pGroups|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getP2pGroups|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: setDeviceName|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_wifiStateChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_wifiStateChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_wifiConnectionChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_wifiConnectionChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_wifiScanStateChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_wifiScanStateChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_wifiRssiChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_wifiRssiChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_streamChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_streamChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_deviceConfigChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_deviceConfigChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_hotspotStateChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_hotspotStateChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_hotspotStaJoin|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_hotspotStaJoin|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_hotspotStaLeave|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_hotspotStaLeave|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_p2pStateChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_p2pStateChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_p2pConnectionChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_p2pConnectionChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_p2pDeviceChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_p2pDeviceChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_p2pPeerDeviceChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_p2pPeerDeviceChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_p2pPersistentGroupChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_p2pPersistentGroupChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_p2pDiscoveryChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_p2pDiscoveryChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod
Method or attribute name: EAP_NONE|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod
Method or attribute name: EAP_PEAP|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod
Method or attribute name: EAP_TLS|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod
Method or attribute name: EAP_TTLS|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod
Method or attribute name: EAP_PWD|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod
Method or attribute name: EAP_SIM|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod
Method or attribute name: EAP_AKA|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod
Method or attribute name: EAP_AKA_PRIME|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod
Method or attribute name: EAP_UNAUTH_TLS|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: Phase2Method|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: Phase2Method
Method or attribute name: PHASE2_NONE|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: Phase2Method
Method or attribute name: PHASE2_PAP|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: Phase2Method
Method or attribute name: PHASE2_MSCHAP|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: Phase2Method
Method or attribute name: PHASE2_MSCHAPV2|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: Phase2Method
Method or attribute name: PHASE2_GTC|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: Phase2Method
Method or attribute name: PHASE2_SIM|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: Phase2Method
Method or attribute name: PHASE2_AKA|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: Phase2Method
Method or attribute name: PHASE2_AKA_PRIME|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: eapMethod|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: phase2Method|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: identity|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: anonymousIdentity|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: password|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: caCertAliases|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: caPath|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: clientCertAliases|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: altSubjectMatch|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: domainSuffixMatch|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: realm|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: plmn|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: eapSubId|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: ssid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: bssid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: preSharedKey|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: isHiddenSsid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: securityType|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: creatorUid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: disableReason|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: netId|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: randomMacType|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: randomMacAddr|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: ipType|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: staticIp|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: eapConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpConfig
Method or attribute name: ipAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpConfig
Method or attribute name: gateway|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpConfig
Method or attribute name: prefixLength|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpConfig
Method or attribute name: dnsServers|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpConfig
Method or attribute name: domains|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiInfoElem|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiInfoElem
Method or attribute name: eid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiInfoElem
Method or attribute name: content|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiChannelWidth|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiChannelWidth
Method or attribute name: WIDTH_20MHZ|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiChannelWidth
Method or attribute name: WIDTH_40MHZ|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiChannelWidth
Method or attribute name: WIDTH_80MHZ|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiChannelWidth
Method or attribute name: WIDTH_160MHZ|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiChannelWidth
Method or attribute name: WIDTH_80MHZ_PLUS|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiChannelWidth
Method or attribute name: WIDTH_INVALID|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: ssid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: bssid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: capabilities|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: securityType|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: rssi|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: band|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: frequency|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: channelWidth|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: centerFrequency0|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: centerFrequency1|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: infoElems|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: timestamp|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_INVALID|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_OPEN|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_WEP|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_PSK|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_SAE|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_EAP|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_EAP_SUITE_B|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_OWE|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_WAPI_CERT|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_WAPI_PSK|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: ssid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: bssid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: networkId|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: rssi|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: band|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: linkSpeed|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: frequency|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: isHidden|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: isRestricted|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: chload|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: snr|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: macType|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: macAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: ipAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: suppState|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: connState|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpInfo
Method or attribute name: ipAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpInfo
Method or attribute name: gateway|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpInfo
Method or attribute name: netmask|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpInfo
Method or attribute name: primaryDns|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpInfo
Method or attribute name: secondDns|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpInfo
Method or attribute name: serverIp|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpInfo
Method or attribute name: leaseDuration|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: HotspotConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: HotspotConfig
Method or attribute name: ssid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: HotspotConfig
Method or attribute name: securityType|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: HotspotConfig
Method or attribute name: band|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: HotspotConfig
Method or attribute name: preSharedKey|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: HotspotConfig
Method or attribute name: maxConn|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: StationInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: StationInfo
Method or attribute name: name|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: StationInfo
Method or attribute name: macAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: StationInfo
Method or attribute name: ipAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpType|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpType
Method or attribute name: STATIC|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpType
Method or attribute name: DHCP|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpType
Method or attribute name: UNKNOWN|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: DISCONNECTED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: INTERFACE_DISABLED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: INACTIVE|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: SCANNING|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: AUTHENTICATING|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: ASSOCIATING|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: ASSOCIATED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: FOUR_WAY_HANDSHAKE|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: GROUP_HANDSHAKE|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: COMPLETED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: UNINITIALIZED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: INVALID|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: ConnState|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: ConnState
Method or attribute name: SCANNING|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: ConnState
Method or attribute name: CONNECTING|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: ConnState
Method or attribute name: AUTHENTICATING|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: ConnState
Method or attribute name: OBTAINING_IPADDR|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: ConnState
Method or attribute name: CONNECTED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: ConnState
Method or attribute name: DISCONNECTING|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: ConnState
Method or attribute name: DISCONNECTED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: ConnState
Method or attribute name: UNKNOWN|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pDevice|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pDevice
Method or attribute name: deviceName|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pDevice
Method or attribute name: deviceAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pDevice
Method or attribute name: primaryDeviceType|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pDevice
Method or attribute name: deviceStatus|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pDevice
Method or attribute name: groupCapabilities|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2PConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2PConfig
Method or attribute name: deviceAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2PConfig
Method or attribute name: netId|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2PConfig
Method or attribute name: passphrase|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2PConfig
Method or attribute name: groupName|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2PConfig
Method or attribute name: goBand|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo
Method or attribute name: isP2pGo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo
Method or attribute name: ownerInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo
Method or attribute name: passphrase|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo
Method or attribute name: interface|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo
Method or attribute name: groupName|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo
Method or attribute name: networkId|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo
Method or attribute name: frequency|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo
Method or attribute name: clientDevices|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo
Method or attribute name: goIpAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: P2pConnectState|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: P2pConnectState
Method or attribute name: DISCONNECTED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: P2pConnectState
Method or attribute name: CONNECTED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pLinkedInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pLinkedInfo
Method or attribute name: connectState|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pLinkedInfo
Method or attribute name: isGroupOwner|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pLinkedInfo
Method or attribute name: groupOwnerAddr|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: P2pDeviceStatus|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: P2pDeviceStatus
Method or attribute name: CONNECTED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: P2pDeviceStatus
Method or attribute name: INVITED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: P2pDeviceStatus
Method or attribute name: FAILED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: P2pDeviceStatus
Method or attribute name: AVAILABLE|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: P2pDeviceStatus
Method or attribute name: UNAVAILABLE|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: GroupOwnerBand|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: GroupOwnerBand
Method or attribute name: GO_BAND_AUTO|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: GroupOwnerBand
Method or attribute name: GO_BAND_2GHZ|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: GroupOwnerBand
Method or attribute name: GO_BAND_5GHZ|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: wifiManagerExt|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: wifiManagerExt
Method or attribute name: enableHotspot|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: wifiManagerExt
Method or attribute name: disableHotspot|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: wifiManagerExt
Method or attribute name: getSupportedPowerMode|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: wifiManagerExt
Method or attribute name: getSupportedPowerMode|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: wifiManagerExt
Method or attribute name: getPowerMode|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: wifiManagerExt
Method or attribute name: getPowerMode|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: wifiManagerExt
Method or attribute name: setPowerMode|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: PowerMode|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: PowerMode
Method or attribute name: SLEEPING|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: PowerMode
Method or attribute name: GENERAL|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: PowerMode
Method or attribute name: THROUGH_WALL|@ohos.wifiManagerExt.d.ts| +|Added||Method or attribute name: getHistoricalBytes
Function name: getHistoricalBytes(): number[];|nfctech.d.ts| +|Added||Method or attribute name: getHiLayerResponse
Function name: getHiLayerResponse(): number[];|nfctech.d.ts| +|Added||Method or attribute name: getNdefRecords
Function name: getNdefRecords(): tag.NdefRecord[];|nfctech.d.ts| +|Added||Method or attribute name: makeUriRecord
Function name: makeUriRecord(uri: string): tag.NdefRecord;|nfctech.d.ts| +|Added||Method or attribute name: makeTextRecord
Function name: makeTextRecord(text: string, locale: string): tag.NdefRecord;|nfctech.d.ts| +|Added||Method or attribute name: makeMimeRecord
Function name: makeMimeRecord(mimeType: string, mimeData: number[]): tag.NdefRecord;|nfctech.d.ts| +|Added||Method or attribute name: makeExternalRecord
Function name: makeExternalRecord(domainName: string, serviceName: string, externalData: number[]): tag.NdefRecord;|nfctech.d.ts| +|Added||Module name: nfctech
Class name: NdefMessage
Method or attribute name: messageToBytes|nfctech.d.ts| +|Added||Method or attribute name: createNdefMessage
Function name: createNdefMessage(data: number[]): NdefMessage;|nfctech.d.ts| +|Added||Method or attribute name: createNdefMessage
Function name: createNdefMessage(ndefRecords: tag.NdefRecord[]): NdefMessage;|nfctech.d.ts| +|Added||Method or attribute name: getNdefTagType
Function name: getNdefTagType(): tag.NfcForumType;|nfctech.d.ts| +|Added||Method or attribute name: isNdefWritable
Function name: isNdefWritable(): boolean;|nfctech.d.ts| +|Added||Method or attribute name: writeNdef
Function name: writeNdef(msg: NdefMessage): Promise;|nfctech.d.ts| +|Added||Method or attribute name: writeNdef
Function name: writeNdef(msg: NdefMessage, callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: canSetReadOnly
Function name: canSetReadOnly(): boolean;|nfctech.d.ts| +|Added||Method or attribute name: setReadOnly
Function name: setReadOnly(): Promise;|nfctech.d.ts| +|Added||Method or attribute name: setReadOnly
Function name: setReadOnly(callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: getNdefTagTypeString
Function name: getNdefTagTypeString(type: tag.NfcForumType): string;|nfctech.d.ts| +|Added||Method or attribute name: authenticateSector
Function name: authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean): Promise;|nfctech.d.ts| +|Added||Method or attribute name: authenticateSector
Function name: authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean, callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: readSingleBlock
Function name: readSingleBlock(blockIndex: number): Promise;|nfctech.d.ts| +|Added||Method or attribute name: readSingleBlock
Function name: readSingleBlock(blockIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: writeSingleBlock
Function name: writeSingleBlock(blockIndex: number, data: number[]): Promise;|nfctech.d.ts| +|Added||Method or attribute name: writeSingleBlock
Function name: writeSingleBlock(blockIndex: number, data: number[], callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: incrementBlock
Function name: incrementBlock(blockIndex: number, value: number): Promise;|nfctech.d.ts| +|Added||Method or attribute name: incrementBlock
Function name: incrementBlock(blockIndex: number, value: number, callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: decrementBlock
Function name: decrementBlock(blockIndex: number, value: number): Promise;|nfctech.d.ts| +|Added||Method or attribute name: decrementBlock
Function name: decrementBlock(blockIndex: number, value: number, callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: transferToBlock
Function name: transferToBlock(blockIndex: number): Promise;|nfctech.d.ts| +|Added||Method or attribute name: transferToBlock
Function name: transferToBlock(blockIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: restoreFromBlock
Function name: restoreFromBlock(blockIndex: number): Promise;|nfctech.d.ts| +|Added||Method or attribute name: restoreFromBlock
Function name: restoreFromBlock(blockIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: getType
Function name: getType(): tag.MifareClassicType;|nfctech.d.ts| +|Added||Method or attribute name: readMultiplePages
Function name: readMultiplePages(pageIndex: number): Promise;|nfctech.d.ts| +|Added||Method or attribute name: readMultiplePages
Function name: readMultiplePages(pageIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Module name: nfctech
Class name: MifareUltralightTag
Method or attribute name: writeSinglePage|nfctech.d.ts| +|Added||Module name: nfctech
Class name: MifareUltralightTag
Method or attribute name: writeSinglePage|nfctech.d.ts| +|Added||Method or attribute name: getType
Function name: getType(): tag.MifareUltralightType;|nfctech.d.ts| +|Added||Method or attribute name: format
Function name: format(message: NdefMessage): Promise;|nfctech.d.ts| +|Added||Method or attribute name: format
Function name: format(message: NdefMessage, callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: formatReadOnly
Function name: formatReadOnly(message: NdefMessage): Promise;|nfctech.d.ts| +|Added||Method or attribute name: formatReadOnly
Function name: formatReadOnly(message: NdefMessage, callback: AsyncCallback): void;|nfctech.d.ts| +|Deleted|Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getIsoDepTag||@ohos.nfc.tag.d.ts| +|Deleted|Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getNdefTag||@ohos.nfc.tag.d.ts| +|Deleted|Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getMifareClassicTag||@ohos.nfc.tag.d.ts| +|Deleted|Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getMifareUltralightTag||@ohos.nfc.tag.d.ts| +|Deleted|Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getNdefFormatableTag||@ohos.nfc.tag.d.ts| +|Deleted|Module name: ohos.rpc
Class name: IRemoteObject
Method or attribute name: sendRequestAsync||@ohos.rpc.d.ts| +|Deleted|Module name: ohos.rpc
Class name: RemoteObject
Method or attribute name: onRemoteRequestEx||@ohos.rpc.d.ts| +|Deleted|Module name: ohos.rpc
Class name: RemoteObject
Method or attribute name: sendRequestAsync||@ohos.rpc.d.ts| +|Deleted|Module name: ohos.rpc
Class name: RemoteProxy
Method or attribute name: sendRequestAsync||@ohos.rpc.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: getScanInfosSync||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: addCandidateConfig||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: addCandidateConfig||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: removeCandidateConfig||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: removeCandidateConfig||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: getCandidateConfigs||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: connectToCandidateConfig||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: getP2pLocalDevice||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: getP2pLocalDevice||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: getP2pGroups||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: getP2pGroups||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: on_deviceConfigChange||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: off_deviceConfigChange||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod
Method or attribute name: EAP_NONE||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod
Method or attribute name: EAP_PEAP||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod
Method or attribute name: EAP_TLS||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod
Method or attribute name: EAP_TTLS||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod
Method or attribute name: EAP_PWD||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod
Method or attribute name: EAP_SIM||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod
Method or attribute name: EAP_AKA||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod
Method or attribute name: EAP_AKA_PRIME||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod
Method or attribute name: EAP_UNAUTH_TLS||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: Phase2Method||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: Phase2Method
Method or attribute name: PHASE2_NONE||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: Phase2Method
Method or attribute name: PHASE2_PAP||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: Phase2Method
Method or attribute name: PHASE2_MSCHAP||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: Phase2Method
Method or attribute name: PHASE2_MSCHAPV2||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: Phase2Method
Method or attribute name: PHASE2_GTC||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: Phase2Method
Method or attribute name: PHASE2_SIM||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: Phase2Method
Method or attribute name: PHASE2_AKA||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: Phase2Method
Method or attribute name: PHASE2_AKA_PRIME||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: eapMethod||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: phase2Method||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: identity||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: anonymousIdentity||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: password||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: caCertAliases||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: caPath||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: clientCertAliases||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: altSubjectMatch||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: domainSuffixMatch||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: realm||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: plmn||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: eapSubId||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiDeviceConfig
Method or attribute name: eapConfig||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiInfoElem||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiInfoElem
Method or attribute name: eid||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiInfoElem
Method or attribute name: content||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiChannelWidth||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiChannelWidth
Method or attribute name: WIDTH_20MHZ||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiChannelWidth
Method or attribute name: WIDTH_40MHZ||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiChannelWidth
Method or attribute name: WIDTH_80MHZ||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiChannelWidth
Method or attribute name: WIDTH_160MHZ||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiChannelWidth
Method or attribute name: WIDTH_80MHZ_PLUS||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiChannelWidth
Method or attribute name: WIDTH_INVALID||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiScanInfo
Method or attribute name: centerFrequency0||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiScanInfo
Method or attribute name: centerFrequency1||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiScanInfo
Method or attribute name: infoElems||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_EAP||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_EAP_SUITE_B||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_OWE||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_WAPI_CERT||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_WAPI_PSK||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiLinkedInfo
Method or attribute name: macType||@ohos.wifi.d.ts| +|Deleted|Module name: nfctech
Class name: NdefRecord||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefRecord
Method or attribute name: tnf||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefRecord
Method or attribute name: rtdType||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefRecord
Method or attribute name: id||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefRecord
Method or attribute name: payload||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: TnfType||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: TnfType
Method or attribute name: TNF_EMPTY||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: TnfType
Method or attribute name: TNF_WELL_KNOWN||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: TnfType
Method or attribute name: TNF_MEDIA||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: TnfType
Method or attribute name: TNF_ABSOLUTE_URI||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: TnfType
Method or attribute name: TNF_EXT_APP||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: TnfType
Method or attribute name: TNF_UNKNOWN||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: TnfType
Method or attribute name: TNF_UNCHANGED||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: RtdType||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: RtdType
Method or attribute name: RTD_TEXT||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: RtdType
Method or attribute name: RTD_URI||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefMessage
Method or attribute name: messageToString||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NfcForumType||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NfcForumType
Method or attribute name: NFC_FORUM_TYPE_1||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NfcForumType
Method or attribute name: NFC_FORUM_TYPE_2||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NfcForumType
Method or attribute name: NFC_FORUM_TYPE_3||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NfcForumType
Method or attribute name: NFC_FORUM_TYPE_4||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NfcForumType
Method or attribute name: MIFARE_CLASSIC||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareClassicType||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareClassicType
Method or attribute name: TYPE_UNKNOWN||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareClassicType
Method or attribute name: TYPE_CLASSIC||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareClassicType
Method or attribute name: TYPE_PLUS||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareClassicType
Method or attribute name: TYPE_PRO||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareTagSize||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareTagSize
Method or attribute name: MC_SIZE_MINI||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareTagSize
Method or attribute name: MC_SIZE_1K||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareTagSize
Method or attribute name: MC_SIZE_2K||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareTagSize
Method or attribute name: MC_SIZE_4K||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareUltralightType||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareUltralightType
Method or attribute name: TYPE_UNKOWN||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareUltralightType
Method or attribute name: TYPE_ULTRALIGHT||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareUltralightType
Method or attribute name: TYPE_ULTRALIGHT_C||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareUltralightTag
Method or attribute name: writeSinglePages||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareUltralightTag
Method or attribute name: writeSinglePages||nfctech.d.ts| +|Deprecated version changed|Class name: MessageParcel
Deprecated version: N/A|Class name: MessageParcel
Deprecated version: 9
New API: ohos.rpc.MessageSequence |@ohos.rpc.d.ts| +|Deprecated version changed|Class name: Sequenceable
Deprecated version: N/A|Class name: Sequenceable
Deprecated version: 9
New API: ohos.rpc.Parcelable |@ohos.rpc.d.ts| +|Deprecated version changed|Class name: SendRequestResult
Deprecated version: N/A|Class name: SendRequestResult
Deprecated version: 9
New API: ohos.rpc.RequestResult |@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: queryLocalInterface
Deprecated version: N/A|Method or attribute name: queryLocalInterface
Deprecated version: 9
New API: ohos.rpc.IRemoteObject|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: sendRequest
Deprecated version: 8|Method or attribute name: sendRequest
Deprecated version: 9|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: sendRequest
Deprecated version: N/A|Method or attribute name: sendRequest
Deprecated version: 9
New API: ohos.rpc.IRemoteObject|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: addDeathRecipient
Deprecated version: N/A|Method or attribute name: addDeathRecipient
Deprecated version: 9
New API: ohos.rpc.IRemoteObject|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: removeDeathRecipient
Deprecated version: N/A|Method or attribute name: removeDeathRecipient
Deprecated version: 9
New API: ohos.rpc.IRemoteObject|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: getInterfaceDescriptor
Deprecated version: N/A|Method or attribute name: getInterfaceDescriptor
Deprecated version: 9
New API: ohos.rpc.IRemoteObject|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: queryLocalInterface
Deprecated version: N/A|Method or attribute name: queryLocalInterface
Deprecated version: 9
New API: ohos.rpc.RemoteObject|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: getInterfaceDescriptor
Deprecated version: N/A|Method or attribute name: getInterfaceDescriptor
Deprecated version: 9
New API: ohos.rpc.RemoteObject|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: sendRequest
Deprecated version: N/A|Method or attribute name: sendRequest
Deprecated version: 9
New API: ohos.rpc.RemoteObject|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: attachLocalInterface
Deprecated version: N/A|Method or attribute name: attachLocalInterface
Deprecated version: 9
New API: ohos.rpc.RemoteObject|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: queryLocalInterface
Deprecated version: N/A|Method or attribute name: queryLocalInterface
Deprecated version: 9
New API: ohos.rpc.RemoteProxy|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: addDeathRecipient
Deprecated version: N/A|Method or attribute name: addDeathRecipient
Deprecated version: 9
New API: ohos.rpc.RemoteProxy|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: removeDeathRecipient
Deprecated version: N/A|Method or attribute name: removeDeathRecipient
Deprecated version: 9
New API: ohos.rpc.RemoteProxy|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: getInterfaceDescriptor
Deprecated version: N/A|Method or attribute name: getInterfaceDescriptor
Deprecated version: 9
New API: ohos.rpc.RemoteProxy|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: sendRequest
Deprecated version: N/A|Method or attribute name: sendRequest
Deprecated version: 9
New API: ohos.rpc.RemoteProxy|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: flushCommands
Deprecated version: N/A|Method or attribute name: flushCommands
Deprecated version: 9
New API: ohos.rpc.IPCSkeleton|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: setCallingIdentity
Deprecated version: N/A|Method or attribute name: setCallingIdentity
Deprecated version: 9
New API: ohos.rpc.IPCSkeleton|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: createAshmem
Deprecated version: N/A|Method or attribute name: createAshmem
Deprecated version: 9
New API: ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: createAshmemFromExisting
Deprecated version: N/A|Method or attribute name: createAshmemFromExisting
Deprecated version: 9
New API: ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: mapAshmem
Deprecated version: N/A|Method or attribute name: mapAshmem
Deprecated version: 9
New API: ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: mapReadAndWriteAshmem
Deprecated version: N/A|Method or attribute name: mapReadAndWriteAshmem
Deprecated version: 9
New API: ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: mapReadOnlyAshmem
Deprecated version: N/A|Method or attribute name: mapReadOnlyAshmem
Deprecated version: 9
New API: ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: setProtection
Deprecated version: N/A|Method or attribute name: setProtection
Deprecated version: 9
New API: ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: writeToAshmem
Deprecated version: N/A|Method or attribute name: writeToAshmem
Deprecated version: 9
New API: ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: readFromAshmem
Deprecated version: N/A|Method or attribute name: readFromAshmem
Deprecated version: 9
New API: ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: enableWifi
Deprecated version: N/A|Method or attribute name: enableWifi
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.enableWifi |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: disableWifi
Deprecated version: N/A|Method or attribute name: disableWifi
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.disableWifi |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: isWifiActive
Deprecated version: N/A|Method or attribute name: isWifiActive
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.isWifiActive |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: scan
Deprecated version: N/A|Method or attribute name: scan
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.scan |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getScanInfos
Deprecated version: N/A|Method or attribute name: getScanInfos
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getScanResults |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getScanInfos
Deprecated version: N/A|Method or attribute name: getScanInfos
Deprecated version: 9|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: addDeviceConfig
Deprecated version: N/A|Method or attribute name: addDeviceConfig
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.addDeviceConfig |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: addDeviceConfig
Deprecated version: N/A|Method or attribute name: addDeviceConfig
Deprecated version: 9|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: connectToNetwork
Deprecated version: N/A|Method or attribute name: connectToNetwork
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.connectToNetwork |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: connectToDevice
Deprecated version: N/A|Method or attribute name: connectToDevice
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.connectToDevice |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: disconnect
Deprecated version: N/A|Method or attribute name: disconnect
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.disconnect |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getSignalLevel
Deprecated version: N/A|Method or attribute name: getSignalLevel
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getSignalLevel |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getLinkedInfo
Deprecated version: N/A|Method or attribute name: getLinkedInfo
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getLinkedInfo |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getLinkedInfo
Deprecated version: N/A|Method or attribute name: getLinkedInfo
Deprecated version: 9|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: isConnected
Deprecated version: N/A|Method or attribute name: isConnected
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.isConnected |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getSupportedFeatures
Deprecated version: N/A|Method or attribute name: getSupportedFeatures
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getSupportedFeatures |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: isFeatureSupported
Deprecated version: N/A|Method or attribute name: isFeatureSupported
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.isFeatureSupported |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getDeviceMacAddress
Deprecated version: N/A|Method or attribute name: getDeviceMacAddress
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getDeviceMacAddress |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getIpInfo
Deprecated version: N/A|Method or attribute name: getIpInfo
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getIpInfo |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getCountryCode
Deprecated version: N/A|Method or attribute name: getCountryCode
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getCountryCode |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: reassociate
Deprecated version: N/A|Method or attribute name: reassociate
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.reassociate |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: reconnect
Deprecated version: N/A|Method or attribute name: reconnect
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.reconnect |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getDeviceConfigs
Deprecated version: N/A|Method or attribute name: getDeviceConfigs
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getDeviceConfigs |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: updateNetwork
Deprecated version: N/A|Method or attribute name: updateNetwork
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.updateNetwork |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: disableNetwork
Deprecated version: N/A|Method or attribute name: disableNetwork
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.disableNetwork |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: removeAllNetwork
Deprecated version: N/A|Method or attribute name: removeAllNetwork
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.removeAllNetwork |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: removeDevice
Deprecated version: N/A|Method or attribute name: removeDevice
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.removeDevice |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: enableHotspot
Deprecated version: N/A|Method or attribute name: enableHotspot
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.enableHotspot |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: disableHotspot
Deprecated version: N/A|Method or attribute name: disableHotspot
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.disableHotspot |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: isHotspotDualBandSupported
Deprecated version: N/A|Method or attribute name: isHotspotDualBandSupported
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.isHotspotDualBandSupported |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: isHotspotActive
Deprecated version: N/A|Method or attribute name: isHotspotActive
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.isHotspotActive |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: setHotspotConfig
Deprecated version: N/A|Method or attribute name: setHotspotConfig
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.setHotspotConfig |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getHotspotConfig
Deprecated version: N/A|Method or attribute name: getHotspotConfig
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getHotspotConfig |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getStations
Deprecated version: N/A|Method or attribute name: getStations
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getStations |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getP2pLinkedInfo
Deprecated version: N/A|Method or attribute name: getP2pLinkedInfo
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getP2pLinkedInfo |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getP2pLinkedInfo
Deprecated version: N/A|Method or attribute name: getP2pLinkedInfo
Deprecated version: 9|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getCurrentGroup
Deprecated version: N/A|Method or attribute name: getCurrentGroup
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getCurrentGroup |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getCurrentGroup
Deprecated version: N/A|Method or attribute name: getCurrentGroup
Deprecated version: 9|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getP2pPeerDevices
Deprecated version: N/A|Method or attribute name: getP2pPeerDevices
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getP2pPeerDevices |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getP2pPeerDevices
Deprecated version: N/A|Method or attribute name: getP2pPeerDevices
Deprecated version: 9|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: createGroup
Deprecated version: N/A|Method or attribute name: createGroup
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.createGroup |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: removeGroup
Deprecated version: N/A|Method or attribute name: removeGroup
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.removeGroup |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: p2pConnect
Deprecated version: N/A|Method or attribute name: p2pConnect
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.p2pConnect |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: p2pCancelConnect
Deprecated version: N/A|Method or attribute name: p2pCancelConnect
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.p2pDisonnect |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: startDiscoverDevices
Deprecated version: N/A|Method or attribute name: startDiscoverDevices
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.startDiscoverDevices |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: stopDiscoverDevices
Deprecated version: N/A|Method or attribute name: stopDiscoverDevices
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.stopDiscoverDevices |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: deletePersistentGroup
Deprecated version: N/A|Method or attribute name: deletePersistentGroup
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.deletePersistentGroup |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: setDeviceName
Deprecated version: N/A|Method or attribute name: setDeviceName
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.setDeviceName |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_wifiStateChange
Deprecated version: N/A|Method or attribute name: on_wifiStateChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_wifiStateChange
Deprecated version: N/A|Method or attribute name: off_wifiStateChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_wifiConnectionChange
Deprecated version: N/A|Method or attribute name: on_wifiConnectionChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_wifiConnectionChange
Deprecated version: N/A|Method or attribute name: off_wifiConnectionChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_wifiScanStateChange
Deprecated version: N/A|Method or attribute name: on_wifiScanStateChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_wifiScanStateChange
Deprecated version: N/A|Method or attribute name: off_wifiScanStateChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_wifiRssiChange
Deprecated version: N/A|Method or attribute name: on_wifiRssiChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_wifiRssiChange
Deprecated version: N/A|Method or attribute name: off_wifiRssiChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_streamChange
Deprecated version: N/A|Method or attribute name: on_streamChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_streamChange
Deprecated version: N/A|Method or attribute name: off_streamChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_hotspotStateChange
Deprecated version: N/A|Method or attribute name: on_hotspotStateChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_hotspotStateChange
Deprecated version: N/A|Method or attribute name: off_hotspotStateChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_hotspotStaJoin
Deprecated version: N/A|Method or attribute name: on_hotspotStaJoin
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_hotspotStaJoin
Deprecated version: N/A|Method or attribute name: off_hotspotStaJoin
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_hotspotStaLeave
Deprecated version: N/A|Method or attribute name: on_hotspotStaLeave
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_hotspotStaLeave
Deprecated version: N/A|Method or attribute name: off_hotspotStaLeave
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_p2pStateChange
Deprecated version: N/A|Method or attribute name: on_p2pStateChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_p2pStateChange
Deprecated version: N/A|Method or attribute name: off_p2pStateChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_p2pConnectionChange
Deprecated version: N/A|Method or attribute name: on_p2pConnectionChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_p2pConnectionChange
Deprecated version: N/A|Method or attribute name: off_p2pConnectionChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_p2pDeviceChange
Deprecated version: N/A|Method or attribute name: on_p2pDeviceChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_p2pDeviceChange
Deprecated version: N/A|Method or attribute name: off_p2pDeviceChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_p2pPeerDeviceChange
Deprecated version: N/A|Method or attribute name: on_p2pPeerDeviceChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_p2pPeerDeviceChange
Deprecated version: N/A|Method or attribute name: off_p2pPeerDeviceChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_p2pPersistentGroupChange
Deprecated version: N/A|Method or attribute name: on_p2pPersistentGroupChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_p2pPersistentGroupChange
Deprecated version: N/A|Method or attribute name: off_p2pPersistentGroupChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_p2pDiscoveryChange
Deprecated version: N/A|Method or attribute name: on_p2pDiscoveryChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_p2pDiscoveryChange
Deprecated version: N/A|Method or attribute name: off_p2pDiscoveryChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Class name: WifiDeviceConfig
Deprecated version: N/A|Class name: WifiDeviceConfig
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.WifiDeviceConfig |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: IpConfig
Deprecated version: N/A|Class name: IpConfig
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.IpConfig |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: WifiScanInfo
Deprecated version: N/A|Class name: WifiScanInfo
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.WifiScanInfo |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: WifiSecurityType
Deprecated version: N/A|Class name: WifiSecurityType
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.WifiSecurityType |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: WifiLinkedInfo
Deprecated version: N/A|Class name: WifiLinkedInfo
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.WifiLinkedInfo |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: IpInfo
Deprecated version: N/A|Class name: IpInfo
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.IpInfo |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: HotspotConfig
Deprecated version: N/A|Class name: HotspotConfig
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.HotspotConfig |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: StationInfo
Deprecated version: N/A|Class name: StationInfo
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.StationInfo |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: IpType
Deprecated version: N/A|Class name: IpType
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.IpType |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: SuppState
Deprecated version: N/A|Class name: SuppState
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.SuppState |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: ConnState
Deprecated version: N/A|Class name: ConnState
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.ConnState |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: WifiP2pDevice
Deprecated version: N/A|Class name: WifiP2pDevice
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.WifiP2pDevice |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: WifiP2PConfig
Deprecated version: N/A|Class name: WifiP2PConfig
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.WifiP2PConfig |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: WifiP2pGroupInfo
Deprecated version: N/A|Class name: WifiP2pGroupInfo
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.WifiP2pGroupInfo |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: P2pConnectState
Deprecated version: N/A|Class name: P2pConnectState
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.P2pConnectState |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: WifiP2pLinkedInfo
Deprecated version: N/A|Class name: WifiP2pLinkedInfo
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.WifiP2pLinkedInfo |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: P2pDeviceStatus
Deprecated version: N/A|Class name: P2pDeviceStatus
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.P2pDeviceStatus |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: GroupOwnerBand
Deprecated version: N/A|Class name: GroupOwnerBand
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.GroupOwnerBand |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: enableHotspot
Deprecated version: N/A|Method or attribute name: enableHotspot
Deprecated version: 9
New API: ohos.wifiManagerExt/wifiManagerExt.enableHotspot |@ohos.wifiext.d.ts| +|Deprecated version changed|Method or attribute name: disableHotspot
Deprecated version: N/A|Method or attribute name: disableHotspot
Deprecated version: 9
New API: ohos.wifiManagerExt/wifiManagerExt.disableHotspot |@ohos.wifiext.d.ts| +|Deprecated version changed|Method or attribute name: getSupportedPowerModel
Deprecated version: N/A|Method or attribute name: getSupportedPowerModel
Deprecated version: 9
New API: ohos.wifiManagerExt/wifiManagerExt.getSupportedPowerMode |@ohos.wifiext.d.ts| +|Deprecated version changed|Method or attribute name: getSupportedPowerModel
Deprecated version: N/A|Method or attribute name: getSupportedPowerModel
Deprecated version: 9|@ohos.wifiext.d.ts| +|Deprecated version changed|Method or attribute name: getPowerModel
Deprecated version: N/A|Method or attribute name: getPowerModel
Deprecated version: 9
New API: ohos.wifiManagerExt/wifiManagerExt.getPowerMode |@ohos.wifiext.d.ts| +|Deprecated version changed|Method or attribute name: getPowerModel
Deprecated version: N/A|Method or attribute name: getPowerModel
Deprecated version: 9|@ohos.wifiext.d.ts| +|Deprecated version changed|Method or attribute name: setPowerModel
Deprecated version: N/A|Method or attribute name: setPowerModel
Deprecated version: 9
New API: ohos.wifiManagerExt/wifiManagerExt.setPowerMode |@ohos.wifiext.d.ts| +|Deprecated version changed|Class name: PowerModel
Deprecated version: N/A|Class name: PowerModel
Deprecated version: 9
New API: ohos.wifiManagerExt/wifiManagerExt.PowerMode |@ohos.wifiext.d.ts| +|Permission deleted|Method or attribute name: getNdefMessage
Permission: ohos.permission.NFC_TAG|Method or attribute name: getNdefMessage
Permission: N/A|nfctech.d.ts| +|Permission deleted|Method or attribute name: getSectorCount
Permission: ohos.permission.NFC_TAG|Method or attribute name: getSectorCount
Permission: N/A|nfctech.d.ts| +|Permission deleted|Method or attribute name: getBlockCountInSector
Permission: ohos.permission.NFC_TAG|Method or attribute name: getBlockCountInSector
Permission: N/A|nfctech.d.ts| +|Permission deleted|Method or attribute name: getTagSize
Permission: ohos.permission.NFC_TAG|Method or attribute name: getTagSize
Permission: N/A|nfctech.d.ts| +|Permission deleted|Method or attribute name: isEmulatedTag
Permission: ohos.permission.NFC_TAG|Method or attribute name: isEmulatedTag
Permission: N/A|nfctech.d.ts| +|Permission deleted|Method or attribute name: getBlockIndex
Permission: ohos.permission.NFC_TAG|Method or attribute name: getBlockIndex
Permission: N/A|nfctech.d.ts| +|Permission deleted|Method or attribute name: getSectorIndex
Permission: ohos.permission.NFC_TAG|Method or attribute name: getSectorIndex
Permission: N/A|nfctech.d.ts| +|Error code added||Method or attribute name: isExtendedApduSupported
Error code: 201, 401, 3100201|nfctech.d.ts| +|Error code added||Method or attribute name: readNdef
Error code: 201, 401, 3100201|nfctech.d.ts| +|Error code added||Method or attribute name: getBlockCountInSector
Error code: 401|nfctech.d.ts| +|Error code added||Method or attribute name: getBlockIndex
Error code: 401|nfctech.d.ts| +|Error code added||Method or attribute name: getSectorIndex
Error code: 401|nfctech.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-compiler-and-runtime.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-compiler-and-runtime.md new file mode 100644 index 0000000000000000000000000000000000000000..cc527a22cc65e0be3472cbcdca0414508c48fd47 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-compiler-and-runtime.md @@ -0,0 +1,221 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.convertxml
Class name: ConvertXML
Method or attribute name: convertToJSObject|@ohos.convertxml.d.ts| +|Added||Module name: ohos.process
Class name: ProcessManager|@ohos.process.d.ts| +|Added||Module name: ohos.process
Class name: ProcessManager
Method or attribute name: isAppUid|@ohos.process.d.ts| +|Added||Module name: ohos.process
Class name: ProcessManager
Method or attribute name: getUidForName|@ohos.process.d.ts| +|Added||Module name: ohos.process
Class name: ProcessManager
Method or attribute name: getThreadPriority|@ohos.process.d.ts| +|Added||Module name: ohos.process
Class name: ProcessManager
Method or attribute name: getSystemConfig|@ohos.process.d.ts| +|Added||Module name: ohos.process
Class name: ProcessManager
Method or attribute name: getEnvironmentVar|@ohos.process.d.ts| +|Added||Module name: ohos.process
Class name: ProcessManager
Method or attribute name: exit|@ohos.process.d.ts| +|Added||Module name: ohos.process
Class name: ProcessManager
Method or attribute name: kill|@ohos.process.d.ts| +|Added||Module name: ohos.uri
Class name: URI
Method or attribute name: equalsTo|@ohos.uri.d.ts| +|Added||Module name: ohos.url
Class name: URLParams|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: ructor(init?|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: append|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: delete|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: getAll|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: entries|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: forEach|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: get|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: has|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: set|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: sort|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: keys|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: values|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: [Symbol.iterator]|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: toString|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URL
Method or attribute name: parseURL|@ohos.url.d.ts| +|Added||Module name: ohos.util
Class name: util
Method or attribute name: format|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: util
Method or attribute name: errnoToString|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: TextDecoder
Method or attribute name: create|@ohos.util.d.ts| +|Added||Method or attribute name: encodeInto
Function name: encodeInto(input?: string): Uint8Array;|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: TextEncoder
Method or attribute name: encodeIntoUint8Array|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: RationalNumber
Method or attribute name: parseRationalNumber|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: RationalNumber
Method or attribute name: compare|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: RationalNumber
Method or attribute name: getCommonFactor|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: ructor(capacity?|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: updateCapacity|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: toString|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: length|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: getCapacity|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: clear|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: getCreateCount|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: getMissCount|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: getRemovalCount|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: getMatchCount|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: getPutCount|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: isEmpty|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: get|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: put|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: values|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: keys|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: remove|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: afterRemoval|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: contains|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: createDefault|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: entries|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: [Symbol.iterator]|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: ructor(lowerObj|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: toString|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: intersect|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: intersect|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: getUpper|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: getLower|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: expand|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: expand|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: expand|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: contains|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: contains|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: clamp|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: Base64Helper|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: Base64Helper
Method or attribute name: encodeSync|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: Base64Helper
Method or attribute name: encodeToStringSync|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: Base64Helper
Method or attribute name: decodeSync|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: Base64Helper
Method or attribute name: encode|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: Base64Helper
Method or attribute name: encodeToString|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: Base64Helper
Method or attribute name: decode|@ohos.util.d.ts| +|Added||Module name: ohos.worker
Class name: WorkerEventListener|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: WorkerEventListener
Method or attribute name: WorkerEventListener|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: WorkerEventTarget|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: WorkerEventTarget
Method or attribute name: addEventListener|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: WorkerEventTarget
Method or attribute name: dispatchEvent|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: WorkerEventTarget
Method or attribute name: removeEventListener|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: WorkerEventTarget
Method or attribute name: removeAllListener|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: GlobalScope|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: GlobalScope
Method or attribute name: name|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: GlobalScope
Method or attribute name: onerror|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: GlobalScope
Method or attribute name: self|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorkerGlobalScope|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorkerGlobalScope
Method or attribute name: onmessage|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorkerGlobalScope
Method or attribute name: onmessageerror|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorkerGlobalScope
Method or attribute name: close|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorkerGlobalScope
Method or attribute name: postMessage|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorkerGlobalScope
Method or attribute name: postMessage|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: ructor(scriptURL|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: onexit|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: onerror|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: onmessage|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: onmessageerror|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: postMessage|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: postMessage|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: on|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: once|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: off|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: terminate|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: addEventListener|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: dispatchEvent|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: removeEventListener|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: removeAllListener|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: worker
Method or attribute name: workerPort|@ohos.worker.d.ts| +|Deleted|Module name: ohos.worker
Class name: Worker
Method or attribute name: addEventListener||@ohos.worker.d.ts| +|Deleted|Module name: ohos.worker
Class name: Worker
Method or attribute name: dispatchEvent||@ohos.worker.d.ts| +|Deleted|Module name: ohos.worker
Class name: Worker
Method or attribute name: removeEventListener||@ohos.worker.d.ts| +|Deleted|Module name: ohos.worker
Class name: Worker
Method or attribute name: removeAllListener||@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: convert
Deprecated version: N/A|Method or attribute name: convert
Deprecated version: 9
New API: ohos.convertxml.ConvertXML.convertToJSObject |@ohos.convertxml.d.ts| +|Deprecated version changed|Method or attribute name: isAppUid
Deprecated version: N/A|Method or attribute name: isAppUid
Deprecated version: 9
New API: ohos.process.ProcessManager.isAppUid |@ohos.process.d.ts| +|Deprecated version changed|Method or attribute name: getUidForName
Deprecated version: N/A|Method or attribute name: getUidForName
Deprecated version: 9
New API: ohos.process.ProcessManager.getUidForName |@ohos.process.d.ts| +|Deprecated version changed|Method or attribute name: getThreadPriority
Deprecated version: N/A|Method or attribute name: getThreadPriority
Deprecated version: 9
New API: ohos.process.ProcessManager.getThreadPriority |@ohos.process.d.ts| +|Deprecated version changed|Method or attribute name: getSystemConfig
Deprecated version: N/A|Method or attribute name: getSystemConfig
Deprecated version: 9
New API: ohos.process.ProcessManager.getSystemConfig |@ohos.process.d.ts| +|Deprecated version changed|Method or attribute name: getEnvironmentVar
Deprecated version: N/A|Method or attribute name: getEnvironmentVar
Deprecated version: 9
New API: ohos.process.ProcessManager.getEnvironmentVar |@ohos.process.d.ts| +|Deprecated version changed|Method or attribute name: exit
Deprecated version: N/A|Method or attribute name: exit
Deprecated version: 9
New API: ohos.process.ProcessManager.exit |@ohos.process.d.ts| +|Deprecated version changed|Method or attribute name: kill
Deprecated version: N/A|Method or attribute name: kill
Deprecated version: 9
New API: ohos.process.ProcessManager.kill |@ohos.process.d.ts| +|Deprecated version changed|Method or attribute name: equals
Deprecated version: N/A|Method or attribute name: equals
Deprecated version: 9
New API: ohos.uri.URI.equalsTo |@ohos.uri.d.ts| +|Deprecated version changed|Class name: URLSearchParams
Deprecated version: N/A|Class name: URLSearchParams
Deprecated version: 9
New API: ohos.url.URLParams |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: ructor(init?
Deprecated version: N/A|Method or attribute name: ructor(init?
Deprecated version: 9
New API: ohos.url.URLParams.constructor |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: append
Deprecated version: N/A|Method or attribute name: append
Deprecated version: 9
New API: ohos.url.URLParams.append |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: delete
Deprecated version: N/A|Method or attribute name: delete
Deprecated version: 9
New API: ohos.url.URLParams.delete |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: getAll
Deprecated version: N/A|Method or attribute name: getAll
Deprecated version: 9
New API: ohos.url.URLParams.getAll |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: entries
Deprecated version: N/A|Method or attribute name: entries
Deprecated version: 9
New API: ohos.url.URLParams.entries |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: forEach
Deprecated version: N/A|Method or attribute name: forEach
Deprecated version: 9
New API: ohos.url.URLParams.forEach |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: get
Deprecated version: N/A|Method or attribute name: get
Deprecated version: 9
New API: ohos.url.URLParams.get |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: has
Deprecated version: N/A|Method or attribute name: has
Deprecated version: 9
New API: ohos.url.URLParams.has |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: set
Deprecated version: N/A|Method or attribute name: set
Deprecated version: 9
New API: ohos.url.URLParams.set |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: sort
Deprecated version: N/A|Method or attribute name: sort
Deprecated version: 9
New API: ohos.url.URLParams.sort |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: keys
Deprecated version: N/A|Method or attribute name: keys
Deprecated version: 9
New API: ohos.url.URLParams.keys |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: values
Deprecated version: N/A|Method or attribute name: values
Deprecated version: 9
New API: ohos.url.URLParams.values |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: [Symbol.iterator]
Deprecated version: N/A|Method or attribute name: [Symbol.iterator]
Deprecated version: 9
New API: ohos.url.URLParams.|@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: toString
Deprecated version: N/A|Method or attribute name: toString
Deprecated version: 9
New API: ohos.url.URLParams.toString |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: ructor(url
Deprecated version: N/A|Method or attribute name: ructor(url
Deprecated version: 9
New API: ohos.URL.constructor |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: printf
Deprecated version: N/A|Method or attribute name: printf
Deprecated version: 9
New API: ohos.util.format |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getErrorString
Deprecated version: N/A|Method or attribute name: getErrorString
Deprecated version: 9
New API: ohos.util.errnoToString |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: ructor(

encoding?
Deprecated version: N/A|Method or attribute name: ructor(

encoding?
Deprecated version: 9
New API: ohos.util.constructor |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: decode
Deprecated version: N/A|Method or attribute name: decode
Deprecated version: 9
New API: ohos.util.decodeWithStream |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: encode
Deprecated version: N/A|Method or attribute name: encode
Deprecated version: 9
New API: ohos.util.encodeInto |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: encodeInto
Deprecated version: N/A|Method or attribute name: encodeInto
Deprecated version: 9
New API: ohos.util.encodeIntoUint8Array |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: ructor(numerator
Deprecated version: N/A|Method or attribute name: ructor(numerator
Deprecated version: 9
New API: ohos.util.constructor |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: compareTo
Deprecated version: N/A|Method or attribute name: compareTo
Deprecated version: 9
New API: ohos.util.compare |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getCommonDivisor
Deprecated version: N/A|Method or attribute name: getCommonDivisor
Deprecated version: 9
New API: ohos.util.getCommonFactor |@ohos.util.d.ts| +|Deprecated version changed|Class name: LruBuffer
Deprecated version: N/A|Class name: LruBuffer
Deprecated version: 9
New API: ohos.util.LRUCache |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: updateCapacity
Deprecated version: N/A|Method or attribute name: updateCapacity
Deprecated version: 9
New API: ohos.util.LRUCache.updateCapacity |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getCapacity
Deprecated version: N/A|Method or attribute name: getCapacity
Deprecated version: 9
New API: ohos.util.LRUCache.getCapacity |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: clear
Deprecated version: N/A|Method or attribute name: clear
Deprecated version: 9
New API: ohos.util.LRUCache.clear |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getCreateCount
Deprecated version: N/A|Method or attribute name: getCreateCount
Deprecated version: 9
New API: ohos.util.LRUCache.getCreateCount |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getMissCount
Deprecated version: N/A|Method or attribute name: getMissCount
Deprecated version: 9
New API: ohos.util.LRUCache.getMissCount |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getRemovalCount
Deprecated version: N/A|Method or attribute name: getRemovalCount
Deprecated version: 9
New API: ohos.util.LRUCache.getRemovalCount |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getMatchCount
Deprecated version: N/A|Method or attribute name: getMatchCount
Deprecated version: 9
New API: ohos.util.LRUCache.getMatchCount |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getPutCount
Deprecated version: N/A|Method or attribute name: getPutCount
Deprecated version: 9
New API: ohos.util.LRUCache.getPutCount |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: isEmpty
Deprecated version: N/A|Method or attribute name: isEmpty
Deprecated version: 9
New API: ohos.util.LRUCache.isEmpty |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: get
Deprecated version: N/A|Method or attribute name: get
Deprecated version: 9
New API: ohos.util.LRUCache.get |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: put
Deprecated version: N/A|Method or attribute name: put
Deprecated version: 9
New API: ohos.util.LRUCache.put |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: values
Deprecated version: N/A|Method or attribute name: values
Deprecated version: 9
New API: ohos.util.LRUCache.values |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: keys
Deprecated version: N/A|Method or attribute name: keys
Deprecated version: 9
New API: ohos.util.LRUCache.keys |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: remove
Deprecated version: N/A|Method or attribute name: remove
Deprecated version: 9
New API: ohos.util.LRUCache.remove |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: afterRemoval
Deprecated version: N/A|Method or attribute name: afterRemoval
Deprecated version: 9
New API: ohos.util.LRUCache.afterRemoval |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: contains
Deprecated version: N/A|Method or attribute name: contains
Deprecated version: 9
New API: ohos.util.LRUCache.contains |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: createDefault
Deprecated version: N/A|Method or attribute name: createDefault
Deprecated version: 9
New API: ohos.util.LRUCache.createDefault |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: entries
Deprecated version: N/A|Method or attribute name: entries
Deprecated version: 9
New API: ohos.util.LRUCache.entries |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: [Symbol.iterator]
Deprecated version: N/A|Method or attribute name: [Symbol.iterator]
Deprecated version: 9
New API: ohos.util.LRUCache.|@ohos.util.d.ts| +|Deprecated version changed|Class name: Scope
Deprecated version: N/A|Class name: Scope
Deprecated version: 9
New API: ohos.util.ScopeHelper |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: ructor(lowerObj
Deprecated version: N/A|Method or attribute name: ructor(lowerObj
Deprecated version: 9
New API: ohos.util.ScopeHelper.constructor |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: toString
Deprecated version: N/A|Method or attribute name: toString
Deprecated version: 9
New API: ohos.util.ScopeHelper.toString |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: intersect
Deprecated version: N/A|Method or attribute name: intersect
Deprecated version: 9
New API: ohos.util.ScopeHelper.intersect |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: intersect
Deprecated version: N/A|Method or attribute name: intersect
Deprecated version: 9
New API: ohos.util.ScopeHelper.intersect |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getUpper
Deprecated version: N/A|Method or attribute name: getUpper
Deprecated version: 9
New API: ohos.util.ScopeHelper.getUpper |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getLower
Deprecated version: N/A|Method or attribute name: getLower
Deprecated version: 9
New API: ohos.util.ScopeHelper.getLower |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: expand
Deprecated version: N/A|Method or attribute name: expand
Deprecated version: 9
New API: ohos.util.ScopeHelper.expand |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: expand
Deprecated version: N/A|Method or attribute name: expand
Deprecated version: 9
New API: ohos.util.ScopeHelper.expand |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: expand
Deprecated version: N/A|Method or attribute name: expand
Deprecated version: 9
New API: ohos.util.ScopeHelper.expand |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: contains
Deprecated version: N/A|Method or attribute name: contains
Deprecated version: 9
New API: ohos.util.ScopeHelper.contains |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: contains
Deprecated version: N/A|Method or attribute name: contains
Deprecated version: 9
New API: ohos.util.ScopeHelper.contains |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: clamp
Deprecated version: N/A|Method or attribute name: clamp
Deprecated version: 9
New API: ohos.util.ScopeHelper.clamp |@ohos.util.d.ts| +|Deprecated version changed|Class name: Base64
Deprecated version: N/A|Class name: Base64
Deprecated version: 9
New API: ohos.util.Base64Helper |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: encodeSync
Deprecated version: N/A|Method or attribute name: encodeSync
Deprecated version: 9
New API: ohos.util.Base64Helper.encodeSync |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: encodeToStringSync
Deprecated version: N/A|Method or attribute name: encodeToStringSync
Deprecated version: 9
New API: ohos.util.Base64Helper.encodeToStringSync |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: decodeSync
Deprecated version: N/A|Method or attribute name: decodeSync
Deprecated version: 9
New API: ohos.util.Base64Helper.decodeSync |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: encode
Deprecated version: N/A|Method or attribute name: encode
Deprecated version: 9
New API: ohos.util.Base64Helper.encode |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: encodeToString
Deprecated version: N/A|Method or attribute name: encodeToString
Deprecated version: 9
New API: ohos.util.Base64Helper.encodeToString |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: decode
Deprecated version: N/A|Method or attribute name: decode
Deprecated version: 9
New API: ohos.util.Base64Helper.decode |@ohos.util.d.ts| +|Deprecated version changed|Class name: EventListener
Deprecated version: N/A|Class name: EventListener
Deprecated version: 9
New API: ohos.worker.WorkerEventListener |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: EventListener
Deprecated version: N/A|Method or attribute name: EventListener
Deprecated version: 9
New API: ohos.worker.WorkerEventListener.|@ohos.worker.d.ts| +|Deprecated version changed|Class name: EventTarget
Deprecated version: N/A|Class name: EventTarget
Deprecated version: 9
New API: ohos.worker.WorkerEventTarget |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: addEventListener
Deprecated version: N/A|Method or attribute name: addEventListener
Deprecated version: 9
New API: ohos.worker.WorkerEventTarget.addEventListener |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: dispatchEvent
Deprecated version: N/A|Method or attribute name: dispatchEvent
Deprecated version: 9
New API: ohos.worker.WorkerEventTarget.dispatchEvent |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: removeEventListener
Deprecated version: N/A|Method or attribute name: removeEventListener
Deprecated version: 9
New API: ohos.worker.WorkerEventTarget.removeEventListener |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: removeAllListener
Deprecated version: N/A|Method or attribute name: removeAllListener
Deprecated version: 9
New API: ohos.worker.WorkerEventTarget.removeAllListener |@ohos.worker.d.ts| +|Deprecated version changed|Class name: WorkerGlobalScope
Deprecated version: N/A|Class name: WorkerGlobalScope
Deprecated version: 9
New API: ohos.worker.GlobalScope |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: name
Deprecated version: N/A|Method or attribute name: name
Deprecated version: 9
New API: ohos.worker.GlobalScope.name |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: onerror
Deprecated version: N/A|Method or attribute name: onerror
Deprecated version: 9
New API: ohos.worker.GlobalScope.onerror |@ohos.worker.d.ts| +|Deprecated version changed|Class name: DedicatedWorkerGlobalScope
Deprecated version: N/A|Class name: DedicatedWorkerGlobalScope
Deprecated version: 9
New API: ohos.worker.ThreadWorkerGlobalScope |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: onmessage
Deprecated version: N/A|Method or attribute name: onmessage
Deprecated version: 9
New API: ohos.worker.ThreadWorkerGlobalScope.onmessage |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: onmessageerror
Deprecated version: N/A|Method or attribute name: onmessageerror
Deprecated version: 9
New API: ohos.worker.ThreadWorkerGlobalScope.onmessageerror |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: close
Deprecated version: N/A|Method or attribute name: close
Deprecated version: 9
New API: ohos.worker.ThreadWorkerGlobalScope.close |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: ructor(scriptURL
Deprecated version: N/A|Method or attribute name: ructor(scriptURL
Deprecated version: 9
New API: ohos.worker.ThreadWorker.constructor |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: onexit
Deprecated version: N/A|Method or attribute name: onexit
Deprecated version: 9
New API: ohos.worker.ThreadWorker.onexit |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: onerror
Deprecated version: N/A|Method or attribute name: onerror
Deprecated version: 9
New API: ohos.worker.ThreadWorker.onerror |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: onmessage
Deprecated version: N/A|Method or attribute name: onmessage
Deprecated version: 9
New API: ohos.worker.ThreadWorker.onmessage |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: onmessageerror
Deprecated version: N/A|Method or attribute name: onmessageerror
Deprecated version: 9
New API: ohos.worker.ThreadWorker.onmessageerror |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: postMessage
Deprecated version: N/A|Method or attribute name: postMessage
Deprecated version: 9
New API: ohos.worker.ThreadWorker.postMessage |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: postMessage
Deprecated version: N/A|Method or attribute name: postMessage
Deprecated version: 9|@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: on
Deprecated version: N/A|Method or attribute name: on
Deprecated version: 9
New API: ohos.worker.ThreadWorker.on |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.worker.ThreadWorker.once |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: off
Deprecated version: N/A|Method or attribute name: off
Deprecated version: 9
New API: ohos.worker.ThreadWorker.off |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: terminate
Deprecated version: N/A|Method or attribute name: terminate
Deprecated version: 9
New API: ohos.worker.ThreadWorker.terminate |@ohos.worker.d.ts| +|Initial version changed|Class name: RationalNumber
Initial version: 7|Class name: RationalNumber
Initial version: 8|@ohos.util.d.ts| +|Initial version changed|Class name: LruBuffer
Initial version: 7|Class name: LruBuffer
Initial version: 8|@ohos.util.d.ts| +|Initial version changed|Class name: Scope
Initial version: 7|Class name: Scope
Initial version: 8|@ohos.util.d.ts| +|Initial version changed|Class name: Base64
Initial version: 7|Class name: Base64
Initial version: 8|@ohos.util.d.ts| +|Initial version changed|Class name: types
Initial version: 7|Class name: types
Initial version: 8|@ohos.util.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-customization.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-customization.md new file mode 100644 index 0000000000000000000000000000000000000000..445bc8b0c063ce90687c3ce620d9605c0a76de28 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-customization.md @@ -0,0 +1,63 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility
Method or attribute name: onBundleAdded|@ohos.EnterpriseAdminExtensionAbility.d.ts| +|Added||Module name: ohos.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility
Method or attribute name: onBundleRemoved|@ohos.EnterpriseAdminExtensionAbility.d.ts| +|Added||Module name: ohos.enterpriseDeviceManager
Class name: ManagedEvent|@ohos.enterpriseDeviceManager.d.ts| +|Added||Module name: ohos.enterpriseDeviceManager
Class name: ManagedEvent
Method or attribute name: MANAGED_EVENT_BUNDLE_ADDED|@ohos.enterpriseDeviceManager.d.ts| +|Added||Module name: ohos.enterpriseDeviceManager
Class name: ManagedEvent
Method or attribute name: MANAGED_EVENT_BUNDLE_REMOVED|@ohos.enterpriseDeviceManager.d.ts| +|Added||Method or attribute name: enableAdmin
Function name: function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: AsyncCallback): void;|@ohos.enterpriseDeviceManager.d.ts| +|Added||Method or attribute name: enableAdmin
Function name: function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId: number, callback: AsyncCallback): void;|@ohos.enterpriseDeviceManager.d.ts| +|Added||Method or attribute name: enableAdmin
Function name: function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId?: number): Promise;|@ohos.enterpriseDeviceManager.d.ts| +|Added||Method or attribute name: disableAdmin
Function name: function disableAdmin(admin: Want, callback: AsyncCallback): void;|@ohos.enterpriseDeviceManager.d.ts| +|Added||Method or attribute name: disableAdmin
Function name: function disableAdmin(admin: Want, userId: number, callback: AsyncCallback): void;|@ohos.enterpriseDeviceManager.d.ts| +|Added||Method or attribute name: disableAdmin
Function name: function disableAdmin(admin: Want, userId?: number): Promise;|@ohos.enterpriseDeviceManager.d.ts| +|Added||Method or attribute name: disableSuperAdmin
Function name: function disableSuperAdmin(bundleName: String, callback: AsyncCallback): void;|@ohos.enterpriseDeviceManager.d.ts| +|Added||Method or attribute name: disableSuperAdmin
Function name: function disableSuperAdmin(bundleName: String): Promise;|@ohos.enterpriseDeviceManager.d.ts| +|Added||Method or attribute name: setEnterpriseInfo
Function name: function setEnterpriseInfo(admin: Want, enterpriseInfo: EnterpriseInfo, callback: AsyncCallback): void;|@ohos.enterpriseDeviceManager.d.ts| +|Added||Method or attribute name: setEnterpriseInfo
Function name: function setEnterpriseInfo(admin: Want, enterpriseInfo: EnterpriseInfo): Promise;|@ohos.enterpriseDeviceManager.d.ts| +|Added||Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: subscribeManagedEvent|@ohos.enterpriseDeviceManager.d.ts| +|Added||Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: subscribeManagedEvent|@ohos.enterpriseDeviceManager.d.ts| +|Added||Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: unsubscribeManagedEvent|@ohos.enterpriseDeviceManager.d.ts| +|Added||Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: unsubscribeManagedEvent|@ohos.enterpriseDeviceManager.d.ts| +|Model changed|Method or attribute name: isAdminEnabled
model:|Method or attribute name: isAdminEnabled
model: @stage model only|@ohos.enterpriseDeviceManager.d.ts| +|Model changed|Method or attribute name: isAdminEnabled
model:|Method or attribute name: isAdminEnabled
model: @stage model only|@ohos.enterpriseDeviceManager.d.ts| +|Model changed|Method or attribute name: isAdminEnabled
model:|Method or attribute name: isAdminEnabled
model: @stage model only|@ohos.enterpriseDeviceManager.d.ts| +|Model changed|Method or attribute name: getEnterpriseInfo
model:|Method or attribute name: getEnterpriseInfo
model: @stage model only|@ohos.enterpriseDeviceManager.d.ts| +|Model changed|Method or attribute name: getEnterpriseInfo
model:|Method or attribute name: getEnterpriseInfo
model: @stage model only|@ohos.enterpriseDeviceManager.d.ts| +|Model changed|Method or attribute name: isSuperAdmin
model:|Method or attribute name: isSuperAdmin
model: @stage model only|@ohos.enterpriseDeviceManager.d.ts| +|Model changed|Method or attribute name: isSuperAdmin
model:|Method or attribute name: isSuperAdmin
model: @stage model only|@ohos.enterpriseDeviceManager.d.ts| +|Model changed|Method or attribute name: setDateTime
model:|Method or attribute name: setDateTime
model: @stage model only|DeviceSettingsManager.d.ts| +|Model changed|Method or attribute name: setDateTime
model:|Method or attribute name: setDateTime
model: @stage model only|DeviceSettingsManager.d.ts| +|Access level changed|Class name: configPolicy
Access level: public API|Class name: configPolicy
Access level: system API|@ohos.configPolicy.d.ts| +|Access level changed|Method or attribute name: isAdminEnabled
Access level: public API|Method or attribute name: isAdminEnabled
Access level: system API|@ohos.enterpriseDeviceManager.d.ts| +|Access level changed|Method or attribute name: isAdminEnabled
Access level: public API|Method or attribute name: isAdminEnabled
Access level: system API|@ohos.enterpriseDeviceManager.d.ts| +|Access level changed|Method or attribute name: isAdminEnabled
Access level: public API|Method or attribute name: isAdminEnabled
Access level: system API|@ohos.enterpriseDeviceManager.d.ts| +|Access level changed|Method or attribute name: getEnterpriseInfo
Access level: public API|Method or attribute name: getEnterpriseInfo
Access level: system API|@ohos.enterpriseDeviceManager.d.ts| +|Access level changed|Method or attribute name: getEnterpriseInfo
Access level: public API|Method or attribute name: getEnterpriseInfo
Access level: system API|@ohos.enterpriseDeviceManager.d.ts| +|Access level changed|Method or attribute name: isSuperAdmin
Access level: public API|Method or attribute name: isSuperAdmin
Access level: system API|@ohos.enterpriseDeviceManager.d.ts| +|Access level changed|Method or attribute name: isSuperAdmin
Access level: public API|Method or attribute name: isSuperAdmin
Access level: system API|@ohos.enterpriseDeviceManager.d.ts| +|Access level changed|Method or attribute name: setDateTime
Access level: public API|Method or attribute name: setDateTime
Access level: system API|DeviceSettingsManager.d.ts| +|Access level changed|Method or attribute name: setDateTime
Access level: public API|Method or attribute name: setDateTime
Access level: system API|DeviceSettingsManager.d.ts| +|Permission changed|Method or attribute name: setDateTime
Permission: ohos.permission.EDM_MANAGE_DATETIME|Method or attribute name: setDateTime
Permission: ohos.permission.ENTERPRISE_SET_DATETIME|DeviceSettingsManager.d.ts| +|Permission changed|Method or attribute name: setDateTime
Permission: ohos.permission.EDM_MANAGE_DATETIME|Method or attribute name: setDateTime
Permission: ohos.permission.ENTERPRISE_SET_DATETIME|DeviceSettingsManager.d.ts| +|Error code added||Method or attribute name: getOneCfgFile
Error code: 401|@ohos.configPolicy.d.ts| +|Error code added||Method or attribute name: getCfgFiles
Error code: 401|@ohos.configPolicy.d.ts| +|Error code added||Method or attribute name: getCfgDirList
Error code: 401|@ohos.configPolicy.d.ts| +|Error code added||Method or attribute name: isAdminEnabled
Error code: 401|@ohos.enterpriseDeviceManager.d.ts| +|Error code added||Method or attribute name: isAdminEnabled
Error code: 401|@ohos.enterpriseDeviceManager.d.ts| +|Error code added||Method or attribute name: isAdminEnabled
Error code: 401|@ohos.enterpriseDeviceManager.d.ts| +|Error code added||Method or attribute name: getEnterpriseInfo
Error code: 9200001, 401|@ohos.enterpriseDeviceManager.d.ts| +|Error code added||Method or attribute name: getEnterpriseInfo
Error code: 9200001, 401|@ohos.enterpriseDeviceManager.d.ts| +|Error code added||Method or attribute name: isSuperAdmin
Error code: 401|@ohos.enterpriseDeviceManager.d.ts| +|Error code added||Method or attribute name: isSuperAdmin
Error code: 401|@ohos.enterpriseDeviceManager.d.ts| +|Error code added||Method or attribute name: setDateTime
Error code: 9200001, 9200002, 201, 401|DeviceSettingsManager.d.ts| +|Access level changed|Class name: configPolicy
Access level: public API|Class name: configPolicy
Access level: system API|@ohos.configPolicy.d.ts| +|Access level changed|Method or attribute name: isAdminEnabled
Access level: public API|Method or attribute name: isAdminEnabled
Access level: system API|@ohos.enterpriseDeviceManager.d.ts| +|Access level changed|Method or attribute name: isAdminEnabled
Access level: public API|Method or attribute name: isAdminEnabled
Access level: system API|@ohos.enterpriseDeviceManager.d.ts| +|Access level changed|Method or attribute name: isAdminEnabled
Access level: public API|Method or attribute name: isAdminEnabled
Access level: system API|@ohos.enterpriseDeviceManager.d.ts| +|Access level changed|Method or attribute name: getEnterpriseInfo
Access level: public API|Method or attribute name: getEnterpriseInfo
Access level: system API|@ohos.enterpriseDeviceManager.d.ts| +|Access level changed|Method or attribute name: getEnterpriseInfo
Access level: public API|Method or attribute name: getEnterpriseInfo
Access level: system API|@ohos.enterpriseDeviceManager.d.ts| +|Access level changed|Method or attribute name: isSuperAdmin
Access level: public API|Method or attribute name: isSuperAdmin
Access level: system API|@ohos.enterpriseDeviceManager.d.ts| +|Access level changed|Method or attribute name: isSuperAdmin
Access level: public API|Method or attribute name: isSuperAdmin
Access level: system API|@ohos.enterpriseDeviceManager.d.ts| +|Access level changed|Method or attribute name: setDateTime
Access level: public API|Method or attribute name: setDateTime
Access level: system API|DeviceSettingsManager.d.ts| +|Access level changed|Method or attribute name: setDateTime
Access level: public API|Method or attribute name: setDateTime
Access level: system API|DeviceSettingsManager.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-dfx.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-dfx.md new file mode 100644 index 0000000000000000000000000000000000000000..92b16c9747665852a9dd282512e6641623ee316e --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-dfx.md @@ -0,0 +1,104 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.faultLogger
Class name: FaultLogger
Method or attribute name: query|@ohos.faultLogger.d.ts| +|Added||Module name: ohos.faultLogger
Class name: FaultLogger
Method or attribute name: query|@ohos.faultLogger.d.ts| +|Added||Module name: ohos.hichecker
Class name: hichecker
Method or attribute name: addCheckRule|@ohos.hichecker.d.ts| +|Added||Module name: ohos.hichecker
Class name: hichecker
Method or attribute name: removeCheckRule|@ohos.hichecker.d.ts| +|Added||Module name: ohos.hichecker
Class name: hichecker
Method or attribute name: containsCheckRule|@ohos.hichecker.d.ts| +|Added||Module name: ohos.hidebug
Class name: hidebug
Method or attribute name: startJsCpuProfiling|@ohos.hidebug.d.ts| +|Added||Module name: ohos.hidebug
Class name: hidebug
Method or attribute name: stopJsCpuProfiling|@ohos.hidebug.d.ts| +|Added||Module name: ohos.hidebug
Class name: hidebug
Method or attribute name: dumpJsHeapData|@ohos.hidebug.d.ts| +|Added||Method or attribute name: getServiceDump
Function name: function getServiceDump(serviceid : number, fd : number, args : Array) : void;|@ohos.hidebug.d.ts| +|Added||Method or attribute name: onQuery
Function name: onQuery: (infos: SysEventInfo[]) => void;|@ohos.hiSysEvent.d.ts| +|Added||Method or attribute name: addWatcher
Function name: function addWatcher(watcher: Watcher): void;|@ohos.hiSysEvent.d.ts| +|Added||Method or attribute name: removeWatcher
Function name: function removeWatcher(watcher: Watcher): void;|@ohos.hiSysEvent.d.ts| +|Added||Method or attribute name: query
Function name: function query(queryArg: QueryArg, rules: QueryRule[], querier: Querier): void;|@ohos.hiSysEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: hiAppEvent|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: EventType|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: EventType
Method or attribute name: FAULT|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: EventType
Method or attribute name: STATISTIC|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: EventType
Method or attribute name: SECURITY|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: EventType
Method or attribute name: BEHAVIOR|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Event|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Event
Method or attribute name: USER_LOGIN|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Event
Method or attribute name: USER_LOGOUT|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Event
Method or attribute name: DISTRIBUTED_SERVICE_START|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Param|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Param
Method or attribute name: USER_ID|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Param
Method or attribute name: DISTRIBUTED_SERVICE_NAME|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Param
Method or attribute name: DISTRIBUTED_SERVICE_INSTANCE_ID|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: hiAppEvent
Method or attribute name: configure|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: ConfigOption|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: ConfigOption
Method or attribute name: disable|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: ConfigOption
Method or attribute name: maxStorage|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventInfo|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventInfo
Method or attribute name: domain|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventInfo
Method or attribute name: name|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventInfo
Method or attribute name: eventType|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventInfo
Method or attribute name: params|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: hiAppEvent
Method or attribute name: write|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: hiAppEvent
Method or attribute name: write|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventPackage|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventPackage
Method or attribute name: packageId|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventPackage
Method or attribute name: row|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventPackage
Method or attribute name: size|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventPackage
Method or attribute name: data|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventPackageHolder|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventPackageHolder
Method or attribute name: ructor(watcherName|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventPackageHolder
Method or attribute name: setSize|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventPackageHolder
Method or attribute name: takeNext|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: TriggerCondition|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: TriggerCondition
Method or attribute name: row|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: TriggerCondition
Method or attribute name: size|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: TriggerCondition
Method or attribute name: timeOut|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventFilter|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventFilter
Method or attribute name: domain|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventFilter
Method or attribute name: eventTypes|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Watcher|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Watcher
Method or attribute name: name|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Watcher
Method or attribute name: triggerCondition|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Watcher
Method or attribute name: appEventFilters|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Watcher
Method or attribute name: onTrigger|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: hiAppEvent
Method or attribute name: addWatcher|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: hiAppEvent
Method or attribute name: removeWatcher|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: hiAppEvent
Method or attribute name: clearData|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: AppEventInfo||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: AppEventInfo
Method or attribute name: domain||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: AppEventInfo
Method or attribute name: name||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: AppEventInfo
Method or attribute name: eventType||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: AppEventInfo
Method or attribute name: params||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: AppEventPackage||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: AppEventPackage
Method or attribute name: packageId||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: AppEventPackage
Method or attribute name: row||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: AppEventPackage
Method or attribute name: size||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: AppEventPackage
Method or attribute name: data||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: AppEventPackageHolder||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: AppEventPackageHolder
Method or attribute name: ructor(watcherName||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: AppEventPackageHolder
Method or attribute name: setSize||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: AppEventPackageHolder
Method or attribute name: takeNext||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: TriggerCondition||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: TriggerCondition
Method or attribute name: row||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: TriggerCondition
Method or attribute name: size||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: TriggerCondition
Method or attribute name: timeOut||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: AppEventFilter||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: AppEventFilter
Method or attribute name: domain||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: AppEventFilter
Method or attribute name: eventTypes||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: Watcher||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: Watcher
Method or attribute name: name||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: Watcher
Method or attribute name: triggerCondition||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: Watcher
Method or attribute name: appEventFilters||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: Watcher
Method or attribute name: onTrigger||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: hiAppEvent
Method or attribute name: addWatcher||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: hiAppEvent
Method or attribute name: removeWatcher||@ohos.hiAppEvent.d.ts| +|Deleted|Module name: ohos.hiAppEvent
Class name: hiAppEvent
Method or attribute name: clearData||@ohos.hiAppEvent.d.ts| +|Deprecated version changed|Method or attribute name: querySelfFaultLog
Deprecated version: N/A|Method or attribute name: querySelfFaultLog
Deprecated version: 9
New API: ohos.faultlogger/FaultLogger|@ohos.faultLogger.d.ts| +|Deprecated version changed|Method or attribute name: querySelfFaultLog
Deprecated version: N/A|Method or attribute name: querySelfFaultLog
Deprecated version: 9
New API: ohos.faultlogger/FaultLogger|@ohos.faultLogger.d.ts| +|Deprecated version changed|Class name: hiAppEvent
Deprecated version: N/A|Class name: hiAppEvent
Deprecated version: 9
New API: ohos.hiviewdfx.hiAppEvent |@ohos.hiAppEvent.d.ts| +|Deprecated version changed|Method or attribute name: write
Deprecated version: 9|Method or attribute name: write
Deprecated version: N/A
New API: ohos.hiviewdfx.hiAppEvent |@ohos.hiAppEvent.d.ts| +|Deprecated version changed|Method or attribute name: write
Deprecated version: 9|Method or attribute name: write
Deprecated version: N/A|@ohos.hiAppEvent.d.ts| +|Deprecated version changed|Method or attribute name: addRule
Deprecated version: N/A|Method or attribute name: addRule
Deprecated version: 9
New API: ohos.hichecker/hichecker|@ohos.hichecker.d.ts| +|Deprecated version changed|Method or attribute name: removeRule
Deprecated version: N/A|Method or attribute name: removeRule
Deprecated version: 9
New API: ohos.hichecker/hichecker|@ohos.hichecker.d.ts| +|Deprecated version changed|Method or attribute name: contains
Deprecated version: N/A|Method or attribute name: contains
Deprecated version: 9
New API: ohos.hichecker/hichecker|@ohos.hichecker.d.ts| +|Deprecated version changed|Method or attribute name: startProfiling
Deprecated version: N/A|Method or attribute name: startProfiling
Deprecated version: 9
New API: ohos.hidebug/hidebug.startJsCpuProfiling |@ohos.hidebug.d.ts| +|Deprecated version changed|Method or attribute name: stopProfiling
Deprecated version: N/A|Method or attribute name: stopProfiling
Deprecated version: 9
New API: ohos.hidebug/hidebug.stopJsCpuProfiling |@ohos.hidebug.d.ts| +|Deprecated version changed|Method or attribute name: dumpHeapData
Deprecated version: N/A|Method or attribute name: dumpHeapData
Deprecated version: 9
New API: ohos.hidebug/hidebug.dumpJsHeapData |@ohos.hidebug.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-distributed-data.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-distributed-data.md new file mode 100644 index 0000000000000000000000000000000000000000..74b8dd05344dbb7c3a5c2249c19b4c1bd464c9df --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-distributed-data.md @@ -0,0 +1,622 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.data.distributedDataObject
Class name: distributedDataObject
Method or attribute name: create|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: setSessionId|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: setSessionId|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: setSessionId|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: on_change|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: off_change|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: on_status|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: off_status|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: save|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: save|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: revokeSave|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: revokeSave|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: distributedKVStore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManagerConfig|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManagerConfig
Method or attribute name: bundleName|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManagerConfig
Method or attribute name: context|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Constants|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Constants
Method or attribute name: MAX_KEY_LENGTH|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Constants
Method or attribute name: MAX_VALUE_LENGTH|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Constants
Method or attribute name: MAX_KEY_LENGTH_DEVICE|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Constants
Method or attribute name: MAX_STORE_ID_LENGTH|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Constants
Method or attribute name: MAX_QUERY_LENGTH|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Constants
Method or attribute name: MAX_BATCH_SIZE|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ValueType|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ValueType
Method or attribute name: STRING|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ValueType
Method or attribute name: INTEGER|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ValueType
Method or attribute name: FLOAT|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ValueType
Method or attribute name: BYTE_ARRAY|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ValueType
Method or attribute name: BOOLEAN|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ValueType
Method or attribute name: DOUBLE|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Value|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Value
Method or attribute name: type|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Value
Method or attribute name: value|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Entry|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Entry
Method or attribute name: key|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Entry
Method or attribute name: value|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ChangeNotification|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ChangeNotification
Method or attribute name: insertEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ChangeNotification
Method or attribute name: updateEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ChangeNotification
Method or attribute name: deleteEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ChangeNotification
Method or attribute name: deviceId|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SyncMode|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SyncMode
Method or attribute name: PULL_ONLY|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SyncMode
Method or attribute name: PUSH_ONLY|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SyncMode
Method or attribute name: PUSH_PULL|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SubscribeType|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SubscribeType
Method or attribute name: SUBSCRIBE_TYPE_LOCAL|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SubscribeType
Method or attribute name: SUBSCRIBE_TYPE_REMOTE|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SubscribeType
Method or attribute name: SUBSCRIBE_TYPE_ALL|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreType|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreType
Method or attribute name: DEVICE_COLLABORATION|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreType
Method or attribute name: SINGLE_VERSION|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SecurityLevel|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SecurityLevel
Method or attribute name: S1|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SecurityLevel
Method or attribute name: S2|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SecurityLevel
Method or attribute name: S3|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SecurityLevel
Method or attribute name: S4|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Options|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Options
Method or attribute name: createIfMissing|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Options
Method or attribute name: encrypt|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Options
Method or attribute name: backup|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Options
Method or attribute name: autoSync|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Options
Method or attribute name: kvStoreType|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Options
Method or attribute name: securityLevel|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Options
Method or attribute name: schema|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Schema|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Schema
Method or attribute name: root|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Schema
Method or attribute name: indexes|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Schema
Method or attribute name: mode|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Schema
Method or attribute name: skip|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: FieldNode|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: FieldNode
Method or attribute name: ructor(name|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: FieldNode
Method or attribute name: appendChild|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: FieldNode
Method or attribute name: default|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: FieldNode
Method or attribute name: nullable|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: FieldNode
Method or attribute name: type|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: getCount|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: getPosition|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: moveToFirst|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: moveToLast|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: moveToNext|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: moveToPrevious|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: move|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: moveToPosition|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: isFirst|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: isLast|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: isBeforeFirst|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: isAfterLast|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: getEntry|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: reset|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: equalTo|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: notEqualTo|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: greaterThan|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: lessThan|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: greaterThanOrEqualTo|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: lessThanOrEqualTo|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: isNull|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: inNumber|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: inString|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: notInNumber|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: notInString|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: like|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: unlike|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: and|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: or|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: orderByAsc|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: orderByDesc|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: limit|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: isNotNull|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: beginGroup|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: endGroup|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: prefixKey|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: setSuggestIndex|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: deviceId|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: getSqlLike|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: put|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: put|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: putBatch|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: putBatch|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: putBatch|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: putBatch|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: delete|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: delete|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: delete|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: delete|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: deleteBatch|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: deleteBatch|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: removeDeviceData|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: removeDeviceData|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: get|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: get|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: closeResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: closeResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getResultSize|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getResultSize|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: backup|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: backup|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: restore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: restore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: deleteBackup|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: deleteBackup|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: startTransaction|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: startTransaction|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: commit|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: commit|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: rollback|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: rollback|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: enableSync|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: enableSync|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: setSyncRange|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: setSyncRange|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: setSyncParam|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: setSyncParam|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: sync|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: sync|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: on_dataChange|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: on_syncComplete|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: off_dataChange|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: off_syncComplete|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getSecurityLevel|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getSecurityLevel|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: get|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: get|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSize|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSize|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: distributedKVStore
Method or attribute name: createKVManager|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: distributedKVStore
Method or attribute name: createKVManager|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: getKVStore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: getKVStore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: closeKVStore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: closeKVStore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: deleteKVStore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: deleteKVStore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: getAllKVStoreId|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: getAllKVStoreId|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: on_distributedDataServiceDie|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: off_distributedDataServiceDie|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.rdb
Class name: rdb
Method or attribute name: getRdbStoreV9|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: rdb
Method or attribute name: getRdbStoreV9|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: rdb
Method or attribute name: deleteRdbStoreV9|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: rdb
Method or attribute name: deleteRdbStoreV9|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: SecurityLevel|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: SecurityLevel
Method or attribute name: S1|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: SecurityLevel
Method or attribute name: S2|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: SecurityLevel
Method or attribute name: S3|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: SecurityLevel
Method or attribute name: S4|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: insert|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: insert|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: batchInsert|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: batchInsert|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: update|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: update|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: update|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: update|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: delete|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: delete|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: delete|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: delete|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: query|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: query|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: query|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: query|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: remoteQuery|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: remoteQuery|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: querySql|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: querySql|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: executeSql|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: executeSql|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: beginTransaction|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: commit|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: rollBack|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: backup|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: backup|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: restore|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: restore|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: setDistributedTables|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: setDistributedTables|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: obtainDistributedTableName|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: obtainDistributedTableName|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: sync|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: sync|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: on_dataChange|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: off_dataChange|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: StoreConfigV9|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: StoreConfigV9
Method or attribute name: name|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: StoreConfigV9
Method or attribute name: securityLevel|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: StoreConfigV9
Method or attribute name: encrypt|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: ructor(name|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: inDevices|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: inAllDevices|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: equalTo|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: notEqualTo|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: beginWrap|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: endWrap|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: or|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: and|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: contains|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: beginsWith|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: endsWith|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: isNull|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: isNotNull|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: like|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: glob|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: between|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: notBetween|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: greaterThan|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: lessThan|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: greaterThanOrEqualTo|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: lessThanOrEqualTo|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: orderByAsc|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: orderByDesc|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: distinct|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: limitAs|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: offsetAs|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: groupBy|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: indexedBy|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: in|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: notIn|@ohos.data.rdb.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: columnNames|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: columnCount|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: rowCount|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: rowIndex|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: isAtFirstRow|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: isAtLastRow|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: isEnded|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: isStarted|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: isClosed|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: getColumnIndex|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: getColumnName|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: goTo|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: goToRow|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: goToFirstRow|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: goToLastRow|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: goToNextRow|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: goToPreviousRow|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: getBlob|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: getString|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: getLong|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: getDouble|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: isColumnNull|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: close|resultSet.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: KVManagerConfig
Method or attribute name: context||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: KVStore
Method or attribute name: backup||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: KVStore
Method or attribute name: backup||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: KVStore
Method or attribute name: restore||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: KVStore
Method or attribute name: restore||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: KVStore
Method or attribute name: deleteBackup||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: KVStore
Method or attribute name: deleteBackup||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: KVStore
Method or attribute name: off_syncComplete||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: SingleKVStore
Method or attribute name: on_dataChange||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: SingleKVStore
Method or attribute name: off_dataChange||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: DeviceKVStore
Method or attribute name: on_dataChange||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: DeviceKVStore
Method or attribute name: off_dataChange||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedDataObject
Class name: DistributedObject
Method or attribute name: save||@ohos.data.distributedDataObject.d.ts| +|Deleted|Module name: ohos.data.distributedDataObject
Class name: DistributedObject
Method or attribute name: save||@ohos.data.distributedDataObject.d.ts| +|Deleted|Module name: ohos.data.distributedDataObject
Class name: DistributedObject
Method or attribute name: revokeSave||@ohos.data.distributedDataObject.d.ts| +|Deleted|Module name: ohos.data.distributedDataObject
Class name: DistributedObject
Method or attribute name: revokeSave||@ohos.data.distributedDataObject.d.ts| +|Deleted|Module name: ohos.data.rdb
Class name: RdbStore
Method or attribute name: remoteQuery||@ohos.data.rdb.d.ts| +|Deleted|Module name: ohos.data.rdb
Class name: RdbStore
Method or attribute name: remoteQuery||@ohos.data.rdb.d.ts| +|Deleted|Module name: ohos.data.rdb
Class name: RdbStore
Method or attribute name: backup||@ohos.data.rdb.d.ts| +|Deleted|Module name: ohos.data.rdb
Class name: RdbStore
Method or attribute name: backup||@ohos.data.rdb.d.ts| +|Deleted|Module name: ohos.data.rdb
Class name: RdbStore
Method or attribute name: restore||@ohos.data.rdb.d.ts| +|Deleted|Module name: ohos.data.rdb
Class name: RdbStore
Method or attribute name: restore||@ohos.data.rdb.d.ts| +|Deleted|Module name: ohos.data.rdb
Class name: StoreConfig
Method or attribute name: encrypt||@ohos.data.rdb.d.ts| +|Model changed|Class name: dataShare
model:|Class name: dataShare
model:@StageModelOnly|@ohos.data.dataShare.d.ts| +|Access level changed|Class name: dataShare
Access level: public API|Class name: dataShare
Access level: system API|@ohos.data.dataShare.d.ts| +|Deprecated version changed|Class name: distributedData
Deprecated version: N/A|Class name: distributedData
Deprecated version: 9
New API: ohos.data.distributedKVStore |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: KVManagerConfig
Deprecated version: N/A|Class name: KVManagerConfig
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManagerConfig |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: userInfo
Deprecated version: N/A|Method or attribute name: userInfo
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManagerConfig |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: bundleName
Deprecated version: N/A|Method or attribute name: bundleName
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManagerConfig|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: UserInfo
Deprecated version: N/A|Class name: UserInfo
Deprecated version: 9
New API: ohos.data.distributedKVStore |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: userId
Deprecated version: N/A|Method or attribute name: userId
Deprecated version: 9
New API: ohos.data.distributedKVStore |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: userType
Deprecated version: N/A|Method or attribute name: userType
Deprecated version: 9
New API: ohos.data.distributedKVStore |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: UserType
Deprecated version: N/A|Class name: UserType
Deprecated version: 9
New API: ohos.data.distributedKVStore |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: SAME_USER_ID
Deprecated version: N/A|Method or attribute name: SAME_USER_ID
Deprecated version: 9
New API: ohos.data.distributedKVStore |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: Constants
Deprecated version: N/A|Class name: Constants
Deprecated version: 9
New API: ohos.data.distributedKVStore.Constants |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: MAX_KEY_LENGTH
Deprecated version: N/A|Method or attribute name: MAX_KEY_LENGTH
Deprecated version: 9
New API: ohos.data.distributedKVStore.Constants|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: MAX_VALUE_LENGTH
Deprecated version: N/A|Method or attribute name: MAX_VALUE_LENGTH
Deprecated version: 9
New API: ohos.data.distributedKVStore.Constants|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: MAX_KEY_LENGTH_DEVICE
Deprecated version: N/A|Method or attribute name: MAX_KEY_LENGTH_DEVICE
Deprecated version: 9
New API: ohos.data.distributedKVStore.Constants|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: MAX_STORE_ID_LENGTH
Deprecated version: N/A|Method or attribute name: MAX_STORE_ID_LENGTH
Deprecated version: 9
New API: ohos.data.distributedKVStore.Constants|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: MAX_QUERY_LENGTH
Deprecated version: N/A|Method or attribute name: MAX_QUERY_LENGTH
Deprecated version: 9
New API: ohos.data.distributedKVStore.Constants|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: MAX_BATCH_SIZE
Deprecated version: N/A|Method or attribute name: MAX_BATCH_SIZE
Deprecated version: 9
New API: ohos.data.distributedKVStore.Constants|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: ValueType
Deprecated version: N/A|Class name: ValueType
Deprecated version: 9
New API: ohos.data.distributedKVStore.ValueType |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: STRING
Deprecated version: N/A|Method or attribute name: STRING
Deprecated version: 9
New API: ohos.data.distributedKVStore.ValueType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: INTEGER
Deprecated version: N/A|Method or attribute name: INTEGER
Deprecated version: 9
New API: ohos.data.distributedKVStore.ValueType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: FLOAT
Deprecated version: N/A|Method or attribute name: FLOAT
Deprecated version: 9
New API: ohos.data.distributedKVStore.ValueType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: BYTE_ARRAY
Deprecated version: N/A|Method or attribute name: BYTE_ARRAY
Deprecated version: 9
New API: ohos.data.distributedKVStore.ValueTypeB|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: BOOLEAN
Deprecated version: N/A|Method or attribute name: BOOLEAN
Deprecated version: 9
New API: ohos.data.distributedKVStore.ValueType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: DOUBLE
Deprecated version: N/A|Method or attribute name: DOUBLE
Deprecated version: 9
New API: ohos.data.distributedKVStore.ValueType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: Value
Deprecated version: N/A|Class name: Value
Deprecated version: 9
New API: ohos.data.distributedKVStore.Value |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: type
Deprecated version: N/A|Method or attribute name: type
Deprecated version: 9
New API: ohos.data.distributedKVStore.Value|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: value
Deprecated version: N/A|Method or attribute name: value
Deprecated version: 9
New API: ohos.data.distributedKVStore.Value|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: Entry
Deprecated version: N/A|Class name: Entry
Deprecated version: 9
New API: ohos.data.distributedKVStore.Entry |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: key
Deprecated version: N/A|Method or attribute name: key
Deprecated version: 9
New API: ohos.data.distributedKVStore.Entry|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: value
Deprecated version: N/A|Method or attribute name: value
Deprecated version: 9
New API: ohos.data.distributedKVStore.Entry|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: ChangeNotification
Deprecated version: N/A|Class name: ChangeNotification
Deprecated version: 9
New API: ohos.data.distributedKVStore.ChangeNotification |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: insertEntries
Deprecated version: N/A|Method or attribute name: insertEntries
Deprecated version: 9
New API: ohos.data.distributedKVStore.ChangeNotification|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: updateEntries
Deprecated version: N/A|Method or attribute name: updateEntries
Deprecated version: 9
New API: ohos.data.distributedKVStore.ChangeNotification|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: deleteEntries
Deprecated version: N/A|Method or attribute name: deleteEntries
Deprecated version: 9
New API: ohos.data.distributedKVStore.ChangeNotification|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: deviceId
Deprecated version: N/A|Method or attribute name: deviceId
Deprecated version: 9
New API: ohos.data.distributedKVStore.ChangeNotification|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: SyncMode
Deprecated version: N/A|Class name: SyncMode
Deprecated version: 9
New API: ohos.data.distributedKVStore.SyncMode |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: PULL_ONLY
Deprecated version: N/A|Method or attribute name: PULL_ONLY
Deprecated version: 9
New API: ohos.data.distributedKVStore.SyncMode|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: PUSH_ONLY
Deprecated version: N/A|Method or attribute name: PUSH_ONLY
Deprecated version: 9
New API: ohos.data.distributedKVStore.SyncMode|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: PUSH_PULL
Deprecated version: N/A|Method or attribute name: PUSH_PULL
Deprecated version: 9
New API: ohos.data.distributedKVStore.SyncMode|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: SubscribeType
Deprecated version: N/A|Class name: SubscribeType
Deprecated version: 9
New API: ohos.data.distributedKVStore.SubscribeType |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: SUBSCRIBE_TYPE_LOCAL
Deprecated version: N/A|Method or attribute name: SUBSCRIBE_TYPE_LOCAL
Deprecated version: 9
New API: ohos.data.distributedKVStore.SubscribeType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: SUBSCRIBE_TYPE_REMOTE
Deprecated version: N/A|Method or attribute name: SUBSCRIBE_TYPE_REMOTE
Deprecated version: 9
New API: ohos.data.distributedKVStore.SubscribeType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: SUBSCRIBE_TYPE_ALL
Deprecated version: N/A|Method or attribute name: SUBSCRIBE_TYPE_ALL
Deprecated version: 9
New API: ohos.data.distributedKVStore.SubscribeType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: KVStoreType
Deprecated version: N/A|Class name: KVStoreType
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreType |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: DEVICE_COLLABORATION
Deprecated version: N/A|Method or attribute name: DEVICE_COLLABORATION
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: SINGLE_VERSION
Deprecated version: N/A|Method or attribute name: SINGLE_VERSION
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: MULTI_VERSION
Deprecated version: N/A|Method or attribute name: MULTI_VERSION
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreType |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: SecurityLevel
Deprecated version: N/A|Class name: SecurityLevel
Deprecated version: 9
New API: ohos.data.distributedKVStore.SecurityLevel |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: NO_LEVEL
Deprecated version: N/A|Method or attribute name: NO_LEVEL
Deprecated version: 9
New API: ohos.data.distributedKVStore.SecurityLevel |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: S0
Deprecated version: N/A|Method or attribute name: S0
Deprecated version: 9
New API: ohos.data.distributedKVStore.SecurityLevel |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: S1
Deprecated version: N/A|Method or attribute name: S1
Deprecated version: 9
New API: ohos.data.distributedKVStore.SecurityLevel|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: S2
Deprecated version: N/A|Method or attribute name: S2
Deprecated version: 9
New API: ohos.data.distributedKVStore.SecurityLevel|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: S3
Deprecated version: N/A|Method or attribute name: S3
Deprecated version: 9
New API: ohos.data.distributedKVStore.SecurityLevel|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: S4
Deprecated version: N/A|Method or attribute name: S4
Deprecated version: 9
New API: ohos.data.distributedKVStore.SecurityLevel|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: Options
Deprecated version: N/A|Class name: Options
Deprecated version: 9
New API: ohos.data.distributedKVStore.Options |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: createIfMissing
Deprecated version: N/A|Method or attribute name: createIfMissing
Deprecated version: 9
New API: ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: encrypt
Deprecated version: N/A|Method or attribute name: encrypt
Deprecated version: 9
New API: ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: backup
Deprecated version: N/A|Method or attribute name: backup
Deprecated version: 9
New API: ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: autoSync
Deprecated version: N/A|Method or attribute name: autoSync
Deprecated version: 9
New API: ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: kvStoreType
Deprecated version: N/A|Method or attribute name: kvStoreType
Deprecated version: 9
New API: ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: securityLevel
Deprecated version: N/A|Method or attribute name: securityLevel
Deprecated version: 9
New API: ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: schema
Deprecated version: N/A|Method or attribute name: schema
Deprecated version: 9
New API: ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: Schema
Deprecated version: N/A|Class name: Schema
Deprecated version: 9
New API: ohos.data.distributedKVStore.Schema |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: root
Deprecated version: N/A|Method or attribute name: root
Deprecated version: 9
New API: ohos.data.distributedKVStore.Schema|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: indexes
Deprecated version: N/A|Method or attribute name: indexes
Deprecated version: 9
New API: ohos.data.distributedKVStore.Schema|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: mode
Deprecated version: N/A|Method or attribute name: mode
Deprecated version: 9
New API: ohos.data.distributedKVStore.Schema|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: skip
Deprecated version: N/A|Method or attribute name: skip
Deprecated version: 9
New API: ohos.data.distributedKVStore.Schema|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: FieldNode
Deprecated version: N/A|Class name: FieldNode
Deprecated version: 9
New API: ohos.data.distributedKVStore.FieldNode |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: ructor(name
Deprecated version: N/A|Method or attribute name: ructor(name
Deprecated version: 9
New API: ohos.data.distributedKVStore.FieldNode|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: appendChild
Deprecated version: N/A|Method or attribute name: appendChild
Deprecated version: 9
New API: ohos.data.distributedKVStore.FieldNode|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: default
Deprecated version: N/A|Method or attribute name: default
Deprecated version: 9
New API: ohos.data.distributedKVStore.FieldNode|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: nullable
Deprecated version: N/A|Method or attribute name: nullable
Deprecated version: 9
New API: ohos.data.distributedKVStore.FieldNode|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: type
Deprecated version: N/A|Method or attribute name: type
Deprecated version: 9
New API: ohos.data.distributedKVStore.FieldNode|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: KvStoreResultSet
Deprecated version: N/A|Class name: KvStoreResultSet
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getCount
Deprecated version: N/A|Method or attribute name: getCount
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getPosition
Deprecated version: N/A|Method or attribute name: getPosition
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: moveToFirst
Deprecated version: N/A|Method or attribute name: moveToFirst
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: moveToLast
Deprecated version: N/A|Method or attribute name: moveToLast
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: moveToNext
Deprecated version: N/A|Method or attribute name: moveToNext
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: moveToPrevious
Deprecated version: N/A|Method or attribute name: moveToPrevious
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: move
Deprecated version: N/A|Method or attribute name: move
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: moveToPosition
Deprecated version: N/A|Method or attribute name: moveToPosition
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: isFirst
Deprecated version: N/A|Method or attribute name: isFirst
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: isLast
Deprecated version: N/A|Method or attribute name: isLast
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: isBeforeFirst
Deprecated version: N/A|Method or attribute name: isBeforeFirst
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: isAfterLast
Deprecated version: N/A|Method or attribute name: isAfterLast
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntry
Deprecated version: N/A|Method or attribute name: getEntry
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: Query
Deprecated version: N/A|Class name: Query
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: reset
Deprecated version: N/A|Method or attribute name: reset
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: equalTo
Deprecated version: N/A|Method or attribute name: equalTo
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: notEqualTo
Deprecated version: N/A|Method or attribute name: notEqualTo
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: greaterThan
Deprecated version: N/A|Method or attribute name: greaterThan
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: lessThan
Deprecated version: N/A|Method or attribute name: lessThan
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: greaterThanOrEqualTo
Deprecated version: N/A|Method or attribute name: greaterThanOrEqualTo
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: lessThanOrEqualTo
Deprecated version: N/A|Method or attribute name: lessThanOrEqualTo
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: isNull
Deprecated version: N/A|Method or attribute name: isNull
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: inNumber
Deprecated version: N/A|Method or attribute name: inNumber
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: inString
Deprecated version: N/A|Method or attribute name: inString
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: notInNumber
Deprecated version: N/A|Method or attribute name: notInNumber
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: notInString
Deprecated version: N/A|Method or attribute name: notInString
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: like
Deprecated version: N/A|Method or attribute name: like
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: unlike
Deprecated version: N/A|Method or attribute name: unlike
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: and
Deprecated version: N/A|Method or attribute name: and
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: or
Deprecated version: N/A|Method or attribute name: or
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: orderByAsc
Deprecated version: N/A|Method or attribute name: orderByAsc
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: orderByDesc
Deprecated version: N/A|Method or attribute name: orderByDesc
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: limit
Deprecated version: N/A|Method or attribute name: limit
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: isNotNull
Deprecated version: N/A|Method or attribute name: isNotNull
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: beginGroup
Deprecated version: N/A|Method or attribute name: beginGroup
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: endGroup
Deprecated version: N/A|Method or attribute name: endGroup
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: prefixKey
Deprecated version: N/A|Method or attribute name: prefixKey
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: setSuggestIndex
Deprecated version: N/A|Method or attribute name: setSuggestIndex
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: deviceId
Deprecated version: N/A|Method or attribute name: deviceId
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getSqlLike
Deprecated version: N/A|Method or attribute name: getSqlLike
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: KVStore
Deprecated version: N/A|Class name: KVStore
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: put
Deprecated version: N/A|Method or attribute name: put
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: put
Deprecated version: N/A|Method or attribute name: put
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: delete
Deprecated version: N/A|Method or attribute name: delete
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: delete
Deprecated version: N/A|Method or attribute name: delete
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: on_dataChange
Deprecated version: N/A|Method or attribute name: on_dataChange
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: on_syncComplete
Deprecated version: N/A|Method or attribute name: on_syncComplete
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: putBatch
Deprecated version: N/A|Method or attribute name: putBatch
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: putBatch
Deprecated version: N/A|Method or attribute name: putBatch
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: deleteBatch
Deprecated version: N/A|Method or attribute name: deleteBatch
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: deleteBatch
Deprecated version: N/A|Method or attribute name: deleteBatch
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: startTransaction
Deprecated version: N/A|Method or attribute name: startTransaction
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: startTransaction
Deprecated version: N/A|Method or attribute name: startTransaction
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: commit
Deprecated version: N/A|Method or attribute name: commit
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: commit
Deprecated version: N/A|Method or attribute name: commit
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: rollback
Deprecated version: N/A|Method or attribute name: rollback
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: rollback
Deprecated version: N/A|Method or attribute name: rollback
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: enableSync
Deprecated version: N/A|Method or attribute name: enableSync
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: enableSync
Deprecated version: N/A|Method or attribute name: enableSync
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: setSyncRange
Deprecated version: N/A|Method or attribute name: setSyncRange
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: setSyncRange
Deprecated version: N/A|Method or attribute name: setSyncRange
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: SingleKVStore
Deprecated version: N/A|Class name: SingleKVStore
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: get
Deprecated version: N/A|Method or attribute name: get
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: get
Deprecated version: N/A|Method or attribute name: get
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: closeResultSet
Deprecated version: N/A|Method or attribute name: closeResultSet
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: closeResultSet
Deprecated version: N/A|Method or attribute name: closeResultSet
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSize
Deprecated version: N/A|Method or attribute name: getResultSize
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSize
Deprecated version: N/A|Method or attribute name: getResultSize
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: removeDeviceData
Deprecated version: N/A|Method or attribute name: removeDeviceData
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: removeDeviceData
Deprecated version: N/A|Method or attribute name: removeDeviceData
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: on_syncComplete
Deprecated version: N/A|Method or attribute name: on_syncComplete
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: off_syncComplete
Deprecated version: N/A|Method or attribute name: off_syncComplete
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: setSyncParam
Deprecated version: N/A|Method or attribute name: setSyncParam
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: setSyncParam
Deprecated version: N/A|Method or attribute name: setSyncParam
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getSecurityLevel
Deprecated version: N/A|Method or attribute name: getSecurityLevel
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getSecurityLevel
Deprecated version: N/A|Method or attribute name: getSecurityLevel
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: DeviceKVStore
Deprecated version: N/A|Class name: DeviceKVStore
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: get
Deprecated version: N/A|Method or attribute name: get
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: get
Deprecated version: N/A|Method or attribute name: get
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: closeResultSet
Deprecated version: N/A|Method or attribute name: closeResultSet
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: closeResultSet
Deprecated version: N/A|Method or attribute name: closeResultSet
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSize
Deprecated version: N/A|Method or attribute name: getResultSize
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSize
Deprecated version: N/A|Method or attribute name: getResultSize
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSize
Deprecated version: N/A|Method or attribute name: getResultSize
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSize
Deprecated version: N/A|Method or attribute name: getResultSize
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: removeDeviceData
Deprecated version: N/A|Method or attribute name: removeDeviceData
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: removeDeviceData
Deprecated version: N/A|Method or attribute name: removeDeviceData
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: sync
Deprecated version: N/A|Method or attribute name: sync
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: on_syncComplete
Deprecated version: N/A|Method or attribute name: on_syncComplete
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: off_syncComplete
Deprecated version: N/A|Method or attribute name: off_syncComplete
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: createKVManager
Deprecated version: N/A|Method or attribute name: createKVManager
Deprecated version: 9
New API: ohos.data.distributedKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: createKVManager
Deprecated version: N/A|Method or attribute name: createKVManager
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: KVManager
Deprecated version: N/A|Class name: KVManager
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManager |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getKVStore
Deprecated version: N/A|Method or attribute name: getKVStore
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getKVStore
Deprecated version: N/A|Method or attribute name: getKVStore
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: closeKVStore
Deprecated version: N/A|Method or attribute name: closeKVStore
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: closeKVStore
Deprecated version: N/A|Method or attribute name: closeKVStore
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: deleteKVStore
Deprecated version: N/A|Method or attribute name: deleteKVStore
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: deleteKVStore
Deprecated version: N/A|Method or attribute name: deleteKVStore
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getAllKVStoreId
Deprecated version: N/A|Method or attribute name: getAllKVStoreId
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getAllKVStoreId
Deprecated version: N/A|Method or attribute name: getAllKVStoreId
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: on_distributedDataServiceDie
Deprecated version: N/A|Method or attribute name: on_distributedDataServiceDie
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: off_distributedDataServiceDie
Deprecated version: N/A|Method or attribute name: off_distributedDataServiceDie
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: createDistributedObject
Deprecated version: N/A|Method or attribute name: createDistributedObject
Deprecated version: 9
New API: ohos.distributedDataObject.create |@ohos.data.distributedDataObject.d.ts| +|Deprecated version changed|Class name: DistributedObject
Deprecated version: N/A|Class name: DistributedObject
Deprecated version: 9
New API: ohos.distributedDataObject.DistributedObjectV9 |@ohos.data.distributedDataObject.d.ts| +|Deprecated version changed|Method or attribute name: setSessionId
Deprecated version: N/A|Method or attribute name: setSessionId
Deprecated version: 9
New API: ohos.distributedDataObject.DistributedObjectV9.setSessionId |@ohos.data.distributedDataObject.d.ts| +|Deprecated version changed|Method or attribute name: on_change
Deprecated version: N/A|Method or attribute name: on_change
Deprecated version: 9
New API: ohos.distributedDataObject.DistributedObjectV9.on |@ohos.data.distributedDataObject.d.ts| +|Deprecated version changed|Method or attribute name: off_change
Deprecated version: N/A|Method or attribute name: off_change
Deprecated version: 9
New API: ohos.distributedDataObject.DistributedObjectV9.off |@ohos.data.distributedDataObject.d.ts| +|Deprecated version changed|Method or attribute name: getRdbStore
Deprecated version: N/A|Method or attribute name: getRdbStore
Deprecated version: 9
New API: ohos.data.rdb.getRdbStoreV9 |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: getRdbStore
Deprecated version: N/A|Method or attribute name: getRdbStore
Deprecated version: 9
New API: ohos.data.rdb.getRdbStoreV9 |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: deleteRdbStore
Deprecated version: N/A|Method or attribute name: deleteRdbStore
Deprecated version: 9
New API: ohos.data.rdb.deleteRdbStoreV9 |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: deleteRdbStore
Deprecated version: N/A|Method or attribute name: deleteRdbStore
Deprecated version: 9
New API: ohos.data.rdb.deleteRdbStoreV9 |@ohos.data.rdb.d.ts| +|Deprecated version changed|Class name: RdbStore
Deprecated version: N/A|Class name: RdbStore
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9 |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: insert
Deprecated version: N/A|Method or attribute name: insert
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.insert |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: insert
Deprecated version: N/A|Method or attribute name: insert
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.insert |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: batchInsert
Deprecated version: N/A|Method or attribute name: batchInsert
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.batchInsert |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: batchInsert
Deprecated version: N/A|Method or attribute name: batchInsert
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.batchInsert |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: update
Deprecated version: N/A|Method or attribute name: update
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.update |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: update
Deprecated version: N/A|Method or attribute name: update
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.update |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: delete
Deprecated version: N/A|Method or attribute name: delete
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.delete |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: delete
Deprecated version: N/A|Method or attribute name: delete
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.delete |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: query
Deprecated version: N/A|Method or attribute name: query
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.query |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: querySql
Deprecated version: N/A|Method or attribute name: querySql
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.querySql |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: executeSql
Deprecated version: N/A|Method or attribute name: executeSql
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.executeSql |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: setDistributedTables
Deprecated version: N/A|Method or attribute name: setDistributedTables
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.setDistributedTables |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: setDistributedTables
Deprecated version: N/A|Method or attribute name: setDistributedTables
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.setDistributedTables |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: obtainDistributedTableName
Deprecated version: N/A|Method or attribute name: obtainDistributedTableName
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.obtainDistributedTableName |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: obtainDistributedTableName
Deprecated version: N/A|Method or attribute name: obtainDistributedTableName
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.obtainDistributedTableName |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: on_dataChange
Deprecated version: N/A|Method or attribute name: on_dataChange
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.on |@ohos.data.rdb.d.ts| +|Deprecated version changed|Class name: StoreConfig
Deprecated version: N/A|Class name: StoreConfig
Deprecated version: 9
New API: ohos.data.rdb.StoreConfigV9 |@ohos.data.rdb.d.ts| +|Deprecated version changed|Class name: RdbPredicates
Deprecated version: N/A|Class name: RdbPredicates
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9 |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: ructor(name
Deprecated version: N/A|Method or attribute name: ructor(name
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.constructor |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: inDevices
Deprecated version: N/A|Method or attribute name: inDevices
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.inDevices |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: inAllDevices
Deprecated version: N/A|Method or attribute name: inAllDevices
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.inAllDevices |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: equalTo
Deprecated version: N/A|Method or attribute name: equalTo
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.equalTo |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: notEqualTo
Deprecated version: N/A|Method or attribute name: notEqualTo
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.notEqualTo |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: beginWrap
Deprecated version: N/A|Method or attribute name: beginWrap
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.beginWrap |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: endWrap
Deprecated version: N/A|Method or attribute name: endWrap
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.endWrap |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: or
Deprecated version: N/A|Method or attribute name: or
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.or |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: and
Deprecated version: N/A|Method or attribute name: and
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.and |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: contains
Deprecated version: N/A|Method or attribute name: contains
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.contains |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: beginsWith
Deprecated version: N/A|Method or attribute name: beginsWith
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.beginsWith |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: endsWith
Deprecated version: N/A|Method or attribute name: endsWith
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.endsWith |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: isNull
Deprecated version: N/A|Method or attribute name: isNull
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.isNull |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: isNotNull
Deprecated version: N/A|Method or attribute name: isNotNull
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.isNotNull |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: like
Deprecated version: N/A|Method or attribute name: like
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.like |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: glob
Deprecated version: N/A|Method or attribute name: glob
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.glob |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: between
Deprecated version: N/A|Method or attribute name: between
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.between |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: notBetween
Deprecated version: N/A|Method or attribute name: notBetween
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.notBetween |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: greaterThan
Deprecated version: N/A|Method or attribute name: greaterThan
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.greaterThan |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: lessThan
Deprecated version: N/A|Method or attribute name: lessThan
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.lessThan |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: greaterThanOrEqualTo
Deprecated version: N/A|Method or attribute name: greaterThanOrEqualTo
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.greaterThanOrEqualTo |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: lessThanOrEqualTo
Deprecated version: N/A|Method or attribute name: lessThanOrEqualTo
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.lessThanOrEqualTo |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: orderByAsc
Deprecated version: N/A|Method or attribute name: orderByAsc
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.orderByAsc |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: orderByDesc
Deprecated version: N/A|Method or attribute name: orderByDesc
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.orderByDesc |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: distinct
Deprecated version: N/A|Method or attribute name: distinct
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.distinct |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: limitAs
Deprecated version: N/A|Method or attribute name: limitAs
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.limitAs |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: offsetAs
Deprecated version: N/A|Method or attribute name: offsetAs
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.offsetAs |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: groupBy
Deprecated version: N/A|Method or attribute name: groupBy
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.groupBy |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: indexedBy
Deprecated version: N/A|Method or attribute name: indexedBy
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.indexedBy |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: in
Deprecated version: N/A|Method or attribute name: in
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.in |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: notIn
Deprecated version: N/A|Method or attribute name: notIn
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.notIn |@ohos.data.rdb.d.ts| +|Deprecated version changed|Class name: ResultSet
Deprecated version: N/A|Class name: ResultSet
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9 |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: columnNames
Deprecated version: N/A|Method or attribute name: columnNames
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.columnNames |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: columnCount
Deprecated version: N/A|Method or attribute name: columnCount
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.columnCount |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: rowCount
Deprecated version: N/A|Method or attribute name: rowCount
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.rowCount |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: rowIndex
Deprecated version: N/A|Method or attribute name: rowIndex
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.rowIndex |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: isAtFirstRow
Deprecated version: N/A|Method or attribute name: isAtFirstRow
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.isAtFirstRow |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: isAtLastRow
Deprecated version: N/A|Method or attribute name: isAtLastRow
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.isAtLastRow |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: isEnded
Deprecated version: N/A|Method or attribute name: isEnded
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.isEnded |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: isStarted
Deprecated version: N/A|Method or attribute name: isStarted
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.isStarted |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: isClosed
Deprecated version: N/A|Method or attribute name: isClosed
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.isClosed |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: getColumnIndex
Deprecated version: N/A|Method or attribute name: getColumnIndex
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.getColumnIndex |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: getColumnName
Deprecated version: N/A|Method or attribute name: getColumnName
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.getColumnName |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: goTo
Deprecated version: N/A|Method or attribute name: goTo
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.goTo |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: goToRow
Deprecated version: N/A|Method or attribute name: goToRow
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.goToRow |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: goToFirstRow
Deprecated version: N/A|Method or attribute name: goToFirstRow
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.goToFirstRow |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: goToLastRow
Deprecated version: N/A|Method or attribute name: goToLastRow
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.goToLastRow |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: goToNextRow
Deprecated version: N/A|Method or attribute name: goToNextRow
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.goToNextRow |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: goToPreviousRow
Deprecated version: N/A|Method or attribute name: goToPreviousRow
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.goToPreviousRow |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: getBlob
Deprecated version: N/A|Method or attribute name: getBlob
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.getBlob |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: getString
Deprecated version: N/A|Method or attribute name: getString
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.getString |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: getLong
Deprecated version: N/A|Method or attribute name: getLong
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.getLong |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: getDouble
Deprecated version: N/A|Method or attribute name: getDouble
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.getDouble |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: isColumnNull
Deprecated version: N/A|Method or attribute name: isColumnNull
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.isColumnNull |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: close
Deprecated version: N/A|Method or attribute name: close
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.close |resultSet.d.ts| +|Initial version changed|Class name: dataShare
Initial version: |Class name: dataShare
Initial version: 9|@ohos.data.dataShare.d.ts| +|Initial version changed|Method or attribute name: batchInsert
Initial version: 9|Method or attribute name: batchInsert
Initial version: 7|@ohos.data.rdb.d.ts| +|Initial version changed|Method or attribute name: batchInsert
Initial version: 9|Method or attribute name: batchInsert
Initial version: 7|@ohos.data.rdb.d.ts| +|Initial version changed|Method or attribute name: executeSql
Initial version: 7|Method or attribute name: executeSql
Initial version: 8|@ohos.data.rdb.d.ts| +|Permission deleted|Method or attribute name: on_dataChange
Permission: ohos.permission.DISTRIBUTED_DATASYNC|Method or attribute name: on_dataChange
Permission: N/A|@ohos.data.rdb.d.ts| +|Access level changed|Class name: dataShare
Access level: public API|Class name: dataShare
Access level: system API|@ohos.data.dataShare.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-distributed-hardware.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-distributed-hardware.md new file mode 100644 index 0000000000000000000000000000000000000000..7065876b974c7fdce95939d6a3a207b89366ebac --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-distributed-hardware.md @@ -0,0 +1,5 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.distributedHardware.deviceManager
Class name: DeviceManager
Method or attribute name: setUserOperation|@ohos.distributedHardware.deviceManager.d.ts| +|Added||Module name: ohos.distributedHardware.deviceManager
Class name: DeviceManager
Method or attribute name: on_uiStateChange|@ohos.distributedHardware.deviceManager.d.ts| +|Added||Module name: ohos.distributedHardware.deviceManager
Class name: DeviceManager
Method or attribute name: off_uiStateChange|@ohos.distributedHardware.deviceManager.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-file-management.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-file-management.md new file mode 100644 index 0000000000000000000000000000000000000000..a3d85a5007d8e4403af079df61680a4aa06f49eb --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-file-management.md @@ -0,0 +1,294 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.filemanagement.userFileManager
Class name: userFileManager|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: userFileManager
Method or attribute name: getUserFileMgr|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileType|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileType
Method or attribute name: IMAGE|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileType
Method or attribute name: VIDEO|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileType
Method or attribute name: AUDIO|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: uri|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: fileType|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: displayName|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: get|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: set|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: commitModify|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: commitModify|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: open|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: open|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: close|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: close|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: getThumbnail|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: getThumbnail|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: getThumbnail|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: favorite|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: favorite|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey
Method or attribute name: URI|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey
Method or attribute name: DISPLAY_NAME|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey
Method or attribute name: DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey
Method or attribute name: DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey
Method or attribute name: TITLE|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey
Method or attribute name: ARTIST|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey
Method or attribute name: AUDIOALBUM|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey
Method or attribute name: DURATION|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey
Method or attribute name: FAVORITE|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: URI|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: FILE_TYPE|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: DISPLAY_NAME|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: TITLE|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: DURATION|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: WIDTH|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: HEIGHT|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: DATE_TAKEN|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: ORIENTATION|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: FAVORITE|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AlbumKey|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AlbumKey
Method or attribute name: URI|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AlbumKey
Method or attribute name: FILE_TYPE|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AlbumKey
Method or attribute name: ALBUM_NAME|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AlbumKey
Method or attribute name: DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AlbumKey
Method or attribute name: DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchOptions|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchOptions
Method or attribute name: fetchColumns|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchOptions
Method or attribute name: predicates|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AlbumFetchOptions|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AlbumFetchOptions
Method or attribute name: predicates|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: getCount|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: isAfterLast|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: close|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: getFirstObject|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: getFirstObject|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: getNextObject|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: getNextObject|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: getLastObject|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: getLastObject|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: getPositionObject|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: getPositionObject|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AbsAlbum|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AbsAlbum
Method or attribute name: albumName|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AbsAlbum
Method or attribute name: albumUri|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AbsAlbum
Method or attribute name: dateModified|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AbsAlbum
Method or attribute name: count|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AbsAlbum
Method or attribute name: coverUri|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AbsAlbum
Method or attribute name: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AbsAlbum
Method or attribute name: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: Album|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: Album
Method or attribute name: commitModify|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: Album
Method or attribute name: commitModify|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: createPhotoAsset|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: createPhotoAsset|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: createPhotoAsset|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getPhotoAlbums|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getPhotoAlbums|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getPrivateAlbum|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getPrivateAlbum|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getAudioAssets|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getAudioAssets|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: delete|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: delete|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: on_deviceChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: on_albumChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: on_imageChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: on_audioChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: on_videoChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: on_remoteFileChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: off_deviceChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: off_albumChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: off_imageChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: off_audioChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: off_videoChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: off_remoteFileChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getActivePeers|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getActivePeers|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getAllPeers|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getAllPeers|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: release|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: release|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PeerInfo|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PeerInfo
Method or attribute name: deviceName|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PeerInfo
Method or attribute name: networkId|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PeerInfo
Method or attribute name: isOnline|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PrivateAlbumType|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PrivateAlbumType
Method or attribute name: TYPE_FAVORITE|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PrivateAlbumType
Method or attribute name: TYPE_TRASH|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PrivateAlbum|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PrivateAlbum
Method or attribute name: delete|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PrivateAlbum
Method or attribute name: delete|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PrivateAlbum
Method or attribute name: recover|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PrivateAlbum
Method or attribute name: recover|@ohos.filemanagement.userFileManager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: userfile_manager||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: userfile_manager
Method or attribute name: getUserFileMgr||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: userfile_manager
Method or attribute name: getUserFileMgr||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: MediaType||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: MediaType
Method or attribute name: FILE||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: MediaType
Method or attribute name: IMAGE||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: MediaType
Method or attribute name: VIDEO||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: MediaType
Method or attribute name: AUDIO||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: uri||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: mediaType||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: displayName||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: isDirectory||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: isDirectory||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: commitModify||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: commitModify||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: open||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: open||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: close||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: close||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: getThumbnail||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: getThumbnail||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: getThumbnail||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: favorite||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: favorite||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: isFavorite||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: isFavorite||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: trash||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: trash||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: isTrash||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: isTrash||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileKey||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileKey
Method or attribute name: URI||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileKey
Method or attribute name: RELATIVE_PATH||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileKey
Method or attribute name: DISPLAY_NAME||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileKey
Method or attribute name: DATE_ADDED||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileKey
Method or attribute name: DATE_MODIFIED||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FileKey
Method or attribute name: TITLE||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey
Method or attribute name: URI||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey
Method or attribute name: RELATIVE_PATH||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey
Method or attribute name: DISPLAY_NAME||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey
Method or attribute name: DATE_ADDED||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey
Method or attribute name: DATE_MODIFIED||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey
Method or attribute name: TITLE||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey
Method or attribute name: ARTIST||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey
Method or attribute name: AUDIOALBUM||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey
Method or attribute name: DURATION||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: URI||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: RELATIVE_PATH||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: DISPLAY_NAME||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: DATE_ADDED||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: DATE_MODIFIED||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: TITLE||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: DURATION||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: WIDTH||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: HEIGHT||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: DATE_TAKEN||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: AlbumKey||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: AlbumKey
Method or attribute name: URI||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: AlbumKey
Method or attribute name: RELATIVE_PATH||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: AlbumKey
Method or attribute name: DISPLAY_NAME||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: AlbumKey
Method or attribute name: DATE_ADDED||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: AlbumKey
Method or attribute name: DATE_MODIFIED||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: MediaFetchOptions||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: MediaFetchOptions
Method or attribute name: selections||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: MediaFetchOptions
Method or attribute name: selectionArgs||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: getCount||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: isAfterLast||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: close||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: getFirstObject||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: getFirstObject||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: getNextObject||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: getNextObject||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: getLastObject||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: getLastObject||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: getPositionObject||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: getPositionObject||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: Album||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: albumName||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: albumUri||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: dateModified||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: count||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: relativePath||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: coverUri||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: commitModify||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: commitModify||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: DirectoryType||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: DirectoryType
Method or attribute name: DIR_CAMERA||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: DirectoryType
Method or attribute name: DIR_VIDEO||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: DirectoryType
Method or attribute name: DIR_IMAGE||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: DirectoryType
Method or attribute name: DIR_AUDIO||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: DirectoryType
Method or attribute name: DIR_DOCUMENTS||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: DirectoryType
Method or attribute name: DIR_DOWNLOAD||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getPublicDirectory||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getPublicDirectory||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: on_deviceChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: on_albumChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: on_imageChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: on_audioChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: on_videoChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: on_fileChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: on_remoteFileChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: off_deviceChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: off_albumChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: off_imageChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: off_audioChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: off_videoChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: off_fileChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: off_remoteFileChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: createAsset||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: createAsset||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: deleteAsset||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: deleteAsset||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getAlbums||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getAlbums||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getPrivateAlbum||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getPrivateAlbum||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getActivePeers||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getActivePeers||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getAllPeers||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getAllPeers||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: release||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: release||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: Size||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: Size
Method or attribute name: width||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: Size
Method or attribute name: height||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: PeerInfo||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: PeerInfo
Method or attribute name: deviceName||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: PeerInfo
Method or attribute name: networkId||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: PeerInfo
Method or attribute name: isOnline||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: VirtualAlbumType||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: VirtualAlbumType
Method or attribute name: TYPE_FAVORITE||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: VirtualAlbumType
Method or attribute name: TYPE_TRASH||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: VirtualAlbum||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: VirtualAlbum
Method or attribute name: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.filemanagement.userfile_manager
Class name: VirtualAlbum
Method or attribute name: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: filemanager||@ohos.fileManager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: filemanager
Method or attribute name: listFile||@ohos.fileManager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: filemanager
Method or attribute name: listFile||@ohos.fileManager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: filemanager
Method or attribute name: listFile||@ohos.fileManager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: filemanager
Method or attribute name: getRoot||@ohos.fileManager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: filemanager
Method or attribute name: getRoot||@ohos.fileManager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: filemanager
Method or attribute name: getRoot||@ohos.fileManager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: filemanager
Method or attribute name: createFile||@ohos.fileManager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: filemanager
Method or attribute name: createFile||@ohos.fileManager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: filemanager
Method or attribute name: createFile||@ohos.fileManager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: FileInfo||@ohos.fileManager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: FileInfo
Method or attribute name: name||@ohos.fileManager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: FileInfo
Method or attribute name: path||@ohos.fileManager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: FileInfo
Method or attribute name: type||@ohos.fileManager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: FileInfo
Method or attribute name: size||@ohos.fileManager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: FileInfo
Method or attribute name: addedTime||@ohos.fileManager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: FileInfo
Method or attribute name: modifiedTime||@ohos.fileManager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: DevInfo||@ohos.fileManager.d.ts| +|Deleted|Module name: ohos.fileManager
Class name: DevInfo
Method or attribute name: name||@ohos.fileManager.d.ts| +|Permission changed|Method or attribute name: getFileAccessAbilityInfo
Permission: ohos.permission.FILE_ACCESS_MANAGER|Method or attribute name: getFileAccessAbilityInfo
Permission: ohos.permission.FILE_ACCESS_MANAGER and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|@ohos.data.fileAccess.d.ts| +|Permission changed|Method or attribute name: getFileAccessAbilityInfo
Permission: ohos.permission.FILE_ACCESS_MANAGER|Method or attribute name: getFileAccessAbilityInfo
Permission: ohos.permission.FILE_ACCESS_MANAGER and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|@ohos.data.fileAccess.d.ts| +|Permission changed|Method or attribute name: createFileAccessHelper
Permission: ohos.permission.FILE_ACCESS_MANAGER|Method or attribute name: createFileAccessHelper
Permission: ohos.permission.FILE_ACCESS_MANAGER and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|@ohos.data.fileAccess.d.ts| +|Permission changed|Method or attribute name: createFileAccessHelper
Permission: ohos.permission.FILE_ACCESS_MANAGER|Method or attribute name: createFileAccessHelper
Permission: ohos.permission.FILE_ACCESS_MANAGER and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|@ohos.data.fileAccess.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-geolocation.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-geolocation.md new file mode 100644 index 0000000000000000000000000000000000000000..c20d0b35204c56ac7d0ca66f0f70e71bdc5844c1 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-geolocation.md @@ -0,0 +1,173 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: on_countryCodeChange|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: off_countryCodeChange|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: enableLocation|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: enableLocation|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: disableLocation|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: disableLocation|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: getCountryCode|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: getCountryCode|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: enableLocationMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: enableLocationMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: disableLocationMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: disableLocationMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: setMockedLocations|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: setMockedLocations|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: enableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: enableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: disableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: disableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: setReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: setReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: isLocationPrivacyConfirmed|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: isLocationPrivacyConfirmed|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: setLocationPrivacyConfirmStatus|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: setLocationPrivacyConfirmStatus|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: ReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: ReverseGeocodingMockInfo
Method or attribute name: location|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: ReverseGeocodingMockInfo
Method or attribute name: geoAddress|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationMockConfig|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationMockConfig
Method or attribute name: timeInterval|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationMockConfig
Method or attribute name: locations|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: SatelliteStatusInfo|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: SatelliteStatusInfo
Method or attribute name: satellitesNumber|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: SatelliteStatusInfo
Method or attribute name: satelliteIds|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: SatelliteStatusInfo
Method or attribute name: carrierToNoiseDensitys|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: SatelliteStatusInfo
Method or attribute name: altitudes|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: SatelliteStatusInfo
Method or attribute name: azimuths|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: SatelliteStatusInfo
Method or attribute name: carrierFrequencies|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CachedGnssLocationsRequest|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CachedGnssLocationsRequest
Method or attribute name: reportingPeriodSec|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CachedGnssLocationsRequest
Method or attribute name: wakeUpCacheQueueFull|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeofenceRequest|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeofenceRequest
Method or attribute name: priority|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeofenceRequest
Method or attribute name: scenario|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeofenceRequest
Method or attribute name: geofence|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Geofence|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Geofence
Method or attribute name: latitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Geofence
Method or attribute name: longitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Geofence
Method or attribute name: radius|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Geofence
Method or attribute name: expiration|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: ReverseGeoCodeRequest|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: ReverseGeoCodeRequest
Method or attribute name: locale|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: ReverseGeoCodeRequest
Method or attribute name: latitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: ReverseGeoCodeRequest
Method or attribute name: longitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: ReverseGeoCodeRequest
Method or attribute name: maxItems|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoCodeRequest|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoCodeRequest
Method or attribute name: locale|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoCodeRequest
Method or attribute name: description|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoCodeRequest
Method or attribute name: maxItems|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoCodeRequest
Method or attribute name: minLatitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoCodeRequest
Method or attribute name: minLongitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoCodeRequest
Method or attribute name: maxLatitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoCodeRequest
Method or attribute name: maxLongitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: latitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: longitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: locale|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: placeName|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: countryCode|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: countryName|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: administrativeArea|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: subAdministrativeArea|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: locality|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: subLocality|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: roadName|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: subRoadName|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: premises|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: postalCode|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: phoneNumber|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: addressUrl|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: descriptions|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: descriptionsSize|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: isFromMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequest|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequest
Method or attribute name: priority|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequest
Method or attribute name: scenario|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequest
Method or attribute name: timeInterval|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequest
Method or attribute name: distanceInterval|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequest
Method or attribute name: maxAccuracy|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CurrentLocationRequest|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CurrentLocationRequest
Method or attribute name: priority|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CurrentLocationRequest
Method or attribute name: scenario|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CurrentLocationRequest
Method or attribute name: maxAccuracy|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CurrentLocationRequest
Method or attribute name: timeoutMs|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: latitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: longitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: altitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: accuracy|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: speed|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: timeStamp|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: direction|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: timeSinceBoot|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: additions|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: additionSize|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: isFromMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestPriority|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestPriority
Method or attribute name: UNSET|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestPriority
Method or attribute name: ACCURACY|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestPriority
Method or attribute name: LOW_POWER|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestPriority
Method or attribute name: FIRST_FIX|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestScenario|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestScenario
Method or attribute name: UNSET|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestScenario
Method or attribute name: NAVIGATION|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestScenario
Method or attribute name: TRAJECTORY_TRACKING|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestScenario
Method or attribute name: CAR_HAILING|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestScenario
Method or attribute name: DAILY_LIFE_SERVICE|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestScenario
Method or attribute name: NO_POWER|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationPrivacyType|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationPrivacyType
Method or attribute name: OTHERS|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationPrivacyType
Method or attribute name: STARTUP|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationPrivacyType
Method or attribute name: CORE_LOCATION|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationCommand|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationCommand
Method or attribute name: scenario|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationCommand
Method or attribute name: command|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CountryCode|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CountryCode
Method or attribute name: country|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CountryCode
Method or attribute name: type|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CountryCodeType|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CountryCodeType
Method or attribute name: COUNTRY_CODE_FROM_LOCALE|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CountryCodeType
Method or attribute name: COUNTRY_CODE_FROM_SIM|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CountryCodeType
Method or attribute name: COUNTRY_CODE_FROM_LOCATION|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CountryCodeType
Method or attribute name: COUNTRY_CODE_FROM_NETWORK|@ohos.geoLocationManager.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: on_countryCodeChange||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: off_countryCodeChange||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: getCountryCode||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: getCountryCode||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: enableLocationMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: enableLocationMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: disableLocationMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: disableLocationMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: setMockedLocations||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: setMockedLocations||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: enableReverseGeocodingMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: enableReverseGeocodingMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: disableReverseGeocodingMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: disableReverseGeocodingMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: setReverseGeocodingMockInfo||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: setReverseGeocodingMockInfo||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: ReverseGeocodingMockInfo||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: ReverseGeocodingMockInfo
Method or attribute name: location||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: ReverseGeocodingMockInfo
Method or attribute name: geoAddress||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: LocationMockConfig||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: LocationMockConfig
Method or attribute name: timeInterval||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: LocationMockConfig
Method or attribute name: locations||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: isLocationPrivacyConfirmed||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: isLocationPrivacyConfirmed||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: setLocationPrivacyConfirmStatus||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: setLocationPrivacyConfirmStatus||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: GeoAddress
Method or attribute name: isFromMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: Location
Method or attribute name: isFromMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: GeoLocationErrorCode
Method or attribute name: NOT_SUPPORTED||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: GeoLocationErrorCode
Method or attribute name: QUERY_COUNTRY_CODE_ERROR||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: CountryCode||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: CountryCode
Method or attribute name: country||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: CountryCode
Method or attribute name: type||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: CountryCodeType||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: CountryCodeType
Method or attribute name: COUNTRY_CODE_FROM_LOCALE||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: CountryCodeType
Method or attribute name: COUNTRY_CODE_FROM_SIM||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: CountryCodeType
Method or attribute name: COUNTRY_CODE_FROM_LOCATION||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: CountryCodeType
Method or attribute name: COUNTRY_CODE_FROM_NETWORK||@ohos.geolocation.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-global.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-global.md new file mode 100644 index 0000000000000000000000000000000000000000..fb7d92d30f34b97292d69a4882dced394f0b5db2 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-global.md @@ -0,0 +1,106 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.i18n
Class name: System|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getDisplayCountry|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getDisplayLanguage|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getSystemLanguages|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getSystemCountries|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: isSuggested|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getSystemLanguage|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: setSystemLanguage|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getSystemRegion|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: setSystemRegion|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getSystemLocale|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: setSystemLocale|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: is24HourClock|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: set24HourClock|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: addPreferredLanguage|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: removePreferredLanguage|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getPreferredLanguageList|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getFirstPreferredLanguage|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getAppPreferredLanguage|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: setUsingLocalDigit|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getUsingLocalDigit|@ohos.i18n.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getStringValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getStringValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getStringArrayValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getStringArrayValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getMediaContent|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getMediaContent|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getMediaContentBase64|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getMediaContentBase64|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getPluralStringValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getPluralStringValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getStringValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getStringValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getStringArrayValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getStringArrayValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getPluralStringValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getPluralStringValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getMediaContent|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getMediaContent|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getMediaContentBase64|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getMediaContentBase64|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getRawFileContent|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getRawFileContent|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getRawFd|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getRawFd|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: closeRawFd|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: closeRawFd|@ohos.resourceManager.d.ts| +|Deleted||Module name: ohos.i18n
Class name: i18n
Method or attribute name: getSystemLanguages||@ohos.i18n.d.ts| +|Deleted||Module name: ohos.i18n
Class name: i18n
Method or attribute name: getSystemCountries||@ohos.i18n.d.ts| +|Deleted||Module name: ohos.i18n
Class name: i18n
Method or attribute name: isSuggested||@ohos.i18n.d.ts| +|Deleted||Module name: ohos.i18n
Class name: i18n
Method or attribute name: setSystemLanguage||@ohos.i18n.d.ts| +|Deleted||Module name: ohos.i18n
Class name: i18n
Method or attribute name: setSystemRegion||@ohos.i18n.d.ts| +|Deleted||Module name: ohos.i18n
Class name: i18n
Method or attribute name: setSystemLocale||@ohos.i18n.d.ts| +|Deleted||Module name: ohos.i18n
Class name: i18n
Method or attribute name: getAppPreferredLanguage||@ohos.i18n.d.ts| +|Deleted||Module name: ohos.i18n
Class name: i18n
Method or attribute name: setUsingLocalDigit||@ohos.i18n.d.ts| +|Deleted||Module name: ohos.i18n
Class name: i18n
Method or attribute name: getUsingLocalDigit||@ohos.i18n.d.ts| +|Deleted||Module name: ohos.resourceManager
Class name: AsyncCallback||@ohos.resourceManager.d.ts| +|Deleted||Module name: ohos.resourceManager
Class name: AsyncCallback
Method or attribute name: AsyncCallback||@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getDisplayCountry
Deprecated version: N/A|Method or attribute name: getDisplayCountry
Deprecated version: 9
New API: ohos.System.getDisplayCountry |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: getDisplayLanguage
Deprecated version: N/A|Method or attribute name: getDisplayLanguage
Deprecated version: 9
New API: ohos.System.getDisplayLanguage |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: getSystemLanguage
Deprecated version: N/A|Method or attribute name: getSystemLanguage
Deprecated version: 9
New API: ohos.System.getSystemLanguage |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: getSystemRegion
Deprecated version: N/A|Method or attribute name: getSystemRegion
Deprecated version: 9
New API: ohos.System.getSystemRegion |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: getSystemLocale
Deprecated version: N/A|Method or attribute name: getSystemLocale
Deprecated version: 9
New API: ohos.System.getSystemLocale |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: is24HourClock
Deprecated version: N/A|Method or attribute name: is24HourClock
Deprecated version: 9
New API: ohos.System.is24HourClock |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: set24HourClock
Deprecated version: N/A|Method or attribute name: set24HourClock
Deprecated version: 9
New API: ohos.System.set24HourClock |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: addPreferredLanguage
Deprecated version: N/A|Method or attribute name: addPreferredLanguage
Deprecated version: 9
New API: ohos.System.addPreferredLanguage |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: removePreferredLanguage
Deprecated version: N/A|Method or attribute name: removePreferredLanguage
Deprecated version: 9
New API: ohos.System.removePreferredLanguage |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: getPreferredLanguageList
Deprecated version: N/A|Method or attribute name: getPreferredLanguageList
Deprecated version: 9
New API: ohos.System.getPreferredLanguageList |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: getFirstPreferredLanguage
Deprecated version: N/A|Method or attribute name: getFirstPreferredLanguage
Deprecated version: 9
New API: ohos.System.getFirstPreferredLanguage |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: getString
Deprecated version: N/A|Method or attribute name: getString
Deprecated version: 9
New API: ohos.resourceManager.getStringValue |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getString
Deprecated version: N/A|Method or attribute name: getString
Deprecated version: 9
New API: ohos.resourceManager.getStringValue |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getStringArray
Deprecated version: N/A|Method or attribute name: getStringArray
Deprecated version: 9
New API: ohos.resourceManager.getStringArrayValue |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getStringArray
Deprecated version: N/A|Method or attribute name: getStringArray
Deprecated version: 9
New API: ohos.resourceManager.getStringArrayValue |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getMedia
Deprecated version: N/A|Method or attribute name: getMedia
Deprecated version: 9
New API: ohos.resourceManager.getMediaContent |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getMedia
Deprecated version: N/A|Method or attribute name: getMedia
Deprecated version: 9
New API: ohos.resourceManager.getMediaContent |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getMediaBase64
Deprecated version: N/A|Method or attribute name: getMediaBase64
Deprecated version: 9
New API: ohos.resourceManager.getMediaContentBase64 |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getMediaBase64
Deprecated version: N/A|Method or attribute name: getMediaBase64
Deprecated version: 9
New API: ohos.resourceManager.getMediaContentBase64 |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getPluralString
Deprecated version: N/A|Method or attribute name: getPluralString
Deprecated version: 9
New API: ohos.resourceManager.getPluralStringValue |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getPluralString
Deprecated version: N/A|Method or attribute name: getPluralString
Deprecated version: 9
New API: ohos.resourceManager.getPluralStringValue |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getRawFile
Deprecated version: N/A|Method or attribute name: getRawFile
Deprecated version: 9
New API: ohos.resourceManager.getRawFileContent |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getRawFile
Deprecated version: N/A|Method or attribute name: getRawFile
Deprecated version: 9
New API: ohos.resourceManager.getRawFileContent |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getRawFileDescriptor
Deprecated version: N/A|Method or attribute name: getRawFileDescriptor
Deprecated version: 9
New API: ohos.resourceManager.getRawFd |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getRawFileDescriptor
Deprecated version: N/A|Method or attribute name: getRawFileDescriptor
Deprecated version: 9
New API: ohos.resourceManager.getRawFd |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: closeRawFileDescriptor
Deprecated version: N/A|Method or attribute name: closeRawFileDescriptor
Deprecated version: 9
New API: ohos.resourceManager.closeRawFd |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: closeRawFileDescriptor
Deprecated version: N/A|Method or attribute name: closeRawFileDescriptor
Deprecated version: 9
New API: ohos.resourceManager.closeRawFd |@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getStringByName
Error code: 401, 9001003, 9001004, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getStringByName
Error code: 401, 9001003, 9001004, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getStringArrayByName
Error code: 401, 9001003, 9001004, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getStringArrayByName
Error code: 401, 9001003, 9001004, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getMediaByName
Error code: 401, 9001003, 9001004|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getMediaByName
Error code: 401, 9001003, 9001004|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getMediaBase64ByName
Error code: 401, 9001003, 9001004|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getMediaBase64ByName
Error code: 401, 9001003, 9001004|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getPluralStringByName
Error code: 401, 9001003, 9001004, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getPluralStringByName
Error code: 401, 9001003, 9001004, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getStringSync
Error code: 401, 9001001, 9001002, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getStringSync
Error code: 401, 9001001, 9001002, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getStringByNameSync
Error code: 401, 9001003, 9001004, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getBoolean
Error code: 401, 9001001, 9001002, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getBoolean
Error code: 401, 9001001, 9001002, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getBooleanByName
Error code: 401, 9001003, 9001004, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getNumber
Error code: 401, 9001001, 9001002, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getNumber
Error code: 401, 9001001, 9001002, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getNumberByName
Error code: 401, 9001003, 9001004, 9001006|@ohos.resourceManager.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-misc.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-misc.md new file mode 100644 index 0000000000000000000000000000000000000000..7d608307abae655ae2cc0fd7c21b0e70cc6b7d60 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-misc.md @@ -0,0 +1,329 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_PERMISSION|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_PARAMCHECK|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_UNSUPPORTED|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_PACKAGEMANAGER|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_IMENGINE|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_IMCLIENT|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_KEYEVENT|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_CONFPERSIST|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_CONTROLLER|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_SETTINGS|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_IMMS|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_OTHERS|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: getSetting|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: getController|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: switchCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: switchCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: getCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: switchCurrentInputMethodAndSubtype|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: switchCurrentInputMethodAndSubtype|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: on_imeChange|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: off_imeChange|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: listInputMethodSubtype|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: listInputMethodSubtype|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: listCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: listCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: getInputMethods|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: getInputMethods|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: showOptionalInputMethods|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: showOptionalInputMethods|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodController
Method or attribute name: stopInputSession|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodController
Method or attribute name: stopInputSession|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodProperty
Method or attribute name: name|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodProperty
Method or attribute name: id|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodProperty
Method or attribute name: label|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodProperty
Method or attribute name: icon|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodProperty
Method or attribute name: iconId|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodProperty
Method or attribute name: extra|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: inputMethodEngine
Method or attribute name: getInputMethodAbility|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: inputMethodEngine
Method or attribute name: getKeyboardDelegate|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: KeyboardController
Method or attribute name: hide|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: KeyboardController
Method or attribute name: hide|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: on_inputStart|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: off_inputStart|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: on_inputStop|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: off_inputStop|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: on_setCallingWindow|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: off_setCallingWindow|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: on_keyboardShow|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: on_keyboardHide|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: off_keyboardShow|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: off_keyboardHide|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: on_setSubtype|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: off|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: sendKeyFunction|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: sendKeyFunction|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: deleteForward|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: deleteForward|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: deleteBackward|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: deleteBackward|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: insertText|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: insertText|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: getForward|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: getForward|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: getBackward|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: getBackward|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: getEditorAttribute|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: getEditorAttribute|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: moveCursor|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: moveCursor|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodextensioncontext
Class name: InputMethodExtensionContext
Method or attribute name: destroy|@ohos.inputmethodextensioncontext.d.ts| +|Added||Module name: ohos.inputmethodextensioncontext
Class name: InputMethodExtensionContext
Method or attribute name: destroy|@ohos.inputmethodextensioncontext.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype|@ohos.inputMethodSubtype.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype
Method or attribute name: label|@ohos.inputMethodSubtype.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype
Method or attribute name: name|@ohos.inputMethodSubtype.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype
Method or attribute name: id|@ohos.inputMethodSubtype.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype
Method or attribute name: mode|@ohos.inputMethodSubtype.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype
Method or attribute name: locale|@ohos.inputMethodSubtype.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype
Method or attribute name: language|@ohos.inputMethodSubtype.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype
Method or attribute name: icon|@ohos.inputMethodSubtype.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype
Method or attribute name: iconId|@ohos.inputMethodSubtype.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype
Method or attribute name: extra|@ohos.inputMethodSubtype.d.ts| +|Added||Method or attribute name: createData
Function name: function createData(mimeType: string, value: ValueType): PasteData;|@ohos.pasteboard.d.ts| +|Added||Method or attribute name: createRecord
Function name: function createRecord(mimeType: string, value: ValueType): PasteDataRecord;|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: PasteDataRecord
Method or attribute name: convertToTextV9|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: PasteDataRecord
Method or attribute name: convertToTextV9|@ohos.pasteboard.d.ts| +|Added||Method or attribute name: addRecord
Function name: addRecord(mimeType: string, value: ValueType): void;|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: PasteData
Method or attribute name: getRecord|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: PasteData
Method or attribute name: hasType|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: PasteData
Method or attribute name: removeRecord|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: PasteData
Method or attribute name: replaceRecord|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: SystemPasteboard
Method or attribute name: clearData|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: SystemPasteboard
Method or attribute name: clearData|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: SystemPasteboard
Method or attribute name: getData|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: SystemPasteboard
Method or attribute name: getData|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: SystemPasteboard
Method or attribute name: hasData|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: SystemPasteboard
Method or attribute name: hasData|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: SystemPasteboard
Method or attribute name: setData|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: SystemPasteboard
Method or attribute name: setData|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: EXCEPTION_PERMISSION|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: EXCEPTION_PARAMCHECK|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: EXCEPTION_UNSUPPORTED|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: EXCEPTION_FILEIO|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: EXCEPTION_FILEPATH|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: EXCEPTION_SERVICE|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: EXCEPTION_OTHERS|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: ERROR_OFFLINE|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: ERROR_UNSUPPORTED_NETWORK_TYPE|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: downloadFile|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: downloadFile|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: uploadFile|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: uploadFile|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: delete|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: delete|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: suspend|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: suspend|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: restore|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: restore|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: getTaskInfo|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: getTaskInfo|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: getTaskMimeType|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: getTaskMimeType|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: UploadTask
Method or attribute name: delete|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: UploadTask
Method or attribute name: delete|@ohos.request.d.ts| +|Added||Module name: ohos.screenLock
Class name: screenLock
Method or attribute name: isLocked|@ohos.screenLock.d.ts| +|Added||Module name: ohos.screenLock
Class name: screenLock
Method or attribute name: isSecure|@ohos.screenLock.d.ts| +|Added||Module name: ohos.screenLock
Class name: screenLock
Method or attribute name: unlock|@ohos.screenLock.d.ts| +|Added||Module name: ohos.screenLock
Class name: screenLock
Method or attribute name: unlock|@ohos.screenLock.d.ts| +|Added||Module name: ohos.screenLock
Class name: screenLock
Method or attribute name: lock|@ohos.screenLock.d.ts| +|Added||Module name: ohos.screenLock
Class name: screenLock
Method or attribute name: lock|@ohos.screenLock.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: getColorsSync|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: getIdSync|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: getFileSync|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: getMinHeightSync|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: getMinWidthSync|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: isChangeAllowed|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: isUserChangeAllowed|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: restore|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: restore|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: setImage|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: setImage|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: getImage|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: getImage|@ohos.wallpaper.d.ts| +|Deleted|Module name: ohos.inputmethodengine
Class name: InputMethodEngine
Method or attribute name: on_inputStop||@ohos.inputmethodengine.d.ts| +|Deleted|Module name: ohos.inputmethodengine
Class name: InputMethodEngine
Method or attribute name: off_inputStop||@ohos.inputmethodengine.d.ts| +|Deleted|Module name: ohos.inputmethodengine
Class name: InputMethodEngine
Method or attribute name: on_setCallingWindow||@ohos.inputmethodengine.d.ts| +|Deleted|Module name: ohos.inputmethodengine
Class name: InputMethodEngine
Method or attribute name: off_setCallingWindow||@ohos.inputmethodengine.d.ts| +|Deleted|Module name: ohos.inputmethodengine
Class name: TextInputClient
Method or attribute name: moveCursor||@ohos.inputmethodengine.d.ts| +|Deleted|Module name: ohos.inputmethodengine
Class name: TextInputClient
Method or attribute name: moveCursor||@ohos.inputmethodengine.d.ts| +|Deleted|Module name: ohos.inputmethodextensioncontext
Class name: InputMethodExtensionContext
Method or attribute name: startAbility||@ohos.inputmethodextensioncontext.d.ts| +|Deleted|Module name: ohos.inputmethodextensioncontext
Class name: InputMethodExtensionContext
Method or attribute name: startAbility||@ohos.inputmethodextensioncontext.d.ts| +|Deleted|Module name: ohos.inputmethodextensioncontext
Class name: InputMethodExtensionContext
Method or attribute name: startAbility||@ohos.inputmethodextensioncontext.d.ts| +|Deleted|Module name: ohos.inputmethodextensioncontext
Class name: InputMethodExtensionContext
Method or attribute name: terminateSelf||@ohos.inputmethodextensioncontext.d.ts| +|Deleted|Module name: ohos.inputmethodextensioncontext
Class name: InputMethodExtensionContext
Method or attribute name: terminateSelf||@ohos.inputmethodextensioncontext.d.ts| +|Deleted|Module name: ohos.pasteboard
Class name: pasteboard
Method or attribute name: createPixelMapData||@ohos.pasteboard.d.ts| +|Deleted|Module name: ohos.pasteboard
Class name: pasteboard
Method or attribute name: createPixelMapRecord||@ohos.pasteboard.d.ts| +|Deleted|Module name: ohos.pasteboard
Class name: PasteData
Method or attribute name: addPixelMapRecord||@ohos.pasteboard.d.ts| +|Deleted|Module name: ohos.screenLock
Class name: screenLock
Method or attribute name: lockScreen||@ohos.screenLock.d.ts| +|Deleted|Module name: ohos.screenLock
Class name: screenLock
Method or attribute name: lockScreen||@ohos.screenLock.d.ts| +|Deleted|Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: screenshotLiveWallpaper||@ohos.wallpaper.d.ts| +|Deleted|Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: screenshotLiveWallpaper||@ohos.wallpaper.d.ts| +|Model changed|Method or attribute name: switchInputMethod
model: @Stage Model Only|Method or attribute name: switchInputMethod
model:|@ohos.inputmethod.d.ts| +|Model changed|Method or attribute name: switchInputMethod
model: @Stage Model Only|Method or attribute name: switchInputMethod
model:|@ohos.inputmethod.d.ts| +|Model changed|Method or attribute name: getCurrentInputMethod
model: @Stage Model Only|Method or attribute name: getCurrentInputMethod
model:|@ohos.inputmethod.d.ts| +|Model changed|Class name: InputMethodExtensionAbility
model: @Stage Model Only|Class name: InputMethodExtensionAbility
model:|@ohos.inputmethodextensionability.d.ts| +|Model changed|Method or attribute name: context
model: @Stage Model Only|Method or attribute name: context
model:|@ohos.inputmethodextensionability.d.ts| +|Model changed|Method or attribute name: onCreate
model: @Stage Model Only|Method or attribute name: onCreate
model:|@ohos.inputmethodextensionability.d.ts| +|Model changed|Method or attribute name: onDestroy
model: @Stage Model Only|Method or attribute name: onDestroy
model:|@ohos.inputmethodextensionability.d.ts| +|Model changed|Class name: InputMethodExtensionContext
model: @Stage Model Only|Class name: InputMethodExtensionContext
model:|@ohos.inputmethodextensioncontext.d.ts| +|Deprecated version changed|Method or attribute name: getInputMethodSetting
Deprecated version: N/A|Method or attribute name: getInputMethodSetting
Deprecated version: 9
New API: ohos.inputmethod.getController |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: getInputMethodController
Deprecated version: N/A|Method or attribute name: getInputMethodController
Deprecated version: 9
New API: ohos.inputmethod.getController |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: listInputMethod
Deprecated version: N/A|Method or attribute name: listInputMethod
Deprecated version: 9
New API: ohos.inputmethod.InputMethodSetting.getInputMethods |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: listInputMethod
Deprecated version: N/A|Method or attribute name: listInputMethod
Deprecated version: 9
New API: ohos.inputmethod.InputMethodSetting.getInputMethods |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: displayOptionalInputMethod
Deprecated version: N/A|Method or attribute name: displayOptionalInputMethod
Deprecated version: 9
New API: ohos.inputmethod.InputMethodSetting.showOptionalInputMethods |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: displayOptionalInputMethod
Deprecated version: N/A|Method or attribute name: displayOptionalInputMethod
Deprecated version: 9
New API: ohos.inputmethod.InputMethodSetting.showOptionalInputMethods |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: stopInput
Deprecated version: N/A|Method or attribute name: stopInput
Deprecated version: 9
New API: ohos.inputmethod.InputMethodController.stopInputSession |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: stopInput
Deprecated version: N/A|Method or attribute name: stopInput
Deprecated version: 9
New API: ohos.inputmethod.InputMethodController.stopInputSession |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: packageName
Deprecated version: N/A|Method or attribute name: packageName
Deprecated version: 9
New API: ohos.inputmethod.InputMethodProperty.name |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: methodId
Deprecated version: N/A|Method or attribute name: methodId
Deprecated version: 9
New API: ohos.inputmethod.InputMethodProperty.id |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: getInputMethodEngine
Deprecated version: N/A|Method or attribute name: getInputMethodEngine
Deprecated version: 9
New API: ohos.inputmethodengine.getInputMethodAbility |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: createKeyboardDelegate
Deprecated version: N/A|Method or attribute name: createKeyboardDelegate
Deprecated version: 9
New API: ohos.inputmethodengine.getKeyboardDelegate |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: hideKeyboard
Deprecated version: N/A|Method or attribute name: hideKeyboard
Deprecated version: 9
New API: ohos.inputmethodengine.KeyboardController.hide |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: hideKeyboard
Deprecated version: N/A|Method or attribute name: hideKeyboard
Deprecated version: 9
New API: ohos.inputmethodengine.KeyboardController.hide |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Class name: TextInputClient
Deprecated version: N/A|Class name: TextInputClient
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: sendKeyFunction
Deprecated version: N/A|Method or attribute name: sendKeyFunction
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.sendKeyFunction |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: sendKeyFunction
Deprecated version: N/A|Method or attribute name: sendKeyFunction
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.sendKeyFunction |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: deleteForward
Deprecated version: N/A|Method or attribute name: deleteForward
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.deleteForward |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: deleteForward
Deprecated version: N/A|Method or attribute name: deleteForward
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.deleteForward |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: deleteBackward
Deprecated version: N/A|Method or attribute name: deleteBackward
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.deleteBackward |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: deleteBackward
Deprecated version: N/A|Method or attribute name: deleteBackward
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.deleteBackward |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: insertText
Deprecated version: N/A|Method or attribute name: insertText
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.insertText |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: insertText
Deprecated version: N/A|Method or attribute name: insertText
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.insertText |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: getForward
Deprecated version: N/A|Method or attribute name: getForward
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.getForward |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: getForward
Deprecated version: N/A|Method or attribute name: getForward
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.getForward |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: getBackward
Deprecated version: N/A|Method or attribute name: getBackward
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.getBackward |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: getBackward
Deprecated version: N/A|Method or attribute name: getBackward
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.getBackward |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: getEditorAttribute
Deprecated version: N/A|Method or attribute name: getEditorAttribute
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.getEditorAttribute |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: getEditorAttribute
Deprecated version: N/A|Method or attribute name: getEditorAttribute
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.getEditorAttribute |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: createHtmlData
Deprecated version: N/A|Method or attribute name: createHtmlData
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: createWantData
Deprecated version: N/A|Method or attribute name: createWantData
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: createPlainTextData
Deprecated version: N/A|Method or attribute name: createPlainTextData
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: createUriData
Deprecated version: N/A|Method or attribute name: createUriData
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: createHtmlTextRecord
Deprecated version: N/A|Method or attribute name: createHtmlTextRecord
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: createWantRecord
Deprecated version: N/A|Method or attribute name: createWantRecord
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: createPlainTextRecord
Deprecated version: N/A|Method or attribute name: createPlainTextRecord
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: createUriRecord
Deprecated version: N/A|Method or attribute name: createUriRecord
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: convertToText
Deprecated version: N/A|Method or attribute name: convertToText
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: convertToText
Deprecated version: N/A|Method or attribute name: convertToText
Deprecated version: 9|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: addHtmlRecord
Deprecated version: N/A|Method or attribute name: addHtmlRecord
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: addWantRecord
Deprecated version: N/A|Method or attribute name: addWantRecord
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: addTextRecord
Deprecated version: N/A|Method or attribute name: addTextRecord
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: addUriRecord
Deprecated version: N/A|Method or attribute name: addUriRecord
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: getRecordAt
Deprecated version: N/A|Method or attribute name: getRecordAt
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: hasMimeType
Deprecated version: N/A|Method or attribute name: hasMimeType
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: removeRecordAt
Deprecated version: N/A|Method or attribute name: removeRecordAt
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: replaceRecordAt
Deprecated version: N/A|Method or attribute name: replaceRecordAt
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: clear
Deprecated version: N/A|Method or attribute name: clear
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: clear
Deprecated version: N/A|Method or attribute name: clear
Deprecated version: 9|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: getPasteData
Deprecated version: N/A|Method or attribute name: getPasteData
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: getPasteData
Deprecated version: N/A|Method or attribute name: getPasteData
Deprecated version: 9|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: hasPasteData
Deprecated version: N/A|Method or attribute name: hasPasteData
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: hasPasteData
Deprecated version: N/A|Method or attribute name: hasPasteData
Deprecated version: 9|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: setPasteData
Deprecated version: N/A|Method or attribute name: setPasteData
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: setPasteData
Deprecated version: N/A|Method or attribute name: setPasteData
Deprecated version: 9|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: download
Deprecated version: N/A|Method or attribute name: download
Deprecated version: 9
New API: ohos.request.downloadFile |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: download
Deprecated version: N/A|Method or attribute name: download
Deprecated version: 9
New API: ohos.request.downloadFile |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: download
Deprecated version: N/A|Method or attribute name: download
Deprecated version: 9
New API: ohos.request.downloadFile |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: download
Deprecated version: N/A|Method or attribute name: download
Deprecated version: 9
New API: ohos.request.downloadFile |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: upload
Deprecated version: N/A|Method or attribute name: upload
Deprecated version: 9
New API: ohos.request.uploadFile |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: upload
Deprecated version: N/A|Method or attribute name: upload
Deprecated version: 9
New API: ohos.request.uploadFile |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: upload
Deprecated version: N/A|Method or attribute name: upload
Deprecated version: 9
New API: ohos.request.uploadFile |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: upload
Deprecated version: N/A|Method or attribute name: upload
Deprecated version: 9
New API: ohos.request.uploadFile |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: remove
Deprecated version: N/A|Method or attribute name: remove
Deprecated version: 9
New API: ohos.request.delete |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: remove
Deprecated version: N/A|Method or attribute name: remove
Deprecated version: 9
New API: ohos.request.delete |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: pause
Deprecated version: N/A|Method or attribute name: pause
Deprecated version: 9
New API: ohos.request.suspend |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: pause
Deprecated version: N/A|Method or attribute name: pause
Deprecated version: 9
New API: ohos.request.suspend |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: resume
Deprecated version: N/A|Method or attribute name: resume
Deprecated version: 9
New API: ohos.request.restore |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: resume
Deprecated version: N/A|Method or attribute name: resume
Deprecated version: 9
New API: ohos.request.restore |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: query
Deprecated version: N/A|Method or attribute name: query
Deprecated version: 9
New API: ohos.request.getTaskInfo |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: query
Deprecated version: N/A|Method or attribute name: query
Deprecated version: 9
New API: ohos.request.getTaskInfo |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: queryMimeType
Deprecated version: N/A|Method or attribute name: queryMimeType
Deprecated version: 9
New API: ohos.request.getTaskMimeType |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: queryMimeType
Deprecated version: N/A|Method or attribute name: queryMimeType
Deprecated version: 9
New API: ohos.request.getTaskMimeType |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: remove
Deprecated version: N/A|Method or attribute name: remove
Deprecated version: 9
New API: ohos.request.delete |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: remove
Deprecated version: N/A|Method or attribute name: remove
Deprecated version: 9
New API: ohos.request.delete |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: isScreenLocked
Deprecated version: N/A|Method or attribute name: isScreenLocked
Deprecated version: 9
New API: ohos.screenLock.isLocked |@ohos.screenLock.d.ts| +|Deprecated version changed|Method or attribute name: isScreenLocked
Deprecated version: N/A|Method or attribute name: isScreenLocked
Deprecated version: 9|@ohos.screenLock.d.ts| +|Deprecated version changed|Method or attribute name: isSecureMode
Deprecated version: N/A|Method or attribute name: isSecureMode
Deprecated version: 9
New API: ohos.screenLock.isSecure |@ohos.screenLock.d.ts| +|Deprecated version changed|Method or attribute name: isSecureMode
Deprecated version: N/A|Method or attribute name: isSecureMode
Deprecated version: 9|@ohos.screenLock.d.ts| +|Deprecated version changed|Method or attribute name: unlockScreen
Deprecated version: N/A|Method or attribute name: unlockScreen
Deprecated version: 9
New API: ohos.screenLock.unlock |@ohos.screenLock.d.ts| +|Deprecated version changed|Method or attribute name: unlockScreen
Deprecated version: N/A|Method or attribute name: unlockScreen
Deprecated version: 9|@ohos.screenLock.d.ts| +|Deprecated version changed|Method or attribute name: getColors
Deprecated version: N/A|Method or attribute name: getColors
Deprecated version: 9
New API: ohos.wallpaper.getColorsSync |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getColors
Deprecated version: N/A|Method or attribute name: getColors
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getId
Deprecated version: N/A|Method or attribute name: getId
Deprecated version: 9
New API: ohos.wallpaper.getIdSync |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getId
Deprecated version: N/A|Method or attribute name: getId
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getFile
Deprecated version: N/A|Method or attribute name: getFile
Deprecated version: 9
New API: ohos.wallpaper.getFileSync |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getFile
Deprecated version: N/A|Method or attribute name: getFile
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getMinHeight
Deprecated version: N/A|Method or attribute name: getMinHeight
Deprecated version: 9
New API: ohos.wallpaper.getMinHeightSync |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getMinHeight
Deprecated version: N/A|Method or attribute name: getMinHeight
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getMinWidth
Deprecated version: N/A|Method or attribute name: getMinWidth
Deprecated version: 9
New API: ohos.wallpaper.getMinWidthSync |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getMinWidth
Deprecated version: N/A|Method or attribute name: getMinWidth
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: isChangePermitted
Deprecated version: N/A|Method or attribute name: isChangePermitted
Deprecated version: 9
New API: ohos.wallpaper.isChangeAllowed |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: isChangePermitted
Deprecated version: N/A|Method or attribute name: isChangePermitted
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: isOperationAllowed
Deprecated version: N/A|Method or attribute name: isOperationAllowed
Deprecated version: 9
New API: ohos.wallpaper.isUserChangeAllowed |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: isOperationAllowed
Deprecated version: N/A|Method or attribute name: isOperationAllowed
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: reset
Deprecated version: N/A|Method or attribute name: reset
Deprecated version: 9
New API: ohos.wallpaper.recovery |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: reset
Deprecated version: N/A|Method or attribute name: reset
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: setWallpaper
Deprecated version: N/A|Method or attribute name: setWallpaper
Deprecated version: 9
New API: ohos.wallpaper.setImage |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: setWallpaper
Deprecated version: N/A|Method or attribute name: setWallpaper
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getPixelMap
Deprecated version: N/A|Method or attribute name: getPixelMap
Deprecated version: 9
New API: ohos.wallpaper.getImage |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getPixelMap
Deprecated version: N/A|Method or attribute name: getPixelMap
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Class name: UploadResponse
Deprecated version: N/A|Class name: UploadResponse
Deprecated version: 9
New API: ohos.request |@system.request.d.ts| +|Deprecated version changed|Method or attribute name: code
Deprecated version: N/A|Method or attribute name: code
Deprecated version: 9
New API: ohos.request |@system.request.d.ts| +|Deprecated version changed|Method or attribute name: data
Deprecated version: N/A|Method or attribute name: data
Deprecated version: 9
New API: ohos.request |@system.request.d.ts| +|Deprecated version changed|Method or attribute name: headers
Deprecated version: N/A|Method or attribute name: headers
Deprecated version: 9
New API: ohos.request |@system.request.d.ts| +|Deprecated version changed|Class name: DownloadResponse
Deprecated version: N/A|Class name: DownloadResponse
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: token
Deprecated version: N/A|Method or attribute name: token
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Class name: OnDownloadCompleteResponse
Deprecated version: N/A|Class name: OnDownloadCompleteResponse
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: uri
Deprecated version: N/A|Method or attribute name: uri
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Class name: RequestFile
Deprecated version: N/A|Class name: RequestFile
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: filename
Deprecated version: N/A|Method or attribute name: filename
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: name
Deprecated version: N/A|Method or attribute name: name
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: uri
Deprecated version: N/A|Method or attribute name: uri
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: type
Deprecated version: N/A|Method or attribute name: type
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Class name: RequestData
Deprecated version: N/A|Class name: RequestData
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: name
Deprecated version: N/A|Method or attribute name: name
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: value
Deprecated version: N/A|Method or attribute name: value
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Class name: UploadRequestOptions
Deprecated version: N/A|Class name: UploadRequestOptions
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: url
Deprecated version: N/A|Method or attribute name: url
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: data
Deprecated version: N/A|Method or attribute name: data
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: files
Deprecated version: N/A|Method or attribute name: files
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: header
Deprecated version: N/A|Method or attribute name: header
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: method
Deprecated version: N/A|Method or attribute name: method
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: success
Deprecated version: N/A|Method or attribute name: success
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: fail
Deprecated version: N/A|Method or attribute name: fail
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: complete
Deprecated version: N/A|Method or attribute name: complete
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Class name: DownloadRequestOptions
Deprecated version: N/A|Class name: DownloadRequestOptions
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: url
Deprecated version: N/A|Method or attribute name: url
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: filename
Deprecated version: N/A|Method or attribute name: filename
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: header
Deprecated version: N/A|Method or attribute name: header
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: description
Deprecated version: N/A|Method or attribute name: description
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: success
Deprecated version: N/A|Method or attribute name: success
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: fail
Deprecated version: N/A|Method or attribute name: fail
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: complete
Deprecated version: N/A|Method or attribute name: complete
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Class name: OnDownloadCompleteOptions
Deprecated version: N/A|Class name: OnDownloadCompleteOptions
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: token
Deprecated version: N/A|Method or attribute name: token
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: success
Deprecated version: N/A|Method or attribute name: success
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: fail
Deprecated version: N/A|Method or attribute name: fail
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: complete
Deprecated version: N/A|Method or attribute name: complete
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Class name: Request
Deprecated version: N/A|Class name: Request
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: upload
Deprecated version: N/A|Method or attribute name: upload
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: download
Deprecated version: N/A|Method or attribute name: download
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: onDownloadComplete
Deprecated version: N/A|Method or attribute name: onDownloadComplete
Deprecated version: 9|@system.request.d.ts| +|Initial version changed|Class name: inputMethod
Initial version: |Class name: inputMethod
Initial version: 6|@ohos.inputmethod.d.ts| +|Initial version changed|Method or attribute name: getFile
Initial version: 9|Method or attribute name: getFile
Initial version: 8|@ohos.wallpaper.d.ts| +|Initial version changed|Method or attribute name: getFile
Initial version: 9|Method or attribute name: getFile
Initial version: 8|@ohos.wallpaper.d.ts| +|Initial version changed|Method or attribute name: on_colorChange
Initial version: 7|Method or attribute name: on_colorChange
Initial version: 9|@ohos.wallpaper.d.ts| +|Initial version changed|Method or attribute name: off_colorChange
Initial version: 7|Method or attribute name: off_colorChange
Initial version: 9|@ohos.wallpaper.d.ts| +|Error code added||Method or attribute name: setProperty
Error code: 401|@ohos.pasteboard.d.ts| +|Error code added||Method or attribute name: on_update
Error code: 401|@ohos.pasteboard.d.ts| +|Error code added||Method or attribute name: off_update
Error code: 401|@ohos.pasteboard.d.ts| +|Permission added|Method or attribute name: switchInputMethod
Permission: N/A|Method or attribute name: switchInputMethod
Permission: ohos.permission.CONNECT_IME_ABILITY|@ohos.inputmethod.d.ts| +|Permission added|Method or attribute name: switchInputMethod
Permission: N/A|Method or attribute name: switchInputMethod
Permission: ohos.permission.CONNECT_IME_ABILITY|@ohos.inputmethod.d.ts| +|Permission added|Method or attribute name: showSoftKeyboard
Permission: N/A|Method or attribute name: showSoftKeyboard
Permission: ohos.permission.CONNECT_IME_ABILITY|@ohos.inputmethod.d.ts| +|Permission added|Method or attribute name: showSoftKeyboard
Permission: N/A|Method or attribute name: showSoftKeyboard
Permission: ohos.permission.CONNECT_IME_ABILITY|@ohos.inputmethod.d.ts| +|Permission added|Method or attribute name: hideSoftKeyboard
Permission: N/A|Method or attribute name: hideSoftKeyboard
Permission: ohos.permission.CONNECT_IME_ABILITY|@ohos.inputmethod.d.ts| +|Permission added|Method or attribute name: hideSoftKeyboard
Permission: N/A|Method or attribute name: hideSoftKeyboard
Permission: ohos.permission.CONNECT_IME_ABILITY|@ohos.inputmethod.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-multi-modal-input.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-multi-modal-input.md new file mode 100644 index 0000000000000000000000000000000000000000..3538207e050186a413080acc1c4c911da1b27f60 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-multi-modal-input.md @@ -0,0 +1,16 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.multimodalInput.inputDevice
Class name: inputDevice
Method or attribute name: getDeviceList|@ohos.multimodalInput.inputDevice.d.ts| +|Added||Module name: ohos.multimodalInput.inputDevice
Class name: inputDevice
Method or attribute name: getDeviceList|@ohos.multimodalInput.inputDevice.d.ts| +|Added||Module name: ohos.multimodalInput.inputDevice
Class name: inputDevice
Method or attribute name: getDeviceInfo|@ohos.multimodalInput.inputDevice.d.ts| +|Added||Module name: ohos.multimodalInput.inputDevice
Class name: inputDevice
Method or attribute name: getDeviceInfo|@ohos.multimodalInput.inputDevice.d.ts| +|Added||Module name: ohos.multimodalInput.inputDeviceCooperate
Class name: EventMsg|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|Added||Module name: ohos.multimodalInput.inputDeviceCooperate
Class name: EventMsg
Method or attribute name: MSG_COOPERATE_INFO_START|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|Added||Module name: ohos.multimodalInput.inputDeviceCooperate
Class name: EventMsg
Method or attribute name: MSG_COOPERATE_INFO_SUCCESS|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|Added||Module name: ohos.multimodalInput.inputDeviceCooperate
Class name: EventMsg
Method or attribute name: MSG_COOPERATE_INFO_FAIL|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|Added||Module name: ohos.multimodalInput.inputDeviceCooperate
Class name: EventMsg
Method or attribute name: MSG_COOPERATE_STATE_ON|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|Added||Module name: ohos.multimodalInput.inputDeviceCooperate
Class name: EventMsg
Method or attribute name: MSG_COOPERATE_STATE_OFF|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|Deprecated version changed|Method or attribute name: getDeviceIds
Deprecated version: N/A|Method or attribute name: getDeviceIds
Deprecated version: 9
New API: ohos.multimodalInput.inputDevice|@ohos.multimodalInput.inputDevice.d.ts| +|Deprecated version changed|Method or attribute name: getDeviceIds
Deprecated version: N/A|Method or attribute name: getDeviceIds
Deprecated version: 9
New API: ohos.multimodalInput.inputDevice|@ohos.multimodalInput.inputDevice.d.ts| +|Deprecated version changed|Method or attribute name: getDevice
Deprecated version: N/A|Method or attribute name: getDevice
Deprecated version: 9
New API: ohos.multimodalInput.inputDevice|@ohos.multimodalInput.inputDevice.d.ts| +|Deprecated version changed|Method or attribute name: getDevice
Deprecated version: N/A|Method or attribute name: getDevice
Deprecated version: 9
New API: ohos.multimodalInput.inputDevice|@ohos.multimodalInput.inputDevice.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-multimedia.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-multimedia.md new file mode 100644 index 0000000000000000000000000000000000000000..f9d53616c3d729fb60ece7202d65dd672c1867fd --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-multimedia.md @@ -0,0 +1,886 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.multimedia.audio
Class name: audio|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioErrors|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioErrors
Method or attribute name: ERROR_INVALID_PARAM|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioErrors
Method or attribute name: ERROR_NO_MEMORY|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioErrors
Method or attribute name: ERROR_ILLEGAL_STATE|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioErrors
Method or attribute name: ERROR_UNSUPPORTED|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioErrors
Method or attribute name: ERROR_TIMEOUT|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioErrors
Method or attribute name: ERROR_STREAM_LIMIT|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioErrors
Method or attribute name: ERROR_SYSTEM|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: audio
Method or attribute name: DEFAULT_VOLUME_GROUP_ID|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: audio
Method or attribute name: DEFAULT_INTERRUPT_GROUP_ID|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: audio
Method or attribute name: createTonePlayer|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: audio
Method or attribute name: createTonePlayer|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: CommunicationDeviceType|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: CommunicationDeviceType
Method or attribute name: SPEAKER|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: StreamUsage
Method or attribute name: STREAM_USAGE_VOICE_ASSISTANT|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptRequestType|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptRequestType
Method or attribute name: INTERRUPT_REQUEST_TYPE_DEFAULT|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptMode|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptMode
Method or attribute name: SHARE_MODE|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptMode
Method or attribute name: INDEPENDENT_MODE|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: getVolumeManager|@ohos.multimedia.audio.d.ts| +|Added||Method or attribute name: getStreamManager
Function name: getStreamManager(): AudioStreamManager;|@ohos.multimedia.audio.d.ts| +|Added||Method or attribute name: getRoutingManager
Function name: getRoutingManager(): AudioRoutingManager;|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptRequestResultType|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptRequestResultType
Method or attribute name: INTERRUPT_REQUEST_GRANT|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptRequestResultType
Method or attribute name: INTERRUPT_REQUEST_REJECT|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptResult|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptResult
Method or attribute name: requestResult|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptResult
Method or attribute name: interruptNode|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRoutingManager
Method or attribute name: setCommunicationDevice|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRoutingManager
Method or attribute name: setCommunicationDevice|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRoutingManager
Method or attribute name: isCommunicationDeviceActive|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRoutingManager
Method or attribute name: isCommunicationDeviceActive|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRoutingManager
Method or attribute name: selectInputDevice|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRoutingManager
Method or attribute name: selectInputDevice|@ohos.multimedia.audio.d.ts| +|Added||Method or attribute name: off_audioRendererChange
Function name: off(type: "audioRendererChange"): void;|@ohos.multimedia.audio.d.ts| +|Added||Method or attribute name: off_audioCapturerChange
Function name: off(type: "audioCapturerChange"): void;|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioStreamManager
Method or attribute name: isActive|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioStreamManager
Method or attribute name: isActive|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeManager|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeManager
Method or attribute name: getVolumeGroupInfos|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeManager
Method or attribute name: getVolumeGroupInfos|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeManager
Method or attribute name: getVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeManager
Method or attribute name: getVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeManager
Method or attribute name: on_volumeChange|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: setVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: setVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: getVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: getVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: getMinVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: getMinVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: getMaxVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: getMaxVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: mute|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: mute|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: isMute|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: isMute|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: setRingerMode|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: setRingerMode|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: getRingerMode|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: getRingerMode|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: on_ringerModeChange|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: setMicrophoneMute|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: setMicrophoneMute|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: isMicrophoneMute|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: isMicrophoneMute|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: on_micStateChange|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ConnectType
Method or attribute name: CONNECT_TYPE_LOCAL|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ConnectType
Method or attribute name: CONNECT_TYPE_DISTRIBUTED|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: MicStateChangeEvent|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: MicStateChangeEvent
Method or attribute name: mute|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRenderer
Method or attribute name: getAudioStreamId|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRenderer
Method or attribute name: getAudioStreamId|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRenderer
Method or attribute name: setVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRenderer
Method or attribute name: setVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRenderer
Method or attribute name: on_audioInterrupt|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: SourceType
Method or attribute name: SOURCE_TYPE_VOICE_RECOGNITION|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioCapturer
Method or attribute name: getAudioStreamId|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioCapturer
Method or attribute name: getAudioStreamId|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_0|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_1|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_2|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_3|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_4|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_5|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_6|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_7|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_8|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_9|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_S|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_P|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_A|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_B|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_C|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_D|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_SUPERVISORY_DIAL|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_SUPERVISORY_BUSY|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_SUPERVISORY_CONGESTION|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_SUPERVISORY_RADIO_ACK|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_SUPERVISORY_RADIO_NOT_AVAILABLE|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_SUPERVISORY_CALL_WAITING|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_SUPERVISORY_RINGTONE|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_PROPRIETARY_BEEP|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_PROPRIETARY_ACK|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_PROPRIETARY_PROMPT|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_PROPRIETARY_DOUBLE_BEEP|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: TonePlayer|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: TonePlayer
Method or attribute name: load|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: TonePlayer
Method or attribute name: load|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: TonePlayer
Method or attribute name: start|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: TonePlayer
Method or attribute name: start|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: TonePlayer
Method or attribute name: stop|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: TonePlayer
Method or attribute name: stop|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: TonePlayer
Method or attribute name: release|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: TonePlayer
Method or attribute name: release|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: createAVSession|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: createAVSession|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: getAllSessionDescriptors|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: getAllSessionDescriptors|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: createController|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: createController|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: castAudio|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: castAudio|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: SessionToken|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: SessionToken
Method or attribute name: sessionId|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: SessionToken
Method or attribute name: pid|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: SessionToken
Method or attribute name: uid|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: on_sessionCreate|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: on_sessionDestroy|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: on_topSessionChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: off_sessionCreate|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: off_sessionDestroy|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: off_topSessionChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: on_sessionServiceDie|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: off_sessionServiceDie|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: sendSystemAVKeyEvent|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: sendSystemAVKeyEvent|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: sendSystemControlCommand|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: sendSystemControlCommand|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: sessionId|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: setAVMetadata|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: setAVMetadata|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: setAVPlaybackState|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: setAVPlaybackState|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: setLaunchAbility|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: setLaunchAbility|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: getController|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: getController|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: getOutputDevice|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: getOutputDevice|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_play|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_pause|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_stop|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_playNext|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_playPrevious|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_fastForward|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_rewind|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_play|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_pause|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_stop|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_playNext|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_playPrevious|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_fastForward|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_rewind|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_seek|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_seek|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_setSpeed|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_setSpeed|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_setLoopMode|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_setLoopMode|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_toggleFavorite|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_toggleFavorite|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_handleKeyEvent|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_handleKeyEvent|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_outputDeviceChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_outputDeviceChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: activate|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: activate|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: deactivate|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: deactivate|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: destroy|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: destroy|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: assetId|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: title|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: artist|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: author|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: album|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: writer|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: composer|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: duration|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: mediaImage|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: publishDate|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: subtitle|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: description|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: lyric|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: previousAssetId|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: nextAssetId|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVPlaybackState|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVPlaybackState
Method or attribute name: state|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVPlaybackState
Method or attribute name: speed|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVPlaybackState
Method or attribute name: position|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVPlaybackState
Method or attribute name: bufferedTime|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVPlaybackState
Method or attribute name: loopMode|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVPlaybackState
Method or attribute name: isFavorite|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackPosition|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackPosition
Method or attribute name: elapsedTime|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackPosition
Method or attribute name: updateTime|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: OutputDeviceInfo|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: OutputDeviceInfo
Method or attribute name: isRemote|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: OutputDeviceInfo
Method or attribute name: audioDeviceId|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: OutputDeviceInfo
Method or attribute name: deviceName|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: LoopMode|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: LoopMode
Method or attribute name: LOOP_MODE_SEQUENCE|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: LoopMode
Method or attribute name: LOOP_MODE_SINGLE|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: LoopMode
Method or attribute name: LOOP_MODE_LIST|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: LoopMode
Method or attribute name: LOOP_MODE_SHUFFLE|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackState|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackState
Method or attribute name: PLAYBACK_STATE_INITIAL|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackState
Method or attribute name: PLAYBACK_STATE_PREPARE|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackState
Method or attribute name: PLAYBACK_STATE_PLAY|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackState
Method or attribute name: PLAYBACK_STATE_PAUSE|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackState
Method or attribute name: PLAYBACK_STATE_FAST_FORWARD|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackState
Method or attribute name: PLAYBACK_STATE_REWIND|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackState
Method or attribute name: PLAYBACK_STATE_STOP|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionDescriptor|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionDescriptor
Method or attribute name: sessionId|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionDescriptor
Method or attribute name: type|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionDescriptor
Method or attribute name: sessionTag|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionDescriptor
Method or attribute name: elementName|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionDescriptor
Method or attribute name: isActive|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionDescriptor
Method or attribute name: isTopSession|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionDescriptor
Method or attribute name: outputDevice|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: sessionId|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getAVPlaybackState|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getAVPlaybackState|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getAVMetadata|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getAVMetadata|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getOutputDevice|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getOutputDevice|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: sendAVKeyEvent|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: sendAVKeyEvent|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getLaunchAbility|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getLaunchAbility|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getRealPlaybackPositionSync|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: isActive|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: isActive|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: destroy|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: destroy|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getValidCommands|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getValidCommands|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: sendControlCommand|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: sendControlCommand|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: on_metadataChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: off_metadataChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: on_playbackStateChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: off_playbackStateChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: on_sessionDestroy|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: off_sessionDestroy|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: on_activeStateChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: off_activeStateChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: on_validCommandChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: off_validCommandChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: on_outputDeviceChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: off_outputDeviceChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVControlCommand|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVControlCommand
Method or attribute name: command|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVControlCommand
Method or attribute name: parameter|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionErrorCode|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionErrorCode
Method or attribute name: ERR_CODE_SERVICE_EXCEPTION|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionErrorCode
Method or attribute name: ERR_CODE_SESSION_NOT_EXIST|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionErrorCode
Method or attribute name: ERR_CODE_CONTROLLER_NOT_EXIST|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionErrorCode
Method or attribute name: ERR_CODE_REMOTE_CONNECTION_ERR|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionErrorCode
Method or attribute name: ERR_CODE_COMMAND_INVALID|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionErrorCode
Method or attribute name: ERR_CODE_SESSION_INACTIVE|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionErrorCode
Method or attribute name: ERR_CODE_MESSAGE_OVERLOAD|@ohos.multimedia.avsession.d.ts| +|Added||Method or attribute name: CAMERA_STATUS_DISAPPEAR
Function name: CAMERA_STATUS_DISAPPEAR = 1|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_STATUS_AVAILABLE
Function name: CAMERA_STATUS_AVAILABLE = 2|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_STATUS_UNAVAILABLE
Function name: CAMERA_STATUS_UNAVAILABLE = 3|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Profile|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Profile
Method or attribute name: format|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Profile
Method or attribute name: size|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: FrameRateRange|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: FrameRateRange
Method or attribute name: min|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: FrameRateRange
Method or attribute name: max|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: VideoProfile|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: VideoProfile
Method or attribute name: frameRateRange|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraOutputCapability|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraOutputCapability
Method or attribute name: previewProfiles|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraOutputCapability
Method or attribute name: photoProfiles|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraOutputCapability
Method or attribute name: videoProfiles|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraOutputCapability
Method or attribute name: supportedMetadataObjectTypes|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: getSupportedCameras|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: getSupportedCameras|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: getSupportedOutputCapability|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: getSupportedOutputCapability|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: isCameraMuted|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: isCameraMuteSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: muteCamera|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: createCameraInput
Function name: createCameraInput(camera: CameraDevice, callback: AsyncCallback): void;|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: createCameraInput
Function name: createCameraInput(camera: CameraDevice): Promise;|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createPreviewOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createPreviewOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createPhotoOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createPhotoOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createVideoOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createVideoOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createMetadataOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createMetadataOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createCaptureSession|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createCaptureSession|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: on_cameraMute|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: camera
Function name: camera: CameraDevice;|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_POSITION_BACK
Function name: CAMERA_POSITION_BACK = 1|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_POSITION_FRONT
Function name: CAMERA_POSITION_FRONT = 2|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_TYPE_WIDE_ANGLE
Function name: CAMERA_TYPE_WIDE_ANGLE = 1|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_TYPE_ULTRA_WIDE
Function name: CAMERA_TYPE_ULTRA_WIDE = 2|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_TYPE_TELEPHOTO
Function name: CAMERA_TYPE_TELEPHOTO = 3|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_TYPE_TRUE_DEPTH
Function name: CAMERA_TYPE_TRUE_DEPTH = 4|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_CONNECTION_USB_PLUGIN
Function name: CAMERA_CONNECTION_USB_PLUGIN = 1|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_CONNECTION_REMOTE
Function name: CAMERA_CONNECTION_REMOTE = 2|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraDevice|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraDevice
Method or attribute name: cameraId|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraDevice
Method or attribute name: cameraPosition|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraDevice
Method or attribute name: cameraType|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraDevice
Method or attribute name: connectionType|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Point|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Point
Method or attribute name: x|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Point
Method or attribute name: y|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: open|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: open|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: close|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: close|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: on_error
Function name: on(type: 'error', camera: CameraDevice, callback: ErrorCallback): void;|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInputErrorCode
Method or attribute name: ERROR_NO_PERMISSION|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInputErrorCode
Method or attribute name: ERROR_DEVICE_PREEMPTED|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInputErrorCode
Method or attribute name: ERROR_DEVICE_DISCONNECTED|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInputErrorCode
Method or attribute name: ERROR_DEVICE_IN_USE|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInputErrorCode
Method or attribute name: ERROR_DRIVER_ERROR|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraFormat|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraFormat
Method or attribute name: CAMERA_FORMAT_RGBA_8888|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraFormat
Method or attribute name: CAMERA_FORMAT_YUV_420_SP|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraFormat
Method or attribute name: CAMERA_FORMAT_JPEG|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: FLASH_MODE_OPEN
Function name: FLASH_MODE_OPEN = 1|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: FLASH_MODE_AUTO
Function name: FLASH_MODE_AUTO = 2|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: FLASH_MODE_ALWAYS_OPEN
Function name: FLASH_MODE_ALWAYS_OPEN = 3|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: ExposureMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: ExposureMode
Method or attribute name: EXPOSURE_MODE_LOCKED|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: ExposureMode
Method or attribute name: EXPOSURE_MODE_AUTO|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: ExposureMode
Method or attribute name: EXPOSURE_MODE_CONTINUOUS_AUTO|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: FOCUS_MODE_CONTINUOUS_AUTO
Function name: FOCUS_MODE_CONTINUOUS_AUTO = 1|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: FOCUS_MODE_AUTO
Function name: FOCUS_MODE_AUTO = 2|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: FOCUS_MODE_LOCKED
Function name: FOCUS_MODE_LOCKED = 3|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: FOCUS_STATE_FOCUSED
Function name: FOCUS_STATE_FOCUSED = 1|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: FOCUS_STATE_UNFOCUSED
Function name: FOCUS_STATE_UNFOCUSED = 2|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: VideoStabilizationMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: VideoStabilizationMode
Method or attribute name: OFF|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: VideoStabilizationMode
Method or attribute name: LOW|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: VideoStabilizationMode
Method or attribute name: MIDDLE|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: VideoStabilizationMode
Method or attribute name: HIGH|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: VideoStabilizationMode
Method or attribute name: AUTO|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: addOutput
Function name: addOutput(cameraOutput: CameraOutput, callback: AsyncCallback): void;|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: addOutput
Function name: addOutput(cameraOutput: CameraOutput): Promise;|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: removeOutput
Function name: removeOutput(cameraOutput: CameraOutput, callback: AsyncCallback): void;|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: removeOutput
Function name: removeOutput(cameraOutput: CameraOutput): Promise;|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: hasFlash|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: hasFlash|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: isFlashModeSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: isFlashModeSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getFlashMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getFlashMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setFlashMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setFlashMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: isExposureModeSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: isExposureModeSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getExposureMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getExposureMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setExposureMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setExposureMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getMeteringPoint|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getMeteringPoint|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setMeteringPoint|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setMeteringPoint|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getExposureBiasRange|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getExposureBiasRange|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setExposureBias|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setExposureBias|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getExposureValue|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getExposureValue|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: isFocusModeSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: isFocusModeSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getFocusMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getFocusMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setFocusMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setFocusMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setFocusPoint|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setFocusPoint|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getFocusPoint|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getFocusPoint|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getFocalLength|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getFocalLength|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getZoomRatioRange|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getZoomRatioRange|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getZoomRatio|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getZoomRatio|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setZoomRatio|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setZoomRatio|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: isVideoStabilizationModeSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: isVideoStabilizationModeSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getActiveVideoStabilizationMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getActiveVideoStabilizationMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setVideoStabilizationMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setVideoStabilizationMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: on_focusStateChange|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSessionErrorCode
Method or attribute name: ERROR_INSUFFICIENT_RESOURCES|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSessionErrorCode
Method or attribute name: ERROR_TIMEOUT|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraOutput
Method or attribute name: release|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraOutput
Method or attribute name: release|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PreviewOutput
Method or attribute name: start|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PreviewOutput
Method or attribute name: start|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PreviewOutput
Method or attribute name: stop|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PreviewOutput
Method or attribute name: stop|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Location|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Location
Method or attribute name: latitude|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Location
Method or attribute name: longitude|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Location
Method or attribute name: altitude|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: QUALITY_LEVEL_MEDIUM
Function name: QUALITY_LEVEL_MEDIUM = 1|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: QUALITY_LEVEL_LOW
Function name: QUALITY_LEVEL_LOW = 2|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PhotoCaptureSetting
Method or attribute name: location|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PhotoCaptureSetting
Method or attribute name: mirror|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PhotoOutput
Method or attribute name: isMirrorSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PhotoOutput
Method or attribute name: isMirrorSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PhotoOutputErrorCode
Method or attribute name: ERROR_DRIVER_ERROR|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PhotoOutputErrorCode
Method or attribute name: ERROR_INSUFFICIENT_RESOURCES|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PhotoOutputErrorCode
Method or attribute name: ERROR_TIMEOUT|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: VideoOutputErrorCode
Method or attribute name: ERROR_DRIVER_ERROR|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataObjectType|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataObjectType
Method or attribute name: FACE_DETECTION|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Rect|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Rect
Method or attribute name: topLeftX|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Rect
Method or attribute name: topLeftY|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Rect
Method or attribute name: width|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Rect
Method or attribute name: height|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataObject|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataObject
Method or attribute name: getType|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataObject
Method or attribute name: getType|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataObject
Method or attribute name: getTimestamp|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataObject
Method or attribute name: getTimestamp|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataObject
Method or attribute name: getBoundingBox|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataObject
Method or attribute name: getBoundingBox|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataFaceObject|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutput
Method or attribute name: start|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutput
Method or attribute name: start|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutput
Method or attribute name: stop|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutput
Method or attribute name: stop|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutput
Method or attribute name: on_metadataObjectsAvailable|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutput
Method or attribute name: on_error|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutputErrorCode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutputErrorCode
Method or attribute name: ERROR_UNKNOWN|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutputErrorCode
Method or attribute name: ERROR_INSUFFICIENT_RESOURCES|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutputError|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutputError
Method or attribute name: code|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: image|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PixelMapFormat
Method or attribute name: RGB_888|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PixelMapFormat
Method or attribute name: ALPHA_8|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PixelMapFormat
Method or attribute name: RGBA_F16|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PixelMapFormat
Method or attribute name: NV21|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PixelMapFormat
Method or attribute name: NV12|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PropertyKey
Method or attribute name: DATE_TIME_ORIGINAL|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PropertyKey
Method or attribute name: EXPOSURE_TIME|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PropertyKey
Method or attribute name: SCENE_TYPE|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PropertyKey
Method or attribute name: ISO_SPEED_RATINGS|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PropertyKey
Method or attribute name: F_NUMBER|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageInfo
Method or attribute name: density|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PackingOption
Method or attribute name: bufferSize|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: DecodingOptions
Method or attribute name: fitDensity|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: image
Method or attribute name: createImageCreator|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator
Method or attribute name: capacity|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator
Method or attribute name: format|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator
Method or attribute name: dequeueImage|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator
Method or attribute name: dequeueImage|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator
Method or attribute name: queueImage|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator
Method or attribute name: queueImage|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator
Method or attribute name: on_imageRelease|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator
Method or attribute name: release|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator
Method or attribute name: release|@ohos.multimedia.image.d.ts| +|Added||Method or attribute name: audioSourceType
Function name: audioSourceType?: AudioSourceType;|@ohos.multimedia.media.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: FocusType||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: FocusType
Method or attribute name: FOCUS_TYPE_RECORDING||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: getVolumeGroups||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: getVolumeGroups||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: getGroupManager||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: getGroupManager||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: requestIndependentInterrupt||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: requestIndependentInterrupt||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: abandonIndependentInterrupt||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: abandonIndependentInterrupt||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: on_independentInterrupt||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: off_independentInterrupt||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioGroupManager||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: setVolume||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: setVolume||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: getVolume||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: getVolume||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: getMinVolume||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: getMinVolume||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: getMaxVolume||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: getMaxVolume||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: mute||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: mute||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: isMute||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: isMute||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.audio
Class name: AudioRenderer
Method or attribute name: on_interrupt||@ohos.multimedia.audio.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: getCameras||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: getCameras||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: Camera||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: Camera
Method or attribute name: cameraId||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: Camera
Method or attribute name: cameraPosition||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: Camera
Method or attribute name: cameraType||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: Camera
Method or attribute name: connectionType||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getCameraId||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getCameraId||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: hasFlash||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: hasFlash||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: isFlashModeSupported||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: isFlashModeSupported||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getFlashMode||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getFlashMode||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: setFlashMode||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: setFlashMode||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: isFocusModeSupported||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: isFocusModeSupported||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getFocusMode||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getFocusMode||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: setFocusMode||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: setFocusMode||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getZoomRatioRange||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getZoomRatioRange||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getZoomRatio||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getZoomRatio||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: setZoomRatio||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: setZoomRatio||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: on_focusStateChange||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: camera
Method or attribute name: createCaptureSession||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: camera
Method or attribute name: createCaptureSession||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: camera
Method or attribute name: createPreviewOutput||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: camera
Method or attribute name: createPreviewOutput||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: PreviewOutput
Method or attribute name: release||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: PreviewOutput
Method or attribute name: release||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: camera
Method or attribute name: createPhotoOutput||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: camera
Method or attribute name: createPhotoOutput||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: PhotoOutput
Method or attribute name: release||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: PhotoOutput
Method or attribute name: release||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: camera
Method or attribute name: createVideoOutput||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: camera
Method or attribute name: createVideoOutput||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: VideoOutput
Method or attribute name: release||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.camera
Class name: VideoOutput
Method or attribute name: release||@ohos.multimedia.camera.d.ts| +|Deleted|Module name: ohos.multimedia.media
Class name: VideoPlayer
Method or attribute name: selectBitrate||@ohos.multimedia.media.d.ts| +|Deleted|Module name: ohos.multimedia.media
Class name: VideoPlayer
Method or attribute name: selectBitrate||@ohos.multimedia.media.d.ts| +|Deleted|Module name: ohos.multimedia.media
Class name: VideoPlayer
Method or attribute name: on_availableBitratesCollect||@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: createVideoRecorder
Access level: public API|Method or attribute name: createVideoRecorder
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: createVideoRecorder
Access level: public API|Method or attribute name: createVideoRecorder
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: VideoRecorder
Access level: public API|Class name: VideoRecorder
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: prepare
Access level: public API|Method or attribute name: prepare
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: prepare
Access level: public API|Method or attribute name: prepare
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: getInputSurface
Access level: public API|Method or attribute name: getInputSurface
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: getInputSurface
Access level: public API|Method or attribute name: getInputSurface
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: start
Access level: public API|Method or attribute name: start
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: start
Access level: public API|Method or attribute name: start
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: pause
Access level: public API|Method or attribute name: pause
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: pause
Access level: public API|Method or attribute name: pause
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: resume
Access level: public API|Method or attribute name: resume
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: resume
Access level: public API|Method or attribute name: resume
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: stop
Access level: public API|Method or attribute name: stop
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: stop
Access level: public API|Method or attribute name: stop
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: release
Access level: public API|Method or attribute name: release
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: release
Access level: public API|Method or attribute name: release
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: reset
Access level: public API|Method or attribute name: reset
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: reset
Access level: public API|Method or attribute name: reset
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: on_error
Access level: public API|Method or attribute name: on_error
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: state
Access level: public API|Method or attribute name: state
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: VideoRecorderProfile
Access level: public API|Class name: VideoRecorderProfile
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: audioBitrate
Access level: public API|Method or attribute name: audioBitrate
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: audioChannels
Access level: public API|Method or attribute name: audioChannels
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: audioCodec
Access level: public API|Method or attribute name: audioCodec
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: audioSampleRate
Access level: public API|Method or attribute name: audioSampleRate
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: fileFormat
Access level: public API|Method or attribute name: fileFormat
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoBitrate
Access level: public API|Method or attribute name: videoBitrate
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoCodec
Access level: public API|Method or attribute name: videoCodec
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoFrameWidth
Access level: public API|Method or attribute name: videoFrameWidth
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoFrameHeight
Access level: public API|Method or attribute name: videoFrameHeight
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoFrameRate
Access level: public API|Method or attribute name: videoFrameRate
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: AudioSourceType
Access level: public API|Class name: AudioSourceType
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: AUDIO_SOURCE_TYPE_DEFAULT
Access level: public API|Method or attribute name: AUDIO_SOURCE_TYPE_DEFAULT
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: AUDIO_SOURCE_TYPE_MIC
Access level: public API|Method or attribute name: AUDIO_SOURCE_TYPE_MIC
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: VideoSourceType
Access level: public API|Class name: VideoSourceType
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: VIDEO_SOURCE_TYPE_SURFACE_YUV
Access level: public API|Method or attribute name: VIDEO_SOURCE_TYPE_SURFACE_YUV
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: VIDEO_SOURCE_TYPE_SURFACE_ES
Access level: public API|Method or attribute name: VIDEO_SOURCE_TYPE_SURFACE_ES
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: VideoRecorderConfig
Access level: public API|Class name: VideoRecorderConfig
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoSourceType
Access level: public API|Method or attribute name: videoSourceType
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: profile
Access level: public API|Method or attribute name: profile
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: url
Access level: public API|Method or attribute name: url
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: rotation
Access level: public API|Method or attribute name: rotation
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: location
Access level: public API|Method or attribute name: location
Access level: system API|@ohos.multimedia.media.d.ts| +|Deprecated version changed|Class name: ActiveDeviceType
Deprecated version: N/A|Class name: ActiveDeviceType
Deprecated version: 9
New API: ohos.multimedia.audio.CommunicationDeviceType |@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: SPEAKER
Deprecated version: N/A|Method or attribute name: SPEAKER
Deprecated version: 9
New API: ohos.multimedia.audio.CommunicationDeviceType |@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: BLUETOOTH_SCO
Deprecated version: N/A|Method or attribute name: BLUETOOTH_SCO
Deprecated version: 9
New API: ohos.multimedia.audio.CommunicationDeviceType |@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Class name: InterruptActionType
Deprecated version: N/A|Class name: InterruptActionType
Deprecated version: 9|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_ACTIVATED
Deprecated version: N/A|Method or attribute name: TYPE_ACTIVATED
Deprecated version: 9|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_INTERRUPT
Deprecated version: N/A|Method or attribute name: TYPE_INTERRUPT
Deprecated version: 9|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: setVolume
Deprecated version: N/A|Method or attribute name: setVolume
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: setVolume
Deprecated version: N/A|Method or attribute name: setVolume
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getVolume
Deprecated version: N/A|Method or attribute name: getVolume
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getVolume
Deprecated version: N/A|Method or attribute name: getVolume
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getMinVolume
Deprecated version: N/A|Method or attribute name: getMinVolume
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getMinVolume
Deprecated version: N/A|Method or attribute name: getMinVolume
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getMaxVolume
Deprecated version: N/A|Method or attribute name: getMaxVolume
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getMaxVolume
Deprecated version: N/A|Method or attribute name: getMaxVolume
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getDevices
Deprecated version: N/A|Method or attribute name: getDevices
Deprecated version: 9
New API: ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getDevices
Deprecated version: N/A|Method or attribute name: getDevices
Deprecated version: 9
New API: ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: mute
Deprecated version: N/A|Method or attribute name: mute
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: mute
Deprecated version: N/A|Method or attribute name: mute
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: isMute
Deprecated version: N/A|Method or attribute name: isMute
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: isMute
Deprecated version: N/A|Method or attribute name: isMute
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: isActive
Deprecated version: N/A|Method or attribute name: isActive
Deprecated version: 9
New API: ohos.multimedia.audio.AudioStreamManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: isActive
Deprecated version: N/A|Method or attribute name: isActive
Deprecated version: 9
New API: ohos.multimedia.audio.AudioStreamManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: setMicrophoneMute
Deprecated version: N/A|Method or attribute name: setMicrophoneMute
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: setMicrophoneMute
Deprecated version: N/A|Method or attribute name: setMicrophoneMute
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: isMicrophoneMute
Deprecated version: N/A|Method or attribute name: isMicrophoneMute
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: isMicrophoneMute
Deprecated version: N/A|Method or attribute name: isMicrophoneMute
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: setRingerMode
Deprecated version: N/A|Method or attribute name: setRingerMode
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: setRingerMode
Deprecated version: N/A|Method or attribute name: setRingerMode
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getRingerMode
Deprecated version: N/A|Method or attribute name: getRingerMode
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getRingerMode
Deprecated version: N/A|Method or attribute name: getRingerMode
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: setDeviceActive
Deprecated version: N/A|Method or attribute name: setDeviceActive
Deprecated version: 9
New API: ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: setDeviceActive
Deprecated version: N/A|Method or attribute name: setDeviceActive
Deprecated version: 9
New API: ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: isDeviceActive
Deprecated version: N/A|Method or attribute name: isDeviceActive
Deprecated version: 9
New API: ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: isDeviceActive
Deprecated version: N/A|Method or attribute name: isDeviceActive
Deprecated version: 9
New API: ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: on_volumeChange
Deprecated version: N/A|Method or attribute name: on_volumeChange
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: on_ringerModeChange
Deprecated version: N/A|Method or attribute name: on_ringerModeChange
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: on_deviceChange
Deprecated version: N/A|Method or attribute name: on_deviceChange
Deprecated version: 9
New API: ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: off_deviceChange
Deprecated version: N/A|Method or attribute name: off_deviceChange
Deprecated version: 9
New API: ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Class name: InterruptAction
Deprecated version: N/A|Class name: InterruptAction
Deprecated version: 9
New API: ohos.multimedia.audio.InterruptEvent |@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: actionType
Deprecated version: N/A|Method or attribute name: actionType
Deprecated version: 9
New API: ohos.multimedia.audio.InterruptEvent |@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: type
Deprecated version: N/A|Method or attribute name: type
Deprecated version: 9
New API: ohos.multimedia.audio.InterruptEvent |@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: hint
Deprecated version: N/A|Method or attribute name: hint
Deprecated version: 9
New API: ohos.multimedia.audio.InterruptEvent |@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: activated
Deprecated version: N/A|Method or attribute name: activated
Deprecated version: 9
New API: ohos.multimedia.audio.InterruptEvent |@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Class name: AudioInterrupt
Deprecated version: N/A|Class name: AudioInterrupt
Deprecated version: 9|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: streamUsage
Deprecated version: N/A|Method or attribute name: streamUsage
Deprecated version: 9|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: contentType
Deprecated version: N/A|Method or attribute name: contentType
Deprecated version: 9|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: pauseWhenDucked
Deprecated version: N/A|Method or attribute name: pauseWhenDucked
Deprecated version: 9|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Class name: mediaLibrary
Deprecated version: 9|Class name: mediaLibrary
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getMediaLibrary
Deprecated version: 9|Method or attribute name: getMediaLibrary
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getMediaLibrary
Deprecated version: 9|Method or attribute name: getMediaLibrary
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: MediaType
Deprecated version: 9|Class name: MediaType
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: FILE
Deprecated version: 9|Method or attribute name: FILE
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: IMAGE
Deprecated version: 9|Method or attribute name: IMAGE
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: VIDEO
Deprecated version: 9|Method or attribute name: VIDEO
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: AUDIO
Deprecated version: 9|Method or attribute name: AUDIO
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: FileAsset
Deprecated version: 9|Class name: FileAsset
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: id
Deprecated version: 9|Method or attribute name: id
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: uri
Deprecated version: 9|Method or attribute name: uri
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: mimeType
Deprecated version: 9|Method or attribute name: mimeType
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: mediaType
Deprecated version: 9|Method or attribute name: mediaType
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: displayName
Deprecated version: 9|Method or attribute name: displayName
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: title
Deprecated version: 9|Method or attribute name: title
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: relativePath
Deprecated version: 9|Method or attribute name: relativePath
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: parent
Deprecated version: 9|Method or attribute name: parent
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: size
Deprecated version: 9|Method or attribute name: size
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: dateAdded
Deprecated version: 9|Method or attribute name: dateAdded
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: dateModified
Deprecated version: 9|Method or attribute name: dateModified
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: dateTaken
Deprecated version: 9|Method or attribute name: dateTaken
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: artist
Deprecated version: 9|Method or attribute name: artist
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: audioAlbum
Deprecated version: 9|Method or attribute name: audioAlbum
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: width
Deprecated version: 9|Method or attribute name: width
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: height
Deprecated version: 9|Method or attribute name: height
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: orientation
Deprecated version: 9|Method or attribute name: orientation
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: duration
Deprecated version: 9|Method or attribute name: duration
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: albumId
Deprecated version: 9|Method or attribute name: albumId
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: albumUri
Deprecated version: 9|Method or attribute name: albumUri
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: albumName
Deprecated version: 9|Method or attribute name: albumName
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: isDirectory
Deprecated version: 9|Method or attribute name: isDirectory
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: isDirectory
Deprecated version: 9|Method or attribute name: isDirectory
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: commitModify
Deprecated version: 9|Method or attribute name: commitModify
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: commitModify
Deprecated version: 9|Method or attribute name: commitModify
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: open
Deprecated version: 9|Method or attribute name: open
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: open
Deprecated version: 9|Method or attribute name: open
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: close
Deprecated version: 9|Method or attribute name: close
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: close
Deprecated version: 9|Method or attribute name: close
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getThumbnail
Deprecated version: 9|Method or attribute name: getThumbnail
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getThumbnail
Deprecated version: 9|Method or attribute name: getThumbnail
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getThumbnail
Deprecated version: 9|Method or attribute name: getThumbnail
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: favorite
Deprecated version: 9|Method or attribute name: favorite
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: favorite
Deprecated version: 9|Method or attribute name: favorite
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: isFavorite
Deprecated version: 9|Method or attribute name: isFavorite
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: isFavorite
Deprecated version: 9|Method or attribute name: isFavorite
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: trash
Deprecated version: 9|Method or attribute name: trash
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: trash
Deprecated version: 9|Method or attribute name: trash
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: isTrash
Deprecated version: 9|Method or attribute name: isTrash
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: isTrash
Deprecated version: 9|Method or attribute name: isTrash
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: FileKey
Deprecated version: 9|Class name: FileKey
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: ID
Deprecated version: 9|Method or attribute name: ID
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: RELATIVE_PATH
Deprecated version: 9|Method or attribute name: RELATIVE_PATH
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DISPLAY_NAME
Deprecated version: 9|Method or attribute name: DISPLAY_NAME
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: PARENT
Deprecated version: 9|Method or attribute name: PARENT
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: MIME_TYPE
Deprecated version: 9|Method or attribute name: MIME_TYPE
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: MEDIA_TYPE
Deprecated version: 9|Method or attribute name: MEDIA_TYPE
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: SIZE
Deprecated version: 9|Method or attribute name: SIZE
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DATE_ADDED
Deprecated version: 9|Method or attribute name: DATE_ADDED
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DATE_MODIFIED
Deprecated version: 9|Method or attribute name: DATE_MODIFIED
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DATE_TAKEN
Deprecated version: 9|Method or attribute name: DATE_TAKEN
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: TITLE
Deprecated version: 9|Method or attribute name: TITLE
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: ARTIST
Deprecated version: 9|Method or attribute name: ARTIST
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: AUDIOALBUM
Deprecated version: 9|Method or attribute name: AUDIOALBUM
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DURATION
Deprecated version: 9|Method or attribute name: DURATION
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: WIDTH
Deprecated version: 9|Method or attribute name: WIDTH
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: HEIGHT
Deprecated version: 9|Method or attribute name: HEIGHT
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: ORIENTATION
Deprecated version: 9|Method or attribute name: ORIENTATION
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: ALBUM_ID
Deprecated version: 9|Method or attribute name: ALBUM_ID
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: ALBUM_NAME
Deprecated version: 9|Method or attribute name: ALBUM_NAME
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: MediaFetchOptions
Deprecated version: 9|Class name: MediaFetchOptions
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: selections
Deprecated version: 9|Method or attribute name: selections
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: selectionArgs
Deprecated version: 9|Method or attribute name: selectionArgs
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: order
Deprecated version: 9|Method or attribute name: order
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: uri
Deprecated version: 9|Method or attribute name: uri
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: networkId
Deprecated version: 9|Method or attribute name: networkId
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: extendArgs
Deprecated version: 9|Method or attribute name: extendArgs
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: FetchFileResult
Deprecated version: 9|Class name: FetchFileResult
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getCount
Deprecated version: 9|Method or attribute name: getCount
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: isAfterLast
Deprecated version: 9|Method or attribute name: isAfterLast
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: close
Deprecated version: 9|Method or attribute name: close
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getFirstObject
Deprecated version: 9|Method or attribute name: getFirstObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getFirstObject
Deprecated version: 9|Method or attribute name: getFirstObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getNextObject
Deprecated version: 9|Method or attribute name: getNextObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getNextObject
Deprecated version: 9|Method or attribute name: getNextObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getLastObject
Deprecated version: 9|Method or attribute name: getLastObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getLastObject
Deprecated version: 9|Method or attribute name: getLastObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getPositionObject
Deprecated version: 9|Method or attribute name: getPositionObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getPositionObject
Deprecated version: 9|Method or attribute name: getPositionObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getAllObject
Deprecated version: 9|Method or attribute name: getAllObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getAllObject
Deprecated version: 9|Method or attribute name: getAllObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: Album
Deprecated version: 9|Class name: Album
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: albumId
Deprecated version: 9|Method or attribute name: albumId
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: albumName
Deprecated version: 9|Method or attribute name: albumName
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: albumUri
Deprecated version: 9|Method or attribute name: albumUri
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: dateModified
Deprecated version: 9|Method or attribute name: dateModified
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: count
Deprecated version: 9|Method or attribute name: count
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: relativePath
Deprecated version: 9|Method or attribute name: relativePath
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: coverUri
Deprecated version: 9|Method or attribute name: coverUri
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: commitModify
Deprecated version: 9|Method or attribute name: commitModify
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: commitModify
Deprecated version: 9|Method or attribute name: commitModify
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getFileAssets
Deprecated version: 9|Method or attribute name: getFileAssets
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getFileAssets
Deprecated version: 9|Method or attribute name: getFileAssets
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getFileAssets
Deprecated version: 9|Method or attribute name: getFileAssets
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: DirectoryType
Deprecated version: 9|Class name: DirectoryType
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DIR_CAMERA
Deprecated version: 9|Method or attribute name: DIR_CAMERA
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DIR_VIDEO
Deprecated version: 9|Method or attribute name: DIR_VIDEO
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DIR_IMAGE
Deprecated version: 9|Method or attribute name: DIR_IMAGE
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DIR_AUDIO
Deprecated version: 9|Method or attribute name: DIR_AUDIO
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DIR_DOCUMENTS
Deprecated version: 9|Method or attribute name: DIR_DOCUMENTS
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DIR_DOWNLOAD
Deprecated version: 9|Method or attribute name: DIR_DOWNLOAD
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: MediaLibrary
Deprecated version: 9|Class name: MediaLibrary
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getPublicDirectory
Deprecated version: 9|Method or attribute name: getPublicDirectory
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getPublicDirectory
Deprecated version: 9|Method or attribute name: getPublicDirectory
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getFileAssets
Deprecated version: 9|Method or attribute name: getFileAssets
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getFileAssets
Deprecated version: 9|Method or attribute name: getFileAssets
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: on_deviceChange
Deprecated version: 9|Method or attribute name: on_deviceChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: on_albumChange
Deprecated version: 9|Method or attribute name: on_albumChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: on_imageChange
Deprecated version: 9|Method or attribute name: on_imageChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: on_audioChange
Deprecated version: 9|Method or attribute name: on_audioChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: on_videoChange
Deprecated version: 9|Method or attribute name: on_videoChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: on_fileChange
Deprecated version: 9|Method or attribute name: on_fileChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: on_remoteFileChange
Deprecated version: 9|Method or attribute name: on_remoteFileChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: off_deviceChange
Deprecated version: 9|Method or attribute name: off_deviceChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: off_albumChange
Deprecated version: 9|Method or attribute name: off_albumChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: off_imageChange
Deprecated version: 9|Method or attribute name: off_imageChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: off_audioChange
Deprecated version: 9|Method or attribute name: off_audioChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: off_videoChange
Deprecated version: 9|Method or attribute name: off_videoChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: off_fileChange
Deprecated version: 9|Method or attribute name: off_fileChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: off_remoteFileChange
Deprecated version: 9|Method or attribute name: off_remoteFileChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: createAsset
Deprecated version: 9|Method or attribute name: createAsset
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: createAsset
Deprecated version: 9|Method or attribute name: createAsset
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: deleteAsset
Deprecated version: 9|Method or attribute name: deleteAsset
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: deleteAsset
Deprecated version: 9|Method or attribute name: deleteAsset
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getAlbums
Deprecated version: 9|Method or attribute name: getAlbums
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getAlbums
Deprecated version: 9|Method or attribute name: getAlbums
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getActivePeers
Deprecated version: 9|Method or attribute name: getActivePeers
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getActivePeers
Deprecated version: 9|Method or attribute name: getActivePeers
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getAllPeers
Deprecated version: 9|Method or attribute name: getAllPeers
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getAllPeers
Deprecated version: 9|Method or attribute name: getAllPeers
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: release
Deprecated version: 9|Method or attribute name: release
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: release
Deprecated version: 9|Method or attribute name: release
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: Size
Deprecated version: 9|Class name: Size
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: width
Deprecated version: 9|Method or attribute name: width
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: height
Deprecated version: 9|Method or attribute name: height
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: PeerInfo
Deprecated version: 9|Class name: PeerInfo
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: deviceName
Deprecated version: 9|Method or attribute name: deviceName
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: networkId
Deprecated version: 9|Method or attribute name: networkId
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: deviceType
Deprecated version: 9|Method or attribute name: deviceType
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: isOnline
Deprecated version: 9|Method or attribute name: isOnline
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: DeviceType
Deprecated version: 9|Class name: DeviceType
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_UNKNOWN
Deprecated version: 9|Method or attribute name: TYPE_UNKNOWN
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_LAPTOP
Deprecated version: 9|Method or attribute name: TYPE_LAPTOP
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_PHONE
Deprecated version: 9|Method or attribute name: TYPE_PHONE
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_TABLET
Deprecated version: 9|Method or attribute name: TYPE_TABLET
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_WATCH
Deprecated version: 9|Method or attribute name: TYPE_WATCH
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_CAR
Deprecated version: 9|Method or attribute name: TYPE_CAR
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_TV
Deprecated version: 9|Method or attribute name: TYPE_TV
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Error code added||Method or attribute name: on_deviceChange
Error code: 401,6800101|@ohos.multimedia.audio.d.ts| +|Error code added||Method or attribute name: off_deviceChange
Error code: 401,6800101|@ohos.multimedia.audio.d.ts| +|Error code added||Method or attribute name: on_audioRendererChange
Error code: 401,6800101|@ohos.multimedia.audio.d.ts| +|Error code added||Method or attribute name: on_audioCapturerChange
Error code: 401,6800101|@ohos.multimedia.audio.d.ts| +|Error code added||Method or attribute name: createVideoRecorder
Error code: 5400101|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: createVideoRecorder
Error code: 5400101|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: prepare
Error code: 201,401,5400102,5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: prepare
Error code: 201,401,5400102,5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: getInputSurface
Error code: 5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: getInputSurface
Error code: 5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: start
Error code: 5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: start
Error code: 5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: pause
Error code: 5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: pause
Error code: 5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: resume
Error code: 5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: resume
Error code: 5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: stop
Error code: 5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: stop
Error code: 5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: release
Error code: 5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: release
Error code: 5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: reset
Error code: 5400103,5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: reset
Error code: 5400103,5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: on_error
Error code: 5400103,5400105|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: createVideoRecorder
Access level: public API|Method or attribute name: createVideoRecorder
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: createVideoRecorder
Access level: public API|Method or attribute name: createVideoRecorder
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: VideoRecorder
Access level: public API|Class name: VideoRecorder
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: prepare
Access level: public API|Method or attribute name: prepare
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: prepare
Access level: public API|Method or attribute name: prepare
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: getInputSurface
Access level: public API|Method or attribute name: getInputSurface
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: getInputSurface
Access level: public API|Method or attribute name: getInputSurface
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: start
Access level: public API|Method or attribute name: start
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: start
Access level: public API|Method or attribute name: start
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: pause
Access level: public API|Method or attribute name: pause
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: pause
Access level: public API|Method or attribute name: pause
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: resume
Access level: public API|Method or attribute name: resume
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: resume
Access level: public API|Method or attribute name: resume
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: stop
Access level: public API|Method or attribute name: stop
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: stop
Access level: public API|Method or attribute name: stop
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: release
Access level: public API|Method or attribute name: release
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: release
Access level: public API|Method or attribute name: release
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: reset
Access level: public API|Method or attribute name: reset
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: reset
Access level: public API|Method or attribute name: reset
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: on_error
Access level: public API|Method or attribute name: on_error
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: state
Access level: public API|Method or attribute name: state
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: VideoRecorderProfile
Access level: public API|Class name: VideoRecorderProfile
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: audioBitrate
Access level: public API|Method or attribute name: audioBitrate
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: audioChannels
Access level: public API|Method or attribute name: audioChannels
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: audioCodec
Access level: public API|Method or attribute name: audioCodec
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: audioSampleRate
Access level: public API|Method or attribute name: audioSampleRate
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: fileFormat
Access level: public API|Method or attribute name: fileFormat
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoBitrate
Access level: public API|Method or attribute name: videoBitrate
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoCodec
Access level: public API|Method or attribute name: videoCodec
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoFrameWidth
Access level: public API|Method or attribute name: videoFrameWidth
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoFrameHeight
Access level: public API|Method or attribute name: videoFrameHeight
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoFrameRate
Access level: public API|Method or attribute name: videoFrameRate
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: AudioSourceType
Access level: public API|Class name: AudioSourceType
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: AUDIO_SOURCE_TYPE_DEFAULT
Access level: public API|Method or attribute name: AUDIO_SOURCE_TYPE_DEFAULT
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: AUDIO_SOURCE_TYPE_MIC
Access level: public API|Method or attribute name: AUDIO_SOURCE_TYPE_MIC
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: VideoSourceType
Access level: public API|Class name: VideoSourceType
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: VIDEO_SOURCE_TYPE_SURFACE_YUV
Access level: public API|Method or attribute name: VIDEO_SOURCE_TYPE_SURFACE_YUV
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: VIDEO_SOURCE_TYPE_SURFACE_ES
Access level: public API|Method or attribute name: VIDEO_SOURCE_TYPE_SURFACE_ES
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: VideoRecorderConfig
Access level: public API|Class name: VideoRecorderConfig
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoSourceType
Access level: public API|Method or attribute name: videoSourceType
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: profile
Access level: public API|Method or attribute name: profile
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: url
Access level: public API|Method or attribute name: url
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: rotation
Access level: public API|Method or attribute name: rotation
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: location
Access level: public API|Method or attribute name: location
Access level: system API|@ohos.multimedia.media.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-notification.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-notification.md new file mode 100644 index 0000000000000000000000000000000000000000..83afc38813db78fd6f72ee565df4fc9a3cc16505 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-notification.md @@ -0,0 +1,555 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.commonEventManager
Class name: commonEventManager|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: commonEventManager
Method or attribute name: publish|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: commonEventManager
Method or attribute name: publish|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: commonEventManager
Method or attribute name: publishAsUser|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: commonEventManager
Method or attribute name: publishAsUser|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: commonEventManager
Method or attribute name: createSubscriber|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: commonEventManager
Method or attribute name: createSubscriber|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: commonEventManager
Method or attribute name: subscribe|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: commonEventManager
Method or attribute name: unsubscribe|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BOOT_COMPLETED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_LOCKED_BOOT_COMPLETED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_SHUTDOWN|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BATTERY_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BATTERY_LOW|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BATTERY_OKAY|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_POWER_CONNECTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_POWER_DISCONNECTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_SCREEN_OFF|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_SCREEN_ON|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_THERMAL_LEVEL_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_PRESENT|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_TIME_TICK|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_TIME_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DATE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_TIMEZONE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_CLOSE_SYSTEM_DIALOGS|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_ADDED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_REPLACED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_MY_PACKAGE_REPLACED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_REMOVED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BUNDLE_REMOVED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_FULLY_REMOVED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_RESTARTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_DATA_CLEARED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_CACHE_CLEARED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGES_SUSPENDED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGES_UNSUSPENDED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_MY_PACKAGE_SUSPENDED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_MY_PACKAGE_UNSUSPENDED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_UID_REMOVED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_FIRST_LAUNCH|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_VERIFIED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_CONFIGURATION_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_LOCALE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_MANAGE_PACKAGE_STORAGE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DRIVE_MODE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_HOME_MODE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_OFFICE_MODE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_STARTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_BACKGROUND|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_FOREGROUND|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_SWITCHED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_STARTING|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_UNLOCKED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_STOPPING|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_STOPPED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_POWER_STATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_SCAN_FINISHED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_RSSI_VALUE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_CONN_STATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_HOTSPOT_STATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_AP_STA_JOIN|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_AP_STA_LEAVE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_P2P_CONN_STATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_P2P_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISCHARGING|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_CHARGING|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_POWER_SAVE_MODE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_ADDED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_REMOVED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_ABILITY_ADDED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_ABILITY_REMOVED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_ABILITY_UPDATED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_LOCATION_MODE_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_SLEEP|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_PAUSE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_STANDBY|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_LASTMODE_SAVE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_VOLTAGE_ABNORMAL|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_HIGH_TEMPERATURE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_EXTREME_TEMPERATURE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_VOLTAGE_RECOVERY|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_TEMPERATURE_RECOVERY|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_ACTIVE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USB_STATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USB_PORT_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USB_DEVICE_ATTACHED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USB_DEVICE_DETACHED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USB_ACCESSORY_ATTACHED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USB_ACCESSORY_DETACHED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISK_REMOVED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISK_UNMOUNTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISK_MOUNTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISK_BAD_REMOVAL|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISK_UNMOUNTABLE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISK_EJECT|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_VOLUME_REMOVED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_VOLUME_UNMOUNTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_VOLUME_MOUNTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_VOLUME_BAD_REMOVAL|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_VOLUME_EJECT|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_ACCOUNT_DELETED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_FOUNDATION_READY|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_AIRPLANE_MODE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_SPLIT_SCREEN|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_SLOT_CHANGE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_SPN_INFO_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_QUICK_FIX_APPLY_RESULT|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: publish|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: publish|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: publish|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: publish|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: publishAsBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: publishAsBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: cancel|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: cancel|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: cancel|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: cancelAsBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: cancelAsBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: cancelAll|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: cancelAll|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: addSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: addSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: addSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: addSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: addSlots|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: addSlots|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSlots|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSlots|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: removeSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: removeSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: removeAllSlots|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: removeAllSlots|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setNotificationEnable|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setNotificationEnable|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isNotificationEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isNotificationEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isNotificationEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isNotificationEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isNotificationEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isNotificationEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: displayBadge|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: displayBadge|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isBadgeDisplayed|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isBadgeDisplayed|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setSlotByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setSlotByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSlotsByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSlotsByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSlotNumByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSlotNumByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getAllActiveNotifications|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getAllActiveNotifications|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getActiveNotificationCount|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getActiveNotificationCount|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getActiveNotifications|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getActiveNotifications|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: cancelGroup|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: cancelGroup|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: removeGroupByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: removeGroupByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setDoNotDisturbDate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setDoNotDisturbDate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setDoNotDisturbDate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setDoNotDisturbDate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getDoNotDisturbDate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getDoNotDisturbDate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getDoNotDisturbDate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getDoNotDisturbDate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: supportDoNotDisturbMode|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: supportDoNotDisturbMode|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isSupportTemplate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isSupportTemplate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: requestEnableNotification|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: requestEnableNotification|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setDistributedEnable|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setDistributedEnable|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isDistributedEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isDistributedEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setDistributedEnableByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setDistributedEnableByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isDistributedEnabledByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isDistributedEnabledByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getDeviceRemindType|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getDeviceRemindType|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setNotificationEnableSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setNotificationEnableSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isNotificationSlotEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isNotificationSlotEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotType|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotType
Method or attribute name: UNKNOWN_TYPE|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotType
Method or attribute name: SOCIAL_COMMUNICATION|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotType
Method or attribute name: SERVICE_INFORMATION|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotType
Method or attribute name: CONTENT_INFORMATION|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotType
Method or attribute name: OTHER_TYPES|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: ContentType|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: ContentType
Method or attribute name: NOTIFICATION_CONTENT_BASIC_TEXT|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: ContentType
Method or attribute name: NOTIFICATION_CONTENT_LONG_TEXT|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: ContentType
Method or attribute name: NOTIFICATION_CONTENT_PICTURE|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: ContentType
Method or attribute name: NOTIFICATION_CONTENT_CONVERSATION|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: ContentType
Method or attribute name: NOTIFICATION_CONTENT_MULTILINE|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotLevel|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotLevel
Method or attribute name: LEVEL_NONE|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotLevel
Method or attribute name: LEVEL_MIN|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotLevel
Method or attribute name: LEVEL_LOW|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotLevel
Method or attribute name: LEVEL_DEFAULT|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotLevel
Method or attribute name: LEVEL_HIGH|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: BundleOption|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: BundleOption
Method or attribute name: bundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: BundleOption
Method or attribute name: uid|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: NotificationKey|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: NotificationKey
Method or attribute name: id|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: NotificationKey
Method or attribute name: label|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DoNotDisturbType|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DoNotDisturbType
Method or attribute name: TYPE_NONE|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DoNotDisturbType
Method or attribute name: TYPE_ONCE|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DoNotDisturbType
Method or attribute name: TYPE_DAILY|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DoNotDisturbType
Method or attribute name: TYPE_CLEARLY|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DoNotDisturbDate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DoNotDisturbDate
Method or attribute name: type|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DoNotDisturbDate
Method or attribute name: begin|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DoNotDisturbDate
Method or attribute name: end|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DeviceRemindType|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DeviceRemindType
Method or attribute name: IDLE_DONOT_REMIND|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DeviceRemindType
Method or attribute name: IDLE_REMIND|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DeviceRemindType
Method or attribute name: ACTIVE_DONOT_REMIND|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DeviceRemindType
Method or attribute name: ACTIVE_REMIND|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SourceType|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SourceType
Method or attribute name: TYPE_NORMAL|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SourceType
Method or attribute name: TYPE_CONTINUOUS|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SourceType
Method or attribute name: TYPE_TIMER|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: RemoveReason|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: RemoveReason
Method or attribute name: CLICK_REASON_REMOVE|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: RemoveReason
Method or attribute name: CANCEL_REASON_REMOVE|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: subscribe|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: subscribe|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: subscribe|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: unsubscribe|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: unsubscribe|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: remove|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: remove|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: remove|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: remove|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: removeAll|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: removeAll|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: removeAll|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: removeAll|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: removeAll|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: publishReminder|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: publishReminder|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: cancelReminder|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: cancelReminder|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: getValidReminders|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: getValidReminders|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: cancelAllReminders|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: cancelAllReminders|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: addNotificationSlot|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: addNotificationSlot|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: removeNotificationSlot|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: removeNotificationSlot|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ActionButtonType|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ActionButtonType
Method or attribute name: ACTION_BUTTON_TYPE_CLOSE|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ActionButtonType
Method or attribute name: ACTION_BUTTON_TYPE_SNOOZE|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderType|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderType
Method or attribute name: REMINDER_TYPE_TIMER|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderType
Method or attribute name: REMINDER_TYPE_CALENDAR|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderType
Method or attribute name: REMINDER_TYPE_ALARM|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ActionButton|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ActionButton
Method or attribute name: title|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ActionButton
Method or attribute name: type|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: WantAgent|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: WantAgent
Method or attribute name: pkgName|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: WantAgent
Method or attribute name: abilityName|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: MaxScreenWantAgent|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: MaxScreenWantAgent
Method or attribute name: pkgName|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: MaxScreenWantAgent
Method or attribute name: abilityName|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: reminderType|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: actionButton|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: wantAgent|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: maxScreenWantAgent|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: ringDuration|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: snoozeTimes|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: timeInterval|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: title|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: content|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: expiredContent|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: snoozeContent|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: notificationId|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: slotType|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestCalendar|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestCalendar
Method or attribute name: dateTime|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestCalendar
Method or attribute name: repeatMonths|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestCalendar
Method or attribute name: repeatDays|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestAlarm|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestAlarm
Method or attribute name: hour|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestAlarm
Method or attribute name: minute|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestAlarm
Method or attribute name: daysOfWeek|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestTimer|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestTimer
Method or attribute name: triggerTimeInSeconds|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: LocalDateTime|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: LocalDateTime
Method or attribute name: year|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: LocalDateTime
Method or attribute name: month|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: LocalDateTime
Method or attribute name: day|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: LocalDateTime
Method or attribute name: hour|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: LocalDateTime
Method or attribute name: minute|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: LocalDateTime
Method or attribute name: second|@ohos.reminderAgentManager.d.ts| +|Deprecated version changed|Class name: commonEvent
Deprecated version: N/A|Class name: commonEvent
Deprecated version: 9
New API: ohos.commonEventManager |@ohos.commonEvent.d.ts| +|Deprecated version changed|Method or attribute name: publish
Deprecated version: N/A|Method or attribute name: publish
Deprecated version: 9
New API: ohos.commonEventManager.publish |@ohos.commonEvent.d.ts| +|Deprecated version changed|Method or attribute name: publish
Deprecated version: N/A|Method or attribute name: publish
Deprecated version: 9
New API: ohos.commonEventManager.publish |@ohos.commonEvent.d.ts| +|Deprecated version changed|Method or attribute name: publishAsUser
Deprecated version: N/A|Method or attribute name: publishAsUser
Deprecated version: 9
New API: ohos.commonEventManager.publishAsUser |@ohos.commonEvent.d.ts| +|Deprecated version changed|Method or attribute name: publishAsUser
Deprecated version: N/A|Method or attribute name: publishAsUser
Deprecated version: 9
New API: ohos.commonEventManager.publishAsUser |@ohos.commonEvent.d.ts| +|Deprecated version changed|Method or attribute name: createSubscriber
Deprecated version: N/A|Method or attribute name: createSubscriber
Deprecated version: 9
New API: ohos.commonEventManager.createSubscriber |@ohos.commonEvent.d.ts| +|Deprecated version changed|Method or attribute name: createSubscriber
Deprecated version: N/A|Method or attribute name: createSubscriber
Deprecated version: 9
New API: ohos.commonEventManager.createSubscriber |@ohos.commonEvent.d.ts| +|Deprecated version changed|Method or attribute name: subscribe
Deprecated version: N/A|Method or attribute name: subscribe
Deprecated version: 9
New API: ohos.commonEventManager.subscribe |@ohos.commonEvent.d.ts| +|Deprecated version changed|Method or attribute name: unsubscribe
Deprecated version: N/A|Method or attribute name: unsubscribe
Deprecated version: 9
New API: ohos.commonEventManager.unsubscribe |@ohos.commonEvent.d.ts| +|Deprecated version changed|Class name: Support
Deprecated version: N/A|Class name: Support
Deprecated version: 9
New API: ohos.commonEventManager.Support |@ohos.commonEvent.d.ts| +|Deprecated version changed|Class name: notification
Deprecated version: N/A|Class name: notification
Deprecated version: 9
New API: ohos.notificationManager and ohos.notificationSubscribe |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: publish
Deprecated version: N/A|Method or attribute name: publish
Deprecated version: 9
New API: ohos.notificationManager.publish |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: publish
Deprecated version: N/A|Method or attribute name: publish
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: publish
Deprecated version: N/A|Method or attribute name: publish
Deprecated version: 9
New API: ohos.notificationManager.publish |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: publish
Deprecated version: N/A|Method or attribute name: publish
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: publishAsBundle
Deprecated version: N/A|Method or attribute name: publishAsBundle
Deprecated version: 9
New API: ohos.notificationManager.publishAsBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: publishAsBundle
Deprecated version: N/A|Method or attribute name: publishAsBundle
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: cancel
Deprecated version: N/A|Method or attribute name: cancel
Deprecated version: 9
New API: ohos.notificationManager.cancel |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: cancel
Deprecated version: N/A|Method or attribute name: cancel
Deprecated version: 9
New API: ohos.notificationManager.cancel |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: cancel
Deprecated version: N/A|Method or attribute name: cancel
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: cancelAsBundle
Deprecated version: N/A|Method or attribute name: cancelAsBundle
Deprecated version: 9
New API: ohos.notificationManager.cancelAsBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: cancelAsBundle
Deprecated version: N/A|Method or attribute name: cancelAsBundle
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: cancelAll
Deprecated version: N/A|Method or attribute name: cancelAll
Deprecated version: 9
New API: ohos.notificationManager.cancelAll |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: cancelAll
Deprecated version: N/A|Method or attribute name: cancelAll
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: addSlot
Deprecated version: N/A|Method or attribute name: addSlot
Deprecated version: 9
New API: ohos.notificationManager.addSlot |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: addSlot
Deprecated version: N/A|Method or attribute name: addSlot
Deprecated version: 9
New API: ohos.notificationManager.addSlot |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: addSlot
Deprecated version: N/A|Method or attribute name: addSlot
Deprecated version: 9
New API: ohos.notificationManager.addSlot |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: addSlot
Deprecated version: N/A|Method or attribute name: addSlot
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: addSlots
Deprecated version: N/A|Method or attribute name: addSlots
Deprecated version: 9
New API: ohos.notificationManager.addSlots |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: addSlots
Deprecated version: N/A|Method or attribute name: addSlots
Deprecated version: 9
New API: ohos.notificationManager.addSlots |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSlot
Deprecated version: N/A|Method or attribute name: getSlot
Deprecated version: 9
New API: ohos.notificationManager.getSlot |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSlot
Deprecated version: N/A|Method or attribute name: getSlot
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSlots
Deprecated version: N/A|Method or attribute name: getSlots
Deprecated version: 9
New API: ohos.notificationManager.getSlots |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSlots
Deprecated version: N/A|Method or attribute name: getSlots
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeSlot
Deprecated version: N/A|Method or attribute name: removeSlot
Deprecated version: 9
New API: ohos.notificationManager.removeSlot |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeSlot
Deprecated version: N/A|Method or attribute name: removeSlot
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeAllSlots
Deprecated version: N/A|Method or attribute name: removeAllSlots
Deprecated version: 9
New API: ohos.notificationManager.removeAllSlots |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeAllSlots
Deprecated version: N/A|Method or attribute name: removeAllSlots
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Class name: SlotType
Deprecated version: N/A|Class name: SlotType
Deprecated version: 9
New API: ohos.notificationManager.SlotType |@ohos.notification.d.ts| +|Deprecated version changed|Class name: ContentType
Deprecated version: N/A|Class name: ContentType
Deprecated version: 9
New API: ohos.notificationManager.ContentType |@ohos.notification.d.ts| +|Deprecated version changed|Class name: SlotLevel
Deprecated version: N/A|Class name: SlotLevel
Deprecated version: 9
New API: ohos.notificationManager.SlotLevel |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: subscribe
Deprecated version: N/A|Method or attribute name: subscribe
Deprecated version: 9
New API: ohos.notificationSubscribe.subscribe |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: subscribe
Deprecated version: N/A|Method or attribute name: subscribe
Deprecated version: 9
New API: ohos.notificationSubscribe.subscribe |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: subscribe
Deprecated version: N/A|Method or attribute name: subscribe
Deprecated version: 9
New API: ohos.notificationSubscribe.subscribe |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: unsubscribe
Deprecated version: N/A|Method or attribute name: unsubscribe
Deprecated version: 9
New API: ohos.notificationSubscribe.unsubscribe |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: unsubscribe
Deprecated version: N/A|Method or attribute name: unsubscribe
Deprecated version: 9
New API: ohos.notificationSubscribe.unsubscribe |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: enableNotification
Deprecated version: N/A|Method or attribute name: enableNotification
Deprecated version: 9
New API: ohos.notificationManager.setNotificationEnable |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: enableNotification
Deprecated version: N/A|Method or attribute name: enableNotification
Deprecated version: 9
New API: ohos.notificationManager.setNotificationEnable |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isNotificationEnabled
Deprecated version: N/A|Method or attribute name: isNotificationEnabled
Deprecated version: 9
New API: ohos.notificationManager.isNotificationEnabled |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isNotificationEnabled
Deprecated version: N/A|Method or attribute name: isNotificationEnabled
Deprecated version: 9
New API: ohos.notificationManager.isNotificationEnabled |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isNotificationEnabled
Deprecated version: N/A|Method or attribute name: isNotificationEnabled
Deprecated version: 9
New API: ohos.notificationManager.isNotificationEnabled |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isNotificationEnabled
Deprecated version: N/A|Method or attribute name: isNotificationEnabled
Deprecated version: 9
New API: ohos.notificationManager.isNotificationEnabled |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isNotificationEnabled
Deprecated version: N/A|Method or attribute name: isNotificationEnabled
Deprecated version: 9
New API: ohos.notificationManager.isNotificationEnabled |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isNotificationEnabled
Deprecated version: N/A|Method or attribute name: isNotificationEnabled
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: displayBadge
Deprecated version: N/A|Method or attribute name: displayBadge
Deprecated version: 9
New API: ohos.notificationManager.displayBadge |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: displayBadge
Deprecated version: N/A|Method or attribute name: displayBadge
Deprecated version: 9
New API: ohos.notificationManager.displayBadge |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isBadgeDisplayed
Deprecated version: N/A|Method or attribute name: isBadgeDisplayed
Deprecated version: 9
New API: ohos.notificationManager.isBadgeDisplayed |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isBadgeDisplayed
Deprecated version: N/A|Method or attribute name: isBadgeDisplayed
Deprecated version: 9
New API: ohos.notificationManager.isBadgeDisplayed |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: setSlotByBundle
Deprecated version: N/A|Method or attribute name: setSlotByBundle
Deprecated version: 9
New API: ohos.notificationManager.setSlotByBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: setSlotByBundle
Deprecated version: N/A|Method or attribute name: setSlotByBundle
Deprecated version: 9
New API: ohos.notificationManager.setSlotByBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSlotsByBundle
Deprecated version: N/A|Method or attribute name: getSlotsByBundle
Deprecated version: 9
New API: ohos.notificationManager.getSlotsByBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSlotsByBundle
Deprecated version: N/A|Method or attribute name: getSlotsByBundle
Deprecated version: 9
New API: ohos.notificationManager.getSlotsByBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSlotNumByBundle
Deprecated version: N/A|Method or attribute name: getSlotNumByBundle
Deprecated version: 9
New API: ohos.notificationManager.getSlotNumByBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSlotNumByBundle
Deprecated version: N/A|Method or attribute name: getSlotNumByBundle
Deprecated version: 9
New API: ohos.notificationManager.getSlotNumByBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: remove
Deprecated version: N/A|Method or attribute name: remove
Deprecated version: 9
New API: ohos.notificationSubscribe.remove |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: remove
Deprecated version: N/A|Method or attribute name: remove
Deprecated version: 9
New API: ohos.notificationSubscribe.remove |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: remove
Deprecated version: N/A|Method or attribute name: remove
Deprecated version: 9
New API: ohos.notificationSubscribe.remove |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: remove
Deprecated version: N/A|Method or attribute name: remove
Deprecated version: 9
New API: ohos.notificationSubscribe.remove |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeAll
Deprecated version: N/A|Method or attribute name: removeAll
Deprecated version: 9
New API: ohos.notificationSubscribe.removeAll |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeAll
Deprecated version: N/A|Method or attribute name: removeAll
Deprecated version: 9
New API: ohos.notificationSubscribe.removeAll |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeAll
Deprecated version: N/A|Method or attribute name: removeAll
Deprecated version: 9
New API: ohos.notificationSubscribe.removeAll |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeAll
Deprecated version: N/A|Method or attribute name: removeAll
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeAll
Deprecated version: N/A|Method or attribute name: removeAll
Deprecated version: 9
New API: notificationSubscribe.removeAll |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getAllActiveNotifications
Deprecated version: N/A|Method or attribute name: getAllActiveNotifications
Deprecated version: 9
New API: ohos.notificationManager.getAllActiveNotifications |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getAllActiveNotifications
Deprecated version: N/A|Method or attribute name: getAllActiveNotifications
Deprecated version: 9
New API: ohos.notificationManager.getAllActiveNotifications |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getActiveNotificationCount
Deprecated version: N/A|Method or attribute name: getActiveNotificationCount
Deprecated version: 9
New API: ohos.notificationManager.getActiveNotificationCount |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getActiveNotificationCount
Deprecated version: N/A|Method or attribute name: getActiveNotificationCount
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getActiveNotifications
Deprecated version: N/A|Method or attribute name: getActiveNotifications
Deprecated version: 9
New API: ohos.notificationManager.cancelGroup |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getActiveNotifications
Deprecated version: N/A|Method or attribute name: getActiveNotifications
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: cancelGroup
Deprecated version: N/A|Method or attribute name: cancelGroup
Deprecated version: 9
New API: ohos.notificationManager.cancelGroup |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: cancelGroup
Deprecated version: N/A|Method or attribute name: cancelGroup
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeGroupByBundle
Deprecated version: N/A|Method or attribute name: removeGroupByBundle
Deprecated version: 9
New API: ohos.notificationManager.removeGroupByBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeGroupByBundle
Deprecated version: N/A|Method or attribute name: removeGroupByBundle
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: setDoNotDisturbDate
Deprecated version: N/A|Method or attribute name: setDoNotDisturbDate
Deprecated version: 9
New API: ohos.notificationManager.setDoNotDisturbDate |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: setDoNotDisturbDate
Deprecated version: N/A|Method or attribute name: setDoNotDisturbDate
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: setDoNotDisturbDate
Deprecated version: N/A|Method or attribute name: setDoNotDisturbDate
Deprecated version: 9
New API: ohos.notificationManager.setDoNotDisturbDate |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: setDoNotDisturbDate
Deprecated version: N/A|Method or attribute name: setDoNotDisturbDate
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getDoNotDisturbDate
Deprecated version: N/A|Method or attribute name: getDoNotDisturbDate
Deprecated version: 9
New API: ohos.notificationManager.getDoNotDisturbDate |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getDoNotDisturbDate
Deprecated version: N/A|Method or attribute name: getDoNotDisturbDate
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getDoNotDisturbDate
Deprecated version: N/A|Method or attribute name: getDoNotDisturbDate
Deprecated version: 9
New API: ohos.notificationManager.getDoNotDisturbDate |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getDoNotDisturbDate
Deprecated version: N/A|Method or attribute name: getDoNotDisturbDate
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: supportDoNotDisturbMode
Deprecated version: N/A|Method or attribute name: supportDoNotDisturbMode
Deprecated version: 9
New API: ohos.notificationManager.supportDoNotDisturbMode |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: supportDoNotDisturbMode
Deprecated version: N/A|Method or attribute name: supportDoNotDisturbMode
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isSupportTemplate
Deprecated version: N/A|Method or attribute name: isSupportTemplate
Deprecated version: 9
New API: ohos.notificationManager.isSupportTemplate |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isSupportTemplate
Deprecated version: N/A|Method or attribute name: isSupportTemplate
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: requestEnableNotification
Deprecated version: N/A|Method or attribute name: requestEnableNotification
Deprecated version: 9
New API: ohos.notificationManager.requestEnableNotification |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: requestEnableNotification
Deprecated version: N/A|Method or attribute name: requestEnableNotification
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: enableDistributed
Deprecated version: N/A|Method or attribute name: enableDistributed
Deprecated version: 9
New API: ohos.notificationManager.setDistributedEnable |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: enableDistributed
Deprecated version: N/A|Method or attribute name: enableDistributed
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isDistributedEnabled
Deprecated version: N/A|Method or attribute name: isDistributedEnabled
Deprecated version: 9
New API: ohos.notificationManager.isDistributedEnabled |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isDistributedEnabled
Deprecated version: N/A|Method or attribute name: isDistributedEnabled
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: enableDistributedByBundle
Deprecated version: N/A|Method or attribute name: enableDistributedByBundle
Deprecated version: 9
New API: ohos.notificationManager.setDistributedEnableByBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: enableDistributedByBundle
Deprecated version: N/A|Method or attribute name: enableDistributedByBundle
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isDistributedEnabledByBundle
Deprecated version: N/A|Method or attribute name: isDistributedEnabledByBundle
Deprecated version: 9
New API: ohos.notificationManager.isDistributedEnabledByBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isDistributedEnabledByBundle
Deprecated version: N/A|Method or attribute name: isDistributedEnabledByBundle
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getDeviceRemindType
Deprecated version: N/A|Method or attribute name: getDeviceRemindType
Deprecated version: 9
New API: ohos.notificationManager.getDeviceRemindType |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getDeviceRemindType
Deprecated version: N/A|Method or attribute name: getDeviceRemindType
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: enableNotificationSlot
Deprecated version: N/A|Method or attribute name: enableNotificationSlot
Deprecated version: 9
New API: ohos.notificationManager.setNotificationEnableSlot |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: enableNotificationSlot
Deprecated version: N/A|Method or attribute name: enableNotificationSlot
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isNotificationSlotEnabled
Deprecated version: N/A|Method or attribute name: isNotificationSlotEnabled
Deprecated version: 9
New API: ohos.notificationManager.isNotificationSlotEnabled |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isNotificationSlotEnabled
Deprecated version: N/A|Method or attribute name: isNotificationSlotEnabled
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: setSyncNotificationEnabledWithoutApp
Deprecated version: N/A|Method or attribute name: setSyncNotificationEnabledWithoutApp
Deprecated version: 9
New API: ohos.notificationManager.setSyncNotificationEnabledWithoutApp |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: setSyncNotificationEnabledWithoutApp
Deprecated version: N/A|Method or attribute name: setSyncNotificationEnabledWithoutApp
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSyncNotificationEnabledWithoutApp
Deprecated version: N/A|Method or attribute name: getSyncNotificationEnabledWithoutApp
Deprecated version: 9
New API: ohos.notificationManager.getSyncNotificationEnabledWithoutApp |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSyncNotificationEnabledWithoutApp
Deprecated version: N/A|Method or attribute name: getSyncNotificationEnabledWithoutApp
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Class name: BundleOption
Deprecated version: N/A|Class name: BundleOption
Deprecated version: 9
New API: ohos.notificationManager.BundleOption |@ohos.notification.d.ts| +|Deprecated version changed|Class name: NotificationKey
Deprecated version: N/A|Class name: NotificationKey
Deprecated version: 9
New API: ohos.notificationManager.NotificationKey |@ohos.notification.d.ts| +|Deprecated version changed|Class name: DoNotDisturbType
Deprecated version: N/A|Class name: DoNotDisturbType
Deprecated version: 9
New API: ohos.notificationManager.DoNotDisturbType |@ohos.notification.d.ts| +|Deprecated version changed|Class name: DoNotDisturbDate
Deprecated version: N/A|Class name: DoNotDisturbDate
Deprecated version: 9
New API: ohos.notificationManager.DoNotDisturbDate |@ohos.notification.d.ts| +|Deprecated version changed|Class name: DeviceRemindType
Deprecated version: N/A|Class name: DeviceRemindType
Deprecated version: 9
New API: ohos.notificationManager.DeviceRemindType |@ohos.notification.d.ts| +|Deprecated version changed|Class name: SourceType
Deprecated version: N/A|Class name: SourceType
Deprecated version: 9
New API: ohos.notificationManager.SourceType |@ohos.notification.d.ts| +|Deprecated version changed|Class name: RemoveReason
Deprecated version: N/A|Class name: RemoveReason
Deprecated version: 9
New API: ohos.notificationManager.RemoveReason |@ohos.notification.d.ts| +|Deprecated version changed|Class name: reminderAgent
Deprecated version: N/A|Class name: reminderAgent
Deprecated version: 9
New API: reminderAgentManager |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: publishReminder
Deprecated version: N/A|Method or attribute name: publishReminder
Deprecated version: 9
New API: reminderAgentManager.publishReminder |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: publishReminder
Deprecated version: N/A|Method or attribute name: publishReminder
Deprecated version: 9|@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: cancelReminder
Deprecated version: N/A|Method or attribute name: cancelReminder
Deprecated version: 9
New API: reminderAgentManager.cancelReminder |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: cancelReminder
Deprecated version: N/A|Method or attribute name: cancelReminder
Deprecated version: 9|@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: getValidReminders
Deprecated version: N/A|Method or attribute name: getValidReminders
Deprecated version: 9
New API: reminderAgentManager.getValidReminders |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: getValidReminders
Deprecated version: N/A|Method or attribute name: getValidReminders
Deprecated version: 9|@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: cancelAllReminders
Deprecated version: N/A|Method or attribute name: cancelAllReminders
Deprecated version: 9
New API: reminderAgentManager.cancelAllReminders |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: cancelAllReminders
Deprecated version: N/A|Method or attribute name: cancelAllReminders
Deprecated version: 9|@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: addNotificationSlot
Deprecated version: N/A|Method or attribute name: addNotificationSlot
Deprecated version: 9
New API: reminderAgentManager.addNotificationSlot |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: addNotificationSlot
Deprecated version: N/A|Method or attribute name: addNotificationSlot
Deprecated version: 9|@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: removeNotificationSlot
Deprecated version: N/A|Method or attribute name: removeNotificationSlot
Deprecated version: 9
New API: reminderAgentManager.removeNotificationSlot |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: removeNotificationSlot
Deprecated version: N/A|Method or attribute name: removeNotificationSlot
Deprecated version: 9|@ohos.reminderAgent.d.ts| +|Deprecated version changed|Class name: ActionButtonType
Deprecated version: N/A|Class name: ActionButtonType
Deprecated version: 9
New API: reminderAgentManager.ActionButtonType |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: ACTION_BUTTON_TYPE_CLOSE
Deprecated version: N/A|Method or attribute name: ACTION_BUTTON_TYPE_CLOSE
Deprecated version: 9
New API: reminderAgentManager.ActionButtonType.ACTION_BUTTON_TYPE_CLOSE |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: ACTION_BUTTON_TYPE_SNOOZE
Deprecated version: N/A|Method or attribute name: ACTION_BUTTON_TYPE_SNOOZE
Deprecated version: 9
New API: reminderAgentManager.ActionButtonType.ACTION_BUTTON_TYPE_SNOOZE |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Class name: ReminderType
Deprecated version: N/A|Class name: ReminderType
Deprecated version: 9
New API: reminderAgentManager.ReminderType |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: REMINDER_TYPE_TIMER
Deprecated version: N/A|Method or attribute name: REMINDER_TYPE_TIMER
Deprecated version: 9
New API: reminderAgentManager.ReminderType.REMINDER_TYPE_TIMER |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: REMINDER_TYPE_CALENDAR
Deprecated version: N/A|Method or attribute name: REMINDER_TYPE_CALENDAR
Deprecated version: 9
New API: reminderAgentManager.ReminderType.REMINDER_TYPE_CALENDAR |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: REMINDER_TYPE_ALARM
Deprecated version: N/A|Method or attribute name: REMINDER_TYPE_ALARM
Deprecated version: 9
New API: reminderAgentManager.ReminderType.REMINDER_TYPE_ALARM |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Class name: ActionButton
Deprecated version: N/A|Class name: ActionButton
Deprecated version: 9
New API: reminderAgentManager.ActionButton |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: title
Deprecated version: N/A|Method or attribute name: title
Deprecated version: 9
New API: reminderAgentManager.ActionButton.title |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: type
Deprecated version: N/A|Method or attribute name: type
Deprecated version: 9
New API: reminderAgentManager.ActionButton.type |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Class name: WantAgent
Deprecated version: N/A|Class name: WantAgent
Deprecated version: 9
New API: reminderAgentManager.WantAgent |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: pkgName
Deprecated version: N/A|Method or attribute name: pkgName
Deprecated version: 9
New API: reminderAgentManager.WantAgent.pkgName |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: abilityName
Deprecated version: N/A|Method or attribute name: abilityName
Deprecated version: 9
New API: reminderAgentManager.WantAgent.abilityName |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Class name: MaxScreenWantAgent
Deprecated version: N/A|Class name: MaxScreenWantAgent
Deprecated version: 9
New API: reminderAgentManager.MaxScreenWantAgent |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: pkgName
Deprecated version: N/A|Method or attribute name: pkgName
Deprecated version: 9
New API: reminderAgentManager.MaxScreenWantAgent.pkgName |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: abilityName
Deprecated version: N/A|Method or attribute name: abilityName
Deprecated version: 9
New API: reminderAgentManager.MaxScreenWantAgent.abilityName |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Class name: ReminderRequest
Deprecated version: N/A|Class name: ReminderRequest
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: reminderType
Deprecated version: N/A|Method or attribute name: reminderType
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.reminderType |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: actionButton
Deprecated version: N/A|Method or attribute name: actionButton
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.actionButton |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: wantAgent
Deprecated version: N/A|Method or attribute name: wantAgent
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.wantAgent |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: maxScreenWantAgent
Deprecated version: N/A|Method or attribute name: maxScreenWantAgent
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.maxScreenWantAgent |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: ringDuration
Deprecated version: N/A|Method or attribute name: ringDuration
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.ringDuration |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: snoozeTimes
Deprecated version: N/A|Method or attribute name: snoozeTimes
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.snoozeTimes |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: timeInterval
Deprecated version: N/A|Method or attribute name: timeInterval
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.timeInterval |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: title
Deprecated version: N/A|Method or attribute name: title
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.title |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: content
Deprecated version: N/A|Method or attribute name: content
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.content |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: expiredContent
Deprecated version: N/A|Method or attribute name: expiredContent
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.expiredContent |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: snoozeContent
Deprecated version: N/A|Method or attribute name: snoozeContent
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.snoozeContent |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: notificationId
Deprecated version: N/A|Method or attribute name: notificationId
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.notificationId |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: slotType
Deprecated version: N/A|Method or attribute name: slotType
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.slotType |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Class name: ReminderRequestCalendar
Deprecated version: N/A|Class name: ReminderRequestCalendar
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestCalendar |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: dateTime
Deprecated version: N/A|Method or attribute name: dateTime
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestCalendar.dateTime |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: repeatMonths
Deprecated version: N/A|Method or attribute name: repeatMonths
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestCalendar.repeatMonths |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: repeatDays
Deprecated version: N/A|Method or attribute name: repeatDays
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestCalendar.repeatDays |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Class name: ReminderRequestAlarm
Deprecated version: N/A|Class name: ReminderRequestAlarm
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestAlarm |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: hour
Deprecated version: N/A|Method or attribute name: hour
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestAlarm.hour |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: minute
Deprecated version: N/A|Method or attribute name: minute
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestAlarm.minute |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: daysOfWeek
Deprecated version: N/A|Method or attribute name: daysOfWeek
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestAlarm.daysOfWeek |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Class name: ReminderRequestTimer
Deprecated version: N/A|Class name: ReminderRequestTimer
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestTimer |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: year
Deprecated version: N/A|Method or attribute name: year
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestTimer.year |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: month
Deprecated version: N/A|Method or attribute name: month
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestTimer.month |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: day
Deprecated version: N/A|Method or attribute name: day
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestTimer.day |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: hour
Deprecated version: N/A|Method or attribute name: hour
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestTimer.hour |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: minute
Deprecated version: N/A|Method or attribute name: minute
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestTimer.minute |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: second
Deprecated version: N/A|Method or attribute name: second
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestTimer.second |@ohos.reminderAgent.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-resource-scheduler.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-resource-scheduler.md new file mode 100644 index 0000000000000000000000000000000000000000..23da516361bf8067ac2a893688e3b45187f8f9e4 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-resource-scheduler.md @@ -0,0 +1,277 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: DelaySuspendInfo|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: DelaySuspendInfo
Method or attribute name: requestId|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: DelaySuspendInfo
Method or attribute name: actualDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: cancelSuspendDelay|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: getRemainingDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: getRemainingDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: requestSuspendDelay|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: startBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: startBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: stopBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: stopBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: applyEfficiencyResources|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: resetAllEfficiencyResources|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: DATA_TRANSFER|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: AUDIO_PLAYBACK|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: AUDIO_RECORDING|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: LOCATION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: BLUETOOTH_INTERACTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: MULTI_DEVICE_CONNECTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: WIFI_INTERACTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: VOIP|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: TASK_KEEPING|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: CPU|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: COMMON_EVENT|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: TIMER|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: WORK_SCHEDULER|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: BLUETOOTH|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: GPS|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: AUDIO|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest
Method or attribute name: resourceTypes|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest
Method or attribute name: isApply|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest
Method or attribute name: timeOut|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest
Method or attribute name: isPersist|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest
Method or attribute name: isProcess|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest
Method or attribute name: reason|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: id|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: abilityInFgTotalTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: abilityPrevAccessTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: abilityPrevSeenTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: abilitySeenTotalTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: fgAbilityAccessTotalTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: fgAbilityPrevAccessTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: infosBeginTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: infosEndTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapFormInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapFormInfo
Method or attribute name: formName|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapFormInfo
Method or attribute name: formDimension|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapFormInfo
Method or attribute name: formId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapFormInfo
Method or attribute name: formLastUsedTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapFormInfo
Method or attribute name: count|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: deviceId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: moduleName|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: abilityName|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: appLabelId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: labelId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: descriptionId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: abilityLableId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: abilityDescriptionId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: abilityIconId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: launchedCount|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: lastModuleUsedTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: formRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: DeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: DeviceEventStats
Method or attribute name: name|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: DeviceEventStats
Method or attribute name: eventId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: DeviceEventStats
Method or attribute name: count|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleEvents
Method or attribute name: appGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleEvents
Method or attribute name: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleEvents
Method or attribute name: indexOfLink|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleEvents
Method or attribute name: nameOfClass|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleEvents
Method or attribute name: eventOccurredTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleEvents
Method or attribute name: eventId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: AppGroupCallbackInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: AppGroupCallbackInfo
Method or attribute name: appOldGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: AppGroupCallbackInfo
Method or attribute name: appNewGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: AppGroupCallbackInfo
Method or attribute name: userId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: AppGroupCallbackInfo
Method or attribute name: changeReason|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: AppGroupCallbackInfo
Method or attribute name: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: isIdleState|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: isIdleState|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsMap|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsMap
Method or attribute name: BundleStatsMap|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryBundleStatsInfos|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryBundleStatsInfos|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: IntervalType|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: IntervalType
Method or attribute name: BY_OPTIMIZED|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: IntervalType
Method or attribute name: BY_DAILY|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: IntervalType
Method or attribute name: BY_WEEKLY|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: IntervalType
Method or attribute name: BY_MONTHLY|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: IntervalType
Method or attribute name: BY_ANNUALLY|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryBundleStatsInfoByInterval|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryBundleStatsInfoByInterval|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryCurrentBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryCurrentBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: GroupType|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: GroupType
Method or attribute name: ALIVE_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: GroupType
Method or attribute name: DAILY_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: GroupType
Method or attribute name: FIXED_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: GroupType
Method or attribute name: RARE_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: GroupType
Method or attribute name: LIMITED_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: GroupType
Method or attribute name: NEVER_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: setAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: setAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: registerAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: registerAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: unregisterAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: unregisterAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryDeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryDeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryNotificationEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryNotificationEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: workId|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: bundleName|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: abilityName|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: isPersisted|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: networkType|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: isCharging|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: chargerType|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: batteryLevel|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: batteryStatus|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: storageRequest|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: repeatCycleTime|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: isRepeat|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: repeatCount|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: isDeepIdle|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: idleWaitTime|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: parameters|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler
Method or attribute name: startWork|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler
Method or attribute name: stopWork|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler
Method or attribute name: getWorkStatus|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler
Method or attribute name: getWorkStatus|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler
Method or attribute name: obtainAllWorks|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler
Method or attribute name: obtainAllWorks|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler
Method or attribute name: stopAndClearWorks|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler
Method or attribute name: isLastWorkTimeOut|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler
Method or attribute name: isLastWorkTimeOut|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: NetworkType|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: NetworkType
Method or attribute name: NETWORK_TYPE_ANY|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: NetworkType
Method or attribute name: NETWORK_TYPE_MOBILE|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: NetworkType
Method or attribute name: NETWORK_TYPE_WIFI|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: NetworkType
Method or attribute name: NETWORK_TYPE_BLUETOOTH|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: NetworkType
Method or attribute name: NETWORK_TYPE_WIFI_P2P|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: NetworkType
Method or attribute name: NETWORK_TYPE_ETHERNET|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: ChargingType|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: ChargingType
Method or attribute name: CHARGING_PLUGGED_ANY|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: ChargingType
Method or attribute name: CHARGING_PLUGGED_AC|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: ChargingType
Method or attribute name: CHARGING_PLUGGED_USB|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: ChargingType
Method or attribute name: CHARGING_PLUGGED_WIRELESS|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: BatteryStatus|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: BatteryStatus
Method or attribute name: BATTERY_STATUS_LOW|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: BatteryStatus
Method or attribute name: BATTERY_STATUS_OKAY|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: BatteryStatus
Method or attribute name: BATTERY_STATUS_LOW_OR_OKAY|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: StorageRequest|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: StorageRequest
Method or attribute name: STORAGE_LEVEL_LOW|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: StorageRequest
Method or attribute name: STORAGE_LEVEL_OKAY|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: StorageRequest
Method or attribute name: STORAGE_LEVEL_LOW_OR_OKAY|@ohos.resourceschedule.workScheduler.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveFormInfo||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveFormInfo
Method or attribute name: formName||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveFormInfo
Method or attribute name: formDimension||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveFormInfo
Method or attribute name: formId||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveFormInfo
Method or attribute name: formLastUsedTime||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveFormInfo
Method or attribute name: count||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveModuleInfo||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: deviceId||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: bundleName||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: moduleName||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: abilityName||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: appLabelId||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: labelId||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: descriptionId||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: abilityLableId||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: abilityDescriptionId||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: abilityIconId||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: launchedCount||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: lastModuleUsedTime||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: formRecords||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveEventState||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveEventState
Method or attribute name: name||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveEventState
Method or attribute name: eventId||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveEventState
Method or attribute name: count||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveGroupCallbackInfo||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveGroupCallbackInfo
Method or attribute name: appUsageOldGroup||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveGroupCallbackInfo
Method or attribute name: appUsageNewGroup||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveGroupCallbackInfo
Method or attribute name: userId||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveGroupCallbackInfo
Method or attribute name: changeReason||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: BundleActiveGroupCallbackInfo
Method or attribute name: bundleName||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: getRecentlyUsedModules||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: getRecentlyUsedModules||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: getRecentlyUsedModules||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: GroupType||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: GroupType
Method or attribute name: ACTIVE_GROUP_ALIVE||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: GroupType
Method or attribute name: ACTIVE_GROUP_DAILY||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: GroupType
Method or attribute name: ACTIVE_GROUP_FIXED||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: GroupType
Method or attribute name: ACTIVE_GROUP_RARE||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: GroupType
Method or attribute name: ACTIVE_GROUP_LIMIT||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: GroupType
Method or attribute name: ACTIVE_GROUP_NEVER||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: setBundleGroup||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: setBundleGroup||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: registerGroupCallBack||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: registerGroupCallBack||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: unRegisterGroupCallBack||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: unRegisterGroupCallBack||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: queryBundleActiveEventStates||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: queryBundleActiveEventStates||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: queryAppNotificationNumber||@ohos.bundleState.d.ts| +|Deleted|Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: queryAppNotificationNumber||@ohos.bundleState.d.ts| +|Deprecated version changed|Class name: backgroundTaskManager
Deprecated version: N/A|Class name: backgroundTaskManager
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Class name: DelaySuspendInfo
Deprecated version: N/A|Class name: DelaySuspendInfo
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.DelaySuspendInfo |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: cancelSuspendDelay
Deprecated version: N/A|Method or attribute name: cancelSuspendDelay
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.cancelSuspendDelay |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: getRemainingDelayTime
Deprecated version: N/A|Method or attribute name: getRemainingDelayTime
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.getRemainingDelayTime |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: getRemainingDelayTime
Deprecated version: N/A|Method or attribute name: getRemainingDelayTime
Deprecated version: 9|@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: requestSuspendDelay
Deprecated version: N/A|Method or attribute name: requestSuspendDelay
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.requestSuspendDelay |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: startBackgroundRunning
Deprecated version: N/A|Method or attribute name: startBackgroundRunning
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.startBackgroundRunning |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: startBackgroundRunning
Deprecated version: N/A|Method or attribute name: startBackgroundRunning
Deprecated version: 9|@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: stopBackgroundRunning
Deprecated version: N/A|Method or attribute name: stopBackgroundRunning
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.stopBackgroundRunning |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: stopBackgroundRunning
Deprecated version: N/A|Method or attribute name: stopBackgroundRunning
Deprecated version: 9|@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: applyEfficiencyResources
Deprecated version: N/A|Method or attribute name: applyEfficiencyResources
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.applyEfficiencyResources |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: resetAllEfficiencyResources
Deprecated version: N/A|Method or attribute name: resetAllEfficiencyResources
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.resetAllEfficiencyResources |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Class name: BackgroundMode
Deprecated version: N/A|Class name: BackgroundMode
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.BackgroundMode |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Class name: ResourceType
Deprecated version: N/A|Class name: ResourceType
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.ResourceType |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Class name: EfficiencyResourcesRequest
Deprecated version: N/A|Class name: EfficiencyResourcesRequest
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.EfficiencyResourcesRequest |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Class name: bundleState
Deprecated version: N/A|Class name: bundleState
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics |@ohos.bundleState.d.ts| +|Deprecated version changed|Class name: BundleStateInfo
Deprecated version: N/A|Class name: BundleStateInfo
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.BundleStatsInfo |@ohos.bundleState.d.ts| +|Deprecated version changed|Class name: BundleActiveState
Deprecated version: N/A|Class name: BundleActiveState
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.BundleEvents |@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: isIdleState
Deprecated version: N/A|Method or attribute name: isIdleState
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.isIdleState |@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: isIdleState
Deprecated version: N/A|Method or attribute name: isIdleState
Deprecated version: 9|@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryAppUsagePriorityGroup
Deprecated version: N/A|Method or attribute name: queryAppUsagePriorityGroup
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.queryAppGroup |@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryAppUsagePriorityGroup
Deprecated version: N/A|Method or attribute name: queryAppUsagePriorityGroup
Deprecated version: 9|@ohos.bundleState.d.ts| +|Deprecated version changed|Class name: BundleActiveInfoResponse
Deprecated version: N/A|Class name: BundleActiveInfoResponse
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.BundleStatsMap |@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryBundleStateInfos
Deprecated version: N/A|Method or attribute name: queryBundleStateInfos
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.queryBundleStatsInfos |@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryBundleStateInfos
Deprecated version: N/A|Method or attribute name: queryBundleStateInfos
Deprecated version: 9|@ohos.bundleState.d.ts| +|Deprecated version changed|Class name: IntervalType
Deprecated version: N/A|Class name: IntervalType
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.IntervalType |@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryBundleStateInfoByInterval
Deprecated version: N/A|Method or attribute name: queryBundleStateInfoByInterval
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.queryBundleStatsInfoByInterval |@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryBundleStateInfoByInterval
Deprecated version: N/A|Method or attribute name: queryBundleStateInfoByInterval
Deprecated version: 9|@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryBundleActiveStates
Deprecated version: N/A|Method or attribute name: queryBundleActiveStates
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.queryBundleEvents |@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryBundleActiveStates
Deprecated version: N/A|Method or attribute name: queryBundleActiveStates
Deprecated version: 9|@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryCurrentBundleActiveStates
Deprecated version: N/A|Method or attribute name: queryCurrentBundleActiveStates
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.queryCurrentBundleEvents |@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryCurrentBundleActiveStates
Deprecated version: N/A|Method or attribute name: queryCurrentBundleActiveStates
Deprecated version: 9|@ohos.bundleState.d.ts| +|Deprecated version changed|Class name: workScheduler
Deprecated version: N/A|Class name: workScheduler
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler |@ohos.workScheduler.d.ts| +|Deprecated version changed|Class name: WorkInfo
Deprecated version: N/A|Class name: WorkInfo
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.WorkInfo |@ohos.workScheduler.d.ts| +|Deprecated version changed|Method or attribute name: startWork
Deprecated version: N/A|Method or attribute name: startWork
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.startWork |@ohos.workScheduler.d.ts| +|Deprecated version changed|Method or attribute name: stopWork
Deprecated version: N/A|Method or attribute name: stopWork
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.stopWork |@ohos.workScheduler.d.ts| +|Deprecated version changed|Method or attribute name: getWorkStatus
Deprecated version: N/A|Method or attribute name: getWorkStatus
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.getWorkStatus |@ohos.workScheduler.d.ts| +|Deprecated version changed|Method or attribute name: getWorkStatus
Deprecated version: N/A|Method or attribute name: getWorkStatus
Deprecated version: 9|@ohos.workScheduler.d.ts| +|Deprecated version changed|Method or attribute name: obtainAllWorks
Deprecated version: N/A|Method or attribute name: obtainAllWorks
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.obtainAllWorks |@ohos.workScheduler.d.ts| +|Deprecated version changed|Method or attribute name: obtainAllWorks
Deprecated version: N/A|Method or attribute name: obtainAllWorks
Deprecated version: 9|@ohos.workScheduler.d.ts| +|Deprecated version changed|Method or attribute name: stopAndClearWorks
Deprecated version: N/A|Method or attribute name: stopAndClearWorks
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.stopAndClearWorks |@ohos.workScheduler.d.ts| +|Deprecated version changed|Method or attribute name: isLastWorkTimeOut
Deprecated version: N/A|Method or attribute name: isLastWorkTimeOut
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.isLastWorkTimeOut |@ohos.workScheduler.d.ts| +|Deprecated version changed|Method or attribute name: isLastWorkTimeOut
Deprecated version: N/A|Method or attribute name: isLastWorkTimeOut
Deprecated version: 9|@ohos.workScheduler.d.ts| +|Deprecated version changed|Class name: NetworkType
Deprecated version: N/A|Class name: NetworkType
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.NetworkType |@ohos.workScheduler.d.ts| +|Deprecated version changed|Class name: ChargingType
Deprecated version: N/A|Class name: ChargingType
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.ChargingType |@ohos.workScheduler.d.ts| +|Deprecated version changed|Class name: BatteryStatus
Deprecated version: N/A|Class name: BatteryStatus
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.BatteryStatus |@ohos.workScheduler.d.ts| +|Deprecated version changed|Class name: StorageRequest
Deprecated version: N/A|Class name: StorageRequest
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.StorageRequest |@ohos.workScheduler.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-security.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-security.md new file mode 100644 index 0000000000000000000000000000000000000000..0e799d2bd04978f2708092161728d60b74f12f38 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-security.md @@ -0,0 +1,112 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.abilityAccessCtrl
Class name: AtManager
Method or attribute name: checkAccessToken|@ohos.abilityAccessCtrl.d.ts| +|Added||Method or attribute name: grantUserGrantedPermission
Function name: grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number): Promise;|@ohos.abilityAccessCtrl.d.ts| +|Added||Method or attribute name: grantUserGrantedPermission
Function name: grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number, callback: AsyncCallback): void;|@ohos.abilityAccessCtrl.d.ts| +|Added||Method or attribute name: revokeUserGrantedPermission
Function name: revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number): Promise;|@ohos.abilityAccessCtrl.d.ts| +|Added||Method or attribute name: revokeUserGrantedPermission
Function name: revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number, callback: AsyncCallback): void;|@ohos.abilityAccessCtrl.d.ts| +|Added||Method or attribute name: permissionName
Function name: permissionName: Permissions;|@ohos.abilityAccessCtrl.d.ts| +|Added||Method or attribute name: addPermissionUsedRecord
Function name: function addPermissionUsedRecord(tokenID: number, permissionName: Permissions, successCount: number, failCount: number): Promise;|@ohos.privacyManager.d.ts| +|Added||Method or attribute name: addPermissionUsedRecord
Function name: function addPermissionUsedRecord(tokenID: number, permissionName: Permissions, successCount: number, failCount: number, callback: AsyncCallback): void;|@ohos.privacyManager.d.ts| +|Added||Method or attribute name: startUsingPermission
Function name: function startUsingPermission(tokenID: number, permissionName: Permissions): Promise;|@ohos.privacyManager.d.ts| +|Added||Method or attribute name: startUsingPermission
Function name: function startUsingPermission(tokenID: number, permissionName: Permissions, callback: AsyncCallback): void;|@ohos.privacyManager.d.ts| +|Added||Method or attribute name: stopUsingPermission
Function name: function stopUsingPermission(tokenID: number, permissionName: Permissions): Promise;|@ohos.privacyManager.d.ts| +|Added||Method or attribute name: stopUsingPermission
Function name: function stopUsingPermission(tokenID: number, permissionName: Permissions, callback: AsyncCallback): void;|@ohos.privacyManager.d.ts| +|Added||Method or attribute name: permissionNames
Function name: permissionNames: Array;|@ohos.privacyManager.d.ts| +|Added||Module name: ohos.security.cryptoFramework
Class name: Result
Method or attribute name: ERR_RUNTIME_ERROR|@ohos.security.cryptoFramework.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: generateKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: generateKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: deleteKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: deleteKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: importKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: importKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: importWrappedKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: importWrappedKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: exportKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: exportKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: getKeyItemProperties|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: getKeyItemProperties|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: isKeyItemExist|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: isKeyItemExist|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: initSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: initSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: updateSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: updateSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: updateSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: finishSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: finishSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: finishSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: abortSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: abortSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: attestKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: attestKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksSessionHandle|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksSessionHandle
Method or attribute name: handle|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksSessionHandle
Method or attribute name: challenge|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksReturnResult|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksReturnResult
Method or attribute name: outData|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksReturnResult
Method or attribute name: properties|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksReturnResult
Method or attribute name: certChains|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_PERMISSION_FAIL|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_ILLEGAL_ARGUMENT|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_NOT_SUPPORTED_API|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_FILE_OPERATION_FAIL|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_COMMUNICATION_FAIL|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_CRYPTO_FAIL|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_KEY_AUTH_PERMANENTLY_INVALIDATED|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_KEY_AUTH_VERIFY_FAILED|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_KEY_AUTH_TIME_OUT|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_SESSION_LIMIT|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_ITEM_NOT_EXIST|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_EXTERNAL_ERROR|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_CREDENTIAL_NOT_EXIST|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_INSUFFICIENT_MEMORY|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_CALL_SERVICE_FAILED|@ohos.security.huks.d.ts| +|Deleted||Module name: ohos.security.cryptoFramework
Class name: Result
Method or attribute name: ERR_EXTERNAL_ERROR||@ohos.security.cryptoFramework.d.ts| +|Deleted||Module name: ohos.security.huks
Class name: huks
Method or attribute name: importWrappedKey||@ohos.security.huks.d.ts| +|Deleted||Module name: ohos.security.huks
Class name: huks
Method or attribute name: importWrappedKey||@ohos.security.huks.d.ts| +|Deleted||Module name: ohos.security.huks
Class name: huks
Method or attribute name: attestKey||@ohos.security.huks.d.ts| +|Deleted||Module name: ohos.security.huks
Class name: huks
Method or attribute name: attestKey||@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: verifyAccessToken
Deprecated version: N/A|Method or attribute name: verifyAccessToken
Deprecated version: 9
New API: ohos.abilityAccessCtrl.AtManager|@ohos.abilityAccessCtrl.d.ts| +|Deprecated version changed|Method or attribute name: generateKey
Deprecated version: N/A|Method or attribute name: generateKey
Deprecated version: 9
New API: ohos.security.huks.generateKeyItem |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: generateKey
Deprecated version: N/A|Method or attribute name: generateKey
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: deleteKey
Deprecated version: N/A|Method or attribute name: deleteKey
Deprecated version: 9
New API: ohos.security.huks.deleteKeyItem |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: deleteKey
Deprecated version: N/A|Method or attribute name: deleteKey
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: importKey
Deprecated version: N/A|Method or attribute name: importKey
Deprecated version: 9
New API: ohos.security.huks.importKeyItem |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: importKey
Deprecated version: N/A|Method or attribute name: importKey
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: exportKey
Deprecated version: N/A|Method or attribute name: exportKey
Deprecated version: 9
New API: ohos.security.huks.exportKeyItem |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: exportKey
Deprecated version: N/A|Method or attribute name: exportKey
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: getKeyProperties
Deprecated version: N/A|Method or attribute name: getKeyProperties
Deprecated version: 9
New API: ohos.security.huks.getKeyItemProperties |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: getKeyProperties
Deprecated version: N/A|Method or attribute name: getKeyProperties
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: isKeyExist
Deprecated version: N/A|Method or attribute name: isKeyExist
Deprecated version: 9
New API: ohos.security.huks.isKeyItemExist |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: isKeyExist
Deprecated version: N/A|Method or attribute name: isKeyExist
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: init
Deprecated version: N/A|Method or attribute name: init
Deprecated version: 9
New API: ohos.security.huks.initSession |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: init
Deprecated version: N/A|Method or attribute name: init
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: update
Deprecated version: N/A|Method or attribute name: update
Deprecated version: 9
New API: ohos.security.huks.updateSession |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: update
Deprecated version: N/A|Method or attribute name: update
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: update
Deprecated version: N/A|Method or attribute name: update
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: finish
Deprecated version: N/A|Method or attribute name: finish
Deprecated version: 9
New API: ohos.security.huks.finishSession |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: finish
Deprecated version: N/A|Method or attribute name: finish
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: abort
Deprecated version: N/A|Method or attribute name: abort
Deprecated version: 9
New API: ohos.security.huks.abortSession |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: abort
Deprecated version: N/A|Method or attribute name: abort
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Class name: HuksHandle
Deprecated version: N/A|Class name: HuksHandle
Deprecated version: 9
New API: ohos.security.huks.HuksSessionHandle |@ohos.security.huks.d.ts| +|Deprecated version changed|Class name: HuksResult
Deprecated version: N/A|Class name: HuksResult
Deprecated version: 9
New API: ohos.security.huks.HuksReturnResult |@ohos.security.huks.d.ts| +|Deprecated version changed|Class name: HuksErrorCode
Deprecated version: N/A|Class name: HuksErrorCode
Deprecated version: 9
New API: ohos.security.huks.HuksExceptionErrCode |@ohos.security.huks.d.ts| +|Deprecated version changed|Class name: Cipher
Deprecated version: N/A|Class name: Cipher
Deprecated version: 9
New API: ohos.security.cryptoFramework.Cipher |@system.cipher.d.ts| +|Deprecated version changed|Method or attribute name: rsa
Deprecated version: N/A|Method or attribute name: rsa
Deprecated version: 9
New API: ohos.security.cryptoFramework.Cipher |@system.cipher.d.ts| +|Deprecated version changed|Method or attribute name: aes
Deprecated version: N/A|Method or attribute name: aes
Deprecated version: 9
New API: ohos.security.cryptoFramework.Cipher |@system.cipher.d.ts| +|Initial version changed|Method or attribute name: getPermissionFlags
Initial version: 9|Method or attribute name: getPermissionFlags
Initial version: 8|@ohos.abilityAccessCtrl.d.ts| +|Initial version changed|Method or attribute name: update
Initial version: 9|Method or attribute name: update
Initial version: 8|@ohos.security.huks.d.ts| +|Initial version changed|Method or attribute name: update
Initial version: 9|Method or attribute name: update
Initial version: 8|@ohos.security.huks.d.ts| +|Initial version changed|Method or attribute name: update
Initial version: 9|Method or attribute name: update
Initial version: 8|@ohos.security.huks.d.ts| +|Error code added||Method or attribute name: verifyAccessTokenSync
Error code: 401, 12100001|@ohos.abilityAccessCtrl.d.ts| +|Error code added||Method or attribute name: getPermissionFlags
Error code: 401, 201, 12100001, 12100002, 12100003, 12100006, 12100007|@ohos.abilityAccessCtrl.d.ts| +|Error code added||Method or attribute name: on_permissionStateChange
Error code: 401, 201, 12100001, 12100004, 12100005, 12100007, 12100008|@ohos.abilityAccessCtrl.d.ts| +|Error code added||Method or attribute name: off_permissionStateChange
Error code: 401, 201, 12100001, 12100004, 12100007, 12100008|@ohos.abilityAccessCtrl.d.ts| +|Error code added||Method or attribute name: getPermissionUsedRecords
Error code: 401, 201, 12100001, 12100002, 12100003, 12100007,12100008|@ohos.privacyManager.d.ts| +|Error code added||Method or attribute name: on_activeStateChange
Error code: 401, 201, 12100001, 12100004, 12100005, 12100007, 12100008|@ohos.privacyManager.d.ts| +|Error code added||Method or attribute name: off_activeStateChange
Error code: 401, 201, 12100001, 12100004, 12100007, 12100008|@ohos.privacyManager.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-sensor.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-sensor.md new file mode 100644 index 0000000000000000000000000000000000000000..358a09529fdf5b777d2d48ae6d5761bdc5c35d0e --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-sensor.md @@ -0,0 +1,209 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.sensor
Class name: SensorId|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: ACCELEROMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: GYROSCOPE|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: AMBIENT_LIGHT|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: MAGNETIC_FIELD|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: BAROMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: HALL|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: PROXIMITY|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: HUMIDITY|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: ORIENTATION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: GRAVITY|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: LINEAR_ACCELEROMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: ROTATION_VECTOR|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: AMBIENT_TEMPERATURE|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: MAGNETIC_FIELD_UNCALIBRATED|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: GYROSCOPE_UNCALIBRATED|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: SIGNIFICANT_MOTION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: PEDOMETER_DETECTION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: PEDOMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: HEART_RATE|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: WEAR_DETECTION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: ACCELEROMETER_UNCALIBRATED|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_ACCELEROMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_ACCELEROMETER_UNCALIBRATED|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_AMBIENT_LIGHT|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_AMBIENT_TEMPERATURE|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_BAROMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_GRAVITY|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_GYROSCOPE|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_GYROSCOPE_UNCALIBRATED|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_HALL|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_HEART_RATE|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_HUMIDITY|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_LINEAR_ACCELEROMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_MAGNETIC_FIELD|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_MAGNETIC_FIELD_UNCALIBRATED|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_ORIENTATION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_PEDOMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_PEDOMETER_DETECTION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_PROXIMITY|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_ROTATION_VECTOR|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_SIGNIFICANT_MOTION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_WEAR_DETECTION|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.ACCELEROMETER, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.AMBIENT_LIGHT, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.BAROMETER, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.GRAVITY, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.GYROSCOPE, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.HALL, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.HEART_RATE, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.HUMIDITY, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.MAGNETIC_FIELD, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.ORIENTATION, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.PEDOMETER, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.PROXIMITY, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.ROTATION_VECTOR, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.WEAR_DETECTION, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_ACCELEROMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_ACCELEROMETER_UNCALIBRATED|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_AMBIENT_LIGHT|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_AMBIENT_TEMPERATURE|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_BAROMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_GRAVITY|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_GYROSCOPE|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_GYROSCOPE_UNCALIBRATED|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_HALL|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_HEART_RATE|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_HUMIDITY|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_LINEAR_ACCELEROMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_MAGNETIC_FIELD|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_MAGNETIC_FIELD_UNCALIBRATED|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_ORIENTATION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_PEDOMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_PEDOMETER_DETECTION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_PROXIMITY|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_ROTATION_VECTOR|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_SIGNIFICANT_MOTION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_WEAR_DETECTION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: Sensor
Method or attribute name: sensorId|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: Sensor
Method or attribute name: minSamplePeriod|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: Sensor
Method or attribute name: maxSamplePeriod|@ohos.sensor.d.ts| +|Added||Method or attribute name: getSingleSensor
Function name: function getSingleSensor(type: SensorId, callback: AsyncCallback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: getSingleSensor
Function name: function getSingleSensor(type: SensorId): Promise;|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getSensorList|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getSensorList|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getGeomagneticInfo|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getGeomagneticInfo|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getDeviceAltitude|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getDeviceAltitude|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getInclination|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getInclination|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getAngleVariation|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getAngleVariation|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getRotationMatrix|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getRotationMatrix|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: transformRotationMatrix|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: transformRotationMatrix|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getQuaternion|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getQuaternion|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getOrientation|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getOrientation|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getRotationMatrix|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getRotationMatrix|@ohos.sensor.d.ts| +|Added||Module name: ohos.vibrator
Class name: vibrator
Method or attribute name: startVibration|@ohos.vibrator.d.ts| +|Added||Module name: ohos.vibrator
Class name: vibrator
Method or attribute name: startVibration|@ohos.vibrator.d.ts| +|Added||Module name: ohos.vibrator
Class name: vibrator
Method or attribute name: stopVibration|@ohos.vibrator.d.ts| +|Added||Module name: ohos.vibrator
Class name: vibrator
Method or attribute name: stopVibration|@ohos.vibrator.d.ts| +|Deleted|Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorType_SENSOR_TYPE_ID_HEART_BEAT_RATE||@ohos.sensor.d.ts| +|Deleted|Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorType_SENSOR_TYPE_ID_LINEAR_ACCELEROMETER||@ohos.sensor.d.ts| +|Deleted|Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorType_SENSOR_TYPE_ID_HEART_BEAT_RATE||@ohos.sensor.d.ts| +|Deleted|Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorType_SENSOR_TYPE_ID_LINEAR_ACCELEROMETER||@ohos.sensor.d.ts| +|Deleted|Module name: ohos.sensor
Class name: Sensor
Method or attribute name: sensorTypeId||@ohos.sensor.d.ts| +|Deleted|Module name: ohos.sensor
Class name: sensor
Method or attribute name: getSensorLists||@ohos.sensor.d.ts| +|Deleted|Module name: ohos.sensor
Class name: sensor
Method or attribute name: getSensorLists||@ohos.sensor.d.ts| +|Deleted|Module name: ohos.sensor
Class name: SensorType
Method or attribute name: SENSOR_TYPE_ID_LINEAR_ACCELEROMETER||@ohos.sensor.d.ts| +|Deleted|Module name: ohos.sensor
Class name: SensorType
Method or attribute name: SENSOR_TYPE_ID_HEART_BEAT_RATE||@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_ACCELEROMETER
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_ACCELEROMETER
Deprecated version: 9
New API: ohos.sensor.SensorId.ACCELEROMETER |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED
Deprecated version: 9
New API: ohos.sensor.SensorId.ACCELEROMETER_UNCALIBRATED |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_AMBIENT_LIGHT
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_AMBIENT_LIGHT
Deprecated version: 9
New API: ohos.sensor.SensorId.AMBIENT_LIGHT |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_AMBIENT_TEMPERATURE
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_AMBIENT_TEMPERATURE
Deprecated version: 9
New API: ohos.sensor.SensorId.AMBIENT_TEMPERATURE |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_BAROMETER
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_BAROMETER
Deprecated version: 9
New API: ohos.sensor.SensorId.BAROMETER |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_GRAVITY
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_GRAVITY
Deprecated version: 9
New API: ohos.sensor.SensorId.GRAVITY |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_GYROSCOPE
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_GYROSCOPE
Deprecated version: 9
New API: ohos.sensor.SensorId.GYROSCOPE |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED
Deprecated version: 9
New API: ohos.sensor.SensorId.GYROSCOPE_UNCALIBRATED |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_HALL
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_HALL
Deprecated version: 9
New API: ohos.sensor.SensorId.HALL |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_HUMIDITY
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_HUMIDITY
Deprecated version: 9
New API: ohos.sensor.SensorId.HUMIDITY |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_MAGNETIC_FIELD
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_MAGNETIC_FIELD
Deprecated version: 9
New API: ohos.sensor.SensorId.MAGNETIC_FIELD |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED
Deprecated version: 9
New API: ohos.sensor.SensorId.MAGNETIC_FIELD_UNCALIBRATED |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_ORIENTATION
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_ORIENTATION
Deprecated version: 9
New API: ohos.sensor.SensorId.ORIENTATION |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_PEDOMETER
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_PEDOMETER
Deprecated version: 9
New API: ohos.sensor.SensorId.PEDOMETER |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_PEDOMETER_DETECTION
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_PEDOMETER_DETECTION
Deprecated version: 9
New API: ohos.sensor.SensorId.PEDOMETER_DETECTION |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_PROXIMITY
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_PROXIMITY
Deprecated version: 9
New API: ohos.sensor.SensorId.PROXIMITY |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_ROTATION_VECTOR
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_ROTATION_VECTOR
Deprecated version: 9
New API: ohos.sensor.SensorId.ROTATION_VECTOR |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_SIGNIFICANT_MOTION
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_SIGNIFICANT_MOTION
Deprecated version: 9
New API: ohos.sensor.SensorId.SIGNIFICANT_MOTION |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_WEAR_DETECTION
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_WEAR_DETECTION
Deprecated version: 9
New API: ohos.sensor.SensorId.WEAR_DETECTION |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.ACCELEROMETER |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.ACCELEROMETER_UNCALIBRATED |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.AMBIENT_LIGHT |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.AMBIENT_TEMPERATURE |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.BAROMETER |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.GRAVITY |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.GYROSCOPE |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.GYROSCOPE_UNCALIBRATED |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.HALL |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.HUMIDITY |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.MAGNETIC_FIELD |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.MAGNETIC_FIELD_UNCALIBRATED |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.ORIENTATION |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.PEDOMETER |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.PEDOMETER_DETECTION |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.PROXIMITY |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.ROTATION_VECTOR |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.SIGNIFICANT_MOTION |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: ohos.sensor.SensorId.WEAR_DETECTION |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_ACCELEROMETER
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_ACCELEROMETER
Deprecated version: 9
New API: ohos.sensor.SensorId.ACCELEROMETER |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED
Deprecated version: 9
New API: ohos.sensor.SensorId.ACCELEROMETER_UNCALIBRATED |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_AMBIENT_LIGHT
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_AMBIENT_LIGHT
Deprecated version: 9
New API: ohos.sensor.SensorId.AMBIENT_LIGHT |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_AMBIENT_TEMPERATURE
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_AMBIENT_TEMPERATURE
Deprecated version: 9
New API: ohos.sensor.SensorId.AMBIENT_TEMPERATURE |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_BAROMETER
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_BAROMETER
Deprecated version: 9
New API: ohos.sensor.SensorId.BAROMETER |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_GRAVITY
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_GRAVITY
Deprecated version: 9
New API: ohos.sensor.SensorId.GRAVITY |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_GYROSCOPE
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_GYROSCOPE
Deprecated version: 9
New API: ohos.sensor.SensorId.GYROSCOPE |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED
Deprecated version: 9
New API: ohos.sensor.SensorId.GYROSCOPE_UNCALIBRATED |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_HALL
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_HALL
Deprecated version: 9
New API: ohos.sensor.SensorId.HALL |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_HUMIDITY
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_HUMIDITY
Deprecated version: 9
New API: ohos.sensor.SensorId.HUMIDITY |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_MAGNETIC_FIELD
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_MAGNETIC_FIELD
Deprecated version: 9
New API: ohos.sensor.SensorId.MAGNETIC_FIELD |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED
Deprecated version: 9
New API: ohos.sensor.SensorId.MAGNETIC_FIELD_UNCALIBRATED |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_ORIENTATION
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_ORIENTATION
Deprecated version: 9
New API: ohos.sensor.SensorId.ORIENTATION |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_PEDOMETER
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_PEDOMETER
Deprecated version: 9
New API: ohos.sensor.SensorId.PEDOMETER |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_PEDOMETER_DETECTION
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_PEDOMETER_DETECTION
Deprecated version: 9
New API: ohos.sensor.SensorId.PEDOMETER_DETECTION |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_PROXIMITY
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_PROXIMITY
Deprecated version: 9
New API: ohos.sensor.SensorId.PROXIMITY |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_ROTATION_VECTOR
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_ROTATION_VECTOR
Deprecated version: 9
New API: ohos.sensor.SensorId.ROTATION_VECTOR |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_SIGNIFICANT_MOTION
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_SIGNIFICANT_MOTION
Deprecated version: 9
New API: ohos.sensor.SensorId.SIGNIFICANT_MOTION |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_WEAR_DETECTION
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_WEAR_DETECTION
Deprecated version: 9
New API: ohos.sensor.SensorId.WEAR_DETECTION |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getGeomagneticField
Deprecated version: N/A|Method or attribute name: getGeomagneticField
Deprecated version: 9
New API: ohos.sensor.getGeomagneticInfo |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getGeomagneticField
Deprecated version: N/A|Method or attribute name: getGeomagneticField
Deprecated version: 9|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getAltitude
Deprecated version: N/A|Method or attribute name: getAltitude
Deprecated version: 9
New API: ohos.sensor.getDeviceAltitude |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getAltitude
Deprecated version: N/A|Method or attribute name: getAltitude
Deprecated version: 9|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getGeomagneticDip
Deprecated version: N/A|Method or attribute name: getGeomagneticDip
Deprecated version: 9
New API: ohos.sensor.getInclination |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getGeomagneticDip
Deprecated version: N/A|Method or attribute name: getGeomagneticDip
Deprecated version: 9|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getAngleModify
Deprecated version: N/A|Method or attribute name: getAngleModify
Deprecated version: 9
New API: ohos.sensor.getAngleVariation |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getAngleModify
Deprecated version: N/A|Method or attribute name: getAngleModify
Deprecated version: 9|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: createRotationMatrix
Deprecated version: N/A|Method or attribute name: createRotationMatrix
Deprecated version: 9
New API: ohos.sensor.getRotationMatrix |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: createRotationMatrix
Deprecated version: N/A|Method or attribute name: createRotationMatrix
Deprecated version: 9|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: transformCoordinateSystem
Deprecated version: N/A|Method or attribute name: transformCoordinateSystem
Deprecated version: 9
New API: ohos.sensor.transformRotationMatrix |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: transformCoordinateSystem
Deprecated version: N/A|Method or attribute name: transformCoordinateSystem
Deprecated version: 9|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: createQuaternion
Deprecated version: N/A|Method or attribute name: createQuaternion
Deprecated version: 9
New API: ohos.sensor.getQuaternion |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: createQuaternion
Deprecated version: N/A|Method or attribute name: createQuaternion
Deprecated version: 9|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getDirection
Deprecated version: N/A|Method or attribute name: getDirection
Deprecated version: 9
New API: ohos.sensor.getOrientation |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getDirection
Deprecated version: N/A|Method or attribute name: getDirection
Deprecated version: 9|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: createRotationMatrix
Deprecated version: N/A|Method or attribute name: createRotationMatrix
Deprecated version: 9
New API: ohos.sensor.getRotationMatrix |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: createRotationMatrix
Deprecated version: N/A|Method or attribute name: createRotationMatrix
Deprecated version: 9|@ohos.sensor.d.ts| +|Deprecated version changed|Class name: SensorType
Deprecated version: N/A|Class name: SensorType
Deprecated version: 9
New API: ohos.sensor.SensorId |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: SENSOR_TYPE_ID_LINEAR_ACCELERATION
Deprecated version: 9|Method or attribute name: SENSOR_TYPE_ID_LINEAR_ACCELERATION
Deprecated version: N/A
New API: ohos.sensor.SensorId |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: SENSOR_TYPE_ID_HEART_RATE
Deprecated version: 9|Method or attribute name: SENSOR_TYPE_ID_HEART_RATE
Deprecated version: N/A
New API: ohos.sensor.SensorId |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: vibrate
Deprecated version: N/A|Method or attribute name: vibrate
Deprecated version: 9
New API: ohos.vibrator.startVibration |@ohos.vibrator.d.ts| +|Deprecated version changed|Method or attribute name: vibrate
Deprecated version: N/A|Method or attribute name: vibrate
Deprecated version: 9|@ohos.vibrator.d.ts| +|Deprecated version changed|Method or attribute name: vibrate
Deprecated version: N/A|Method or attribute name: vibrate
Deprecated version: 9
New API: ohos.vibrator.startVibration |@ohos.vibrator.d.ts| +|Deprecated version changed|Method or attribute name: vibrate
Deprecated version: N/A|Method or attribute name: vibrate
Deprecated version: 9|@ohos.vibrator.d.ts| +|Deprecated version changed|Method or attribute name: stop
Deprecated version: N/A|Method or attribute name: stop
Deprecated version: 9
New API: ohos.vibrator.stopVibration |@ohos.vibrator.d.ts| +|Deprecated version changed|Method or attribute name: stop
Deprecated version: N/A|Method or attribute name: stop
Deprecated version: 9|@ohos.vibrator.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-start-up.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-start-up.md new file mode 100644 index 0000000000000000000000000000000000000000..c83271778fd0b90a8c0da966999603c89a8ce354 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-start-up.md @@ -0,0 +1,10 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.systemParameterV9
Class name: systemParameterV9|@ohos.systemParameterV9.d.ts| +|Added||Module name: ohos.systemParameterV9
Class name: systemParameterV9
Method or attribute name: getSync|@ohos.systemParameterV9.d.ts| +|Added||Module name: ohos.systemParameterV9
Class name: systemParameterV9
Method or attribute name: get|@ohos.systemParameterV9.d.ts| +|Added||Module name: ohos.systemParameterV9
Class name: systemParameterV9
Method or attribute name: get|@ohos.systemParameterV9.d.ts| +|Added||Module name: ohos.systemParameterV9
Class name: systemParameterV9
Method or attribute name: get|@ohos.systemParameterV9.d.ts| +|Added||Module name: ohos.systemParameterV9
Class name: systemParameterV9
Method or attribute name: setSync|@ohos.systemParameterV9.d.ts| +|Added||Module name: ohos.systemParameterV9
Class name: systemParameterV9
Method or attribute name: set|@ohos.systemParameterV9.d.ts| +|Added||Module name: ohos.systemParameterV9
Class name: systemParameterV9
Method or attribute name: set|@ohos.systemParameterV9.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-telephony.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-telephony.md new file mode 100644 index 0000000000000000000000000000000000000000..56cc17191cfe3d2f1854d6e1fe5a9983f25050d0 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-telephony.md @@ -0,0 +1,4 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Method or attribute name: sendUpdateCellLocationRequest
Function name: function sendUpdateCellLocationRequest(slotId?: number): Promise;|@ohos.telephony.radio.d.ts| +|Initial version changed |Method or attribute name: sendUpdateCellLocationRequest
Initial version: 9|Method or attribute name: sendUpdateCellLocationRequest
Initial version: 8|@ohos.telephony.radio.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-unitest.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-unitest.md new file mode 100644 index 0000000000000000000000000000000000000000..a729b1737d873fdcec0b239463d50a4ed310b208 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-unitest.md @@ -0,0 +1,107 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.uitest
Class name: On|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: text|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: id|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: type|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: clickable|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: longClickable|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: scrollable|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: enabled|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: focused|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: selected|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: checked|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: checkable|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: isBefore|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: isAfter|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: click|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: doubleClick|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: longClick|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: getId|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: getText|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: getType|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: isClickable|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: isLongClickable|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: isScrollable|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: isEnabled|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: isFocused|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: isSelected|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: isChecked|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: isCheckable|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: inputText|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: clearText|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: scrollToTop|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: scrollToBottom|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: scrollSearch|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: getBounds|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: getBoundsCenter|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: dragTo|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: pinchOut|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: pinchIn|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: create|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: delayMs|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: findComponent|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: findWindow|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: waitForComponent|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: findComponents|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: assertComponentExist|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: pressBack|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: triggerKey|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: triggerCombineKeys|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: click|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: doubleClick|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: longClick|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: swipe|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: drag|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: screenCap|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: setDisplayRotation|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: getDisplayRotation|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: setDisplayRotationEnabled|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: getDisplaySize|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: getDisplayDensity|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: wakeUpDisplay|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: pressHome|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: waitForIdle|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: fling|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: injectMultiPointerAction|@ohos.uitest.d.ts| +|Added||Method or attribute name: focus
Function name: focus(): Promise;|@ohos.uitest.d.ts| +|Added||Method or attribute name: moveTo
Function name: moveTo(x: number, y: number): Promise;|@ohos.uitest.d.ts| +|Added||Method or attribute name: resize
Function name: resize(wide: number, height: number, direction: ResizeDirection): Promise;|@ohos.uitest.d.ts| +|Added||Method or attribute name: split
Function name: split(): Promise;|@ohos.uitest.d.ts| +|Added||Method or attribute name: maximize
Function name: maximize(): Promise;|@ohos.uitest.d.ts| +|Added||Method or attribute name: minimize
Function name: minimize(): Promise;|@ohos.uitest.d.ts| +|Added||Method or attribute name: resume
Function name: resume(): Promise;|@ohos.uitest.d.ts| +|Added||Method or attribute name: close
Function name: close(): Promise;|@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: By
Method or attribute name: longClickable||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: By
Method or attribute name: checked||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: By
Method or attribute name: checkable||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: isLongClickable||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: isChecked||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: isCheckable||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: clearText||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: scrollToTop||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: scrollToBottom||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: getBounds||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: getBoundsCenter||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: dragTo||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: pinchOut||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: pinchIn||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: findWindow||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: waitForComponent||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: triggerCombineKeys||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: drag||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: setDisplayRotation||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: getDisplayRotation||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: setDisplayRotationEnabled||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: getDisplaySize||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: getDisplayDensity||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: wakeUpDisplay||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: pressHome||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: waitForIdle||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: fling||@ohos.uitest.d.ts| +|Deleted|Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: injectMultiPointerAction||@ohos.uitest.d.ts| +|Deprecated version changed|Class name: By
Deprecated version: N/A|Class name: By
Deprecated version: 9
New API: ohos.uitest.On |@ohos.uitest.d.ts| +|Deprecated version changed|Class name: UiComponent
Deprecated version: N/A|Class name: UiComponent
Deprecated version: 9
New API: ohos.uitest.Component |@ohos.uitest.d.ts| +|Deprecated version changed|Class name: UiDriver
Deprecated version: N/A|Class name: UiDriver
Deprecated version: 9
New API: ohos.uitest.Driver |@ohos.uitest.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-usb.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-usb.md new file mode 100644 index 0000000000000000000000000000000000000000..7ddbeb3fe4a39c3e7289bd0ec4734c9ad06966be --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-usb.md @@ -0,0 +1,120 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.usbV9
Class name: usbV9|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: getDevices|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: connectDevice|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: hasRight|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: requestRight|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: removeRight|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: addRight|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: usbFunctionsFromString|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: usbFunctionsToString|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: setCurrentFunctions|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: getCurrentFunctions|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: getPorts|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: getSupportedModes|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: setPortRoles|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: claimInterface|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: releaseInterface|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: setConfiguration|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: setInterface|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: getRawDescriptor|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: getFileDescriptor|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: controlTransfer|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: bulkTransfer|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: closePipe|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBEndpoint|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBEndpoint
Method or attribute name: address|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBEndpoint
Method or attribute name: attributes|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBEndpoint
Method or attribute name: interval|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBEndpoint
Method or attribute name: maxPacketSize|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBEndpoint
Method or attribute name: direction|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBEndpoint
Method or attribute name: number|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBEndpoint
Method or attribute name: type|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBEndpoint
Method or attribute name: interfaceId|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBInterface|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBInterface
Method or attribute name: id|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBInterface
Method or attribute name: protocol|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBInterface
Method or attribute name: clazz|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBInterface
Method or attribute name: subClass|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBInterface
Method or attribute name: alternateSetting|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBInterface
Method or attribute name: name|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBInterface
Method or attribute name: endpoints|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBConfig|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBConfig
Method or attribute name: id|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBConfig
Method or attribute name: attributes|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBConfig
Method or attribute name: maxPower|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBConfig
Method or attribute name: name|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBConfig
Method or attribute name: isRemoteWakeup|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBConfig
Method or attribute name: isSelfPowered|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBConfig
Method or attribute name: interfaces|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: busNum|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: devAddress|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: serial|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: name|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: manufacturerName|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: productName|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: version|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: vendorId|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: productId|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: clazz|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: subClass|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: protocol|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: configs|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevicePipe|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevicePipe
Method or attribute name: busNum|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevicePipe
Method or attribute name: devAddress|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PowerRoleType|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PowerRoleType
Method or attribute name: NONE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PowerRoleType
Method or attribute name: SOURCE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PowerRoleType
Method or attribute name: SINK|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: DataRoleType|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: DataRoleType
Method or attribute name: NONE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: DataRoleType
Method or attribute name: HOST|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: DataRoleType
Method or attribute name: DEVICE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PortModeType|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PortModeType
Method or attribute name: NONE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PortModeType
Method or attribute name: UFP|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PortModeType
Method or attribute name: DFP|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PortModeType
Method or attribute name: DRP|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PortModeType
Method or attribute name: NUM_MODES|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBPortStatus|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBPortStatus
Method or attribute name: currentMode|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBPortStatus
Method or attribute name: currentPowerRole|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBPortStatus
Method or attribute name: currentDataRole|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBPort|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBPort
Method or attribute name: id|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBPort
Method or attribute name: supportedModes|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBPort
Method or attribute name: status|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlParams|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlParams
Method or attribute name: request|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlParams
Method or attribute name: target|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlParams
Method or attribute name: reqType|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlParams
Method or attribute name: value|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlParams
Method or attribute name: index|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlParams
Method or attribute name: data|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBRequestTargetType|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBRequestTargetType
Method or attribute name: USB_REQUEST_TARGET_DEVICE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBRequestTargetType
Method or attribute name: USB_REQUEST_TARGET_INTERFACE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBRequestTargetType
Method or attribute name: USB_REQUEST_TARGET_ENDPOINT|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBRequestTargetType
Method or attribute name: USB_REQUEST_TARGET_OTHER|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlRequestType|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlRequestType
Method or attribute name: USB_REQUEST_TYPE_STANDARD|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlRequestType
Method or attribute name: USB_REQUEST_TYPE_CLASS|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlRequestType
Method or attribute name: USB_REQUEST_TYPE_VENDOR|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBRequestDirection|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBRequestDirection
Method or attribute name: USB_REQUEST_DIR_TO_DEVICE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBRequestDirection
Method or attribute name: USB_REQUEST_DIR_FROM_DEVICE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: NONE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: ACM|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: ECM|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: HDC|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: MTP|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: PTP|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: RNDIS|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: MIDI|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: AUDIO_SOURCE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: NCM|@ohos.usbV9.d.ts| +|Deprecated version changed|Class name: usb
Deprecated version: N/A|Class name: usb
Deprecated version: 9
New API: ohos.usbV9 |@ohos.usb.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-user-iam.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-user-iam.md new file mode 100644 index 0000000000000000000000000000000000000000..05ecad7f61d9f9503e3f56d6eaf0905771ad2777 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-user-iam.md @@ -0,0 +1,43 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Method or attribute name: setSurfaceId
Function name: setSurfaceId(surfaceId: string): void;|@ohos.userIAM.faceAuth.d.ts| +|Added||Method or attribute name: FAIL
Function name: FAIL = 12700001|@ohos.userIAM.faceAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthEvent|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthEvent
Method or attribute name: callback|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthResultInfo|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthResultInfo
Method or attribute name: result|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthResultInfo
Method or attribute name: token|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthResultInfo
Method or attribute name: remainAttempts|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthResultInfo
Method or attribute name: lockoutDuration|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: TipInfo|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: TipInfo
Method or attribute name: module|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: TipInfo
Method or attribute name: tip|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthInstance|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthInstance
Method or attribute name: on|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthInstance
Method or attribute name: off|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthInstance
Method or attribute name: start|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthInstance
Method or attribute name: cancel|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: userAuth
Method or attribute name: getVersion|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: userAuth
Method or attribute name: getAvailableStatus|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: userAuth
Method or attribute name: getAuthInstance|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: SUCCESS|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: FAIL|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: GENERAL_ERROR|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: CANCELED|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: TIMEOUT|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: TYPE_NOT_SUPPORT|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: TRUST_LEVEL_NOT_SUPPORT|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: BUSY|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: INVALID_PARAMETERS|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: LOCKED|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: NOT_ENROLLED|@ohos.userIAM.userAuth.d.ts| +|Deleted|Module name: ohos.userIAM.faceAuth
Class name: ResultCode
Method or attribute name: SUCCESS||@ohos.userIAM.faceAuth.d.ts| +|Deprecated version changed|Method or attribute name: getVersion
Deprecated version: N/A|Method or attribute name: getVersion
Deprecated version: 9
New API: ohos.userIAM.userAuth.getVersion |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: getAvailableStatus
Deprecated version: N/A|Method or attribute name: getAvailableStatus
Deprecated version: 9
New API: ohos.userIAM.userAuth.getAvailableStatus |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: auth
Deprecated version: N/A|Method or attribute name: auth
Deprecated version: 9
New API: ohos.userIAM.userAuth.AuthInstance.start |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: cancelAuth
Deprecated version: N/A|Method or attribute name: cancelAuth
Deprecated version: 9
New API: ohos.userIAM.userAuth.AuthInstance.cancel |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: onResult
Deprecated version: N/A|Method or attribute name: onResult
Deprecated version: 9
New API: ohos.userIAM.userAuth.AuthEvent.callback |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: onAcquireInfo
Deprecated version: N/A|Method or attribute name: onAcquireInfo
Deprecated version: 9
New API: ohos.userIAM.userAuth.AuthEvent.callback |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Class name: AuthResult
Deprecated version: N/A|Class name: AuthResult
Deprecated version: 9
New API: ohos.userIAM.userAuth.AuthResultInfo |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Class name: ResultCode
Deprecated version: N/A|Class name: ResultCode
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-web.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-web.md new file mode 100644 index 0000000000000000000000000000000000000000..d168cf9405faaae31b05483f266a60252655086e --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-web.md @@ -0,0 +1,75 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.web.webview
Class name: HeaderV9|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HeaderV9
Method or attribute name: headerKey|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HeaderV9
Method or attribute name: headerValue|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestTypeV9|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestTypeV9
Method or attribute name: EditText|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestTypeV9
Method or attribute name: Email|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestTypeV9
Method or attribute name: HttpAnchor|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestTypeV9
Method or attribute name: HttpAnchorImg|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestTypeV9
Method or attribute name: Img|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestTypeV9
Method or attribute name: Map|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestTypeV9
Method or attribute name: Phone|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestTypeV9
Method or attribute name: Unknown|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestValue|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestValue
Method or attribute name: type|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestValue
Method or attribute name: extra|@ohos.web.webview.d.ts| +|Added||Method or attribute name: setCookie
Function name: static setCookie(url: string, value: string): void;|@ohos.web.webview.d.ts| +|Added||Method or attribute name: saveCookieSync
Function name: static saveCookieSync(): void;|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebMessagePort|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebMessagePort
Method or attribute name: close|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebMessagePort
Method or attribute name: postMessageEvent|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebMessagePort
Method or attribute name: onMessageEvent|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: accessForward|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: accessBackward|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: accessStep|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: forward|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: backward|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: clearHistory|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: onActive|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: onInactive|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: refresh|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: loadData|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: loadUrl|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: getHitTest|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: storeWebArchive|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: storeWebArchive|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: zoom|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: zoomIn|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: zoomOut|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: getHitTestValue|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: getWebId|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: getUserAgent|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: getTitle|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: getPageHeight|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: backOrForward|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: requestFocus|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: createWebMessagePorts|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: postMessage|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: stop|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: registerJavaScriptProxy|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: deleteJavaScriptRegister|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: searchAllAsync|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: clearMatches|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: searchNext|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: clearSslCache|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: clearClientAuthenticationCache|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: runJavaScript|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: runJavaScript|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: getUrl|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: deleteOrigin
Error code: 401,17100011|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: getOrigins
Error code: 401,17100012|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: getOriginQuota
Error code: 401,17100011|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: getOriginUsage
Error code: 401,17100011|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: getHttpAuthCredentials
Error code: 401|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: saveHttpAuthCredentials
Error code: 401|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: allowGeolocation
Error code: 401, 17100011|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: deleteGeolocation
Error code: 401, 17100011|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: getAccessibleGeolocation
Error code: 401,17100011|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: getStoredGeolocation
Error code: 401|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: getCookie
Error code: 401, 17100002|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: saveCookieAsync
Error code: 401|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: putAcceptCookieEnabled
Error code: 401|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: putAcceptThirdPartyCookieEnabled
Error code: 401|@ohos.web.webview.d.ts| diff --git a/en/release-notes/api-diff/monthly-202210/js-apidiff-window.md b/en/release-notes/api-diff/monthly-202210/js-apidiff-window.md new file mode 100644 index 0000000000000000000000000000000000000000..301dd144469f27e0e92dcf59ade07ce26734b2db --- /dev/null +++ b/en/release-notes/api-diff/monthly-202210/js-apidiff-window.md @@ -0,0 +1,111 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.display
Class name: display
Method or attribute name: getAllDisplays|@ohos.display.d.ts| +|Added||Module name: ohos.display
Class name: display
Method or attribute name: getAllDisplays|@ohos.display.d.ts| +|Added||Module name: ohos.window
Class name: Configuration|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Configuration
Method or attribute name: name|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Configuration
Method or attribute name: windowType|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Configuration
Method or attribute name: ctx|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Configuration
Method or attribute name: displayId|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Configuration
Method or attribute name: parentId|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: window
Method or attribute name: createWindow|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: window
Method or attribute name: createWindow|@ohos.window.d.ts| +|Added||Method or attribute name: create
Function name: function create(ctx: BaseContext, id: string, type: WindowType): Promise;|@ohos.window.d.ts| +|Added||Method or attribute name: create
Function name: function create(ctx: BaseContext, id: string, type: WindowType, callback: AsyncCallback): void;|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: window
Method or attribute name: findWindow|@ohos.window.d.ts| +|Added||Method or attribute name: getTopWindow
Function name: function getTopWindow(ctx: BaseContext): Promise;|@ohos.window.d.ts| +|Added||Method or attribute name: getTopWindow
Function name: function getTopWindow(ctx: BaseContext, callback: AsyncCallback): void;|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: window
Method or attribute name: getLastWindow|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: window
Method or attribute name: getLastWindow|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: showWindow|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: showWindow|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: destroyWindow|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: destroyWindow|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: moveWindowTo|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: moveWindowTo|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: resize|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: resize|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowMode|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowMode|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: getWindowProperties|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: getWindowAvoidArea|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowLayoutFullScreen|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowLayoutFullScreen|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowSystemBarEnable|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowSystemBarEnable|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowSystemBarProperties|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowSystemBarProperties|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setUIContent|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setUIContent|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: isWindowShowing|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: isWindowSupportWideGamut|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: isWindowSupportWideGamut|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowColorSpace|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowColorSpace|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: getWindowColorSpace|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowBackgroundColor|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowBrightness|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowBrightness|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowFocusable|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowFocusable|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowKeepScreenOn|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowKeepScreenOn|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowPrivacyMode|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowPrivacyMode|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowTouchable|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowTouchable|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: WindowStage
Method or attribute name: getMainWindowSync|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: getDefaultDisplay
Deprecated version: N/A|Method or attribute name: getDefaultDisplay
Deprecated version: 9
New API: ohos.display|@ohos.display.d.ts| +|Deprecated version changed|Method or attribute name: getDefaultDisplay
Deprecated version: N/A|Method or attribute name: getDefaultDisplay
Deprecated version: 9
New API: ohos.display|@ohos.display.d.ts| +|Deprecated version changed|Method or attribute name: getAllDisplay
Deprecated version: N/A|Method or attribute name: getAllDisplay
Deprecated version: 9
New API: ohos.display|@ohos.display.d.ts| +|Deprecated version changed|Method or attribute name: getAllDisplay
Deprecated version: N/A|Method or attribute name: getAllDisplay
Deprecated version: 9
New API: ohos.display|@ohos.display.d.ts| +|Deprecated version changed|Method or attribute name: create
Deprecated version: N/A|Method or attribute name: create
Deprecated version: 9
New API: ohos.window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: create
Deprecated version: N/A|Method or attribute name: create
Deprecated version: 9
New API: ohos.window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: find
Deprecated version: N/A|Method or attribute name: find
Deprecated version: 9
New API: ohos.window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: find
Deprecated version: N/A|Method or attribute name: find
Deprecated version: 9
New API: ohos.window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: getTopWindow
Deprecated version: N/A|Method or attribute name: getTopWindow
Deprecated version: 9
New API: ohos.window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: getTopWindow
Deprecated version: N/A|Method or attribute name: getTopWindow
Deprecated version: 9
New API: ohos.window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: show
Deprecated version: N/A|Method or attribute name: show
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: show
Deprecated version: N/A|Method or attribute name: show
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: destroy
Deprecated version: N/A|Method or attribute name: destroy
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: destroy
Deprecated version: N/A|Method or attribute name: destroy
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: moveTo
Deprecated version: N/A|Method or attribute name: moveTo
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: moveTo
Deprecated version: N/A|Method or attribute name: moveTo
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: resetSize
Deprecated version: N/A|Method or attribute name: resetSize
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: resetSize
Deprecated version: N/A|Method or attribute name: resetSize
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: getProperties
Deprecated version: N/A|Method or attribute name: getProperties
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: getProperties
Deprecated version: N/A|Method or attribute name: getProperties
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: getAvoidArea
Deprecated version: N/A|Method or attribute name: getAvoidArea
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: getAvoidArea
Deprecated version: N/A|Method or attribute name: getAvoidArea
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setFullScreen
Deprecated version: N/A|Method or attribute name: setFullScreen
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setFullScreen
Deprecated version: N/A|Method or attribute name: setFullScreen
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setLayoutFullScreen
Deprecated version: N/A|Method or attribute name: setLayoutFullScreen
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setLayoutFullScreen
Deprecated version: N/A|Method or attribute name: setLayoutFullScreen
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setSystemBarEnable
Deprecated version: N/A|Method or attribute name: setSystemBarEnable
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setSystemBarEnable
Deprecated version: N/A|Method or attribute name: setSystemBarEnable
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setSystemBarProperties
Deprecated version: N/A|Method or attribute name: setSystemBarProperties
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setSystemBarProperties
Deprecated version: N/A|Method or attribute name: setSystemBarProperties
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: loadContent
Deprecated version: N/A|Method or attribute name: loadContent
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: loadContent
Deprecated version: N/A|Method or attribute name: loadContent
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: isShowing
Deprecated version: N/A|Method or attribute name: isShowing
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: isShowing
Deprecated version: N/A|Method or attribute name: isShowing
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: isSupportWideGamut
Deprecated version: N/A|Method or attribute name: isSupportWideGamut
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: isSupportWideGamut
Deprecated version: N/A|Method or attribute name: isSupportWideGamut
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setColorSpace
Deprecated version: N/A|Method or attribute name: setColorSpace
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setColorSpace
Deprecated version: N/A|Method or attribute name: setColorSpace
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: getColorSpace
Deprecated version: N/A|Method or attribute name: getColorSpace
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: getColorSpace
Deprecated version: N/A|Method or attribute name: getColorSpace
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setBackgroundColor
Deprecated version: N/A|Method or attribute name: setBackgroundColor
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setBackgroundColor
Deprecated version: N/A|Method or attribute name: setBackgroundColor
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setBrightness
Deprecated version: N/A|Method or attribute name: setBrightness
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setBrightness
Deprecated version: N/A|Method or attribute name: setBrightness
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setFocusable
Deprecated version: N/A|Method or attribute name: setFocusable
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setFocusable
Deprecated version: N/A|Method or attribute name: setFocusable
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setKeepScreenOn
Deprecated version: N/A|Method or attribute name: setKeepScreenOn
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setKeepScreenOn
Deprecated version: N/A|Method or attribute name: setKeepScreenOn
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setPrivacyMode
Deprecated version: N/A|Method or attribute name: setPrivacyMode
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setPrivacyMode
Deprecated version: N/A|Method or attribute name: setPrivacyMode
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setTouchable
Deprecated version: N/A|Method or attribute name: setTouchable
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setTouchable
Deprecated version: N/A|Method or attribute name: setTouchable
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Permission changed|Method or attribute name: createVirtualScreen
Permission: ohos.permission.CAPTURE_SCREEN. if VirtualScreenOption.surfaceId is valid|Method or attribute name: createVirtualScreen
Permission: ohos.permission.CAPTURE_SCREEN|@ohos.screen.d.ts| +|Permission changed|Method or attribute name: createVirtualScreen
Permission: ohos.permission.CAPTURE_SCREEN. if VirtualScreenOption.surfaceId is valid|Method or attribute name: createVirtualScreen
Permission: ohos.permission.CAPTURE_SCREEN|@ohos.screen.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-ability.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-ability.md new file mode 100644 index 0000000000000000000000000000000000000000..f2c11608bdec856aea1007fa6c7d718d0a7a7406 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-ability.md @@ -0,0 +1,287 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Method or attribute name: ACTION_APP_ACCOUNT_AUTH
Function name: ACTION_APP_ACCOUNT_AUTH = "ohos.appAccount.action.auth"|@ohos.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: appRecovery|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: appRecovery
Method or attribute name: enableAppRecovery|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: appRecovery
Method or attribute name: restartApp|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: appRecovery
Method or attribute name: saveAppState|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onSaveState|@ohos.app.ability.UIAbility.d.ts| +|Deleted|Module name: ohos.app.ability.Ability
Class name: Ability
Method or attribute name: onSaveState||@ohos.app.ability.Ability.d.ts| +|Deleted|Module name: ohos.app.ability.appRecovery
Class name: appReceovery||@ohos.app.ability.appRecovery.d.ts| +|Deleted|Module name: ohos.app.ability.appRecovery
Class name: appReceovery
Method or attribute name: enableAppRecovery||@ohos.app.ability.appRecovery.d.ts| +|Deleted|Module name: ohos.app.ability.appRecovery
Class name: appReceovery
Method or attribute name: restartApp||@ohos.app.ability.appRecovery.d.ts| +|Deleted|Module name: ohos.app.ability.appRecovery
Class name: appReceovery
Method or attribute name: saveAppState||@ohos.app.ability.appRecovery.d.ts| +|Model changed|Class name: Ability
model: @stage model only|Class name: Ability
model: @Stage Model Only|@ohos.app.ability.Ability.d.ts| +|Model changed|Method or attribute name: onConfigurationUpdate
model: @stage model only|Method or attribute name: onConfigurationUpdate
model: @Stage Model Only|@ohos.app.ability.Ability.d.ts| +|Model changed|Method or attribute name: onMemoryLevel
model: @stage model only|Method or attribute name: onMemoryLevel
model: @Stage Model Only|@ohos.app.ability.Ability.d.ts| +|Model changed|Class name: AbilityConstant
model: @stage model only|Class name: AbilityConstant
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Class name: LaunchParam
model: @stage model only|Class name: LaunchParam
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: launchReason
model: @stage model only|Method or attribute name: launchReason
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: lastExitReason
model: @stage model only|Method or attribute name: lastExitReason
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Class name: LaunchReason
model: @stage model only|Class name: LaunchReason
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: UNKNOWN
model: @stage model only|Method or attribute name: UNKNOWN
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: START_ABILITY
model: @stage model only|Method or attribute name: START_ABILITY
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: CALL
model: @stage model only|Method or attribute name: CALL
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: CONTINUATION
model: @stage model only|Method or attribute name: CONTINUATION
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: APP_RECOVERY
model: @stage model only|Method or attribute name: APP_RECOVERY
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Class name: LastExitReason
model: @stage model only|Class name: LastExitReason
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: UNKNOWN
model: @stage model only|Method or attribute name: UNKNOWN
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: ABILITY_NOT_RESPONDING
model: @stage model only|Method or attribute name: ABILITY_NOT_RESPONDING
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: NORMAL
model: @stage model only|Method or attribute name: NORMAL
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Class name: OnContinueResult
model: @stage model only|Class name: OnContinueResult
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: AGREE
model: @stage model only|Method or attribute name: AGREE
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: REJECT
model: @stage model only|Method or attribute name: REJECT
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: MISMATCH
model: @stage model only|Method or attribute name: MISMATCH
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Class name: MemoryLevel
model: @stage model only|Class name: MemoryLevel
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: MEMORY_LEVEL_MODERATE
model: @stage model only|Method or attribute name: MEMORY_LEVEL_MODERATE
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: MEMORY_LEVEL_LOW
model: @stage model only|Method or attribute name: MEMORY_LEVEL_LOW
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: MEMORY_LEVEL_CRITICAL
model: @stage model only|Method or attribute name: MEMORY_LEVEL_CRITICAL
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Class name: WindowMode
model: @stage model only|Class name: WindowMode
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: WINDOW_MODE_UNDEFINED
model: @stage model only|Method or attribute name: WINDOW_MODE_UNDEFINED
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: WINDOW_MODE_FULLSCREEN
model: @stage model only|Method or attribute name: WINDOW_MODE_FULLSCREEN
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: WINDOW_MODE_SPLIT_PRIMARY
model: @stage model only|Method or attribute name: WINDOW_MODE_SPLIT_PRIMARY
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: WINDOW_MODE_SPLIT_SECONDARY
model: @stage model only|Method or attribute name: WINDOW_MODE_SPLIT_SECONDARY
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: WINDOW_MODE_FLOATING
model: @stage model only|Method or attribute name: WINDOW_MODE_FLOATING
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Class name: OnSaveResult
model: @stage model only|Class name: OnSaveResult
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: ALL_AGREE
model: @stage model only|Method or attribute name: ALL_AGREE
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: CONTINUATION_REJECT
model: @stage model only|Method or attribute name: CONTINUATION_REJECT
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: CONTINUATION_MISMATCH
model: @stage model only|Method or attribute name: CONTINUATION_MISMATCH
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: RECOVERY_AGREE
model: @stage model only|Method or attribute name: RECOVERY_AGREE
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: RECOVERY_REJECT
model: @stage model only|Method or attribute name: RECOVERY_REJECT
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: ALL_REJECT
model: @stage model only|Method or attribute name: ALL_REJECT
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Class name: StateType
model: @stage model only|Class name: StateType
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: CONTINUATION
model: @stage model only|Method or attribute name: CONTINUATION
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Method or attribute name: APP_RECOVERY
model: @stage model only|Method or attribute name: APP_RECOVERY
model: @Stage Model Only|@ohos.app.ability.AbilityConstant.d.ts| +|Model changed|Class name: AbilityLifecycleCallback
model: @stage model only|Class name: AbilityLifecycleCallback
model: @Stage Model Only|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Model changed|Method or attribute name: onAbilityCreate
model: @stage model only|Method or attribute name: onAbilityCreate
model: @Stage Model Only|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Model changed|Method or attribute name: onWindowStageCreate
model: @stage model only|Method or attribute name: onWindowStageCreate
model: @Stage Model Only|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Model changed|Method or attribute name: onWindowStageActive
model: @stage model only|Method or attribute name: onWindowStageActive
model: @Stage Model Only|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Model changed|Method or attribute name: onWindowStageInactive
model: @stage model only|Method or attribute name: onWindowStageInactive
model: @Stage Model Only|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Model changed|Method or attribute name: onWindowStageDestroy
model: @stage model only|Method or attribute name: onWindowStageDestroy
model: @Stage Model Only|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Model changed|Method or attribute name: onAbilityDestroy
model: @stage model only|Method or attribute name: onAbilityDestroy
model: @Stage Model Only|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Model changed|Method or attribute name: onAbilityForeground
model: @stage model only|Method or attribute name: onAbilityForeground
model: @Stage Model Only|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Model changed|Method or attribute name: onAbilityBackground
model: @stage model only|Method or attribute name: onAbilityBackground
model: @Stage Model Only|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Model changed|Method or attribute name: onAbilityContinue
model: @stage model only|Method or attribute name: onAbilityContinue
model: @Stage Model Only|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Model changed|Class name: AbilityStage
model: @stage model only|Class name: AbilityStage
model: @Stage Model Only|@ohos.app.ability.AbilityStage.d.ts| +|Model changed|Method or attribute name: context
model: @stage model only|Method or attribute name: context
model: @Stage Model Only|@ohos.app.ability.AbilityStage.d.ts| +|Model changed|Method or attribute name: onCreate
model: @stage model only|Method or attribute name: onCreate
model: @Stage Model Only|@ohos.app.ability.AbilityStage.d.ts| +|Model changed|Method or attribute name: onAcceptWant
model: @stage model only|Method or attribute name: onAcceptWant
model: @Stage Model Only|@ohos.app.ability.AbilityStage.d.ts| +|Model changed|Method or attribute name: onConfigurationUpdate
model: @stage model only|Method or attribute name: onConfigurationUpdate
model: @Stage Model Only|@ohos.app.ability.AbilityStage.d.ts| +|Model changed|Method or attribute name: onMemoryLevel
model: @stage model only|Method or attribute name: onMemoryLevel
model: @Stage Model Only|@ohos.app.ability.AbilityStage.d.ts| +|Model changed|Class name: common
model: @stage model only|Class name: common
model: @Stage Model Only|@ohos.app.ability.common.d.ts| +|Model changed|Class name: AreaMode
model: @stage model only|Class name: AreaMode
model: @Stage Model Only|@ohos.app.ability.common.d.ts| +|Model changed|Method or attribute name: EL1
model: @stage model only|Method or attribute name: EL1
model: @Stage Model Only|@ohos.app.ability.common.d.ts| +|Model changed|Method or attribute name: EL2
model: @stage model only|Method or attribute name: EL2
model: @Stage Model Only|@ohos.app.ability.common.d.ts| +|Model changed|Method or attribute name: onConfigurationUpdated
model: @stage model only|Method or attribute name: onConfigurationUpdated
model: @Stage Model Only|@ohos.app.ability.EnvironmentCallback.d.ts| +|Model changed|Class name: ExtensionAbility
model: @stage model only|Class name: ExtensionAbility
model: @Stage Model Only|@ohos.app.ability.ExtensionAbility.d.ts| +|Model changed|Class name: ServiceExtensionAbility
model: @stage model only|Class name: ServiceExtensionAbility
model: @Stage Model Only|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Model changed|Method or attribute name: context
model: @stage model only|Method or attribute name: context
model: @Stage Model Only|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Model changed|Method or attribute name: onCreate
model: @stage model only|Method or attribute name: onCreate
model: @Stage Model Only|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Model changed|Method or attribute name: onDestroy
model: @stage model only|Method or attribute name: onDestroy
model: @Stage Model Only|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Model changed|Method or attribute name: onRequest
model: @stage model only|Method or attribute name: onRequest
model: @Stage Model Only|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Model changed|Method or attribute name: onConnect
model: @stage model only|Method or attribute name: onConnect
model: @Stage Model Only|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Model changed|Method or attribute name: onDisconnect
model: @stage model only|Method or attribute name: onDisconnect
model: @Stage Model Only|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Model changed|Method or attribute name: onReconnect
model: @stage model only|Method or attribute name: onReconnect
model: @Stage Model Only|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Model changed|Method or attribute name: onConfigurationUpdate
model: @stage model only|Method or attribute name: onConfigurationUpdate
model: @Stage Model Only|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Model changed|Method or attribute name: onDump
model: @stage model only|Method or attribute name: onDump
model: @Stage Model Only|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Model changed|Class name: StartOptions
model: @stage model only|Class name: StartOptions
model: @Stage Model Only|@ohos.app.ability.StartOptions.d.ts| +|Model changed|Method or attribute name: windowMode
model: @stage model only|Method or attribute name: windowMode
model: @Stage Model Only|@ohos.app.ability.StartOptions.d.ts| +|Model changed|Method or attribute name: displayId
model: @stage model only|Method or attribute name: displayId
model: @Stage Model Only|@ohos.app.ability.StartOptions.d.ts| +|Model changed|Class name: OnReleaseCallback
model: @stage model only|Class name: OnReleaseCallback
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: OnReleaseCallback
model: @stage model only|Method or attribute name: OnReleaseCallback
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Class name: CalleeCallback
model: @stage model only|Class name: CalleeCallback
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: CalleeCallback
model: @stage model only|Method or attribute name: CalleeCallback
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Class name: Caller
model: @stage model only|Class name: Caller
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: call
model: @stage model only|Method or attribute name: call
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: callWithResult
model: @stage model only|Method or attribute name: callWithResult
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: release
model: @stage model only|Method or attribute name: release
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: onRelease
model: @stage model only|Method or attribute name: onRelease
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: on_release
model: @stage model only|Method or attribute name: on_release
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: off_release
model: @stage model only|Method or attribute name: off_release
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: off_release
model: @stage model only|Method or attribute name: off_release
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Class name: Callee
model: @stage model only|Class name: Callee
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: on
model: @stage model only|Method or attribute name: on
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: off
model: @stage model only|Method or attribute name: off
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Class name: UIAbility
model: @stage model only|Class name: UIAbility
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: context
model: @stage model only|Method or attribute name: context
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: launchWant
model: @stage model only|Method or attribute name: launchWant
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: lastRequestWant
model: @stage model only|Method or attribute name: lastRequestWant
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: callee
model: @stage model only|Method or attribute name: callee
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: onCreate
model: @stage model only|Method or attribute name: onCreate
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: onWindowStageCreate
model: @stage model only|Method or attribute name: onWindowStageCreate
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: onWindowStageDestroy
model: @stage model only|Method or attribute name: onWindowStageDestroy
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: onWindowStageRestore
model: @stage model only|Method or attribute name: onWindowStageRestore
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: onDestroy
model: @stage model only|Method or attribute name: onDestroy
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: onForeground
model: @stage model only|Method or attribute name: onForeground
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: onBackground
model: @stage model only|Method or attribute name: onBackground
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: onContinue
model: @stage model only|Method or attribute name: onContinue
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: onNewWant
model: @stage model only|Method or attribute name: onNewWant
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Method or attribute name: onDump
model: @stage model only|Method or attribute name: onDump
model: @Stage Model Only|@ohos.app.ability.UIAbility.d.ts| +|Model changed|Class name: FormExtensionAbility
model: @stage model only|Class name: FormExtensionAbility
model: @Stage Model Only|@ohos.app.form.FormExtensionAbility.d.ts| +|Model changed|Method or attribute name: context
model: @stage model only|Method or attribute name: context
model: @Stage Model Only|@ohos.app.form.FormExtensionAbility.d.ts| +|Model changed|Method or attribute name: onAddForm
model: @stage model only|Method or attribute name: onAddForm
model: @Stage Model Only|@ohos.app.form.FormExtensionAbility.d.ts| +|Model changed|Method or attribute name: onCastToNormalForm
model: @stage model only|Method or attribute name: onCastToNormalForm
model: @Stage Model Only|@ohos.app.form.FormExtensionAbility.d.ts| +|Model changed|Method or attribute name: onUpdateForm
model: @stage model only|Method or attribute name: onUpdateForm
model: @Stage Model Only|@ohos.app.form.FormExtensionAbility.d.ts| +|Model changed|Method or attribute name: onChangeFormVisibility
model: @stage model only|Method or attribute name: onChangeFormVisibility
model: @Stage Model Only|@ohos.app.form.FormExtensionAbility.d.ts| +|Model changed|Method or attribute name: onFormEvent
model: @stage model only|Method or attribute name: onFormEvent
model: @Stage Model Only|@ohos.app.form.FormExtensionAbility.d.ts| +|Model changed|Method or attribute name: onRemoveForm
model: @stage model only|Method or attribute name: onRemoveForm
model: @Stage Model Only|@ohos.app.form.FormExtensionAbility.d.ts| +|Model changed|Method or attribute name: onConfigurationUpdate
model: @stage model only|Method or attribute name: onConfigurationUpdate
model: @Stage Model Only|@ohos.app.form.FormExtensionAbility.d.ts| +|Model changed|Method or attribute name: onAcquireFormState
model: @stage model only|Method or attribute name: onAcquireFormState
model: @Stage Model Only|@ohos.app.form.FormExtensionAbility.d.ts| +|Model changed|Method or attribute name: onShareForm
model: @stage model only|Method or attribute name: onShareForm
model: @Stage Model Only|@ohos.app.form.FormExtensionAbility.d.ts| +|Model changed|Class name: AbilityContext
model: @stage model only|Class name: AbilityContext
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: abilityInfo
model: @stage model only|Method or attribute name: abilityInfo
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: currentHapModuleInfo
model: @stage model only|Method or attribute name: currentHapModuleInfo
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: config
model: @stage model only|Method or attribute name: config
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @stage model only|Method or attribute name: startAbility
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @stage model only|Method or attribute name: startAbility
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @stage model only|Method or attribute name: startAbility
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityByCall
model: @stage model only|Method or attribute name: startAbilityByCall
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityWithAccount
model: @stage model only|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityWithAccount
model: @stage model only|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityWithAccount
model: @stage model only|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityForResult
model: @stage model only|Method or attribute name: startAbilityForResult
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityForResult
model: @stage model only|Method or attribute name: startAbilityForResult
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityForResult
model: @stage model only|Method or attribute name: startAbilityForResult
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityForResultWithAccount
model: @stage model only|Method or attribute name: startAbilityForResultWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityForResultWithAccount
model: @stage model only|Method or attribute name: startAbilityForResultWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityForResultWithAccount
model: @stage model only|Method or attribute name: startAbilityForResultWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbility
model: @stage model only|Method or attribute name: startServiceExtensionAbility
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbility
model: @stage model only|Method or attribute name: startServiceExtensionAbility
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @stage model only|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @stage model only|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbility
model: @stage model only|Method or attribute name: stopServiceExtensionAbility
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbility
model: @stage model only|Method or attribute name: stopServiceExtensionAbility
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @stage model only|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @stage model only|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: terminateSelf
model: @stage model only|Method or attribute name: terminateSelf
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: terminateSelf
model: @stage model only|Method or attribute name: terminateSelf
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: terminateSelfWithResult
model: @stage model only|Method or attribute name: terminateSelfWithResult
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: terminateSelfWithResult
model: @stage model only|Method or attribute name: terminateSelfWithResult
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: connectServiceExtensionAbility
model: @stage model only|Method or attribute name: connectServiceExtensionAbility
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: connectServiceExtensionAbilityWithAccount
model: @stage model only|Method or attribute name: connectServiceExtensionAbilityWithAccount
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: disconnectServiceExtensionAbility
model: @stage model only|Method or attribute name: disconnectServiceExtensionAbility
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: disconnectServiceExtensionAbility
model: @stage model only|Method or attribute name: disconnectServiceExtensionAbility
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: setMissionLabel
model: @stage model only|Method or attribute name: setMissionLabel
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: setMissionLabel
model: @stage model only|Method or attribute name: setMissionLabel
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: setMissionIcon
model: @stage model only|Method or attribute name: setMissionIcon
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: setMissionIcon
model: @stage model only|Method or attribute name: setMissionIcon
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: requestPermissionsFromUser
model: @stage model only|Method or attribute name: requestPermissionsFromUser
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: requestPermissionsFromUser
model: @stage model only|Method or attribute name: requestPermissionsFromUser
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: restoreWindowStage
model: @stage model only|Method or attribute name: restoreWindowStage
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Method or attribute name: isTerminating
model: @stage model only|Method or attribute name: isTerminating
model: @Stage Model Only|AbilityContext.d.ts| +|Model changed|Class name: ApplicationContext
model: @stage model only|Class name: ApplicationContext
model: @Stage Model Only|ApplicationContext.d.ts| +|Model changed|Method or attribute name: on_abilityLifecycle
model: @stage model only|Method or attribute name: on_abilityLifecycle
model: @Stage Model Only|ApplicationContext.d.ts| +|Model changed|Method or attribute name: off_abilityLifecycle
model: @stage model only|Method or attribute name: off_abilityLifecycle
model: @Stage Model Only|ApplicationContext.d.ts| +|Model changed|Method or attribute name: off_abilityLifecycle
model: @stage model only|Method or attribute name: off_abilityLifecycle
model: @Stage Model Only|ApplicationContext.d.ts| +|Model changed|Method or attribute name: on_environment
model: @stage model only|Method or attribute name: on_environment
model: @Stage Model Only|ApplicationContext.d.ts| +|Model changed|Method or attribute name: off_environment
model: @stage model only|Method or attribute name: off_environment
model: @Stage Model Only|ApplicationContext.d.ts| +|Model changed|Method or attribute name: off_environment
model: @stage model only|Method or attribute name: off_environment
model: @Stage Model Only|ApplicationContext.d.ts| +|Model changed|Method or attribute name: getProcessRunningInformation
model: @stage model only|Method or attribute name: getProcessRunningInformation
model: @Stage Model Only|ApplicationContext.d.ts| +|Model changed|Method or attribute name: getProcessRunningInformation
model: @stage model only|Method or attribute name: getProcessRunningInformation
model: @Stage Model Only|ApplicationContext.d.ts| +|Model changed|Method or attribute name: killProcessesBySelf
model: @stage model only|Method or attribute name: killProcessesBySelf
model: @Stage Model Only|ApplicationContext.d.ts| +|Model changed|Method or attribute name: killProcessesBySelf
model: @stage model only|Method or attribute name: killProcessesBySelf
model: @Stage Model Only|ApplicationContext.d.ts| +|Model changed|Class name: Context
model: @stage model only|Class name: Context
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: resourceManager
model: @stage model only|Method or attribute name: resourceManager
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: applicationInfo
model: @stage model only|Method or attribute name: applicationInfo
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: cacheDir
model: @stage model only|Method or attribute name: cacheDir
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: tempDir
model: @stage model only|Method or attribute name: tempDir
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: filesDir
model: @stage model only|Method or attribute name: filesDir
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: databaseDir
model: @stage model only|Method or attribute name: databaseDir
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: preferencesDir
model: @stage model only|Method or attribute name: preferencesDir
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: bundleCodeDir
model: @stage model only|Method or attribute name: bundleCodeDir
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: distributedFilesDir
model: @stage model only|Method or attribute name: distributedFilesDir
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: eventHub
model: @stage model only|Method or attribute name: eventHub
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: area
model: @stage model only|Method or attribute name: area
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: createBundleContext
model: @stage model only|Method or attribute name: createBundleContext
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: createModuleContext
model: @stage model only|Method or attribute name: createModuleContext
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: createModuleContext
model: @stage model only|Method or attribute name: createModuleContext
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: getApplicationContext
model: @stage model only|Method or attribute name: getApplicationContext
model: @Stage Model Only|Context.d.ts| +|Model changed|Class name: AreaMode
model: @stage model only|Class name: AreaMode
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: EL1
model: @stage model only|Method or attribute name: EL1
model: @Stage Model Only|Context.d.ts| +|Model changed|Method or attribute name: EL2
model: @stage model only|Method or attribute name: EL2
model: @Stage Model Only|Context.d.ts| +|Model changed|Class name: EventHub
model: @stage model only|Class name: EventHub
model: @Stage Model Only|EventHub.d.ts| +|Model changed|Method or attribute name: on
model: @stage model only|Method or attribute name: on
model: @Stage Model Only|EventHub.d.ts| +|Model changed|Method or attribute name: off
model: @stage model only|Method or attribute name: off
model: @Stage Model Only|EventHub.d.ts| +|Model changed|Method or attribute name: emit
model: @stage model only|Method or attribute name: emit
model: @Stage Model Only|EventHub.d.ts| +|Model changed|Class name: FormExtensionContext
model: @stage model only|Class name: FormExtensionContext
model: @Stage Model Only|FormExtensionContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @stage model only|Method or attribute name: startAbility
model: @Stage Model Only|FormExtensionContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @stage model only|Method or attribute name: startAbility
model: @Stage Model Only|FormExtensionContext.d.ts| +|Model changed|Class name: ServiceExtensionContext
model: @stage model only|Class name: ServiceExtensionContext
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @stage model only|Method or attribute name: startAbility
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @stage model only|Method or attribute name: startAbility
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @stage model only|Method or attribute name: startAbility
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startAbilityWithAccount
model: @stage model only|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startAbilityWithAccount
model: @stage model only|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startAbilityWithAccount
model: @stage model only|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbility
model: @stage model only|Method or attribute name: startServiceExtensionAbility
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbility
model: @stage model only|Method or attribute name: startServiceExtensionAbility
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @stage model only|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @stage model only|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbility
model: @stage model only|Method or attribute name: stopServiceExtensionAbility
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbility
model: @stage model only|Method or attribute name: stopServiceExtensionAbility
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @stage model only|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @stage model only|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: terminateSelf
model: @stage model only|Method or attribute name: terminateSelf
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: terminateSelf
model: @stage model only|Method or attribute name: terminateSelf
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: connectServiceExtensionAbility
model: @stage model only|Method or attribute name: connectServiceExtensionAbility
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: connectServiceExtensionAbilityWithAccount
model: @stage model only|Method or attribute name: connectServiceExtensionAbilityWithAccount
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: disconnectServiceExtensionAbility
model: @stage model only|Method or attribute name: disconnectServiceExtensionAbility
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: disconnectServiceExtensionAbility
model: @stage model only|Method or attribute name: disconnectServiceExtensionAbility
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Method or attribute name: startAbilityByCall
model: @stage model only|Method or attribute name: startAbilityByCall
model: @Stage Model Only|ServiceExtensionContext.d.ts| +|Model changed|Class name: UIAbilityContext
model: @stage model only|Class name: UIAbilityContext
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: abilityInfo
model: @stage model only|Method or attribute name: abilityInfo
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: currentHapModuleInfo
model: @stage model only|Method or attribute name: currentHapModuleInfo
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: config
model: @stage model only|Method or attribute name: config
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @stage model only|Method or attribute name: startAbility
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @stage model only|Method or attribute name: startAbility
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: startAbility
model: @stage model only|Method or attribute name: startAbility
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityByCall
model: @stage model only|Method or attribute name: startAbilityByCall
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityWithAccount
model: @stage model only|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityWithAccount
model: @stage model only|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityWithAccount
model: @stage model only|Method or attribute name: startAbilityWithAccount
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityForResult
model: @stage model only|Method or attribute name: startAbilityForResult
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityForResult
model: @stage model only|Method or attribute name: startAbilityForResult
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityForResult
model: @stage model only|Method or attribute name: startAbilityForResult
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityForResultWithAccount
model: @stage model only|Method or attribute name: startAbilityForResultWithAccount
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityForResultWithAccount
model: @stage model only|Method or attribute name: startAbilityForResultWithAccount
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: startAbilityForResultWithAccount
model: @stage model only|Method or attribute name: startAbilityForResultWithAccount
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbility
model: @stage model only|Method or attribute name: startServiceExtensionAbility
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbility
model: @stage model only|Method or attribute name: startServiceExtensionAbility
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @stage model only|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @stage model only|Method or attribute name: startServiceExtensionAbilityWithAccount
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbility
model: @stage model only|Method or attribute name: stopServiceExtensionAbility
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbility
model: @stage model only|Method or attribute name: stopServiceExtensionAbility
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @stage model only|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @stage model only|Method or attribute name: stopServiceExtensionAbilityWithAccount
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: terminateSelf
model: @stage model only|Method or attribute name: terminateSelf
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: terminateSelf
model: @stage model only|Method or attribute name: terminateSelf
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: terminateSelfWithResult
model: @stage model only|Method or attribute name: terminateSelfWithResult
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: terminateSelfWithResult
model: @stage model only|Method or attribute name: terminateSelfWithResult
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: connectServiceExtensionAbility
model: @stage model only|Method or attribute name: connectServiceExtensionAbility
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: connectServiceExtensionAbilityWithAccount
model: @stage model only|Method or attribute name: connectServiceExtensionAbilityWithAccount
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: disconnectServiceExtensionAbility
model: @stage model only|Method or attribute name: disconnectServiceExtensionAbility
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: disconnectServiceExtensionAbility
model: @stage model only|Method or attribute name: disconnectServiceExtensionAbility
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: setMissionLabel
model: @stage model only|Method or attribute name: setMissionLabel
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: setMissionLabel
model: @stage model only|Method or attribute name: setMissionLabel
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: setMissionIcon
model: @stage model only|Method or attribute name: setMissionIcon
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: setMissionIcon
model: @stage model only|Method or attribute name: setMissionIcon
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: requestPermissionsFromUser
model: @stage model only|Method or attribute name: requestPermissionsFromUser
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: requestPermissionsFromUser
model: @stage model only|Method or attribute name: requestPermissionsFromUser
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: restoreWindowStage
model: @stage model only|Method or attribute name: restoreWindowStage
model: @Stage Model Only|UIAbilityContext.d.ts| +|Model changed|Method or attribute name: isTerminating
model: @stage model only|Method or attribute name: isTerminating
model: @Stage Model Only|UIAbilityContext.d.ts| +|Access level changed|Method or attribute name: requestPermissionsFromUser
Access level: system API|Method or attribute name: requestPermissionsFromUser
Access level: public API|AbilityContext.d.ts| +|Access level changed|Method or attribute name: requestPermissionsFromUser
Access level: system API|Method or attribute name: requestPermissionsFromUser
Access level: public API|AbilityContext.d.ts| +|Access level changed|Method or attribute name: restoreWindowStage
Access level: system API|Method or attribute name: restoreWindowStage
Access level: public API|AbilityContext.d.ts| +|Access level changed|Method or attribute name: isTerminating
Access level: system API|Method or attribute name: isTerminating
Access level: public API|AbilityContext.d.ts| +|Access level changed|Method or attribute name: requestPermissionsFromUser
Access level: system API|Method or attribute name: requestPermissionsFromUser
Access level: public API|UIAbilityContext.d.ts| +|Access level changed|Method or attribute name: requestPermissionsFromUser
Access level: system API|Method or attribute name: requestPermissionsFromUser
Access level: public API|UIAbilityContext.d.ts| +|Access level changed|Method or attribute name: restoreWindowStage
Access level: system API|Method or attribute name: restoreWindowStage
Access level: public API|UIAbilityContext.d.ts| +|Access level changed|Method or attribute name: isTerminating
Access level: system API|Method or attribute name: isTerminating
Access level: public API|UIAbilityContext.d.ts| +|Access level changed|Method or attribute name: requestPermissionsFromUser
Access level: system API|Method or attribute name: requestPermissionsFromUser
Access level: public API|AbilityContext.d.ts| +|Access level changed|Method or attribute name: requestPermissionsFromUser
Access level: system API|Method or attribute name: requestPermissionsFromUser
Access level: public API|AbilityContext.d.ts| +|Access level changed|Method or attribute name: restoreWindowStage
Access level: system API|Method or attribute name: restoreWindowStage
Access level: public API|AbilityContext.d.ts| +|Access level changed|Method or attribute name: isTerminating
Access level: system API|Method or attribute name: isTerminating
Access level: public API|AbilityContext.d.ts| +|Access level changed|Method or attribute name: requestPermissionsFromUser
Access level: system API|Method or attribute name: requestPermissionsFromUser
Access level: public API|UIAbilityContext.d.ts| +|Access level changed|Method or attribute name: requestPermissionsFromUser
Access level: system API|Method or attribute name: requestPermissionsFromUser
Access level: public API|UIAbilityContext.d.ts| +|Access level changed|Method or attribute name: restoreWindowStage
Access level: system API|Method or attribute name: restoreWindowStage
Access level: public API|UIAbilityContext.d.ts| +|Access level changed|Method or attribute name: isTerminating
Access level: system API|Method or attribute name: isTerminating
Access level: public API|UIAbilityContext.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-account.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-account.md new file mode 100644 index 0000000000000000000000000000000000000000..37699bd7a87766e29a28490103a1b664dd713aa1 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-account.md @@ -0,0 +1,4 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Method or attribute name: setProperty
Function name: setProperty(request: SetPropertyRequest, callback: AsyncCallback): void;|@ohos.account.osAccount.d.ts| +|Added||Method or attribute name: setProperty
Function name: setProperty(request: SetPropertyRequest): Promise;|@ohos.account.osAccount.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-application.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-application.md new file mode 100644 index 0000000000000000000000000000000000000000..da0b90553cfe4376d44cf330796736e577351743 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-application.md @@ -0,0 +1,39 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Permission added|Method or attribute name: hangup
Permission: N/A|Method or attribute name: hangup
Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: hangup
Permission: N/A|Method or attribute name: hangup
Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: reject
Permission: N/A|Method or attribute name: reject
Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: reject
Permission: N/A|Method or attribute name: reject
Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: reject
Permission: N/A|Method or attribute name: reject
Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: reject
Permission: N/A|Method or attribute name: reject
Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: reject
Permission: N/A|Method or attribute name: reject
Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: holdCall
Permission: N/A|Method or attribute name: holdCall
Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: holdCall
Permission: N/A|Method or attribute name: holdCall
Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: unHoldCall
Permission: N/A|Method or attribute name: unHoldCall
Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: unHoldCall
Permission: N/A|Method or attribute name: unHoldCall
Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: switchCall
Permission: N/A|Method or attribute name: switchCall
Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: switchCall
Permission: N/A|Method or attribute name: switchCall
Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: getCallWaitingStatus
Permission: N/A|Method or attribute name: getCallWaitingStatus
Permission: ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: getCallWaitingStatus
Permission: N/A|Method or attribute name: getCallWaitingStatus
Permission: ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: setCallWaiting
Permission: N/A|Method or attribute name: setCallWaiting
Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: setCallWaiting
Permission: N/A|Method or attribute name: setCallWaiting
Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: on_callDetailsChange
Permission: N/A|Method or attribute name: on_callDetailsChange
Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: off_callDetailsChange
Permission: N/A|Method or attribute name: off_callDetailsChange
Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: on_callEventChange
Permission: N/A|Method or attribute name: on_callEventChange
Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: off_callEventChange
Permission: N/A|Method or attribute name: off_callEventChange
Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: on_callDisconnectedCause
Permission: N/A|Method or attribute name: on_callDisconnectedCause
Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: off_callDisconnectedCause
Permission: N/A|Method or attribute name: off_callDisconnectedCause
Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: on_mmiCodeResult
Permission: N/A|Method or attribute name: on_mmiCodeResult
Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: off_mmiCodeResult
Permission: N/A|Method or attribute name: off_mmiCodeResult
Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: getCallRestrictionStatus
Permission: N/A|Method or attribute name: getCallRestrictionStatus
Permission: ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: getCallRestrictionStatus
Permission: N/A|Method or attribute name: getCallRestrictionStatus
Permission: ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: setCallRestriction
Permission: N/A|Method or attribute name: setCallRestriction
Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: setCallRestriction
Permission: N/A|Method or attribute name: setCallRestriction
Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: getCallTransferInfo
Permission: N/A|Method or attribute name: getCallTransferInfo
Permission: ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: getCallTransferInfo
Permission: N/A|Method or attribute name: getCallTransferInfo
Permission: ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: setCallTransfer
Permission: N/A|Method or attribute name: setCallTransfer
Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: setCallTransfer
Permission: N/A|Method or attribute name: setCallTransfer
Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: enableImsSwitch
Permission: N/A|Method or attribute name: enableImsSwitch
Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: enableImsSwitch
Permission: N/A|Method or attribute name: enableImsSwitch
Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: disableImsSwitch
Permission: N/A|Method or attribute name: disableImsSwitch
Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: disableImsSwitch
Permission: N/A|Method or attribute name: disableImsSwitch
Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-arkui.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-arkui.md new file mode 100644 index 0000000000000000000000000000000000000000..911ac0f8147ccc775b03948bdf64ac4388fbdd93 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-arkui.md @@ -0,0 +1,3 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Method or attribute name: GridColInterface
Function name: (option?: GridColOptions): GridColAttribute;|grid_col.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-bundle.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-bundle.md new file mode 100644 index 0000000000000000000000000000000000000000..da0c1f884def44dd2d9e3a0a7e6b244bc694c64c --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-bundle.md @@ -0,0 +1,205 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Method or attribute name: bundleName
Function name: readonly bundleName: string;|@ohos.bundle.bundleMonitor.d.ts| +|Added||Method or attribute name: userId
Function name: readonly userId: number;|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.defaultAppManager
Class name: defaultAppManager|@ohos.bundle.defaultAppManager.d.ts| +|Added||Module name: ohos.bundle.defaultAppManager
Class name: ApplicationType|@ohos.bundle.defaultAppManager.d.ts| +|Added||Module name: ohos.bundle.defaultAppManager
Class name: ApplicationType
Method or attribute name: BROWSER|@ohos.bundle.defaultAppManager.d.ts| +|Added||Module name: ohos.bundle.defaultAppManager
Class name: ApplicationType
Method or attribute name: IMAGE|@ohos.bundle.defaultAppManager.d.ts| +|Added||Module name: ohos.bundle.defaultAppManager
Class name: ApplicationType
Method or attribute name: AUDIO|@ohos.bundle.defaultAppManager.d.ts| +|Added||Module name: ohos.bundle.defaultAppManager
Class name: ApplicationType
Method or attribute name: VIDEO|@ohos.bundle.defaultAppManager.d.ts| +|Added||Module name: ohos.bundle.defaultAppManager
Class name: ApplicationType
Method or attribute name: PDF|@ohos.bundle.defaultAppManager.d.ts| +|Added||Module name: ohos.bundle.defaultAppManager
Class name: ApplicationType
Method or attribute name: WORD|@ohos.bundle.defaultAppManager.d.ts| +|Added||Module name: ohos.bundle.defaultAppManager
Class name: ApplicationType
Method or attribute name: EXCEL|@ohos.bundle.defaultAppManager.d.ts| +|Added||Module name: ohos.bundle.defaultAppManager
Class name: ApplicationType
Method or attribute name: PPT|@ohos.bundle.defaultAppManager.d.ts| +|Added||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: metadata|abilityInfo.d.ts| +|Added||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: metadata|applicationInfo.d.ts| +|Added||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: iconResource|applicationInfo.d.ts| +|Added||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: labelResource|applicationInfo.d.ts| +|Added||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: descriptionResource|applicationInfo.d.ts| +|Added||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: appDistributionType|applicationInfo.d.ts| +|Added||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: appProvisionType|applicationInfo.d.ts| +|Added||Module name: bundleInfo
Class name: ReqPermissionDetail
Method or attribute name: reasonId|bundleInfo.d.ts| +|Added||Module name: dispatchInfo
Class name: DispatchInfo|dispatchInfo.d.ts| +|Added||Module name: dispatchInfo
Class name: DispatchInfo
Method or attribute name: version|dispatchInfo.d.ts| +|Added||Module name: elementName
Class name: ElementName
Method or attribute name: moduleName|elementName.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: bundleName|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: moduleName|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: name|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: labelId|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: descriptionId|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: iconId|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: isVisible|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: permissions|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: applicationInfo|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: metadata|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: enabled|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: readPermission|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: writePermission|extensionAbilityInfo.d.ts| +|Added||Module name: hapModuleInfo
Class name: HapModuleInfo
Method or attribute name: mainElementName|hapModuleInfo.d.ts| +|Added||Module name: hapModuleInfo
Class name: HapModuleInfo
Method or attribute name: metadata|hapModuleInfo.d.ts| +|Added||Module name: hapModuleInfo
Class name: HapModuleInfo
Method or attribute name: hashValue|hapModuleInfo.d.ts| +|Added||Module name: metadata
Class name: Metadata
Method or attribute name: name|metadata.d.ts| +|Added||Module name: metadata
Class name: Metadata
Method or attribute name: value|metadata.d.ts| +|Added||Module name: metadata
Class name: Metadata
Method or attribute name: resource|metadata.d.ts| +|Added||Module name: packInfo
Class name: BundlePackInfo|packInfo.d.ts| +|Added||Module name: packInfo
Class name: BundlePackInfo
Method or attribute name: packages|packInfo.d.ts| +|Added||Module name: packInfo
Class name: BundlePackInfo
Method or attribute name: summary|packInfo.d.ts| +|Added||Module name: packInfo
Class name: PackageConfig|packInfo.d.ts| +|Added||Module name: packInfo
Class name: PackageConfig
Method or attribute name: name|packInfo.d.ts| +|Added||Module name: packInfo
Class name: PackageConfig
Method or attribute name: moduleType|packInfo.d.ts| +|Added||Module name: packInfo
Class name: PackageConfig
Method or attribute name: deliveryWithInstall|packInfo.d.ts| +|Added||Module name: packInfo
Class name: PackageSummary|packInfo.d.ts| +|Added||Module name: packInfo
Class name: PackageSummary
Method or attribute name: app|packInfo.d.ts| +|Added||Module name: packInfo
Class name: PackageSummary
Method or attribute name: modules|packInfo.d.ts| +|Added||Module name: packInfo
Class name: BundleConfigInfo|packInfo.d.ts| +|Added||Module name: packInfo
Class name: BundleConfigInfo
Method or attribute name: bundleName|packInfo.d.ts| +|Added||Module name: packInfo
Class name: BundleConfigInfo
Method or attribute name: version|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleConfigInfo|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleConfigInfo
Method or attribute name: apiVersion|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleConfigInfo
Method or attribute name: distro|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleConfigInfo
Method or attribute name: abilities|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleDistroInfo|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleDistroInfo
Method or attribute name: deliveryWithInstall|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleDistroInfo
Method or attribute name: installationFree|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleDistroInfo
Method or attribute name: moduleName|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleDistroInfo
Method or attribute name: moduleType|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleAbilityInfo|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleAbilityInfo
Method or attribute name: name|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleAbilityInfo
Method or attribute name: label|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleAbilityInfo
Method or attribute name: visible|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleAbilityInfo
Method or attribute name: forms|packInfo.d.ts| +|Added||Module name: packInfo
Class name: AbilityFormInfo|packInfo.d.ts| +|Added||Module name: packInfo
Class name: AbilityFormInfo
Method or attribute name: name|packInfo.d.ts| +|Added||Module name: packInfo
Class name: AbilityFormInfo
Method or attribute name: type|packInfo.d.ts| +|Added||Module name: packInfo
Class name: AbilityFormInfo
Method or attribute name: updateEnabled|packInfo.d.ts| +|Added||Module name: packInfo
Class name: AbilityFormInfo
Method or attribute name: scheduledUpdateTime|packInfo.d.ts| +|Added||Module name: packInfo
Class name: AbilityFormInfo
Method or attribute name: updateDuration|packInfo.d.ts| +|Added||Module name: packInfo
Class name: Version|packInfo.d.ts| +|Added||Module name: packInfo
Class name: Version
Method or attribute name: minCompatibleVersionCode|packInfo.d.ts| +|Added||Module name: packInfo
Class name: Version
Method or attribute name: name|packInfo.d.ts| +|Added||Module name: packInfo
Class name: Version
Method or attribute name: code|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ApiVersion|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ApiVersion
Method or attribute name: releaseType|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ApiVersion
Method or attribute name: compatible|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ApiVersion
Method or attribute name: target|packInfo.d.ts| +|Added||Method or attribute name: permissionName
Function name: readonly permissionName: string;|permissionDef.d.ts| +|Added||Method or attribute name: grantMode
Function name: readonly grantMode: number;|permissionDef.d.ts| +|Added||Method or attribute name: labelId
Function name: readonly labelId: number;|permissionDef.d.ts| +|Added||Method or attribute name: descriptionId
Function name: readonly descriptionId: number;|permissionDef.d.ts| +|Added||Module name: shortcutInfo
Class name: ShortcutWant
Method or attribute name: targetModule|shortcutInfo.d.ts| +|Deleted|Module name: ohos.bundle
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_WITH_EXTENSION_ABILITY||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_WITH_HASH_VALUE||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: BundleFlag
Method or attribute name: GET_APPLICATION_INFO_WITH_CERTIFICATE_FINGERPRINT||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionFlag||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionFlag
Method or attribute name: GET_EXTENSION_INFO_DEFAULT||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionFlag
Method or attribute name: GET_EXTENSION_INFO_WITH_PERMISSION||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionFlag
Method or attribute name: GET_EXTENSION_INFO_WITH_APPLICATION||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionFlag
Method or attribute name: GET_EXTENSION_INFO_WITH_METADATA||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: DisplayOrientation
Method or attribute name: LANDSCAPE_INVERTED||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: DisplayOrientation
Method or attribute name: PORTRAIT_INVERTED||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_LANDSCAPE||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_PORTRAIT||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_RESTRICTED||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_LANDSCAPE_RESTRICTED||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_PORTRAIT_RESTRICTED||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: DisplayOrientation
Method or attribute name: LOCKED||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionAbilityType||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: FORM||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: WORK_SCHEDULER||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: INPUT_METHOD||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: SERVICE||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: ACCESSIBILITY||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: DATA_SHARE||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: FILE_SHARE||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: STATIC_SUBSCRIBER||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: WALLPAPER||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: BACKUP||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: WINDOW||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: ENTERPRISE_ADMIN||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: THUMBNAIL||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: PREVIEW||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: UNSPECIFIED||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: UpgradeFlag||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: UpgradeFlag
Method or attribute name: NOT_UPGRADE||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: UpgradeFlag
Method or attribute name: SINGLE_UPGRADE||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: UpgradeFlag
Method or attribute name: RELATION_UPGRADE||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: SupportWindowMode||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: SupportWindowMode
Method or attribute name: FULL_SCREEN||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: SupportWindowMode
Method or attribute name: SPLIT||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: SupportWindowMode
Method or attribute name: FLOATING||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: queryExtensionAbilityInfos||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: queryExtensionAbilityInfos||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: queryExtensionAbilityInfos||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: setModuleUpgradeFlag||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: setModuleUpgradeFlag||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: isModuleRemovable||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: isModuleRemovable||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getBundlePackInfo||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getBundlePackInfo||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getAbilityInfo||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getAbilityInfo||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getDispatcherVersion||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getDispatcherVersion||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getAbilityLabel||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getAbilityLabel||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getAbilityIcon||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getAbilityIcon||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getProfileByAbility||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getProfileByAbility||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getProfileByExtensionAbility||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getProfileByExtensionAbility||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: setDisposedStatus||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: setDisposedStatus||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getDisposedStatus||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getDisposedStatus||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getApplicationInfoSync||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getApplicationInfoSync||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getBundleInfoSync||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.bundle
Class name: bundle
Method or attribute name: getBundleInfoSync||@ohos.bundle.d.ts| +|Deleted|Module name: ohos.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfo||@ohos.distributedBundle.d.ts| +|Deleted|Module name: ohos.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfo||@ohos.distributedBundle.d.ts| +|Deleted|Module name: ohos.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfos||@ohos.distributedBundle.d.ts| +|Deleted|Module name: ohos.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfos||@ohos.distributedBundle.d.ts| +|Deleted|Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: supportWindowMode||abilityInfo.d.ts| +|Deleted|Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: maxWindowRatio||abilityInfo.d.ts| +|Deleted|Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: minWindowRatio||abilityInfo.d.ts| +|Deleted|Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: maxWindowWidth||abilityInfo.d.ts| +|Deleted|Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: minWindowWidth||abilityInfo.d.ts| +|Deleted|Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: maxWindowHeight||abilityInfo.d.ts| +|Deleted|Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: minWindowHeight||abilityInfo.d.ts| +|Deleted|Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: labelIndex||applicationInfo.d.ts| +|Deleted|Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: iconIndex||applicationInfo.d.ts| +|Deleted|Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: fingerprint||applicationInfo.d.ts| +|Deleted|Module name: bundleInfo
Class name: BundleInfo
Method or attribute name: extensionAbilityInfo||bundleInfo.d.ts| +|Deleted|Module name: bundleInstaller
Class name: HashParam||bundleInstaller.d.ts| +|Deleted|Module name: bundleInstaller
Class name: HashParam
Method or attribute name: moduleName||bundleInstaller.d.ts| +|Deleted|Module name: bundleInstaller
Class name: HashParam
Method or attribute name: hashValue||bundleInstaller.d.ts| +|Deleted|Module name: bundleInstaller
Class name: InstallParam
Method or attribute name: hashParams||bundleInstaller.d.ts| +|Deleted|Module name: bundleInstaller
Class name: InstallParam
Method or attribute name: crowdtestDeadline||bundleInstaller.d.ts| +|Deleted|Module name: dispatchInfo
Class name: DispatchInfo
Method or attribute name: dispatchAPI||dispatchInfo.d.ts| +|Deleted|Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: extensionAbilityType||extensionAbilityInfo.d.ts| +|Deleted|Module name: hapModuleInfo
Class name: HapModuleInfo
Method or attribute name: extensionAbilityInfo||hapModuleInfo.d.ts| +|Deleted|Module name: packInfo
Class name: PackageConfig
Method or attribute name: deviceType||packInfo.d.ts| +|Deleted|Module name: packInfo
Class name: ExtensionAbilities||packInfo.d.ts| +|Deleted|Module name: packInfo
Class name: ExtensionAbilities
Method or attribute name: name||packInfo.d.ts| +|Deleted|Module name: packInfo
Class name: ExtensionAbilities
Method or attribute name: forms||packInfo.d.ts| +|Deleted|Module name: packInfo
Class name: ModuleConfigInfo
Method or attribute name: deviceType||packInfo.d.ts| +|Deleted|Module name: packInfo
Class name: ModuleConfigInfo
Method or attribute name: extensionAbilities||packInfo.d.ts| +|Deleted|Module name: packInfo
Class name: ModuleDistroInfo
Method or attribute name: mainAbility||packInfo.d.ts| +|Deleted|Module name: packInfo
Class name: AbilityFormInfo
Method or attribute name: supportDimensions||packInfo.d.ts| +|Deleted|Module name: packInfo
Class name: AbilityFormInfo
Method or attribute name: defaultDimension||packInfo.d.ts| +|Deleted|Module name: packInfo
Class name: BundlePackFlag||packInfo.d.ts| +|Deleted|Module name: packInfo
Class name: BundlePackFlag
Method or attribute name: GET_PACK_INFO_ALL||packInfo.d.ts| +|Deleted|Module name: packInfo
Class name: BundlePackFlag
Method or attribute name: GET_PACKAGES||packInfo.d.ts| +|Deleted|Module name: packInfo
Class name: BundlePackFlag
Method or attribute name: GET_BUNDLE_SUMMARY||packInfo.d.ts| +|Deleted|Module name: packInfo
Class name: BundlePackFlag
Method or attribute name: GET_MODULE_SUMMARY||packInfo.d.ts| +|Deleted|Module name: shortcutInfo
Class name: ShortcutInfo
Method or attribute name: moduleName||shortcutInfo.d.ts| +|Deprecated version changed|Class name: innerBundleManager
Deprecated version: N/A|Class name: innerBundleManager
Deprecated version: 9
New API: ohos.bundle.launcherBundleManager |@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Class name: CheckPackageHasInstalledResponse
Deprecated version: N/A|Class name: CheckPackageHasInstalledResponse
Deprecated version: 9|@system.package.d.ts| +|Deprecated version changed|Class name: CheckPackageHasInstalledOptions
Deprecated version: N/A|Class name: CheckPackageHasInstalledOptions
Deprecated version: 9|@system.package.d.ts| +|Deprecated version changed|Class name: Package
Deprecated version: N/A|Class name: Package
Deprecated version: 9|@system.package.d.ts| +|Deprecated version changed|Method or attribute name: hasInstalled
Deprecated version: N/A|Method or attribute name: hasInstalled
Deprecated version: 9|@system.package.d.ts| +|Deprecated version changed|Class name: ExtensionAbilityInfo
Deprecated version: 9|Class name: ExtensionAbilityInfo
Deprecated version: N/A|extensionAbilityInfo.d.ts| +|Deprecated version changed|Class name: Metadata
Deprecated version: 9|Class name: Metadata
Deprecated version: N/A|metadata.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-communication.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-communication.md new file mode 100644 index 0000000000000000000000000000000000000000..87a7fee55c4b77eb0406837af62c8215b838c43f --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-communication.md @@ -0,0 +1,52 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.net.connection
Class name: connection
Method or attribute name: isDefaultNetMetered|@ohos.net.connection.d.ts| +|Added||Module name: ohos.net.connection
Class name: connection
Method or attribute name: isDefaultNetMetered|@ohos.net.connection.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: bind|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: bind|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getRemoteAddress|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getRemoteAddress|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getState|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getState|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: setExtraOptions|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: setExtraOptions|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: on_message|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: off_message|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: on_connect|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: on_close|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: off_connect|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: off_close|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: on_error|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: off_error|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: close|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: close|@ohos.net.socket.d.ts| +|Added||Method or attribute name: cert
Function name: cert?: string;|@ohos.net.socket.d.ts| +|Added||Method or attribute name: key
Function name: key?: string;|@ohos.net.socket.d.ts| +|Added||Method or attribute name: NDEF_FORMATABLE
Function name: const NDEF_FORMATABLE = 7;|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: ndef|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: ndef
Method or attribute name: makeUriRecord|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: ndef
Method or attribute name: makeTextRecord|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: ndef
Method or attribute name: makeMimeRecord|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: ndef
Method or attribute name: makeExternalRecord|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: ndef
Method or attribute name: createNdefMessage|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: ndef
Method or attribute name: createNdefMessage|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: ndef
Method or attribute name: messageToBytes|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.rpc
Class name: IRemoteObject
Method or attribute name: getDescriptor|@ohos.rpc.d.ts| +|Added||Method or attribute name: scan
Function name: function scan(): void;|@ohos.wifiManager.d.ts| +|Deleted|Module name: nfctech
Class name: NdefMessage
Method or attribute name: makeUriRecord||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefMessage
Method or attribute name: makeTextRecord||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefMessage
Method or attribute name: makeMimeRecord||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefMessage
Method or attribute name: makeExternalRecord||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefMessage
Method or attribute name: messageToBytes||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefTag
Method or attribute name: createNdefMessage||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefTag
Method or attribute name: createNdefMessage||nfctech.d.ts| +|Access level changed|Class name: WifiInfoElem
Access level: system API|Class name: WifiInfoElem
Access level: public API|@ohos.wifiManager.d.ts| +|Access level changed|Method or attribute name: eid
Access level: system API|Method or attribute name: eid
Access level: public API|@ohos.wifiManager.d.ts| +|Access level changed|Method or attribute name: content
Access level: system API|Method or attribute name: content
Access level: public API|@ohos.wifiManager.d.ts| +|Permission deleted|Method or attribute name: connect
Permission: ohos.permission.INTERNET|Method or attribute name: connect
Permission: N/A|@ohos.net.socket.d.ts| +|Permission deleted|Method or attribute name: connect
Permission: ohos.permission.INTERNET|Method or attribute name: connect
Permission: N/A|@ohos.net.socket.d.ts| +|Permission deleted|Method or attribute name: send
Permission: ohos.permission.INTERNET|Method or attribute name: send
Permission: N/A|@ohos.net.socket.d.ts| +|Permission deleted|Method or attribute name: send
Permission: ohos.permission.INTERNET|Method or attribute name: send
Permission: N/A|@ohos.net.socket.d.ts| +|Access level changed|Class name: WifiInfoElem
Access level: system API|Class name: WifiInfoElem
Access level: public API|@ohos.wifiManager.d.ts| +|Access level changed|Method or attribute name: eid
Access level: system API|Method or attribute name: eid
Access level: public API|@ohos.wifiManager.d.ts| +|Access level changed|Method or attribute name: content
Access level: system API|Method or attribute name: content
Access level: public API|@ohos.wifiManager.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-compiler-and-runtime.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-compiler-and-runtime.md new file mode 100644 index 0000000000000000000000000000000000000000..f2c2ae1ee7efaade386cff38805268d445ba66cf --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-compiler-and-runtime.md @@ -0,0 +1,29 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value: string, key: string, searchParams: this) => void, thisArg?: Object): void;|@ohos.url.d.ts| +|Added||Method or attribute name: replaceAllElements
Function name: replaceAllElements(callbackFn: (value: T, index?: number, arrlist?: ArrayList) => T,

thisArg?: Object): void;|@ohos.util.ArrayList.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value: T, index?: number, arrlist?: ArrayList) => void,

thisArg?: Object): void;|@ohos.util.ArrayList.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value: T, index?: number, deque?: Deque) => void,

thisArg?: Object): void;|@ohos.util.Deque.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value?: V, key?: K, map?: HashMap) => void,

thisArg?: Object): void;|@ohos.util.HashMap.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value?: T, key?: T, set?: HashSet) => void,

thisArg?: Object): void;|@ohos.util.HashSet.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value?: V, key?: K, map?: LightWeightMap) => void,

thisArg?: Object): void;|@ohos.util.LightWeightMap.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value?: T, key?: T, set?: LightWeightSet) => void,

thisArg?: Object): void;|@ohos.util.LightWeightSet.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value: T, index?: number, LinkedList?: LinkedList) => void,

thisArg?: Object): void;|@ohos.util.LinkedList.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value: T, index?: number, List?: List) => void,

thisArg?: Object): void;|@ohos.util.List.d.ts| +|Added||Method or attribute name: replaceAllElements
Function name: replaceAllElements(callbackFn: (value: T, index?: number, list?: List) => T,

thisArg?: Object): void;|@ohos.util.List.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value: T, index?: number, PlainArray?: PlainArray) => void,

thisArg?: Object): void;|@ohos.util.PlainArray.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value: T, index?: number, Queue?: Queue) => void,

thisArg?: Object): void;|@ohos.util.Queue.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value: T, index?: number, stack?: Stack) => void,

thisArg?: Object): void;|@ohos.util.Stack.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value?: V, key?: K, map?: TreeMap) => void,

thisArg?: Object): void;|@ohos.util.TreeMap.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value?: T, key?: T, set?: TreeSet) => void,

thisArg?: Object): void;|@ohos.util.TreeSet.d.ts| +|Added||Method or attribute name: replaceAllElements
Function name: replaceAllElements(callbackFn: (value: T, index?: number, vector?: Vector) => T,

thisArg?: Object): void;|@ohos.util.Vector.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value: T, index?: number, vector?: Vector) => void,

thisArg?: Object): void;|@ohos.util.Vector.d.ts| +|Added||Module name: ohos.worker
Class name: MessageEvents|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: MessageEvents
Method or attribute name: data|@ohos.worker.d.ts| +|Added||Method or attribute name: onmessage
Function name: onmessage?: (this: ThreadWorkerGlobalScope, ev: MessageEvents) => void;|@ohos.worker.d.ts| +|Added||Method or attribute name: onmessageerror
Function name: onmessageerror?: (this: ThreadWorkerGlobalScope, ev: MessageEvents) => void;|@ohos.worker.d.ts| +|Added||Method or attribute name: onmessage
Function name: onmessage?: (event: MessageEvents) => void;|@ohos.worker.d.ts| +|Added||Method or attribute name: onmessageerror
Function name: onmessageerror?: (event: MessageEvents) => void;|@ohos.worker.d.ts| +|Deprecated version changed|Class name: Vector
Deprecated version: N/A|Class name: Vector
Deprecated version: 9
New API: ohos.util.ArrayList |@ohos.util.Vector.d.ts| +|Deprecated version changed|Class name: Worker
Deprecated version: N/A|Class name: Worker
Deprecated version: 9
New API: ohos.worker.ThreadWorker |@ohos.worker.d.ts| +|Initial version changed|Class name: Vector
Initial version: |Class name: Vector
Initial version: 8|@ohos.util.Vector.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-customization.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-customization.md new file mode 100644 index 0000000000000000000000000000000000000000..dcbdde363d7da796f6a1cdea3566cd6de4348538 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-customization.md @@ -0,0 +1,82 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: EnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: EnterpriseInfo
Method or attribute name: name|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: EnterpriseInfo
Method or attribute name: description|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: AdminType|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: AdminType
Method or attribute name: ADMIN_TYPE_NORMAL|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: AdminType
Method or attribute name: ADMIN_TYPE_SUPER|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: ManagedEvent|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: ManagedEvent
Method or attribute name: MANAGED_EVENT_BUNDLE_ADDED|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: ManagedEvent
Method or attribute name: MANAGED_EVENT_BUNDLE_REMOVED|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: enableAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: enableAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: enableAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: disableAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: disableAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: disableAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: disableSuperAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: disableSuperAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: isAdminEnabled|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: isAdminEnabled|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: isAdminEnabled|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: getEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: getEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: setEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: setEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: isSuperAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: isSuperAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: subscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: subscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: unsubscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: unsubscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.dateTimeManager
Class name: dateTimeManager|@ohos.enterprise.dateTimeManager.d.ts| +|Added||Module name: ohos.enterprise.dateTimeManager
Class name: dateTimeManager
Method or attribute name: setDateTime|@ohos.enterprise.dateTimeManager.d.ts| +|Added||Module name: ohos.enterprise.dateTimeManager
Class name: dateTimeManager
Method or attribute name: setDateTime|@ohos.enterprise.dateTimeManager.d.ts| +|Added||Module name: ohos.enterprise.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|Added||Module name: ohos.enterprise.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility
Method or attribute name: onAdminEnabled|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|Added||Module name: ohos.enterprise.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility
Method or attribute name: onAdminDisabled|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|Added||Module name: ohos.enterprise.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility
Method or attribute name: onBundleAdded|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|Added||Module name: ohos.enterprise.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility
Method or attribute name: onBundleRemoved|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|Deleted|Module name: ohos.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility||@ohos.EnterpriseAdminExtensionAbility.d.ts| +|Deleted|Module name: ohos.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility
Method or attribute name: onAdminEnabled||@ohos.EnterpriseAdminExtensionAbility.d.ts| +|Deleted|Module name: ohos.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility
Method or attribute name: onAdminDisabled||@ohos.EnterpriseAdminExtensionAbility.d.ts| +|Deleted|Module name: ohos.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility
Method or attribute name: onBundleAdded||@ohos.EnterpriseAdminExtensionAbility.d.ts| +|Deleted|Module name: ohos.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility
Method or attribute name: onBundleRemoved||@ohos.EnterpriseAdminExtensionAbility.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: EnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: EnterpriseInfo
Method or attribute name: name||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: EnterpriseInfo
Method or attribute name: description||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: AdminType||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: AdminType
Method or attribute name: ADMIN_TYPE_NORMAL||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: AdminType
Method or attribute name: ADMIN_TYPE_SUPER||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: ManagedEvent||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: ManagedEvent
Method or attribute name: MANAGED_EVENT_BUNDLE_ADDED||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: ManagedEvent
Method or attribute name: MANAGED_EVENT_BUNDLE_REMOVED||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: enableAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: enableAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: enableAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: disableAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: disableAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: disableAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: disableSuperAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: disableSuperAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: isAdminEnabled||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: isAdminEnabled||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: isAdminEnabled||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: getEnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: getEnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: setEnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: setEnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: isSuperAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: isSuperAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: getDeviceSettingsManager||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: getDeviceSettingsManager||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: subscribeManagedEvent||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: subscribeManagedEvent||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: unsubscribeManagedEvent||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: unsubscribeManagedEvent||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: DeviceSettingsManager
Class name: DeviceSettingsManager||DeviceSettingsManager.d.ts| +|Deleted|Module name: DeviceSettingsManager
Class name: DeviceSettingsManager
Method or attribute name: setDateTime||DeviceSettingsManager.d.ts| +|Deleted|Module name: DeviceSettingsManager
Class name: DeviceSettingsManager
Method or attribute name: setDateTime||DeviceSettingsManager.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-dfx.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-dfx.md new file mode 100644 index 0000000000000000000000000000000000000000..f784853facf75d02cce4793ec5bd6d93cae42dbb --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-dfx.md @@ -0,0 +1,6 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Deprecated version changed|Class name: bytrace
Deprecated version: N/A|Class name: bytrace
Deprecated version: 8
Deprecated version: ohos.hiTraceMeter |@ohos.bytrace.d.ts| +|Deprecated version changed|Method or attribute name: startTrace
Deprecated version: N/A|Method or attribute name: startTrace
Deprecated version: 8
Deprecated version: ohos.hiTraceMeter.startTrace |@ohos.bytrace.d.ts| +|Deprecated version changed|Method or attribute name: finishTrace
Deprecated version: N/A|Method or attribute name: finishTrace
Deprecated version: 8
Deprecated version: ohos.hiTraceMeter.finishTrace |@ohos.bytrace.d.ts| +|Deprecated version changed|Method or attribute name: traceByValue
Deprecated version: N/A|Method or attribute name: traceByValue
Deprecated version: 8
Deprecated version: ohos.hiTraceMeter.traceByValue |@ohos.bytrace.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-distributed-data.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-distributed-data.md new file mode 100644 index 0000000000000000000000000000000000000000..99066f5d0e54b3811586940ad4c4417d439ff002 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-distributed-data.md @@ -0,0 +1,33 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.data.distributedData
Class name: KVStore
Method or attribute name: off_syncComplete|@ohos.data.distributedData.d.ts| +|Added||Module name: ohos.data.distributedData
Class name: SingleKVStore
Method or attribute name: on_dataChange|@ohos.data.distributedData.d.ts| +|Added||Module name: ohos.data.distributedData
Class name: SingleKVStore
Method or attribute name: off_dataChange|@ohos.data.distributedData.d.ts| +|Added||Module name: ohos.data.distributedData
Class name: DeviceKVStore
Method or attribute name: on_dataChange|@ohos.data.distributedData.d.ts| +|Added||Module name: ohos.data.distributedData
Class name: DeviceKVStore
Method or attribute name: off_dataChange|@ohos.data.distributedData.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: get|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: get|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSize|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSize|@ohos.data.distributedKVStore.d.ts| +|Access level changed|Method or attribute name: update
Access level: public API|Method or attribute name: update
Access level: system API|@ohos.data.rdb.d.ts| +|Access level changed|Method or attribute name: update
Access level: public API|Method or attribute name: update
Access level: system API|@ohos.data.rdb.d.ts| +|Access level changed|Method or attribute name: delete
Access level: public API|Method or attribute name: delete
Access level: system API|@ohos.data.rdb.d.ts| +|Access level changed|Method or attribute name: delete
Access level: public API|Method or attribute name: delete
Access level: system API|@ohos.data.rdb.d.ts| +|Access level changed|Method or attribute name: query
Access level: public API|Method or attribute name: query
Access level: system API|@ohos.data.rdb.d.ts| +|Access level changed|Method or attribute name: query
Access level: public API|Method or attribute name: query
Access level: system API|@ohos.data.rdb.d.ts| +|Access level changed|Method or attribute name: update
Access level: public API|Method or attribute name: update
Access level: system API|@ohos.data.rdb.d.ts| +|Access level changed|Method or attribute name: update
Access level: public API|Method or attribute name: update
Access level: system API|@ohos.data.rdb.d.ts| +|Access level changed|Method or attribute name: delete
Access level: public API|Method or attribute name: delete
Access level: system API|@ohos.data.rdb.d.ts| +|Access level changed|Method or attribute name: delete
Access level: public API|Method or attribute name: delete
Access level: system API|@ohos.data.rdb.d.ts| +|Access level changed|Method or attribute name: query
Access level: public API|Method or attribute name: query
Access level: system API|@ohos.data.rdb.d.ts| +|Access level changed|Method or attribute name: query
Access level: public API|Method or attribute name: query
Access level: system API|@ohos.data.rdb.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-file-management.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-file-management.md new file mode 100644 index 0000000000000000000000000000000000000000..ab0eeed26efa373887e106be48b39233d7db6b0a --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-file-management.md @@ -0,0 +1,80 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.file.fs
Class name: fileIo|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: READ_ONLY|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: WRITE_ONLY|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: READ_WRITE|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: CREATE|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: TRUNC|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: APPEND|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: NONBLOCK|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: DIR|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: NOFOLLOW|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: SYNC|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: open|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: open|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: open|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: openSync|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: read|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: read|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: read|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: readSync|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: stat|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: stat|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: statSync|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: truncate|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: truncate|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: truncate|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: truncateSync|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: write|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: write|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: write|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: writeSync|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: File|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: File
Method or attribute name: fd|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: ino|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: mode|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: uid|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: gid|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: size|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: atime|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: mtime|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: ctime|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: isBlockDevice|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: isCharacterDevice|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: isDirectory|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: isFIFO|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: isFile|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: isSocket|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: isSymbolicLink|@ohos.file.fs.d.ts| +|Deprecated version changed|Method or attribute name: ftruncate
Deprecated version: N/A|Method or attribute name: ftruncate
Deprecated version: 9
New API: ohos.file.fs.truncate |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: ftruncate
Deprecated version: N/A|Method or attribute name: ftruncate
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: ftruncate
Deprecated version: N/A|Method or attribute name: ftruncate
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: ftruncateSync
Deprecated version: N/A|Method or attribute name: ftruncateSync
Deprecated version: 9
New API: ohos.file.fs.truncateSync |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: fstat
Deprecated version: N/A|Method or attribute name: fstat
Deprecated version: 9
New API: ohos.file.fs.stat |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: fstat
Deprecated version: N/A|Method or attribute name: fstat
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: fstatSync
Deprecated version: N/A|Method or attribute name: fstatSync
Deprecated version: 9
New API: ohos.file.fs.statSync |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: open
Deprecated version: N/A|Method or attribute name: open
Deprecated version: 9
New API: ohos.file.fs.open |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: open
Deprecated version: N/A|Method or attribute name: open
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: open
Deprecated version: N/A|Method or attribute name: open
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: open
Deprecated version: N/A|Method or attribute name: open
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: openSync
Deprecated version: N/A|Method or attribute name: openSync
Deprecated version: 9
New API: ohos.file.fs.openSync |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: read
Deprecated version: N/A|Method or attribute name: read
Deprecated version: 9
New API: ohos.file.fs.read |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: read
Deprecated version: N/A|Method or attribute name: read
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: read
Deprecated version: N/A|Method or attribute name: read
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: readSync
Deprecated version: N/A|Method or attribute name: readSync
Deprecated version: 9
New API: ohos.file.fs.readSync |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: stat
Deprecated version: N/A|Method or attribute name: stat
Deprecated version: 9
New API: ohos.file.fs.stat |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: stat
Deprecated version: N/A|Method or attribute name: stat
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: statSync
Deprecated version: N/A|Method or attribute name: statSync
Deprecated version: 9
New API: ohos.file.fs.statSync |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: truncate
Deprecated version: N/A|Method or attribute name: truncate
Deprecated version: 9
New API: ohos.file.fs.truncate |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: truncate
Deprecated version: N/A|Method or attribute name: truncate
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: truncate
Deprecated version: N/A|Method or attribute name: truncate
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: truncateSync
Deprecated version: N/A|Method or attribute name: truncateSync
Deprecated version: 9
New API: ohos.file.fs.truncateSync |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: write
Deprecated version: N/A|Method or attribute name: write
Deprecated version: 9
New API: ohos.file.fs.write |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: write
Deprecated version: N/A|Method or attribute name: write
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: write
Deprecated version: N/A|Method or attribute name: write
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: writeSync
Deprecated version: N/A|Method or attribute name: writeSync
Deprecated version: 9
New API: ohos.file.fs.writeSync |@ohos.fileio.d.ts| +|Deprecated version changed|Class name: Stat
Deprecated version: N/A|Class name: Stat
Deprecated version: 9
New API: ohos.file.fs.Stat |@ohos.fileio.d.ts| +|Deprecated version changed|Class name: ReadOut
Deprecated version: N/A|Class name: ReadOut
Deprecated version: 9|@ohos.fileio.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-misc.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-misc.md new file mode 100644 index 0000000000000000000000000000000000000000..af37096bc83542467c70cf8c74d3b08bf55ab09e --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-misc.md @@ -0,0 +1,16 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: off_setSubtype|@ohos.inputmethodengine.d.ts| +|Deleted|Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_PERMISSION||@ohos.inputmethod.d.ts| +|Deleted|Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_PARAMCHECK||@ohos.inputmethod.d.ts| +|Deleted|Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_UNSUPPORTED||@ohos.inputmethod.d.ts| +|Deleted|Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_PACKAGEMANAGER||@ohos.inputmethod.d.ts| +|Deleted|Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_IMENGINE||@ohos.inputmethod.d.ts| +|Deleted|Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_IMCLIENT||@ohos.inputmethod.d.ts| +|Deleted|Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_KEYEVENT||@ohos.inputmethod.d.ts| +|Deleted|Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_CONFPERSIST||@ohos.inputmethod.d.ts| +|Deleted|Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_CONTROLLER||@ohos.inputmethod.d.ts| +|Deleted|Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_SETTINGS||@ohos.inputmethod.d.ts| +|Deleted|Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_IMMS||@ohos.inputmethod.d.ts| +|Deleted|Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: EXCEPTION_OTHERS||@ohos.inputmethod.d.ts| +|Deleted|Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: off||@ohos.inputmethodengine.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-msdp.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-msdp.md new file mode 100644 index 0000000000000000000000000000000000000000..f4930f7edda81964bd8aead705e9688f13c961c7 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-msdp.md @@ -0,0 +1,15 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.stationary
Class name: stationary|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: ActivityResponse|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: ActivityResponse
Method or attribute name: state|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: ActivityEvent|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: ActivityEvent
Method or attribute name: ENTER|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: ActivityEvent
Method or attribute name: EXIT|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: ActivityEvent
Method or attribute name: ENTER_EXIT|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: ActivityState|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: ActivityState
Method or attribute name: ENTER|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: ActivityState
Method or attribute name: EXIT|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: stationary
Method or attribute name: on|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: stationary
Method or attribute name: once|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: stationary
Method or attribute name: off|@ohos.stationary.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-multi-modal-input.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-multi-modal-input.md new file mode 100644 index 0000000000000000000000000000000000000000..8346246b41150d131845b1d234a9fe0553d685a6 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-multi-modal-input.md @@ -0,0 +1,3 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Method or attribute name: supportKeys
Function name: function supportKeys(deviceId: number, keys: Array, callback: AsyncCallback>): void;|@ohos.multimodalInput.inputDevice.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-notification.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-notification.md new file mode 100644 index 0000000000000000000000000000000000000000..2040bc735e4172bda9b0e1bda5d079e7d1f0a745 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-notification.md @@ -0,0 +1,19 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.notificationSubscribe
Class name: BundleOption|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: BundleOption
Method or attribute name: bundle|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: BundleOption
Method or attribute name: uid|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: NotificationKey|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: NotificationKey
Method or attribute name: id|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: NotificationKey
Method or attribute name: label|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: RemoveReason|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: RemoveReason
Method or attribute name: CLICK_REASON_REMOVE|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: RemoveReason
Method or attribute name: CANCEL_REASON_REMOVE|@ohos.notificationSubscribe.d.ts| +|Deleted|Module name: ohos.notificationManager
Class name: NotificationKey||@ohos.notificationManager.d.ts| +|Deleted|Module name: ohos.notificationManager
Class name: NotificationKey
Method or attribute name: id||@ohos.notificationManager.d.ts| +|Deleted|Module name: ohos.notificationManager
Class name: NotificationKey
Method or attribute name: label||@ohos.notificationManager.d.ts| +|Deleted|Module name: ohos.notificationManager
Class name: RemoveReason||@ohos.notificationManager.d.ts| +|Deleted|Module name: ohos.notificationManager
Class name: RemoveReason
Method or attribute name: CLICK_REASON_REMOVE||@ohos.notificationManager.d.ts| +|Deleted|Module name: ohos.notificationManager
Class name: RemoveReason
Method or attribute name: CANCEL_REASON_REMOVE||@ohos.notificationManager.d.ts| +|Access level changed|Class name: notificationSubscribe
Access level: public API|Class name: notificationSubscribe
Access level: system API|@ohos.notificationSubscribe.d.ts| +|Access level changed|Class name: notificationSubscribe
Access level: public API|Class name: notificationSubscribe
Access level: system API|@ohos.notificationSubscribe.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-resource-scheduler.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-resource-scheduler.md new file mode 100644 index 0000000000000000000000000000000000000000..1815ee876122f5c20f5de6bbef43fe6d3ff8fa02 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-resource-scheduler.md @@ -0,0 +1,39 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: DelaySuspendInfo|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: DelaySuspendInfo
Method or attribute name: requestId|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: DelaySuspendInfo
Method or attribute name: actualDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: cancelSuspendDelay|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: requestSuspendDelay|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: applyEfficiencyResources|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: resetAllEfficiencyResources|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: DATA_TRANSFER|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: AUDIO_PLAYBACK|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: AUDIO_RECORDING|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: LOCATION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: BLUETOOTH_INTERACTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: MULTI_DEVICE_CONNECTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: WIFI_INTERACTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: VOIP|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: TASK_KEEPING|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: CPU|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: COMMON_EVENT|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: TIMER|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: WORK_SCHEDULER|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: BLUETOOTH|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: GPS|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: AUDIO|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest
Method or attribute name: resourceTypes|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest
Method or attribute name: isApply|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest
Method or attribute name: timeOut|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest
Method or attribute name: isPersist|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest
Method or attribute name: isProcess|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest
Method or attribute name: reason|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: startBackgroundRunning
Deprecated version: N/A|Method or attribute name: startBackgroundRunning
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.startBackgroundRunning |@ohos.ability.particleAbility.d.ts| +|Deprecated version changed|Method or attribute name: startBackgroundRunning
Deprecated version: N/A|Method or attribute name: startBackgroundRunning
Deprecated version: 9|@ohos.ability.particleAbility.d.ts| +|Deprecated version changed|Method or attribute name: cancelBackgroundRunning
Deprecated version: N/A|Method or attribute name: cancelBackgroundRunning
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.stopBackgroundRunning |@ohos.ability.particleAbility.d.ts| +|Deprecated version changed|Method or attribute name: cancelBackgroundRunning
Deprecated version: N/A|Method or attribute name: cancelBackgroundRunning
Deprecated version: 9|@ohos.ability.particleAbility.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-sensor.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-sensor.md new file mode 100644 index 0000000000000000000000000000000000000000..e60ec4575102d652fdeb0cd0c941b9995cee14f4 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-sensor.md @@ -0,0 +1,4 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Method or attribute name: minSamplePeriod
Function name: minSamplePeriod:number;|@ohos.sensor.d.ts| +|Added||Method or attribute name: maxSamplePeriod
Function name: maxSamplePeriod:number;|@ohos.sensor.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-telephony.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-telephony.md new file mode 100644 index 0000000000000000000000000000000000000000..876f26e35590a3bb22715168703aec08c00e4ad1 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-telephony.md @@ -0,0 +1,10 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Permission deleted|Method or attribute name: getDefaultCellularDataSlotId
Permission: ohos.permission.GET_NETWORK_INFO|Method or attribute name: getDefaultCellularDataSlotId
Permission: N/A|@ohos.telephony.data.d.ts| +|Permission deleted|Method or attribute name: getDefaultCellularDataSlotId
Permission: ohos.permission.GET_NETWORK_INFO|Method or attribute name: getDefaultCellularDataSlotId
Permission: N/A|@ohos.telephony.data.d.ts| +|Permission deleted|Method or attribute name: getDefaultCellularDataSlotIdSync
Permission: ohos.permission.GET_NETWORK_INFO|Method or attribute name: getDefaultCellularDataSlotIdSync
Permission: N/A|@ohos.telephony.data.d.ts| +|Permission added|Method or attribute name: sendUpdateCellLocationRequest
Permission: N/A|Method or attribute name: sendUpdateCellLocationRequest
Permission: ohos.permission.LOCATION|@ohos.telephony.radio.d.ts| +|Permission added|Method or attribute name: sendUpdateCellLocationRequest
Permission: N/A|Method or attribute name: sendUpdateCellLocationRequest
Permission: ohos.permission.LOCATION|@ohos.telephony.radio.d.ts| +|Permission added|Method or attribute name: sendUpdateCellLocationRequest
Permission: N/A|Method or attribute name: sendUpdateCellLocationRequest
Permission: ohos.permission.LOCATION|@ohos.telephony.radio.d.ts| +|Permission added|Method or attribute name: getLockState
Permission: N/A|Method or attribute name: getLockState
Permission: ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.sim.d.ts| +|Permission added|Method or attribute name: getLockState
Permission: N/A|Method or attribute name: getLockState
Permission: ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.sim.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-unitest.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-unitest.md new file mode 100644 index 0000000000000000000000000000000000000000..ca564b4b393855b0ef6a8eb7d933603479baf513 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-unitest.md @@ -0,0 +1,6 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Method or attribute name: bundleName
Function name: bundleName?: string;|@ohos.uitest.d.ts| +|Added||Method or attribute name: title
Function name: title?: string;|@ohos.uitest.d.ts| +|Added||Method or attribute name: focused
Function name: focused?: boolean;|@ohos.uitest.d.ts| +|Added||Method or attribute name: actived
Function name: actived?: boolean;|@ohos.uitest.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-update.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-update.md new file mode 100644 index 0000000000000000000000000000000000000000..50bde3f3f511684b6dd85fade864276210913fb3 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-update.md @@ -0,0 +1,26 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Error code added||Method or attribute name: getOnlineUpdater
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: getRestorer
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: getLocalUpdater
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: checkNewVersion
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: getNewVersionInfo
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: getNewVersionDescription
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: getCurrentVersionInfo
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: getCurrentVersionDescription
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: getTaskInfo
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: download
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: resumeDownload
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: pauseDownload
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: upgrade
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: clearError
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: getUpgradePolicy
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: setUpgradePolicy
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: terminateUpgrade
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: on
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: off
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: factoryReset
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: verifyUpgradePackage
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: applyNewVersion
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: on
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: off
Error code: 201, 401, 11500104|@ohos.update.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-usb.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-usb.md new file mode 100644 index 0000000000000000000000000000000000000000..555514391ee392d3879efab39b89ecb7f73d2db8 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-usb.md @@ -0,0 +1,3 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Method or attribute name: controlTransfer
Function name: function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise;|@ohos.usb.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-user-iam.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-user-iam.md new file mode 100644 index 0000000000000000000000000000000000000000..e34392bcfdb492a9153ed1da0eaec1424e478cd2 --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-user-iam.md @@ -0,0 +1,23 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Deleted|Module name: ohos.userIAM.faceAuth
Class name: ResultCode||@ohos.userIAM.faceAuth.d.ts| +|Deleted|Module name: ohos.userIAM.faceAuth
Class name: ResultCode
Method or attribute name: FAIL||@ohos.userIAM.faceAuth.d.ts| +|Deleted|Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: INVALID_PARAMETERS||@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Class name: AuthenticationResult
Deprecated version: N/A|Class name: AuthenticationResult
Deprecated version: 8
New API: ohos.userIAM.userAuth.ResultCode |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Class name: Authenticator
Deprecated version: N/A|Class name: Authenticator
Deprecated version: 8|@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Class name: UserAuth
Deprecated version: N/A|Class name: UserAuth
Deprecated version: 9
New API: ohos.userIAM.userAuth.AuthInstance |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Class name: IUserAuthCallback
Deprecated version: N/A|Class name: IUserAuthCallback
Deprecated version: 9
New API: ohos.userIAM.userAuth.AuthEvent |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: SUCCESS
Deprecated version: N/A|Method or attribute name: SUCCESS
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: FAIL
Deprecated version: N/A|Method or attribute name: FAIL
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: GENERAL_ERROR
Deprecated version: N/A|Method or attribute name: GENERAL_ERROR
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: CANCELED
Deprecated version: N/A|Method or attribute name: CANCELED
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: TIMEOUT
Deprecated version: N/A|Method or attribute name: TIMEOUT
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_NOT_SUPPORT
Deprecated version: N/A|Method or attribute name: TYPE_NOT_SUPPORT
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: TRUST_LEVEL_NOT_SUPPORT
Deprecated version: N/A|Method or attribute name: TRUST_LEVEL_NOT_SUPPORT
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: BUSY
Deprecated version: N/A|Method or attribute name: BUSY
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: INVALID_PARAMETERS
Deprecated version: N/A|Method or attribute name: INVALID_PARAMETERS
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: LOCKED
Deprecated version: N/A|Method or attribute name: LOCKED
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: NOT_ENROLLED
Deprecated version: N/A|Method or attribute name: NOT_ENROLLED
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Initial version changed|Class name: IUserAuthCallback
Initial version: 6|Class name: IUserAuthCallback
Initial version: 8|@ohos.userIAM.userAuth.d.ts| +|Initial version changed|Class name: AuthEvent
Initial version: 6|Class name: AuthEvent
Initial version: 9|@ohos.userIAM.userAuth.d.ts| +|Error code added||Method or attribute name: setSurfaceId
Error code: 201, 202, 12700001|@ohos.userIAM.faceAuth.d.ts| diff --git a/en/release-notes/api-diff/monthly-202211/js-apidiff-web.md b/en/release-notes/api-diff/monthly-202211/js-apidiff-web.md new file mode 100644 index 0000000000000000000000000000000000000000..7eb7207795ade650d610ced84984fa239637364c --- /dev/null +++ b/en/release-notes/api-diff/monthly-202211/js-apidiff-web.md @@ -0,0 +1,6 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Method or attribute name: saveCookieAsync
Function name: static saveCookieAsync(): Promise;|@ohos.web.webview.d.ts| +|Added||Method or attribute name: saveCookieAsync
Function name: static saveCookieAsync(callback: AsyncCallback): void;|@ohos.web.webview.d.ts| +|Added||Method or attribute name: stop
Function name: stop(): void;|@ohos.web.webview.d.ts| +|Deleted|Module name: ohos.web.webview
Class name: WebCookieManager
Method or attribute name: saveCookieSync||@ohos.web.webview.d.ts| diff --git a/en/release-notes/api-change/v2.2-beta2/js-apidiff-v2.2-beta2.md b/en/release-notes/api-diff/v2.2-beta2/js-apidiff-v2.2-beta2.md similarity index 100% rename from en/release-notes/api-change/v2.2-beta2/js-apidiff-v2.2-beta2.md rename to en/release-notes/api-diff/v2.2-beta2/js-apidiff-v2.2-beta2.md diff --git a/en/release-notes/api-change/v2.2-beta2/native-apidiff-v2.2-beta2.md b/en/release-notes/api-diff/v2.2-beta2/native-apidiff-v2.2-beta2.md similarity index 100% rename from en/release-notes/api-change/v2.2-beta2/native-apidiff-v2.2-beta2.md rename to en/release-notes/api-diff/v2.2-beta2/native-apidiff-v2.2-beta2.md diff --git a/en/release-notes/api-change/v3.0-LTS/js-apidiff-v3.0-lts.md b/en/release-notes/api-diff/v3.0-LTS/js-apidiff-v3.0-lts.md similarity index 100% rename from en/release-notes/api-change/v3.0-LTS/js-apidiff-v3.0-lts.md rename to en/release-notes/api-diff/v3.0-LTS/js-apidiff-v3.0-lts.md diff --git a/en/release-notes/api-change/v3.1-Release/Readme-EN.md b/en/release-notes/api-diff/v3.1-Release/Readme-EN.md similarity index 69% rename from en/release-notes/api-change/v3.1-Release/Readme-EN.md rename to en/release-notes/api-diff/v3.1-Release/Readme-EN.md index e7465982e34f079913c30cf77dd1865e5f85a3e2..2f8c7d80bf5a500d3930ffa0ffc34dee8835057c 100644 --- a/en/release-notes/api-change/v3.1-Release/Readme-EN.md +++ b/en/release-notes/api-diff/v3.1-Release/Readme-EN.md @@ -4,4 +4,4 @@ This directory records the API changes in OpenHarmony 3.1 Release over OpenHarmo - [JS API Differences](js-apidiff-v3.1-release.md) - [Native API Differences](native-apidiff-v3.1-release.md) -- [Updates (OpenHarmony 3.1 Beta -> OpenHarmony 3.1 Release)](changelog-v3.1-release.md) +- [Updates (OpenHarmony 3.1 Beta -> OpenHarmony 3.1 Release)](../../changelogs/v3.1-Release/changelog-v3.1-release.md) diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-ability.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-ability.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-ability.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-ability.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-accessibility.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-accessibility.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-accessibility.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-accessibility.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-account.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-account.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-account.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-account.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-ace.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-ace.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-ace.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-ace.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-battery.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-battery.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-battery.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-battery.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-bundle.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-bundle.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-bundle.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-bundle.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-communicate.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-communicate.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-communicate.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-communicate.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-compiler-and-runtime.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-compiler-and-runtime.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-compiler-and-runtime.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-compiler-and-runtime.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-dfx.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-dfx.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-dfx.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-dfx.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-distributed-data.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-distributed-data.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-distributed-data.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-distributed-data.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-distributed-hardware.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-distributed-hardware.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-distributed-hardware.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-distributed-hardware.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-event-and-notification.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-event-and-notification.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-event-and-notification.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-event-and-notification.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-file-management.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-file-management.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-file-management.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-file-management.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-geolocation.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-geolocation.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-geolocation.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-geolocation.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-global.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-global.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-global.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-global.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-graphic.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-graphic.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-graphic.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-graphic.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-misc.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-misc.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-misc.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-misc.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-multi-modal-input.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-multi-modal-input.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-multi-modal-input.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-multi-modal-input.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-multimedia.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-multimedia.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-multimedia.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-multimedia.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-network.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-network.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-network.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-network.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-resource-scheduler.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-resource-scheduler.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-resource-scheduler.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-resource-scheduler.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-security.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-security.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-security.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-security.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-sensor.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-sensor.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-sensor.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-sensor.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-settings.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-settings.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-settings.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-settings.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-soft-bus.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-soft-bus.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-soft-bus.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-soft-bus.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-telephony.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-telephony.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-telephony.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-telephony.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-unitest.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-unitest.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-unitest.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-unitest.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-usb.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-usb.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-usb.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-usb.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-user-authentication.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-user-authentication.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-user-authentication.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-user-authentication.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-v3.1-release.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-v3.1-release.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-v3.1-release.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-v3.1-release.md diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-window.md b/en/release-notes/api-diff/v3.1-Release/js-apidiff-window.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/js-apidiff-window.md rename to en/release-notes/api-diff/v3.1-Release/js-apidiff-window.md diff --git a/en/release-notes/api-change/v3.1-Release/native-apidiff-v3.1-release.md b/en/release-notes/api-diff/v3.1-Release/native-apidiff-v3.1-release.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/native-apidiff-v3.1-release.md rename to en/release-notes/api-diff/v3.1-Release/native-apidiff-v3.1-release.md diff --git a/en/release-notes/api-change/v3.1-beta/changelog-v3.1-beta.md b/en/release-notes/api-diff/v3.1-beta/changelog-v3.1-beta.md similarity index 100% rename from en/release-notes/api-change/v3.1-beta/changelog-v3.1-beta.md rename to en/release-notes/api-diff/v3.1-beta/changelog-v3.1-beta.md diff --git a/en/release-notes/api-change/v3.1-beta/js-apidiff-v3.1-beta.md b/en/release-notes/api-diff/v3.1-beta/js-apidiff-v3.1-beta.md similarity index 100% rename from en/release-notes/api-change/v3.1-beta/js-apidiff-v3.1-beta.md rename to en/release-notes/api-diff/v3.1-beta/js-apidiff-v3.1-beta.md diff --git a/en/release-notes/api-change/v3.1-beta/native-apidiff-v3.1-beta.md b/en/release-notes/api-diff/v3.1-beta/native-apidiff-v3.1-beta.md similarity index 100% rename from en/release-notes/api-change/v3.1-beta/native-apidiff-v3.1-beta.md rename to en/release-notes/api-diff/v3.1-beta/native-apidiff-v3.1-beta.md diff --git a/en/release-notes/api-change/v3.2-beta1/Readme-EN.md b/en/release-notes/api-diff/v3.2-beta1/Readme-EN.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/Readme-EN.md rename to en/release-notes/api-diff/v3.2-beta1/Readme-EN.md diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-ability.md b/en/release-notes/api-diff/v3.2-beta1/js-apidiff-ability.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/js-apidiff-ability.md rename to en/release-notes/api-diff/v3.2-beta1/js-apidiff-ability.md diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-arkui.md b/en/release-notes/api-diff/v3.2-beta1/js-apidiff-arkui.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/js-apidiff-arkui.md rename to en/release-notes/api-diff/v3.2-beta1/js-apidiff-arkui.md diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-battery.md b/en/release-notes/api-diff/v3.2-beta1/js-apidiff-battery.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/js-apidiff-battery.md rename to en/release-notes/api-diff/v3.2-beta1/js-apidiff-battery.md diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-bundle.md b/en/release-notes/api-diff/v3.2-beta1/js-apidiff-bundle.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/js-apidiff-bundle.md rename to en/release-notes/api-diff/v3.2-beta1/js-apidiff-bundle.md diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-communicate.md b/en/release-notes/api-diff/v3.2-beta1/js-apidiff-communicate.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/js-apidiff-communicate.md rename to en/release-notes/api-diff/v3.2-beta1/js-apidiff-communicate.md diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-dfx.md b/en/release-notes/api-diff/v3.2-beta1/js-apidiff-dfx.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/js-apidiff-dfx.md rename to en/release-notes/api-diff/v3.2-beta1/js-apidiff-dfx.md diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-distributed-data.md b/en/release-notes/api-diff/v3.2-beta1/js-apidiff-distributed-data.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/js-apidiff-distributed-data.md rename to en/release-notes/api-diff/v3.2-beta1/js-apidiff-distributed-data.md diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-event-and-notification.md b/en/release-notes/api-diff/v3.2-beta1/js-apidiff-event-and-notification.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/js-apidiff-event-and-notification.md rename to en/release-notes/api-diff/v3.2-beta1/js-apidiff-event-and-notification.md diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-file-management.md b/en/release-notes/api-diff/v3.2-beta1/js-apidiff-file-management.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/js-apidiff-file-management.md rename to en/release-notes/api-diff/v3.2-beta1/js-apidiff-file-management.md diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-global.md b/en/release-notes/api-diff/v3.2-beta1/js-apidiff-global.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/js-apidiff-global.md rename to en/release-notes/api-diff/v3.2-beta1/js-apidiff-global.md diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-init.md b/en/release-notes/api-diff/v3.2-beta1/js-apidiff-init.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/js-apidiff-init.md rename to en/release-notes/api-diff/v3.2-beta1/js-apidiff-init.md diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-misc.md b/en/release-notes/api-diff/v3.2-beta1/js-apidiff-misc.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/js-apidiff-misc.md rename to en/release-notes/api-diff/v3.2-beta1/js-apidiff-misc.md diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-multi-modal-input.md b/en/release-notes/api-diff/v3.2-beta1/js-apidiff-multi-modal-input.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/js-apidiff-multi-modal-input.md rename to en/release-notes/api-diff/v3.2-beta1/js-apidiff-multi-modal-input.md diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-multimedia.md b/en/release-notes/api-diff/v3.2-beta1/js-apidiff-multimedia.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/js-apidiff-multimedia.md rename to en/release-notes/api-diff/v3.2-beta1/js-apidiff-multimedia.md diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-resource-scheduler.md b/en/release-notes/api-diff/v3.2-beta1/js-apidiff-resource-scheduler.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/js-apidiff-resource-scheduler.md rename to en/release-notes/api-diff/v3.2-beta1/js-apidiff-resource-scheduler.md diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-unitest.md b/en/release-notes/api-diff/v3.2-beta1/js-apidiff-unitest.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/js-apidiff-unitest.md rename to en/release-notes/api-diff/v3.2-beta1/js-apidiff-unitest.md diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-web.md b/en/release-notes/api-diff/v3.2-beta1/js-apidiff-web.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/js-apidiff-web.md rename to en/release-notes/api-diff/v3.2-beta1/js-apidiff-web.md diff --git a/en/release-notes/api-change/v3.2-beta1/js-apidiff-window.md b/en/release-notes/api-diff/v3.2-beta1/js-apidiff-window.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/js-apidiff-window.md rename to en/release-notes/api-diff/v3.2-beta1/js-apidiff-window.md diff --git a/en/release-notes/api-change/v3.2-beta1/native-apidiff-v3.2-beta.md b/en/release-notes/api-diff/v3.2-beta1/native-apidiff-v3.2-beta.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta1/native-apidiff-v3.2-beta.md rename to en/release-notes/api-diff/v3.2-beta1/native-apidiff-v3.2-beta.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-ability.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-ability.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-ability.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-ability.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-accessibility.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-accessibility.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-accessibility.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-accessibility.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-account.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-account.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-account.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-account.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-arkui.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-arkui.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-arkui.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-arkui.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-bundle.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-bundle.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-bundle.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-bundle.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-communicate.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-communicate.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-communicate.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-communicate.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-compiler-and-runtime.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-compiler-and-runtime.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-compiler-and-runtime.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-compiler-and-runtime.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-dfx.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-dfx.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-dfx.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-dfx.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-distributed-data.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-distributed-data.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-distributed-data.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-distributed-data.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-event-and-notification.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-event-and-notification.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-event-and-notification.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-event-and-notification.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-file-management.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-file-management.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-file-management.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-file-management.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-geolocation.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-geolocation.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-geolocation.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-geolocation.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-global.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-global.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-global.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-global.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-graphic.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-graphic.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-graphic.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-graphic.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-misc.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-misc.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-misc.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-misc.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-multi-modal-input.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-multi-modal-input.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-multi-modal-input.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-multi-modal-input.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-multimedia.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-multimedia.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-multimedia.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-multimedia.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-resource-scheduler.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-resource-scheduler.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-resource-scheduler.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-resource-scheduler.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-security.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-security.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-security.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-security.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-sensor.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-sensor.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-sensor.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-sensor.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-soft-bus.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-soft-bus.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-soft-bus.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-soft-bus.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-unitest.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-unitest.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-unitest.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-unitest.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-update.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-update.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-update.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-update.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-usb.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-usb.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-usb.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-usb.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-user-authentication.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-user-authentication.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-user-authentication.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-user-authentication.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-web.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-web.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-web.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-web.md diff --git a/en/release-notes/api-change/v3.2-beta2/js-apidiff-window.md b/en/release-notes/api-diff/v3.2-beta2/js-apidiff-window.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/js-apidiff-window.md rename to en/release-notes/api-diff/v3.2-beta2/js-apidiff-window.md diff --git a/en/release-notes/api-change/v3.2-beta2/native-apidiff-v3.2-beta2.md b/en/release-notes/api-diff/v3.2-beta2/native-apidiff-v3.2-beta2.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/native-apidiff-v3.2-beta2.md rename to en/release-notes/api-diff/v3.2-beta2/native-apidiff-v3.2-beta2.md diff --git a/en/release-notes/api-change/v3.2-beta3/Readme-EN.md b/en/release-notes/api-diff/v3.2-beta3/Readme-EN.md similarity index 93% rename from en/release-notes/api-change/v3.2-beta3/Readme-EN.md rename to en/release-notes/api-diff/v3.2-beta3/Readme-EN.md index 816c48c5c111e2d70682fd7125cae3563cc33a0a..caa19c0d47f00a067d0166fe1c59b04a35601899 100644 --- a/en/release-notes/api-change/v3.2-beta3/Readme-EN.md +++ b/en/release-notes/api-diff/v3.2-beta3/Readme-EN.md @@ -30,4 +30,4 @@ This directory records the API changes in OpenHarmony 3.2 Beta3 over OpenHarmony - [Update subsystem](js-apidiff-update.md) - [Web subsystem](js-apidiff-web.md) - [Window manager subsystem](js-apidiff-window.md) -- [Updates (OpenHarmony 3.2 Beta2 -> OpenHarmony 3.2 Beta3)](changelog-v3.2-beta3.md) +- [Updates (OpenHarmony 3.2 Beta2 -> OpenHarmony 3.2 Beta3)](../../changelogs/v3.2-beta3/changelog-v3.2-beta3.md) diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-ability.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-ability.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-ability.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-ability.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-accessibility.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-accessibility.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-accessibility.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-accessibility.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-account.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-account.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-account.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-account.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-arkui.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-arkui.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-arkui.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-arkui.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-battery.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-battery.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-battery.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-battery.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-bundle.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-bundle.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-bundle.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-bundle.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-communicate.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-communicate.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-communicate.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-communicate.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-compiler-and-runtime.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-compiler-and-runtime.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-compiler-and-runtime.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-compiler-and-runtime.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-dfx.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-dfx.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-dfx.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-dfx.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-distributed-data.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-distributed-data.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-distributed-data.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-distributed-data.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-distributed-hardware.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-distributed-hardware.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-distributed-hardware.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-distributed-hardware.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-event-and-notification.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-event-and-notification.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-event-and-notification.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-event-and-notification.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-file-management.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-file-management.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-file-management.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-file-management.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-global.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-global.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-global.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-global.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-graphic.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-graphic.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-graphic.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-graphic.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-misc.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-misc.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-misc.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-misc.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-multi-modal-input.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-multi-modal-input.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-multi-modal-input.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-multi-modal-input.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-multimedia.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-multimedia.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-multimedia.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-multimedia.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-resource-scheduler.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-resource-scheduler.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-resource-scheduler.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-resource-scheduler.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-security.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-security.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-security.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-security.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-sensor.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-sensor.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-sensor.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-sensor.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-soft-bus.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-soft-bus.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-soft-bus.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-soft-bus.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-telephony.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-telephony.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-telephony.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-telephony.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-unitest.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-unitest.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-unitest.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-unitest.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-update.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-update.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-update.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-update.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-web.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-web.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-web.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-web.md diff --git a/en/release-notes/api-change/v3.2-beta3/js-apidiff-window.md b/en/release-notes/api-diff/v3.2-beta3/js-apidiff-window.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/js-apidiff-window.md rename to en/release-notes/api-diff/v3.2-beta3/js-apidiff-window.md diff --git a/en/release-notes/api-diff/v3.2-beta4/Readme-EN.md b/en/release-notes/api-diff/v3.2-beta4/Readme-EN.md new file mode 100644 index 0000000000000000000000000000000000000000..945501b129f35e4e2e6e5ab5ae12e2326eb97dba --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/Readme-EN.md @@ -0,0 +1,35 @@ +# Readme + +* JS API Differences + - [Ability framework](js-apidiff-ability.md) + - [Accessibility subsystem](js-apidiff-accessibility.md) + - [Account subsystem](js-apidiff-account.md) + - [Application subsystem](js-apidiff-application.md) + - [ArkUI development framework](js-apidiff-arkui.md) + - [Power management subsystem](js-apidiff-battery.md) + - [Bundle management framework](js-apidiff-bundle.md) + - [Communication subsystem](js-apidiff-communication.md) + - [Utils subsystem](js-apidiff-compiler-and-runtime.md) + - [Customization subsystem](js-apidiff-customization.md) + - [DFX subsystem](js-apidiff-dfx.md) + - [Distributed data management subsystem](js-apidiff-distributed-data.md) + - [Distributed hardware subsystem](js-apidiff-distributed-hardware.md) + - [File management subsystem](js-apidiff-file-management.md) + - [Location subsystem](js-apidiff-geolocation.md) + - [Globalization subsystem](js-apidiff-global.md) + - [Misc services subsystem](js-apidiff-misc.md) + - [MSDP subsystem](js-apidiff-msdp.md) + - [Multimodal input subsystem](js-apidiff-multi-modal-input.md) + - [Multimedia subsystem](js-apidiff-multimedia.md) + - [Common event and notification subsystem](js-apidiff-notification.md) + - [Resource scheduler subsystem](js-apidiff-resource-scheduler.md) + - [Security subsystem](js-apidiff-security.md) + - [Pan-sensor subsystem](js-apidiff-sensor.md) + - [Startup subsystem](js-apidiff-start-up.md) + - [Telephony subsystem](js-apidiff-telephony.md) + - [Test subsystem](js-apidiff-unitest.md) + - [Update subsystem](js-apidiff-update.md) + - [USB subsystem](js-apidiff-usb.md) + - [User IAM subsystem](js-apidiff-user-iam.md) + - [Web subsystem](js-apidiff-web.md) + - [Window manager subsystem](js-apidiff-window.md) \ No newline at end of file diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-ability.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-ability.md new file mode 100644 index 0000000000000000000000000000000000000000..101b504739b1d0e57b8ef39f421edbbc6f5cf151 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-ability.md @@ -0,0 +1,762 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_APP_ACCOUNT_AUTH|@ohos.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.Ability
Class name: Ability|@ohos.app.ability.Ability.d.ts| +|Added||Module name: ohos.app.ability.Ability
Class name: Ability
Method or attribute name: onConfigurationUpdate|@ohos.app.ability.Ability.d.ts| +|Added||Module name: ohos.app.ability.Ability
Class name: Ability
Method or attribute name: onMemoryLevel|@ohos.app.ability.Ability.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: AbilityConstant|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LaunchParam|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LaunchParam
Method or attribute name: launchReason|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LaunchParam
Method or attribute name: lastExitReason|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LaunchReason|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LaunchReason
Method or attribute name: UNKNOWN|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LaunchReason
Method or attribute name: START_ABILITY|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LaunchReason
Method or attribute name: CALL|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LaunchReason
Method or attribute name: CONTINUATION|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LaunchReason
Method or attribute name: APP_RECOVERY|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LastExitReason|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LastExitReason
Method or attribute name: UNKNOWN|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LastExitReason
Method or attribute name: ABILITY_NOT_RESPONDING|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: LastExitReason
Method or attribute name: NORMAL|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnContinueResult|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnContinueResult
Method or attribute name: AGREE|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnContinueResult
Method or attribute name: REJECT|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnContinueResult
Method or attribute name: MISMATCH|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: MemoryLevel|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: MemoryLevel
Method or attribute name: MEMORY_LEVEL_MODERATE|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: MemoryLevel
Method or attribute name: MEMORY_LEVEL_LOW|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: MemoryLevel
Method or attribute name: MEMORY_LEVEL_CRITICAL|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: WindowMode|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: WindowMode
Method or attribute name: WINDOW_MODE_UNDEFINED|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: WindowMode
Method or attribute name: WINDOW_MODE_FULLSCREEN|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: WindowMode
Method or attribute name: WINDOW_MODE_SPLIT_PRIMARY|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: WindowMode
Method or attribute name: WINDOW_MODE_SPLIT_SECONDARY|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: WindowMode
Method or attribute name: WINDOW_MODE_FLOATING|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnSaveResult|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnSaveResult
Method or attribute name: ALL_AGREE|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnSaveResult
Method or attribute name: CONTINUATION_REJECT|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnSaveResult
Method or attribute name: CONTINUATION_MISMATCH|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnSaveResult
Method or attribute name: RECOVERY_AGREE|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnSaveResult
Method or attribute name: RECOVERY_REJECT|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: OnSaveResult
Method or attribute name: ALL_REJECT|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: StateType|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: StateType
Method or attribute name: CONTINUATION|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.AbilityConstant
Class name: StateType
Method or attribute name: APP_RECOVERY|@ohos.app.ability.AbilityConstant.d.ts| +|Added||Module name: ohos.app.ability.abilityDelegatorRegistry
Class name: abilityDelegatorRegistry|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|Added||Module name: ohos.app.ability.abilityDelegatorRegistry
Class name: abilityDelegatorRegistry
Method or attribute name: getAbilityDelegator|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|Added||Module name: ohos.app.ability.abilityDelegatorRegistry
Class name: abilityDelegatorRegistry
Method or attribute name: getArguments|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|Added||Module name: ohos.app.ability.abilityDelegatorRegistry
Class name: AbilityLifecycleState|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|Added||Module name: ohos.app.ability.abilityDelegatorRegistry
Class name: AbilityLifecycleState
Method or attribute name: UNINITIALIZED|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|Added||Module name: ohos.app.ability.abilityDelegatorRegistry
Class name: AbilityLifecycleState
Method or attribute name: CREATE|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|Added||Module name: ohos.app.ability.abilityDelegatorRegistry
Class name: AbilityLifecycleState
Method or attribute name: FOREGROUND|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|Added||Module name: ohos.app.ability.abilityDelegatorRegistry
Class name: AbilityLifecycleState
Method or attribute name: BACKGROUND|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|Added||Module name: ohos.app.ability.abilityDelegatorRegistry
Class name: AbilityLifecycleState
Method or attribute name: DESTROY|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback
Method or attribute name: onAbilityCreate|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback
Method or attribute name: onWindowStageCreate|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback
Method or attribute name: onWindowStageActive|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback
Method or attribute name: onWindowStageInactive|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback
Method or attribute name: onWindowStageDestroy|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback
Method or attribute name: onAbilityDestroy|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback
Method or attribute name: onAbilityForeground|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback
Method or attribute name: onAbilityBackground|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.AbilityLifecycleCallback
Class name: AbilityLifecycleCallback
Method or attribute name: onAbilityContinue|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: abilityManager|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: AbilityState|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: AbilityState
Method or attribute name: INITIAL|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: AbilityState
Method or attribute name: FOREGROUND|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: AbilityState
Method or attribute name: BACKGROUND|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: AbilityState
Method or attribute name: FOREGROUNDING|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: AbilityState
Method or attribute name: BACKGROUNDING|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: abilityManager
Method or attribute name: updateConfiguration|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: abilityManager
Method or attribute name: updateConfiguration|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: abilityManager
Method or attribute name: getAbilityRunningInfos|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: abilityManager
Method or attribute name: getAbilityRunningInfos|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: abilityManager
Method or attribute name: getExtensionRunningInfos|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: abilityManager
Method or attribute name: getExtensionRunningInfos|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: abilityManager
Method or attribute name: getTopAbility|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.abilityManager
Class name: abilityManager
Method or attribute name: getTopAbility|@ohos.app.ability.abilityManager.d.ts| +|Added||Module name: ohos.app.ability.AbilityStage
Class name: AbilityStage|@ohos.app.ability.AbilityStage.d.ts| +|Added||Module name: ohos.app.ability.AbilityStage
Class name: AbilityStage
Method or attribute name: context|@ohos.app.ability.AbilityStage.d.ts| +|Added||Module name: ohos.app.ability.AbilityStage
Class name: AbilityStage
Method or attribute name: onCreate|@ohos.app.ability.AbilityStage.d.ts| +|Added||Module name: ohos.app.ability.AbilityStage
Class name: AbilityStage
Method or attribute name: onAcceptWant|@ohos.app.ability.AbilityStage.d.ts| +|Added||Module name: ohos.app.ability.AbilityStage
Class name: AbilityStage
Method or attribute name: onConfigurationUpdate|@ohos.app.ability.AbilityStage.d.ts| +|Added||Module name: ohos.app.ability.AbilityStage
Class name: AbilityStage
Method or attribute name: onMemoryLevel|@ohos.app.ability.AbilityStage.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ApplicationState|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ApplicationState
Method or attribute name: STATE_CREATE|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ApplicationState
Method or attribute name: STATE_FOREGROUND|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ApplicationState
Method or attribute name: STATE_ACTIVE|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ApplicationState
Method or attribute name: STATE_BACKGROUND|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ApplicationState
Method or attribute name: STATE_DESTROY|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ProcessState|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ProcessState
Method or attribute name: STATE_CREATE|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ProcessState
Method or attribute name: STATE_FOREGROUND|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ProcessState
Method or attribute name: STATE_ACTIVE|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ProcessState
Method or attribute name: STATE_BACKGROUND|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: ProcessState
Method or attribute name: STATE_DESTROY|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: on_applicationState|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: on_applicationState|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: off_applicationState|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: off_applicationState|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: getForegroundApplications|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: getForegroundApplications|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: killProcessWithAccount|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: killProcessWithAccount|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: isRunningInStabilityTest|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: isRunningInStabilityTest|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: killProcessesByBundleName|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: killProcessesByBundleName|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: clearUpApplicationData|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: clearUpApplicationData|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: isRamConstrainedDevice|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: isRamConstrainedDevice|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: getAppMemorySize|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: getAppMemorySize|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: getProcessRunningInformation|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appManager
Class name: appManager
Method or attribute name: getProcessRunningInformation|@ohos.app.ability.appManager.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: appRecovery|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: RestartFlag|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: RestartFlag
Method or attribute name: ALWAYS_RESTART|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: RestartFlag
Method or attribute name: CPP_CRASH_NO_RESTART|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: RestartFlag
Method or attribute name: JS_CRASH_NO_RESTART|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: RestartFlag
Method or attribute name: APP_FREEZE_NO_RESTART|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: RestartFlag
Method or attribute name: NO_RESTART|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: SaveOccasionFlag|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: SaveOccasionFlag
Method or attribute name: SAVE_WHEN_ERROR|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: SaveOccasionFlag
Method or attribute name: SAVE_WHEN_BACKGROUND|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: SaveModeFlag|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: SaveModeFlag
Method or attribute name: SAVE_WITH_FILE|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: SaveModeFlag
Method or attribute name: SAVE_WITH_SHARED_MEMORY|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: appRecovery
Method or attribute name: enableAppRecovery|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: appRecovery
Method or attribute name: restartApp|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.appRecovery
Class name: appRecovery
Method or attribute name: saveAppState|@ohos.app.ability.appRecovery.d.ts| +|Added||Module name: ohos.app.ability.common
Class name: common|@ohos.app.ability.common.d.ts| +|Added||Module name: ohos.app.ability.common
Class name: AreaMode|@ohos.app.ability.common.d.ts| +|Added||Module name: ohos.app.ability.common
Class name: AreaMode
Method or attribute name: EL1|@ohos.app.ability.common.d.ts| +|Added||Module name: ohos.app.ability.common
Class name: AreaMode
Method or attribute name: EL2|@ohos.app.ability.common.d.ts| +|Added||Module name: ohos.app.ability.Configuration
Class name: Configuration|@ohos.app.ability.Configuration.d.ts| +|Added||Module name: ohos.app.ability.Configuration
Class name: Configuration
Method or attribute name: language|@ohos.app.ability.Configuration.d.ts| +|Added||Module name: ohos.app.ability.Configuration
Class name: Configuration
Method or attribute name: colorMode|@ohos.app.ability.Configuration.d.ts| +|Added||Module name: ohos.app.ability.Configuration
Class name: Configuration
Method or attribute name: direction|@ohos.app.ability.Configuration.d.ts| +|Added||Module name: ohos.app.ability.Configuration
Class name: Configuration
Method or attribute name: screenDensity|@ohos.app.ability.Configuration.d.ts| +|Added||Module name: ohos.app.ability.Configuration
Class name: Configuration
Method or attribute name: displayId|@ohos.app.ability.Configuration.d.ts| +|Added||Module name: ohos.app.ability.Configuration
Class name: Configuration
Method or attribute name: hasPointerDevice|@ohos.app.ability.Configuration.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ConfigurationConstant|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ColorMode|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ColorMode
Method or attribute name: COLOR_MODE_NOT_SET|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ColorMode
Method or attribute name: COLOR_MODE_DARK|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ColorMode
Method or attribute name: COLOR_MODE_LIGHT|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: Direction|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: Direction
Method or attribute name: DIRECTION_NOT_SET|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: Direction
Method or attribute name: DIRECTION_VERTICAL|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: Direction
Method or attribute name: DIRECTION_HORIZONTAL|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ScreenDensity|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ScreenDensity
Method or attribute name: SCREEN_DENSITY_NOT_SET|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ScreenDensity
Method or attribute name: SCREEN_DENSITY_SDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ScreenDensity
Method or attribute name: SCREEN_DENSITY_MDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ScreenDensity
Method or attribute name: SCREEN_DENSITY_LDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ScreenDensity
Method or attribute name: SCREEN_DENSITY_XLDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ScreenDensity
Method or attribute name: SCREEN_DENSITY_XXLDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.ConfigurationConstant
Class name: ScreenDensity
Method or attribute name: SCREEN_DENSITY_XXXLDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|Added||Module name: ohos.app.ability.contextConstant
Class name: contextConstant|@ohos.app.ability.contextConstant.d.ts| +|Added||Module name: ohos.app.ability.contextConstant
Class name: AreaMode|@ohos.app.ability.contextConstant.d.ts| +|Added||Module name: ohos.app.ability.contextConstant
Class name: AreaMode
Method or attribute name: EL1|@ohos.app.ability.contextConstant.d.ts| +|Added||Module name: ohos.app.ability.contextConstant
Class name: AreaMode
Method or attribute name: EL2|@ohos.app.ability.contextConstant.d.ts| +|Added||Module name: ohos.app.ability.EnvironmentCallback
Class name: EnvironmentCallback|@ohos.app.ability.EnvironmentCallback.d.ts| +|Added||Module name: ohos.app.ability.EnvironmentCallback
Class name: EnvironmentCallback
Method or attribute name: onConfigurationUpdated|@ohos.app.ability.EnvironmentCallback.d.ts| +|Added||Module name: ohos.app.ability.errorManager
Class name: errorManager|@ohos.app.ability.errorManager.d.ts| +|Added||Module name: ohos.app.ability.errorManager
Class name: errorManager
Method or attribute name: on_error|@ohos.app.ability.errorManager.d.ts| +|Added||Module name: ohos.app.ability.errorManager
Class name: errorManager
Method or attribute name: off_error|@ohos.app.ability.errorManager.d.ts| +|Added||Module name: ohos.app.ability.errorManager
Class name: errorManager
Method or attribute name: off_error|@ohos.app.ability.errorManager.d.ts| +|Added||Module name: ohos.app.ability.ExtensionAbility
Class name: ExtensionAbility|@ohos.app.ability.ExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: on_mission|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: off_mission|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: off_mission|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: getMissionInfo|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: getMissionInfo|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: getMissionInfos|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: getMissionInfos|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: getMissionSnapShot|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: getMissionSnapShot|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: getLowResolutionMissionSnapShot|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: getLowResolutionMissionSnapShot|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: lockMission|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: lockMission|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: unlockMission|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: unlockMission|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: clearMission|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: clearMission|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: clearAllMissions|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: clearAllMissions|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: moveMissionToFront|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: moveMissionToFront|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.missionManager
Class name: missionManager
Method or attribute name: moveMissionToFront|@ohos.app.ability.missionManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: quickFixManager|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: HapModuleQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: HapModuleQuickFixInfo
Method or attribute name: moduleName|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: HapModuleQuickFixInfo
Method or attribute name: originHapHash|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: HapModuleQuickFixInfo
Method or attribute name: quickFixFilePath|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: ApplicationQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: bundleName|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: bundleVersionCode|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: bundleVersionName|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: quickFixVersionCode|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: quickFixVersionName|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: hapModuleQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: quickFixManager
Method or attribute name: applyQuickFix|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: quickFixManager
Method or attribute name: applyQuickFix|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: quickFixManager
Method or attribute name: getApplicationQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.quickFixManager
Class name: quickFixManager
Method or attribute name: getApplicationQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility
Method or attribute name: context|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility
Method or attribute name: onCreate|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility
Method or attribute name: onDestroy|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility
Method or attribute name: onRequest|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility
Method or attribute name: onConnect|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility
Method or attribute name: onDisconnect|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility
Method or attribute name: onReconnect|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility
Method or attribute name: onConfigurationUpdate|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.ServiceExtensionAbility
Class name: ServiceExtensionAbility
Method or attribute name: onDump|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|Added||Module name: ohos.app.ability.StartOptions
Class name: StartOptions|@ohos.app.ability.StartOptions.d.ts| +|Added||Module name: ohos.app.ability.StartOptions
Class name: StartOptions
Method or attribute name: windowMode|@ohos.app.ability.StartOptions.d.ts| +|Added||Module name: ohos.app.ability.StartOptions
Class name: StartOptions
Method or attribute name: displayId|@ohos.app.ability.StartOptions.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: OnReleaseCallback|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: OnReleaseCallback
Method or attribute name: OnReleaseCallback|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: CalleeCallback|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: CalleeCallback
Method or attribute name: CalleeCallback|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Caller|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Caller
Method or attribute name: call|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Caller
Method or attribute name: callWithResult|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Caller
Method or attribute name: release|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Caller
Method or attribute name: onRelease|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Caller
Method or attribute name: on_release|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Caller
Method or attribute name: off_release|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Caller
Method or attribute name: off_release|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Callee|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Callee
Method or attribute name: on|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: Callee
Method or attribute name: off|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: context|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: launchWant|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: lastRequestWant|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: callee|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onCreate|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onWindowStageCreate|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onWindowStageDestroy|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onWindowStageRestore|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onDestroy|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onForeground|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onBackground|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onContinue|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onNewWant|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onDump|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.UIAbility
Class name: UIAbility
Method or attribute name: onSaveState|@ohos.app.ability.UIAbility.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: deviceId|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: bundleName|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: abilityName|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: uri|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: type|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: flags|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: action|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: parameters|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: entities|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.Want
Class name: Want
Method or attribute name: moduleName|@ohos.app.ability.Want.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getBundleName|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getBundleName|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getUid|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getUid|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getWant|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getWant|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: cancel|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: cancel|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: trigger|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: trigger|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: equal|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: equal|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getWantAgent|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getWantAgent|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getOperationType|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: wantAgent
Method or attribute name: getOperationType|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: ONE_TIME_FLAG|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: NO_BUILD_FLAG|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: CANCEL_PRESENT_FLAG|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: UPDATE_PRESENT_FLAG|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: CONSTANT_FLAG|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: REPLACE_ELEMENT|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: REPLACE_ACTION|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: REPLACE_URI|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: REPLACE_ENTITIES|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: WantAgentFlags
Method or attribute name: REPLACE_BUNDLE|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: OperationType|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: OperationType
Method or attribute name: UNKNOWN_TYPE|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: OperationType
Method or attribute name: START_ABILITY|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: OperationType
Method or attribute name: START_ABILITIES|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: OperationType
Method or attribute name: START_SERVICE|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: OperationType
Method or attribute name: SEND_COMMON_EVENT|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: CompleteData|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: CompleteData
Method or attribute name: info|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: CompleteData
Method or attribute name: want|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: CompleteData
Method or attribute name: finalCode|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: CompleteData
Method or attribute name: finalData|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantAgent
Class name: CompleteData
Method or attribute name: extraInfo|@ohos.app.ability.wantAgent.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: wantConstant|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_HOME|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_DIAL|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_SEARCH|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_WIRELESS_SETTINGS|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_MANAGE_APPLICATIONS_SETTINGS|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_APPLICATION_DETAILS_SETTINGS|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_SET_ALARM|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_SHOW_ALARMS|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_SNOOZE_ALARM|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_DISMISS_ALARM|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_DISMISS_TIMER|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_SEND_SMS|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_CHOOSE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_IMAGE_CAPTURE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_VIDEO_CAPTURE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_SELECT|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_SEND_DATA|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_SEND_MULTIPLE_DATA|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_SCAN_MEDIA_FILE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_VIEW_DATA|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_EDIT_DATA|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: INTENT_PARAMS_INTENT|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: INTENT_PARAMS_TITLE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_FILE_SELECT|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: PARAMS_STREAM|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_APP_ACCOUNT_AUTH|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_MARKET_DOWNLOAD|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: ACTION_MARKET_CROWDTEST|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: DLP_PARAMS_SANDBOX|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: DLP_PARAMS_BUNDLE_NAME|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: DLP_PARAMS_MODULE_NAME|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: DLP_PARAMS_ABILITY_NAME|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Action
Method or attribute name: DLP_PARAMS_INDEX|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Entity|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Entity
Method or attribute name: ENTITY_DEFAULT|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Entity
Method or attribute name: ENTITY_HOME|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Entity
Method or attribute name: ENTITY_VOICE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Entity
Method or attribute name: ENTITY_BROWSABLE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Entity
Method or attribute name: ENTITY_VIDEO|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_AUTH_READ_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_AUTH_WRITE_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_ABILITY_FORWARD_RESULT|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_ABILITY_CONTINUATION|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_NOT_OHOS_COMPONENT|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_ABILITY_FORM_ENABLED|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_AUTH_PERSISTABLE_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_AUTH_PREFIX_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_ABILITYSLICE_MULTI_DEVICE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_START_FOREGROUND_ABILITY|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_ABILITY_CONTINUATION_REVERSIBLE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_INSTALL_ON_DEMAND|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_INSTALL_WITH_BACKGROUND_MODE|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_ABILITY_CLEAR_MISSION|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_ABILITY_NEW_MISSION|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.ability.wantConstant
Class name: Flags
Method or attribute name: FLAG_ABILITY_MISSION_TOP|@ohos.app.ability.wantConstant.d.ts| +|Added||Module name: ohos.app.form.formBindingData
Class name: formBindingData|@ohos.app.form.formBindingData.d.ts| +|Added||Module name: ohos.app.form.formBindingData
Class name: formBindingData
Method or attribute name: createFormBindingData|@ohos.app.form.formBindingData.d.ts| +|Added||Module name: ohos.app.form.formBindingData
Class name: FormBindingData|@ohos.app.form.formBindingData.d.ts| +|Added||Module name: ohos.app.form.formBindingData
Class name: FormBindingData
Method or attribute name: data|@ohos.app.form.formBindingData.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: context|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: onAddForm|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: onCastToNormalForm|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: onUpdateForm|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: onChangeFormVisibility|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: onFormEvent|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: onRemoveForm|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: onConfigurationUpdate|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: onAcquireFormState|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.FormExtensionAbility
Class name: FormExtensionAbility
Method or attribute name: onShareForm|@ohos.app.form.FormExtensionAbility.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: deleteForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: deleteForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: releaseForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: releaseForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: releaseForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: requestForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: requestForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: castToNormalForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: castToNormalForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyVisibleForms|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyVisibleForms|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyInvisibleForms|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyInvisibleForms|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: enableFormsUpdate|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: enableFormsUpdate|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: disableFormsUpdate|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: disableFormsUpdate|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: isSystemReady|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: isSystemReady|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: getAllFormsInfo|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: getAllFormsInfo|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: getFormsInfo|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: getFormsInfo|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: getFormsInfo|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: deleteInvalidForms|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: deleteInvalidForms|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: acquireFormState|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: acquireFormState|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: on_formUninstall|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: off_formUninstall|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyFormsVisible|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyFormsVisible|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyFormsEnableUpdate|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyFormsEnableUpdate|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: shareForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: shareForm|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyFormsPrivacyProtected|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formHost
Class name: formHost
Method or attribute name: notifyFormsPrivacyProtected|@ohos.app.form.formHost.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: formInfo|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: bundleName|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: moduleName|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: abilityName|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: name|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: description|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: type|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: jsComponentName|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: colorMode|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: isDefault|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: updateEnabled|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: formVisibleNotify|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: relatedBundleName|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: scheduledUpdateTime|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: formConfigAbility|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: updateDuration|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: defaultDimension|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: supportDimensions|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfo
Method or attribute name: customizeData|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormType|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormType
Method or attribute name: JS|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormType
Method or attribute name: eTS|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: ColorMode|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: ColorMode
Method or attribute name: MODE_AUTO|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: ColorMode
Method or attribute name: MODE_DARK|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: ColorMode
Method or attribute name: MODE_LIGHT|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormStateInfo|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormStateInfo
Method or attribute name: formState|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormStateInfo
Method or attribute name: want|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormState|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormState
Method or attribute name: UNKNOWN|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormState
Method or attribute name: DEFAULT|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormState
Method or attribute name: READY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: IDENTITY_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: DIMENSION_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: NAME_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: MODULE_NAME_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: WIDTH_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: HEIGHT_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: TEMPORARY_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: BUNDLE_NAME_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: ABILITY_NAME_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormParam
Method or attribute name: DEVICE_ID_KEY|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfoFilter|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormInfoFilter
Method or attribute name: moduleName|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormDimension|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormDimension
Method or attribute name: Dimension_1_2|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormDimension
Method or attribute name: Dimension_2_2|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormDimension
Method or attribute name: Dimension_2_4|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormDimension
Method or attribute name: Dimension_4_4|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: FormDimension
Method or attribute name: Dimension_2_1|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: VisibilityType|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: VisibilityType
Method or attribute name: FORM_VISIBLE|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formInfo
Class name: VisibilityType
Method or attribute name: FORM_INVISIBLE|@ohos.app.form.formInfo.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: setFormNextRefreshTime|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: setFormNextRefreshTime|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: updateForm|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: updateForm|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: getFormsInfo|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: getFormsInfo|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: getFormsInfo|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: requestPublishForm|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: requestPublishForm|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: requestPublishForm|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: isRequestPublishFormSupported|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.app.form.formProvider
Class name: formProvider
Method or attribute name: isRequestPublishFormSupported|@ohos.app.form.formProvider.d.ts| +|Added||Module name: ohos.application.Ability
Class name: Ability
Method or attribute name: onSaveState|@ohos.application.Ability.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: LaunchReason
Method or attribute name: APP_RECOVERY|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: OnSaveResult|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: OnSaveResult
Method or attribute name: ALL_AGREE|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: OnSaveResult
Method or attribute name: CONTINUATION_REJECT|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: OnSaveResult
Method or attribute name: CONTINUATION_MISMATCH|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: OnSaveResult
Method or attribute name: RECOVERY_AGREE|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: OnSaveResult
Method or attribute name: RECOVERY_REJECT|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: OnSaveResult
Method or attribute name: ALL_REJECT|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: StateType|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: StateType
Method or attribute name: CONTINUATION|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.AbilityConstant
Class name: StateType
Method or attribute name: APP_RECOVERY|@ohos.application.AbilityConstant.d.ts| +|Added||Module name: ohos.application.ExtensionAbility
Class name: ExtensionAbility|@ohos.application.ExtensionAbility.d.ts| +|Added||Module name: ohos.application.ExtensionAbility
Class name: ExtensionAbility
Method or attribute name: onConfigurationUpdated|@ohos.application.ExtensionAbility.d.ts| +|Added||Module name: ohos.application.ExtensionAbility
Class name: ExtensionAbility
Method or attribute name: onMemoryLevel|@ohos.application.ExtensionAbility.d.ts| +|Added||Module name: ohos.application.formHost
Class name: formHost
Method or attribute name: notifyFormsPrivacyProtected|@ohos.application.formHost.d.ts| +|Added||Module name: ohos.application.formHost
Class name: formHost
Method or attribute name: notifyFormsPrivacyProtected|@ohos.application.formHost.d.ts| +|Added||Module name: ohos.application.formInfo
Class name: FormType
Method or attribute name: eTS|@ohos.application.formInfo.d.ts| +|Added||Module name: ohos.application.formInfo
Class name: VisibilityType|@ohos.application.formInfo.d.ts| +|Added||Module name: ohos.application.formInfo
Class name: VisibilityType
Method or attribute name: FORM_VISIBLE|@ohos.application.formInfo.d.ts| +|Added||Module name: ohos.application.formInfo
Class name: VisibilityType
Method or attribute name: FORM_INVISIBLE|@ohos.application.formInfo.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: registerContinuation|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: registerContinuation|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: registerContinuation|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: unregisterContinuation|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: unregisterContinuation|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: updateContinuationState|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: updateContinuationState|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: startContinuationDeviceManager|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: startContinuationDeviceManager|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.continuation.continuationManager
Class name: continuationManager
Method or attribute name: startContinuationDeviceManager|@ohos.continuation.continuationManager.d.ts| +|Added||Module name: ohos.distributedMissionManager
Class name: distributedMissionManager
Method or attribute name: continueMission|@ohos.distributedMissionManager.d.ts| +|Added||Module name: ohos.distributedMissionManager
Class name: distributedMissionManager
Method or attribute name: continueMission|@ohos.distributedMissionManager.d.ts| +|Added||Module name: AbilityContext
Class name: AbilityContext
Method or attribute name: connectServiceExtensionAbility|AbilityContext.d.ts| +|Added||Module name: AbilityContext
Class name: AbilityContext
Method or attribute name: connectServiceExtensionAbilityWithAccount|AbilityContext.d.ts| +|Added||Module name: AbilityContext
Class name: AbilityContext
Method or attribute name: disconnectServiceExtensionAbility|AbilityContext.d.ts| +|Added||Module name: AbilityContext
Class name: AbilityContext
Method or attribute name: disconnectServiceExtensionAbility|AbilityContext.d.ts| +|Added||Method or attribute name: waitAbilityMonitor
Function name: waitAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback): void;|abilityDelegator.d.ts| +|Added||Method or attribute name: waitAbilityMonitor
Function name: waitAbilityMonitor(monitor: AbilityMonitor, timeout: number, callback: AsyncCallback): void;|abilityDelegator.d.ts| +|Added||Method or attribute name: waitAbilityMonitor
Function name: waitAbilityMonitor(monitor: AbilityMonitor, timeout?: number): Promise;|abilityDelegator.d.ts| +|Added||Method or attribute name: getAbilityState
Function name: getAbilityState(ability: UIAbility): number;|abilityDelegator.d.ts| +|Added||Method or attribute name: getCurrentTopAbility
Function name: getCurrentTopAbility(callback: AsyncCallback): void;|abilityDelegator.d.ts| +|Added||Method or attribute name: getCurrentTopAbility
Function name: getCurrentTopAbility(): Promise|abilityDelegator.d.ts| +|Added||Method or attribute name: doAbilityForeground
Function name: doAbilityForeground(ability: UIAbility, callback: AsyncCallback): void;|abilityDelegator.d.ts| +|Added||Method or attribute name: doAbilityForeground
Function name: doAbilityForeground(ability: UIAbility): Promise;|abilityDelegator.d.ts| +|Added||Method or attribute name: doAbilityBackground
Function name: doAbilityBackground(ability: UIAbility, callback: AsyncCallback): void;|abilityDelegator.d.ts| +|Added||Method or attribute name: doAbilityBackground
Function name: doAbilityBackground(ability: UIAbility): Promise;|abilityDelegator.d.ts| +|Added||Module name: abilityMonitor
Class name: AbilityMonitor
Method or attribute name: moduleName|abilityMonitor.d.ts| +|Added||Method or attribute name: onAbilityCreate
Function name: onAbilityCreate?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|Added||Method or attribute name: onAbilityForeground
Function name: onAbilityForeground?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|Added||Method or attribute name: onAbilityBackground
Function name: onAbilityBackground?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|Added||Method or attribute name: onAbilityDestroy
Function name: onAbilityDestroy?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|Added||Method or attribute name: onWindowStageCreate
Function name: onWindowStageCreate?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|Added||Method or attribute name: onWindowStageRestore
Function name: onWindowStageRestore?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|Added||Method or attribute name: onWindowStageDestroy
Function name: onWindowStageDestroy?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: on_abilityLifecycle|ApplicationContext.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: off_abilityLifecycle|ApplicationContext.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: off_abilityLifecycle|ApplicationContext.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: on_environment|ApplicationContext.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: off_environment|ApplicationContext.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: off_environment|ApplicationContext.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: getProcessRunningInformation|ApplicationContext.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: getProcessRunningInformation|ApplicationContext.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: killProcessesBySelf|ApplicationContext.d.ts| +|Added||Module name: ApplicationContext
Class name: ApplicationContext
Method or attribute name: killProcessesBySelf|ApplicationContext.d.ts| +|Added||Module name: ContinueCallback
Class name: ContinueCallback|ContinueCallback.d.ts| +|Added||Module name: ContinueCallback
Class name: ContinueCallback
Method or attribute name: onContinueDone|ContinueCallback.d.ts| +|Added||Module name: ContinueDeviceInfo
Class name: ContinueDeviceInfo|ContinueDeviceInfo.d.ts| +|Added||Module name: ContinueDeviceInfo
Class name: ContinueDeviceInfo
Method or attribute name: srcDeviceId|ContinueDeviceInfo.d.ts| +|Added||Module name: ContinueDeviceInfo
Class name: ContinueDeviceInfo
Method or attribute name: dstDeviceId|ContinueDeviceInfo.d.ts| +|Added||Module name: ContinueDeviceInfo
Class name: ContinueDeviceInfo
Method or attribute name: missionId|ContinueDeviceInfo.d.ts| +|Added||Module name: ContinueDeviceInfo
Class name: ContinueDeviceInfo
Method or attribute name: wantParam|ContinueDeviceInfo.d.ts| +|Added||Module name: MissionListener
Class name: MissionListener
Method or attribute name: onMissionLabelUpdated|MissionListener.d.ts| +|Added||Module name: ServiceExtensionContext
Class name: ServiceExtensionContext
Method or attribute name: connectServiceExtensionAbility|ServiceExtensionContext.d.ts| +|Added||Module name: ServiceExtensionContext
Class name: ServiceExtensionContext
Method or attribute name: connectServiceExtensionAbilityWithAccount|ServiceExtensionContext.d.ts| +|Added||Module name: ServiceExtensionContext
Class name: ServiceExtensionContext
Method or attribute name: disconnectServiceExtensionAbility|ServiceExtensionContext.d.ts| +|Added||Module name: ServiceExtensionContext
Class name: ServiceExtensionContext
Method or attribute name: disconnectServiceExtensionAbility|ServiceExtensionContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: abilityInfo|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: currentHapModuleInfo|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: config|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityByCall|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityForResult|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityForResult|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityForResult|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityForResultWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityForResultWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startAbilityForResultWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startServiceExtensionAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startServiceExtensionAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: startServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: stopServiceExtensionAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: stopServiceExtensionAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: stopServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: stopServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: terminateSelf|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: terminateSelf|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: terminateSelfWithResult|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: terminateSelfWithResult|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: connectServiceExtensionAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: connectServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: disconnectServiceExtensionAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: disconnectServiceExtensionAbility|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: setMissionLabel|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: setMissionLabel|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: setMissionIcon|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: setMissionIcon|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: requestPermissionsFromUser|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: requestPermissionsFromUser|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: restoreWindowStage|UIAbilityContext.d.ts| +|Added||Module name: UIAbilityContext
Class name: UIAbilityContext
Method or attribute name: isTerminating|UIAbilityContext.d.ts| +|Deleted|Module name: ohos.application.context
Class name: AreaMode||@ohos.application.context.d.ts| +|Deleted|Module name: ohos.application.context
Class name: AreaMode
Method or attribute name: EL1||@ohos.application.context.d.ts| +|Deleted|Module name: ohos.application.context
Class name: AreaMode
Method or attribute name: EL2||@ohos.application.context.d.ts| +|Deleted|Module name: ohos.application.formInfo
Class name: VisibilityType||@ohos.application.formInfo.d.ts| +|Deleted|Module name: ohos.application.formInfo
Class name: VisibilityType
Method or attribute name: FORM_VISIBLE||@ohos.application.formInfo.d.ts| +|Deleted|Module name: ohos.application.formInfo
Class name: VisibilityType
Method or attribute name: FORM_INVISIBLE||@ohos.application.formInfo.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: quickFixManager||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: HapModuleQuickFixInfo||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: HapModuleQuickFixInfo
Method or attribute name: moduleName||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: HapModuleQuickFixInfo
Method or attribute name: originHapHash||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: HapModuleQuickFixInfo
Method or attribute name: quickFixFilePath||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: ApplicationQuickFixInfo||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: bundleName||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: bundleVersionCode||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: bundleVersionName||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: quickFixVersionCode||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: quickFixVersionName||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: ApplicationQuickFixInfo
Method or attribute name: hapModuleQuickFixInfo||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: quickFixManager
Method or attribute name: applyQuickFix||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: quickFixManager
Method or attribute name: applyQuickFix||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: quickFixManager
Method or attribute name: getApplicationQuickFixInfo||@ohos.application.quickFixManager.d.ts| +|Deleted|Module name: ohos.application.quickFixManager
Class name: quickFixManager
Method or attribute name: getApplicationQuickFixInfo||@ohos.application.quickFixManager.d.ts| +|Model changed|Class name: ability
model: @Stage Model Only|Class name: ability
model: @FA Model Only|@ohos.ability.ability.d.ts| +|Access level changed|Method or attribute name: startAbilityByCall
Access level: public API|Method or attribute name: startAbilityByCall
Access level: system API|AbilityContext.d.ts| +|Deprecated version changed|Class name: wantConstant
Deprecated version: N/A|Class name: wantConstant
Deprecated version: 9
New API: ohos.app.ability.wantConstant |@ohos.ability.wantConstant.d.ts| +|Deprecated version changed|Method or attribute name: ACTION_APP_ACCOUNT_OAUTH
Deprecated version: N/A|Method or attribute name: ACTION_APP_ACCOUNT_OAUTH
Deprecated version: 9
New API: wantConstant.Action|@ohos.ability.wantConstant.d.ts| +|Deprecated version changed|Class name: OnReleaseCallBack
Deprecated version: N/A|Class name: OnReleaseCallBack
Deprecated version: 9
New API: ohos.app.ability.UIAbility |@ohos.application.Ability.d.ts| +|Deprecated version changed|Class name: CalleeCallBack
Deprecated version: N/A|Class name: CalleeCallBack
Deprecated version: 9
New API: ohos.app.ability.UIAbility |@ohos.application.Ability.d.ts| +|Deprecated version changed|Class name: Caller
Deprecated version: N/A|Class name: Caller
Deprecated version: 9
New API: ohos.app.ability.UIAbility |@ohos.application.Ability.d.ts| +|Deprecated version changed|Class name: Callee
Deprecated version: N/A|Class name: Callee
Deprecated version: 9
New API: ohos.app.ability.UIAbility |@ohos.application.Ability.d.ts| +|Deprecated version changed|Class name: Ability
Deprecated version: N/A|Class name: Ability
Deprecated version: 9
New API: ohos.app.ability.UIAbility |@ohos.application.Ability.d.ts| +|Deprecated version changed|Class name: AbilityConstant
Deprecated version: N/A|Class name: AbilityConstant
Deprecated version: 9
New API: ohos.app.ability.AbilityConstant |@ohos.application.AbilityConstant.d.ts| +|Deprecated version changed|Class name: abilityDelegatorRegistry
Deprecated version: N/A|Class name: abilityDelegatorRegistry
Deprecated version: 9
New API: ohos.app.ability.abilityDelegatorRegistry |@ohos.application.abilityDelegatorRegistry.d.ts| +|Deprecated version changed|Class name: AbilityLifecycleCallback
Deprecated version: N/A|Class name: AbilityLifecycleCallback
Deprecated version: 9
New API: ohos.app.ability.AbilityLifecycleCallback |@ohos.application.AbilityLifecycleCallback.d.ts| +|Deprecated version changed|Class name: abilityManager
Deprecated version: N/A|Class name: abilityManager
Deprecated version: 9
New API: ohos.app.ability.abilityManager |@ohos.application.abilityManager.d.ts| +|Deprecated version changed|Class name: AbilityStage
Deprecated version: N/A|Class name: AbilityStage
Deprecated version: 9
New API: ohos.app.ability.AbilityStage |@ohos.application.AbilityStage.d.ts| +|Deprecated version changed|Class name: appManager
Deprecated version: N/A|Class name: appManager
Deprecated version: 9
New API: ohos.app.ability.appManager |@ohos.application.appManager.d.ts| +|Deprecated version changed|Class name: Configuration
Deprecated version: N/A|Class name: Configuration
Deprecated version: 9
New API: ohos.app.ability.Configuration |@ohos.application.Configuration.d.ts| +|Deprecated version changed|Class name: ConfigurationConstant
Deprecated version: N/A|Class name: ConfigurationConstant
Deprecated version: 9
New API: ohos.app.ability.ConfigurationConstant |@ohos.application.ConfigurationConstant.d.ts| +|Deprecated version changed|Class name: context
Deprecated version: N/A|Class name: context
Deprecated version: 9
New API: ohos.app.ability.common |@ohos.application.context.d.ts| +|Deprecated version changed|Class name: EnvironmentCallback
Deprecated version: N/A|Class name: EnvironmentCallback
Deprecated version: 9
New API: ohos.app.ability.EnvironmentCallback |@ohos.application.EnvironmentCallback.d.ts| +|Deprecated version changed|Class name: errorManager
Deprecated version: N/A|Class name: errorManager
Deprecated version: 9
New API: ohos.app.ability.errorManager |@ohos.application.errorManager.d.ts| +|Deprecated version changed|Class name: formBindingData
Deprecated version: N/A|Class name: formBindingData
Deprecated version: 9
New API: ohos.app.form.formBindingData |@ohos.application.formBindingData.d.ts| +|Deprecated version changed|Class name: FormExtension
Deprecated version: N/A|Class name: FormExtension
Deprecated version: 9
New API: ohos.app.form.FormExtensionAbility |@ohos.application.FormExtension.d.ts| +|Deprecated version changed|Class name: formHost
Deprecated version: N/A|Class name: formHost
Deprecated version: 9
New API: ohos.app.form.formHost |@ohos.application.formHost.d.ts| +|Deprecated version changed|Class name: formInfo
Deprecated version: N/A|Class name: formInfo
Deprecated version: 9
New API: ohos.app.form.formInfo |@ohos.application.formInfo.d.ts| +|Deprecated version changed|Class name: formProvider
Deprecated version: N/A|Class name: formProvider
Deprecated version: 9
New API: ohos.app.form.formProvider |@ohos.application.formProvider.d.ts| +|Deprecated version changed|Class name: missionManager
Deprecated version: N/A|Class name: missionManager
Deprecated version: 9
New API: ohos.app.ability.missionManager |@ohos.application.missionManager.d.ts| +|Deprecated version changed|Class name: ServiceExtensionAbility
Deprecated version: N/A|Class name: ServiceExtensionAbility
Deprecated version: 9
New API: ohos.app.ability.ServiceExtensionAbility |@ohos.application.ServiceExtensionAbility.d.ts| +|Deprecated version changed|Class name: StartOptions
Deprecated version: N/A|Class name: StartOptions
Deprecated version: 9
New API: ohos.app.ability.StartOptions |@ohos.application.StartOptions.d.ts| +|Deprecated version changed|Class name: Want
Deprecated version: N/A|Class name: Want
Deprecated version: 9
New API: ohos.app.ability.Want |@ohos.application.Want.d.ts| +|Deprecated version changed|Method or attribute name: register
Deprecated version: N/A|Method or attribute name: register
Deprecated version: 9
New API: ohos.continuation.continuationManager.continuationManager|@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Method or attribute name: register
Deprecated version: N/A|Method or attribute name: register
Deprecated version: 9|@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Method or attribute name: register
Deprecated version: N/A|Method or attribute name: register
Deprecated version: 9|@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Method or attribute name: unregister
Deprecated version: N/A|Method or attribute name: unregister
Deprecated version: 9
New API: ohos.continuation.continuationManager.continuationManager|@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Method or attribute name: unregister
Deprecated version: N/A|Method or attribute name: unregister
Deprecated version: 9|@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Method or attribute name: updateConnectStatus
Deprecated version: N/A|Method or attribute name: updateConnectStatus
Deprecated version: 9
New API: ohos.continuation.continuationManager.continuationManager|@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Method or attribute name: updateConnectStatus
Deprecated version: N/A|Method or attribute name: updateConnectStatus
Deprecated version: 9|@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Method or attribute name: startDeviceManager
Deprecated version: N/A|Method or attribute name: startDeviceManager
Deprecated version: 9
New API: ohos.continuation.continuationManager.continuationManager|@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Method or attribute name: startDeviceManager
Deprecated version: N/A|Method or attribute name: startDeviceManager
Deprecated version: 9|@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Method or attribute name: startDeviceManager
Deprecated version: N/A|Method or attribute name: startDeviceManager
Deprecated version: 9|@ohos.continuation.continuationManager.d.ts| +|Deprecated version changed|Class name: wantAgent
Deprecated version: N/A|Class name: wantAgent
Deprecated version: 9
New API: ohos.app.ability.wantAgent |@ohos.wantAgent.d.ts| +|Deprecated version changed|Method or attribute name: connectAbility
Deprecated version: N/A|Method or attribute name: connectAbility
Deprecated version: 9
New API: connectServiceExtensionAbility |AbilityContext.d.ts| +|Deprecated version changed|Method or attribute name: connectAbilityWithAccount
Deprecated version: N/A|Method or attribute name: connectAbilityWithAccount
Deprecated version: 9
New API: connectServiceExtensionAbilityWithAccount |AbilityContext.d.ts| +|Deprecated version changed|Method or attribute name: disconnectAbility
Deprecated version: N/A|Method or attribute name: disconnectAbility
Deprecated version: 9
New API: disconnectServiceExtensionAbility |AbilityContext.d.ts| +|Deprecated version changed|Method or attribute name: disconnectAbility
Deprecated version: N/A|Method or attribute name: disconnectAbility
Deprecated version: 9|AbilityContext.d.ts| +|Deprecated version changed|Method or attribute name: registerAbilityLifecycleCallback
Deprecated version: N/A|Method or attribute name: registerAbilityLifecycleCallback
Deprecated version: 9
New API: on |ApplicationContext.d.ts| +|Deprecated version changed|Method or attribute name: unregisterAbilityLifecycleCallback
Deprecated version: N/A|Method or attribute name: unregisterAbilityLifecycleCallback
Deprecated version: 9
New API: off |ApplicationContext.d.ts| +|Deprecated version changed|Method or attribute name: unregisterAbilityLifecycleCallback
Deprecated version: N/A|Method or attribute name: unregisterAbilityLifecycleCallback
Deprecated version: 9|ApplicationContext.d.ts| +|Deprecated version changed|Method or attribute name: registerEnvironmentCallback
Deprecated version: N/A|Method or attribute name: registerEnvironmentCallback
Deprecated version: 9
New API: on |ApplicationContext.d.ts| +|Deprecated version changed|Method or attribute name: unregisterEnvironmentCallback
Deprecated version: N/A|Method or attribute name: unregisterEnvironmentCallback
Deprecated version: 9
New API: off |ApplicationContext.d.ts| +|Deprecated version changed|Method or attribute name: unregisterEnvironmentCallback
Deprecated version: N/A|Method or attribute name: unregisterEnvironmentCallback
Deprecated version: 9|ApplicationContext.d.ts| +|Deprecated version changed|Method or attribute name: connectAbility
Deprecated version: N/A|Method or attribute name: connectAbility
Deprecated version: 9
New API: connectServiceExtensionAbility |ServiceExtensionContext.d.ts| +|Deprecated version changed|Method or attribute name: connectAbilityWithAccount
Deprecated version: N/A|Method or attribute name: connectAbilityWithAccount
Deprecated version: 9
New API: connectServiceExtensionAbilityWithAccount |ServiceExtensionContext.d.ts| +|Deprecated version changed|Method or attribute name: disconnectAbility
Deprecated version: N/A|Method or attribute name: disconnectAbility
Deprecated version: 9
New API: disconnectServiceExtensionAbility |ServiceExtensionContext.d.ts| +|Deprecated version changed|Method or attribute name: disconnectAbility
Deprecated version: N/A|Method or attribute name: disconnectAbility
Deprecated version: 9|ServiceExtensionContext.d.ts| +|Initial version changed|Class name: AbilityDelegator
Initial version: 8|Class name: AbilityDelegator
Initial version: 9|abilityDelegator.d.ts| +|Permission deleted|Class name: distributedMissionManager
Permission: ohos.permission.MANAGE_MISSIONS|Class name: distributedMissionManager
Permission: N/A|@ohos.distributedMissionManager.d.ts| +|Error code added||Method or attribute name: on_deviceConnect
Error code: 401, 16600001, 16600002, 16600004|@ohos.continuation.continuationManager.d.ts| +|Error code added||Method or attribute name: on_deviceDisconnect
Error code: 401, 16600001, 16600002, 16600004|@ohos.continuation.continuationManager.d.ts| +|Error code added||Method or attribute name: startSyncRemoteMissions
Error code: 201, 401|@ohos.distributedMissionManager.d.ts| +|Error code added||Method or attribute name: stopSyncRemoteMissions
Error code: 201, 401|@ohos.distributedMissionManager.d.ts| +|Error code added||Method or attribute name: registerMissionListener
Error code: 201, 401|@ohos.distributedMissionManager.d.ts| +|Error code added||Method or attribute name: startAbility
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbility
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbility
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityByCall
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityForResult
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityForResult
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityForResult
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityForResultWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityForResultWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startAbilityForResultWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startServiceExtensionAbility
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startServiceExtensionAbility
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startServiceExtensionAbilityWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: startServiceExtensionAbilityWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: stopServiceExtensionAbility
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: stopServiceExtensionAbility
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: stopServiceExtensionAbilityWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: stopServiceExtensionAbilityWithAccount
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: terminateSelf
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: terminateSelf
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: terminateSelfWithResult
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: terminateSelfWithResult
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: setMissionLabel
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: setMissionIcon
Error code: 401|AbilityContext.d.ts| +|Error code added||Method or attribute name: addAbilityMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: addAbilityMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: addAbilityStageMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: addAbilityStageMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: removeAbilityMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: removeAbilityMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: removeAbilityStageMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: removeAbilityStageMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: waitAbilityStageMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: waitAbilityStageMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: waitAbilityStageMonitor
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: startAbility
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: startAbility
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: printSync
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: finishTest
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: finishTest
Error code: 401|abilityDelegator.d.ts| +|Error code added||Method or attribute name: createBundleContext
Error code: 401|Context.d.ts| +|Error code added||Method or attribute name: createModuleContext
Error code: 401|Context.d.ts| +|Error code added||Method or attribute name: createModuleContext
Error code: 401|Context.d.ts| +|Error code added||Method or attribute name: on
Error code: 401|EventHub.d.ts| +|Error code added||Method or attribute name: off
Error code: 401|EventHub.d.ts| +|Error code added||Method or attribute name: emit
Error code: 401|EventHub.d.ts| +|Error code added||Method or attribute name: startAbility
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startAbility
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startAbility
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startAbilityWithAccount
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startAbilityWithAccount
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startAbilityWithAccount
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startServiceExtensionAbility
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startServiceExtensionAbility
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startServiceExtensionAbilityWithAccount
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startServiceExtensionAbilityWithAccount
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: stopServiceExtensionAbility
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: stopServiceExtensionAbility
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: stopServiceExtensionAbilityWithAccount
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: stopServiceExtensionAbilityWithAccount
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: terminateSelf
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: terminateSelf
Error code: 401|ServiceExtensionContext.d.ts| +|Error code added||Method or attribute name: startAbilityByCall
Error code: 401|ServiceExtensionContext.d.ts| +|Permission added|Method or attribute name: startSyncRemoteMissions
Permission: N/A|Method or attribute name: startSyncRemoteMissions
Permission: ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| +|Permission added|Method or attribute name: startSyncRemoteMissions
Permission: N/A|Method or attribute name: startSyncRemoteMissions
Permission: ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| +|Permission added|Method or attribute name: stopSyncRemoteMissions
Permission: N/A|Method or attribute name: stopSyncRemoteMissions
Permission: ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| +|Permission added|Method or attribute name: stopSyncRemoteMissions
Permission: N/A|Method or attribute name: stopSyncRemoteMissions
Permission: ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| +|Permission added|Method or attribute name: registerMissionListener
Permission: N/A|Method or attribute name: registerMissionListener
Permission: ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| +|Permission added|Method or attribute name: registerMissionListener
Permission: N/A|Method or attribute name: registerMissionListener
Permission: ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| +|Permission added|Method or attribute name: unRegisterMissionListener
Permission: N/A|Method or attribute name: unRegisterMissionListener
Permission: ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| +|Access level changed|Method or attribute name: startAbilityByCall
Access level: public API|Method or attribute name: startAbilityByCall
Access level: system API|AbilityContext.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-accessibility.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-accessibility.md new file mode 100644 index 0000000000000000000000000000000000000000..9ddac51d885c1cd11d4ef4bbc40e659a61d677b9 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-accessibility.md @@ -0,0 +1,52 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.accessibility.config
Class name: config
Method or attribute name: on_enabledAccessibilityExtensionListChange|@ohos.accessibility.config.d.ts| +|Added||Module name: ohos.accessibility.config
Class name: config
Method or attribute name: off_enabledAccessibilityExtensionListChange|@ohos.accessibility.config.d.ts| +|Added||Module name: ohos.accessibility
Class name: accessibility
Method or attribute name: getAccessibilityExtensionList|@ohos.accessibility.d.ts| +|Added||Module name: ohos.accessibility
Class name: accessibility
Method or attribute name: getAccessibilityExtensionList|@ohos.accessibility.d.ts| +|Added||Module name: ohos.accessibility
Class name: accessibility
Method or attribute name: sendAccessibilityEvent|@ohos.accessibility.d.ts| +|Added||Module name: ohos.accessibility
Class name: accessibility
Method or attribute name: sendAccessibilityEvent|@ohos.accessibility.d.ts| +|Added||Module name: ohos.accessibility.GesturePath
Class name: GesturePath|@ohos.accessibility.GesturePath.d.ts| +|Added||Module name: ohos.accessibility.GesturePath
Class name: GesturePath
Method or attribute name: ructor(durationTime|@ohos.accessibility.GesturePath.d.ts| +|Added||Module name: ohos.accessibility.GesturePath
Class name: GesturePath
Method or attribute name: points|@ohos.accessibility.GesturePath.d.ts| +|Added||Module name: ohos.accessibility.GesturePath
Class name: GesturePath
Method or attribute name: durationTime|@ohos.accessibility.GesturePath.d.ts| +|Added||Module name: ohos.accessibility.GesturePoint
Class name: GesturePoint|@ohos.accessibility.GesturePoint.d.ts| +|Added||Module name: ohos.accessibility.GesturePoint
Class name: GesturePoint
Method or attribute name: ructor(positionX|@ohos.accessibility.GesturePoint.d.ts| +|Added||Module name: ohos.accessibility.GesturePoint
Class name: GesturePoint
Method or attribute name: positionX|@ohos.accessibility.GesturePoint.d.ts| +|Added||Module name: ohos.accessibility.GesturePoint
Class name: GesturePoint
Method or attribute name: positionY|@ohos.accessibility.GesturePoint.d.ts| +|Added||Method or attribute name: performAction
Function name: performAction(actionName: string, parameters?: object): Promise;|AccessibilityExtensionContext.d.ts| +|Added||Method or attribute name: performAction
Function name: performAction(actionName: string, callback: AsyncCallback): void;|AccessibilityExtensionContext.d.ts| +|Added||Method or attribute name: performAction
Function name: performAction(actionName: string, parameters: object, callback: AsyncCallback): void;|AccessibilityExtensionContext.d.ts| +|Deleted|Module name: ohos.accessibility.config
Class name: config
Method or attribute name: on_enableAbilityListsStateChanged||@ohos.accessibility.config.d.ts| +|Deleted|Module name: ohos.accessibility.config
Class name: config
Method or attribute name: off_enableAbilityListsStateChanged||@ohos.accessibility.config.d.ts| +|Deleted|Module name: ohos.application.AccessibilityExtensionAbility
Class name: GesturePath||@ohos.application.AccessibilityExtensionAbility.d.ts| +|Deleted|Module name: ohos.application.AccessibilityExtensionAbility
Class name: GesturePath
Method or attribute name: points||@ohos.application.AccessibilityExtensionAbility.d.ts| +|Deleted|Module name: ohos.application.AccessibilityExtensionAbility
Class name: GesturePath
Method or attribute name: durationTime||@ohos.application.AccessibilityExtensionAbility.d.ts| +|Deleted|Module name: ohos.application.AccessibilityExtensionAbility
Class name: GesturePoint||@ohos.application.AccessibilityExtensionAbility.d.ts| +|Deleted|Module name: ohos.application.AccessibilityExtensionAbility
Class name: GesturePoint
Method or attribute name: positionX||@ohos.application.AccessibilityExtensionAbility.d.ts| +|Deleted|Module name: ohos.application.AccessibilityExtensionAbility
Class name: GesturePoint
Method or attribute name: positionY||@ohos.application.AccessibilityExtensionAbility.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityLists
Deprecated version: N/A|Method or attribute name: getAbilityLists
Deprecated version: 9
New API: ohos.accessibility|@ohos.accessibility.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityLists
Deprecated version: N/A|Method or attribute name: getAbilityLists
Deprecated version: 9|@ohos.accessibility.d.ts| +|Deprecated version changed|Method or attribute name: sendEvent
Deprecated version: N/A|Method or attribute name: sendEvent
Deprecated version: 9
New API: ohos.accessibility|@ohos.accessibility.d.ts| +|Deprecated version changed|Method or attribute name: sendEvent
Deprecated version: N/A|Method or attribute name: sendEvent
Deprecated version: 9|@ohos.accessibility.d.ts| +|Error code added||Method or attribute name: enableAbility
Error code: 201, 401, 9300001, 9300002|@ohos.accessibility.config.d.ts| +|Error code added||Method or attribute name: disableAbility
Error code: 201, 401, 9300001|@ohos.accessibility.config.d.ts| +|Error code added||Method or attribute name: set
Error code: 201, 401|@ohos.accessibility.config.d.ts| +|Error code added||Method or attribute name: on
Error code: 401|@ohos.accessibility.config.d.ts| +|Error code added||Method or attribute name: on_accessibilityStateChange
Error code: 401|@ohos.accessibility.d.ts| +|Error code added||Method or attribute name: on_touchGuideStateChange
Error code: 401|@ohos.accessibility.d.ts| +|Error code added||Method or attribute name: off_accessibilityStateChange
Error code: 401|@ohos.accessibility.d.ts| +|Error code added||Method or attribute name: off_touchGuideStateChange
Error code: 401|@ohos.accessibility.d.ts| +|Error code added||Method or attribute name: on_enableChange
Error code: 401|@ohos.accessibility.d.ts| +|Error code added||Method or attribute name: on_styleChange
Error code: 401|@ohos.accessibility.d.ts| +|Error code added||Method or attribute name: off_enableChange
Error code: 401|@ohos.accessibility.d.ts| +|Error code added||Method or attribute name: off_styleChange
Error code: 401|@ohos.accessibility.d.ts| +|Error code added||Method or attribute name: setTargetBundleName
Error code: 401|AccessibilityExtensionContext.d.ts| +|Error code added||Method or attribute name: getFocusElement
Error code: 9300003|AccessibilityExtensionContext.d.ts| +|Error code added||Method or attribute name: getWindowRootElement
Error code: 9300003|AccessibilityExtensionContext.d.ts| +|Error code added||Method or attribute name: getWindows
Error code: 9300003|AccessibilityExtensionContext.d.ts| +|Error code added||Method or attribute name: injectGesture
Error code: 401, 9300003|AccessibilityExtensionContext.d.ts| +|Error code added||Method or attribute name: attributeValue
Error code: 401, 9300004|AccessibilityExtensionContext.d.ts| +|Error code added||Method or attribute name: findElement
Error code: 401|AccessibilityExtensionContext.d.ts| +|Error code added||Method or attribute name: findElement
Error code: 401|AccessibilityExtensionContext.d.ts| +|Error code added||Method or attribute name: findElement
Error code: 401|AccessibilityExtensionContext.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-account.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-account.md new file mode 100644 index 0000000000000000000000000000000000000000..8b478fe0585691415aed057d692f3031cebc537a --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-account.md @@ -0,0 +1,227 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: createAccount|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: createAccount|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: createAccount|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: createAccountImplicitly|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: createAccountImplicitly|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: removeAccount|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: removeAccount|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setAppAccess|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setAppAccess|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: checkDataSyncEnabled|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: checkDataSyncEnabled|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setCredential|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setCredential|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setDataSyncEnabled|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setDataSyncEnabled|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setCustomData|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setCustomData|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: getAllAccounts
Function name: getAllAccounts(callback: AsyncCallback>): void;|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: getAllAccounts
Function name: getAllAccounts(): Promise>;|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAccountsByOwner|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAccountsByOwner|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getCredential|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getCredential|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getCustomData|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getCustomData|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getCustomDataSync|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: on_accountChange|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: off_accountChange|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: auth|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: auth|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAuthToken|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAuthToken|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setAuthToken|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setAuthToken|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: deleteAuthToken|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: deleteAuthToken|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setAuthTokenVisibility|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: setAuthTokenVisibility|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: checkAuthTokenVisibility|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: checkAuthTokenVisibility|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAllAuthTokens|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAllAuthTokens|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAuthList|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAuthList|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAuthCallback|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAuthCallback|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: queryAuthenticatorInfo|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: queryAuthenticatorInfo|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: deleteCredential|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: deleteCredential|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: selectAccountsByOptions
Function name: selectAccountsByOptions(options: SelectAccountsOptions, callback: AsyncCallback>): void;|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: verifyCredential
Function name: verifyCredential(name: string, owner: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: verifyCredential
Function name: verifyCredential(name: string, owner: string, options: VerifyCredentialOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: setAuthenticatorProperties
Function name: setAuthenticatorProperties(owner: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: setAuthenticatorProperties
Function name: setAuthenticatorProperties(owner: string, options: SetPropertiesOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthTokenInfo|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthTokenInfo
Method or attribute name: authType|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthTokenInfo
Method or attribute name: token|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthTokenInfo
Method or attribute name: account|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthResult|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthResult
Method or attribute name: account|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthResult
Method or attribute name: tokenInfo|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: CreateAccountOptions|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: CreateAccountOptions
Method or attribute name: customData|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: CreateAccountImplicitlyOptions|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: CreateAccountImplicitlyOptions
Method or attribute name: requiredLabels|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: CreateAccountImplicitlyOptions
Method or attribute name: authType|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: CreateAccountImplicitlyOptions
Method or attribute name: parameters|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: Constants
Method or attribute name: ACTION_CREATE_ACCOUNT_IMPLICITLY|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: Constants
Method or attribute name: ACTION_AUTH|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: Constants
Method or attribute name: ACTION_VERIFY_CREDENTIAL|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: Constants
Method or attribute name: ACTION_SET_AUTHENTICATOR_PROPERTIES|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthCallback|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthCallback
Method or attribute name: onResult|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthCallback
Method or attribute name: onRequestRedirected|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: AuthCallback
Method or attribute name: onRequestContinued|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: Authenticator
Method or attribute name: createAccountImplicitly|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.appAccount
Class name: Authenticator
Method or attribute name: auth|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: verifyCredential
Function name: verifyCredential(name: string, options: VerifyCredentialOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: setProperties
Function name: setProperties(options: SetPropertiesOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: checkAccountLabels
Function name: checkAccountLabels(name: string, labels: Array, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|Added||Method or attribute name: isAccountRemovable
Function name: isAccountRemovable(name: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|Added||Module name: ohos.account.distributedAccount
Class name: DistributedAccountAbility
Method or attribute name: getOsAccountDistributedInfo|@ohos.account.distributedAccount.d.ts| +|Added||Module name: ohos.account.distributedAccount
Class name: DistributedAccountAbility
Method or attribute name: getOsAccountDistributedInfo|@ohos.account.distributedAccount.d.ts| +|Added||Module name: ohos.account.distributedAccount
Class name: DistributedAccountAbility
Method or attribute name: setOsAccountDistributedInfo|@ohos.account.distributedAccount.d.ts| +|Added||Module name: ohos.account.distributedAccount
Class name: DistributedAccountAbility
Method or attribute name: setOsAccountDistributedInfo|@ohos.account.distributedAccount.d.ts| +|Added||Module name: ohos.account.distributedAccount
Class name: DistributedInfo
Method or attribute name: nickname|@ohos.account.distributedAccount.d.ts| +|Added||Module name: ohos.account.distributedAccount
Class name: DistributedInfo
Method or attribute name: avatar|@ohos.account.distributedAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkMultiOsAccountEnabled|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkMultiOsAccountEnabled|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkOsAccountActivated|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkOsAccountActivated|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkConstraintEnabled|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkConstraintEnabled|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkOsAccountTestable|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkOsAccountTestable|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkOsAccountVerified|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkOsAccountVerified|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: checkOsAccountVerified|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getOsAccountCount|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getOsAccountCount|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryOsAccountLocalIdFromProcess|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryOsAccountLocalIdFromProcess|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryOsAccountLocalIdFromUid|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryOsAccountLocalIdFromUid|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryOsAccountLocalIdFromDomain|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryOsAccountLocalIdFromDomain|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getOsAccountConstraints|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getOsAccountConstraints|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getActivatedOsAccountIds|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getActivatedOsAccountIds|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getCurrentOsAccount|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getCurrentOsAccount|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getOsAccountType|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: getOsAccountType|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryDistributedVirtualDeviceId|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryDistributedVirtualDeviceId|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryOsAccountLocalIdBySerialNumber|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: queryOsAccountLocalIdBySerialNumber|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: querySerialNumberByOsAccountLocalId|@ohos.account.osAccount.d.ts| +|Added||Module name: ohos.account.osAccount
Class name: AccountManager
Method or attribute name: querySerialNumberByOsAccountLocalId|@ohos.account.osAccount.d.ts| +|Added||Method or attribute name: setProperty
Function name: setProperty(request: SetPropertyRequest, callback: AsyncCallback): void;|@ohos.account.osAccount.d.ts| +|Added||Method or attribute name: setProperty
Function name: setProperty(request: SetPropertyRequest): Promise;|@ohos.account.osAccount.d.ts| +|Added||Method or attribute name: cancelAuth
Function name: cancelAuth(contextID: Uint8Array): void;|@ohos.account.osAccount.d.ts| +|Added||Method or attribute name: registerInputer
Function name: registerInputer(inputer: IInputer): void;|@ohos.account.osAccount.d.ts| +|Added||Method or attribute name: cancel
Function name: cancel(challenge: Uint8Array): void;|@ohos.account.osAccount.d.ts| +|Deleted|Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: getAssociatedDataSync||@ohos.account.appAccount.d.ts| +|Deleted|Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: deleteAccountCredential||@ohos.account.appAccount.d.ts| +|Deleted|Module name: ohos.account.appAccount
Class name: AppAccountManager
Method or attribute name: deleteAccountCredential||@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: addAccount
Deprecated version: N/A|Method or attribute name: addAccount
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: addAccount
Deprecated version: N/A|Method or attribute name: addAccount
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: addAccount
Deprecated version: N/A|Method or attribute name: addAccount
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: addAccountImplicitly
Deprecated version: N/A|Method or attribute name: addAccountImplicitly
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: deleteAccount
Deprecated version: N/A|Method or attribute name: deleteAccount
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: deleteAccount
Deprecated version: N/A|Method or attribute name: deleteAccount
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: disableAppAccess
Deprecated version: N/A|Method or attribute name: disableAppAccess
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: disableAppAccess
Deprecated version: N/A|Method or attribute name: disableAppAccess
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: enableAppAccess
Deprecated version: N/A|Method or attribute name: enableAppAccess
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: enableAppAccess
Deprecated version: N/A|Method or attribute name: enableAppAccess
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: checkAppAccountSyncEnable
Deprecated version: N/A|Method or attribute name: checkAppAccountSyncEnable
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: checkAppAccountSyncEnable
Deprecated version: N/A|Method or attribute name: checkAppAccountSyncEnable
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setAccountCredential
Deprecated version: N/A|Method or attribute name: setAccountCredential
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setAccountCredential
Deprecated version: N/A|Method or attribute name: setAccountCredential
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setAccountExtraInfo
Deprecated version: N/A|Method or attribute name: setAccountExtraInfo
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setAccountExtraInfo
Deprecated version: N/A|Method or attribute name: setAccountExtraInfo
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setAppAccountSyncEnable
Deprecated version: N/A|Method or attribute name: setAppAccountSyncEnable
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setAppAccountSyncEnable
Deprecated version: N/A|Method or attribute name: setAppAccountSyncEnable
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setAssociatedData
Deprecated version: N/A|Method or attribute name: setAssociatedData
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setAssociatedData
Deprecated version: N/A|Method or attribute name: setAssociatedData
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAllAccessibleAccounts
Deprecated version: N/A|Method or attribute name: getAllAccessibleAccounts
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAllAccessibleAccounts
Deprecated version: N/A|Method or attribute name: getAllAccessibleAccounts
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAllAccounts
Deprecated version: N/A|Method or attribute name: getAllAccounts
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAllAccounts
Deprecated version: N/A|Method or attribute name: getAllAccounts
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAccountCredential
Deprecated version: N/A|Method or attribute name: getAccountCredential
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAccountCredential
Deprecated version: N/A|Method or attribute name: getAccountCredential
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAccountExtraInfo
Deprecated version: N/A|Method or attribute name: getAccountExtraInfo
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAccountExtraInfo
Deprecated version: N/A|Method or attribute name: getAccountExtraInfo
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAssociatedData
Deprecated version: N/A|Method or attribute name: getAssociatedData
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAssociatedData
Deprecated version: N/A|Method or attribute name: getAssociatedData
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: on_change
Deprecated version: N/A|Method or attribute name: on_change
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: off_change
Deprecated version: N/A|Method or attribute name: off_change
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: authenticate
Deprecated version: N/A|Method or attribute name: authenticate
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOAuthToken
Deprecated version: N/A|Method or attribute name: getOAuthToken
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOAuthToken
Deprecated version: N/A|Method or attribute name: getOAuthToken
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setOAuthToken
Deprecated version: N/A|Method or attribute name: setOAuthToken
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setOAuthToken
Deprecated version: N/A|Method or attribute name: setOAuthToken
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: deleteOAuthToken
Deprecated version: N/A|Method or attribute name: deleteOAuthToken
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: deleteOAuthToken
Deprecated version: N/A|Method or attribute name: deleteOAuthToken
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setOAuthTokenVisibility
Deprecated version: N/A|Method or attribute name: setOAuthTokenVisibility
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: setOAuthTokenVisibility
Deprecated version: N/A|Method or attribute name: setOAuthTokenVisibility
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: checkOAuthTokenVisibility
Deprecated version: N/A|Method or attribute name: checkOAuthTokenVisibility
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: checkOAuthTokenVisibility
Deprecated version: N/A|Method or attribute name: checkOAuthTokenVisibility
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAllOAuthTokens
Deprecated version: N/A|Method or attribute name: getAllOAuthTokens
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAllOAuthTokens
Deprecated version: N/A|Method or attribute name: getAllOAuthTokens
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOAuthList
Deprecated version: N/A|Method or attribute name: getOAuthList
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOAuthList
Deprecated version: N/A|Method or attribute name: getOAuthList
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAuthenticatorCallback
Deprecated version: N/A|Method or attribute name: getAuthenticatorCallback
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAuthenticatorCallback
Deprecated version: N/A|Method or attribute name: getAuthenticatorCallback
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAuthenticatorInfo
Deprecated version: N/A|Method or attribute name: getAuthenticatorInfo
Deprecated version: 9
New API: appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: getAuthenticatorInfo
Deprecated version: N/A|Method or attribute name: getAuthenticatorInfo
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Class name: OAuthTokenInfo
Deprecated version: N/A|Class name: OAuthTokenInfo
Deprecated version: 9
New API: appAccount.AuthTokenInfo |@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: ACTION_ADD_ACCOUNT_IMPLICITLY
Deprecated version: N/A|Method or attribute name: ACTION_ADD_ACCOUNT_IMPLICITLY
Deprecated version: 9
New API: appAccount.Constants|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: ACTION_AUTHENTICATE
Deprecated version: N/A|Method or attribute name: ACTION_AUTHENTICATE
Deprecated version: 9
New API: appAccount.Constants|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Class name: ResultCode
Deprecated version: N/A|Class name: ResultCode
Deprecated version: 9|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Class name: AuthenticatorCallback
Deprecated version: N/A|Class name: AuthenticatorCallback
Deprecated version: 9
New API: AppAccount.AuthCallback |@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: addAccountImplicitly
Deprecated version: N/A|Method or attribute name: addAccountImplicitly
Deprecated version: 9
New API: appAccount.Authenticator|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: authenticate
Deprecated version: N/A|Method or attribute name: authenticate
Deprecated version: 9
New API: appAccount.Authenticator|@ohos.account.appAccount.d.ts| +|Deprecated version changed|Method or attribute name: queryOsAccountDistributedInfo
Deprecated version: N/A|Method or attribute name: queryOsAccountDistributedInfo
Deprecated version: 9
New API: distributedAccount.DistributedAccountAbility|@ohos.account.distributedAccount.d.ts| +|Deprecated version changed|Method or attribute name: queryOsAccountDistributedInfo
Deprecated version: N/A|Method or attribute name: queryOsAccountDistributedInfo
Deprecated version: 9|@ohos.account.distributedAccount.d.ts| +|Deprecated version changed|Method or attribute name: updateOsAccountDistributedInfo
Deprecated version: N/A|Method or attribute name: updateOsAccountDistributedInfo
Deprecated version: 9
New API: distributedAccount.DistributedAccountAbility|@ohos.account.distributedAccount.d.ts| +|Deprecated version changed|Method or attribute name: updateOsAccountDistributedInfo
Deprecated version: N/A|Method or attribute name: updateOsAccountDistributedInfo
Deprecated version: 9|@ohos.account.distributedAccount.d.ts| +|Deprecated version changed|Method or attribute name: isMultiOsAccountEnable
Deprecated version: N/A|Method or attribute name: isMultiOsAccountEnable
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isMultiOsAccountEnable
Deprecated version: N/A|Method or attribute name: isMultiOsAccountEnable
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isOsAccountActived
Deprecated version: N/A|Method or attribute name: isOsAccountActived
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isOsAccountActived
Deprecated version: N/A|Method or attribute name: isOsAccountActived
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isOsAccountConstraintEnable
Deprecated version: N/A|Method or attribute name: isOsAccountConstraintEnable
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isOsAccountConstraintEnable
Deprecated version: N/A|Method or attribute name: isOsAccountConstraintEnable
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isTestOsAccount
Deprecated version: N/A|Method or attribute name: isTestOsAccount
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isTestOsAccount
Deprecated version: N/A|Method or attribute name: isTestOsAccount
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isOsAccountVerified
Deprecated version: N/A|Method or attribute name: isOsAccountVerified
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isOsAccountVerified
Deprecated version: N/A|Method or attribute name: isOsAccountVerified
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: isOsAccountVerified
Deprecated version: N/A|Method or attribute name: isOsAccountVerified
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getCreatedOsAccountsCount
Deprecated version: N/A|Method or attribute name: getCreatedOsAccountsCount
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getCreatedOsAccountsCount
Deprecated version: N/A|Method or attribute name: getCreatedOsAccountsCount
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountLocalIdFromProcess
Deprecated version: N/A|Method or attribute name: getOsAccountLocalIdFromProcess
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountLocalIdFromProcess
Deprecated version: N/A|Method or attribute name: getOsAccountLocalIdFromProcess
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountLocalIdFromUid
Deprecated version: N/A|Method or attribute name: getOsAccountLocalIdFromUid
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountLocalIdFromUid
Deprecated version: N/A|Method or attribute name: getOsAccountLocalIdFromUid
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountLocalIdFromDomain
Deprecated version: N/A|Method or attribute name: getOsAccountLocalIdFromDomain
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountLocalIdFromDomain
Deprecated version: N/A|Method or attribute name: getOsAccountLocalIdFromDomain
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountAllConstraints
Deprecated version: N/A|Method or attribute name: getOsAccountAllConstraints
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountAllConstraints
Deprecated version: N/A|Method or attribute name: getOsAccountAllConstraints
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: queryActivatedOsAccountIds
Deprecated version: N/A|Method or attribute name: queryActivatedOsAccountIds
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: queryActivatedOsAccountIds
Deprecated version: N/A|Method or attribute name: queryActivatedOsAccountIds
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: queryCurrentOsAccount
Deprecated version: N/A|Method or attribute name: queryCurrentOsAccount
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: queryCurrentOsAccount
Deprecated version: N/A|Method or attribute name: queryCurrentOsAccount
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountTypeFromProcess
Deprecated version: N/A|Method or attribute name: getOsAccountTypeFromProcess
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountTypeFromProcess
Deprecated version: N/A|Method or attribute name: getOsAccountTypeFromProcess
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getDistributedVirtualDeviceId
Deprecated version: N/A|Method or attribute name: getDistributedVirtualDeviceId
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getDistributedVirtualDeviceId
Deprecated version: N/A|Method or attribute name: getDistributedVirtualDeviceId
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountLocalIdBySerialNumber
Deprecated version: N/A|Method or attribute name: getOsAccountLocalIdBySerialNumber
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getOsAccountLocalIdBySerialNumber
Deprecated version: N/A|Method or attribute name: getOsAccountLocalIdBySerialNumber
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getSerialNumberByOsAccountLocalId
Deprecated version: N/A|Method or attribute name: getSerialNumberByOsAccountLocalId
Deprecated version: 9
New API: osAccount.AccountManager|@ohos.account.osAccount.d.ts| +|Deprecated version changed|Method or attribute name: getSerialNumberByOsAccountLocalId
Deprecated version: N/A|Method or attribute name: getSerialNumberByOsAccountLocalId
Deprecated version: 9|@ohos.account.osAccount.d.ts| +|Permission added|Method or attribute name: isOsAccountVerified
Permission: N/A|Method or attribute name: isOsAccountVerified
Permission: ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS|@ohos.account.osAccount.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-application.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-application.md new file mode 100644 index 0000000000000000000000000000000000000000..3ae7dc10381880b135162da8487a2c9ea747d1bd --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-application.md @@ -0,0 +1,207 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.contact
Class name: Contact|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: INVALID_CONTACT_ID|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: id|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: key|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: contactAttributes|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: emails|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: events|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: groups|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: imAddresses|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: phoneNumbers|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: portrait|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: postalAddresses|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: relations|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: sipAddresses|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: websites|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: name|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: nickName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: note|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Contact
Method or attribute name: organization|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ContactAttributes|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ContactAttributes
Method or attribute name: attributes|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_CONTACT_EVENT|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_EMAIL|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_GROUP_MEMBERSHIP|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_IM|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_NAME|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_NICKNAME|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_NOTE|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_ORGANIZATION|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_PHONE|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_PORTRAIT|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_POSTAL_ADDRESS|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_RELATION|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_SIP_ADDRESS|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Attribute
Method or attribute name: ATTR_WEBSITE|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email
Method or attribute name: CUSTOM_LABEL|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email
Method or attribute name: EMAIL_HOME|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email
Method or attribute name: EMAIL_WORK|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email
Method or attribute name: EMAIL_OTHER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email
Method or attribute name: INVALID_LABEL_ID|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email
Method or attribute name: email|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email
Method or attribute name: labelName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email
Method or attribute name: displayName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Email
Method or attribute name: labelId|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Event|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Event
Method or attribute name: CUSTOM_LABEL|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Event
Method or attribute name: EVENT_ANNIVERSARY|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Event
Method or attribute name: EVENT_OTHER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Event
Method or attribute name: EVENT_BIRTHDAY|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Event
Method or attribute name: INVALID_LABEL_ID|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Event
Method or attribute name: eventDate|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Event
Method or attribute name: labelName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Event
Method or attribute name: labelId|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Group|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Group
Method or attribute name: groupId|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Group
Method or attribute name: title|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Holder|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Holder
Method or attribute name: bundleName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Holder
Method or attribute name: displayName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Holder
Method or attribute name: holderId|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: CUSTOM_LABEL|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: IM_AIM|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: IM_MSN|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: IM_YAHOO|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: IM_SKYPE|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: IM_QQ|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: IM_ICQ|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: IM_JABBER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: INVALID_LABEL_ID|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: imAddress|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: labelName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: ImAddress
Method or attribute name: labelId|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name
Method or attribute name: familyName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name
Method or attribute name: familyNamePhonetic|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name
Method or attribute name: fullName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name
Method or attribute name: givenName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name
Method or attribute name: givenNamePhonetic|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name
Method or attribute name: middleName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name
Method or attribute name: middleNamePhonetic|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name
Method or attribute name: namePrefix|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Name
Method or attribute name: nameSuffix|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: NickName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: NickName
Method or attribute name: nickName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Note|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Note
Method or attribute name: noteContent|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Organization|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Organization
Method or attribute name: name|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Organization
Method or attribute name: title|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: CUSTOM_LABEL|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_HOME|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_MOBILE|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_WORK|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_FAX_WORK|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_FAX_HOME|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_PAGER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_OTHER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_CALLBACK|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_CAR|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_COMPANY_MAIN|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_ISDN|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_MAIN|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_OTHER_FAX|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_RADIO|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_TELEX|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_TTY_TDD|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_WORK_MOBILE|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_WORK_PAGER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_ASSISTANT|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: NUM_MMS|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: INVALID_LABEL_ID|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: labelName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: phoneNumber|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PhoneNumber
Method or attribute name: labelId|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Portrait|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Portrait
Method or attribute name: uri|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: CUSTOM_LABEL|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: ADDR_HOME|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: ADDR_WORK|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: ADDR_OTHER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: INVALID_LABEL_ID|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: city|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: country|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: labelName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: neighborhood|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: pobox|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: postalAddress|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: postcode|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: region|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: street|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: PostalAddress
Method or attribute name: labelId|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: CUSTOM_LABEL|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_ASSISTANT|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_BROTHER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_CHILD|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_DOMESTIC_PARTNER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_FATHER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_FRIEND|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_MANAGER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_MOTHER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_PARENT|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_PARTNER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_REFERRED_BY|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_RELATIVE|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_SISTER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: RELATION_SPOUSE|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: INVALID_LABEL_ID|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: labelName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: relationName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Relation
Method or attribute name: labelId|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: SipAddress|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: SipAddress
Method or attribute name: CUSTOM_LABEL|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: SipAddress
Method or attribute name: SIP_HOME|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: SipAddress
Method or attribute name: SIP_WORK|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: SipAddress
Method or attribute name: SIP_OTHER|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: SipAddress
Method or attribute name: INVALID_LABEL_ID|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: SipAddress
Method or attribute name: labelName|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: SipAddress
Method or attribute name: sipAddress|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: SipAddress
Method or attribute name: labelId|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Website|@ohos.contact.d.ts| +|Added||Module name: ohos.contact
Class name: Website
Method or attribute name: website|@ohos.contact.d.ts| +|Added||Module name: ohos.telephony.call
Class name: AudioDevice
Method or attribute name: DEVICE_MIC|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: hangup
|Permission: N/A|Method or attribute name: hangup
|Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: hangup
|Permission: N/A|Method or attribute name: hangup
|Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: reject
|Permission: N/A|Method or attribute name: reject
|Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: reject
|Permission: N/A|Method or attribute name: reject
|Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: reject
|Permission: N/A|Method or attribute name: reject
|Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: reject
|Permission: N/A|Method or attribute name: reject
|Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: reject
|Permission: N/A|Method or attribute name: reject
|Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: holdCall
|Permission: N/A|Method or attribute name: holdCall
|Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: holdCall
|Permission: N/A|Method or attribute name: holdCall
|Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: unHoldCall
|Permission: N/A|Method or attribute name: unHoldCall
|Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: unHoldCall
|Permission: N/A|Method or attribute name: unHoldCall
|Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: switchCall
|Permission: N/A|Method or attribute name: switchCall
|Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: switchCall
|Permission: N/A|Method or attribute name: switchCall
|Permission: ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: getCallWaitingStatus
|Permission: N/A|Method or attribute name: getCallWaitingStatus
|Permission: ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: getCallWaitingStatus
|Permission: N/A|Method or attribute name: getCallWaitingStatus
|Permission: ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: setCallWaiting
|Permission: N/A|Method or attribute name: setCallWaiting
|Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: setCallWaiting
|Permission: N/A|Method or attribute name: setCallWaiting
|Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: on_callDetailsChange
|Permission: N/A|Method or attribute name: on_callDetailsChange
|Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: off_callDetailsChange
|Permission: N/A|Method or attribute name: off_callDetailsChange
|Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: on_callEventChange
|Permission: N/A|Method or attribute name: on_callEventChange
|Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: off_callEventChange
|Permission: N/A|Method or attribute name: off_callEventChange
|Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: on_callDisconnectedCause
|Permission: N/A|Method or attribute name: on_callDisconnectedCause
|Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: off_callDisconnectedCause
|Permission: N/A|Method or attribute name: off_callDisconnectedCause
|Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: on_mmiCodeResult
|Permission: N/A|Method or attribute name: on_mmiCodeResult
|Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: off_mmiCodeResult
|Permission: N/A|Method or attribute name: off_mmiCodeResult
|Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: getCallRestrictionStatus
|Permission: N/A|Method or attribute name: getCallRestrictionStatus
|Permission: ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: getCallRestrictionStatus
|Permission: N/A|Method or attribute name: getCallRestrictionStatus
|Permission: ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: setCallRestriction
|Permission: N/A|Method or attribute name: setCallRestriction
|Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: setCallRestriction
|Permission: N/A|Method or attribute name: setCallRestriction
|Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: getCallTransferInfo
|Permission: N/A|Method or attribute name: getCallTransferInfo
|Permission: ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: getCallTransferInfo
|Permission: N/A|Method or attribute name: getCallTransferInfo
|Permission: ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: setCallTransfer
|Permission: N/A|Method or attribute name: setCallTransfer
|Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: setCallTransfer
|Permission: N/A|Method or attribute name: setCallTransfer
|Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: enableImsSwitch
|Permission: N/A|Method or attribute name: enableImsSwitch
|Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: enableImsSwitch
|Permission: N/A|Method or attribute name: enableImsSwitch
|Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: disableImsSwitch
|Permission: N/A|Method or attribute name: disableImsSwitch
|Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| +|Permission added|Method or attribute name: disableImsSwitch
|Permission: N/A|Method or attribute name: disableImsSwitch
|Permission: ohos.permission.SET_TELEPHONY_STATE|@ohos.telephony.call.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-arkui.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-arkui.md new file mode 100644 index 0000000000000000000000000000000000000000..71f02711d1d1b4c95e5ce354ad87eafe3d2b4f80 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-arkui.md @@ -0,0 +1,184 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.animator
Class name: AnimatorResult
Method or attribute name: reset|@ohos.animator.d.ts| +|Added||Module name: ohos.animator
Class name: Animator
Method or attribute name: create|@ohos.animator.d.ts| +|Added||Module name: ohos.promptAction
Class name: promptAction|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowToastOptions|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowToastOptions
Method or attribute name: message|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowToastOptions
Method or attribute name: duration|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowToastOptions
Method or attribute name: bottom|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: Button|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: Button
Method or attribute name: text|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: Button
Method or attribute name: color|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowDialogSuccessResponse|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowDialogSuccessResponse
Method or attribute name: index|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowDialogOptions|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowDialogOptions
Method or attribute name: title|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowDialogOptions
Method or attribute name: message|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ShowDialogOptions
Method or attribute name: buttons|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ActionMenuSuccessResponse|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ActionMenuSuccessResponse
Method or attribute name: index|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ActionMenuOptions|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ActionMenuOptions
Method or attribute name: title|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: ActionMenuOptions
Method or attribute name: buttons|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: promptAction
Method or attribute name: showToast|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: promptAction
Method or attribute name: showDialog|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: promptAction
Method or attribute name: showDialog|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: promptAction
Method or attribute name: showActionMenu|@ohos.promptAction.d.ts| +|Added||Module name: ohos.promptAction
Class name: promptAction
Method or attribute name: showActionMenu|@ohos.promptAction.d.ts| +|Added||Module name: ohos.router
Class name: RouterOptions|@ohos.router.d.ts| +|Added||Module name: ohos.router
Class name: router
Method or attribute name: pushUrl|@ohos.router.d.ts| +|Added||Module name: ohos.router
Class name: router
Method or attribute name: pushUrl|@ohos.router.d.ts| +|Added||Module name: ohos.router
Class name: router
Method or attribute name: pushUrl|@ohos.router.d.ts| +|Added||Module name: ohos.router
Class name: router
Method or attribute name: pushUrl|@ohos.router.d.ts| +|Added||Module name: ohos.router
Class name: router
Method or attribute name: replaceUrl|@ohos.router.d.ts| +|Added||Module name: ohos.router
Class name: router
Method or attribute name: replaceUrl|@ohos.router.d.ts| +|Added||Module name: ohos.router
Class name: router
Method or attribute name: replaceUrl|@ohos.router.d.ts| +|Added||Module name: ohos.router
Class name: router
Method or attribute name: replaceUrl|@ohos.router.d.ts| +|Added||Module name: ohos.router
Class name: router
Method or attribute name: enableBackPageAlert|@ohos.router.d.ts| +|Added||Module name: common
Class name:
Method or attribute name: postCardAction|common.d.ts| +|Added||Module name: common
Class name: PopupOptions
Method or attribute name: showInSubWindow|common.d.ts| +|Added||Module name: common
Class name: CustomPopupOptions
Method or attribute name: showInSubWindow|common.d.ts| +|Added||Module name: common
Class name: LayoutBorderInfo|common.d.ts| +|Added||Module name: common
Class name: LayoutBorderInfo
Method or attribute name: borderWidth|common.d.ts| +|Added||Module name: common
Class name: LayoutBorderInfo
Method or attribute name: margin|common.d.ts| +|Added||Module name: common
Class name: LayoutBorderInfo
Method or attribute name: padding|common.d.ts| +|Added||Module name: common
Class name: LayoutInfo|common.d.ts| +|Added||Module name: common
Class name: LayoutInfo
Method or attribute name: position|common.d.ts| +|Added||Module name: common
Class name: LayoutInfo
Method or attribute name: constraint|common.d.ts| +|Added||Module name: common
Class name: LayoutChild|common.d.ts| +|Added||Module name: common
Class name: LayoutChild
Method or attribute name: name|common.d.ts| +|Added||Module name: common
Class name: LayoutChild
Method or attribute name: id|common.d.ts| +|Added||Module name: common
Class name: LayoutChild
Method or attribute name: constraint|common.d.ts| +|Added||Module name: common
Class name: LayoutChild
Method or attribute name: borderInfo|common.d.ts| +|Added||Module name: common
Class name: LayoutChild
Method or attribute name: position|common.d.ts| +|Added||Module name: common
Class name: LayoutChild
Method or attribute name: measure|common.d.ts| +|Added||Module name: common
Class name: LayoutChild
Method or attribute name: layout|common.d.ts| +|Added||Module name: common
Class name: CustomComponent
Method or attribute name: onLayout|common.d.ts| +|Added||Module name: common
Class name: CustomComponent
Method or attribute name: onMeasure|common.d.ts| +|Added||Module name: common
Class name: CustomComponent
Method or attribute name: pageTransition|common.d.ts| +|Added||Module name: common_ts_ets_api
Class name: AppStorage
Method or attribute name: Clear|common_ts_ets_api.d.ts| +|Added||Module name: enums
Class name: TitleHeight|enums.d.ts| +|Added||Module name: enums
Class name: TitleHeight
Method or attribute name: MainOnly|enums.d.ts| +|Added||Module name: enums
Class name: TitleHeight
Method or attribute name: MainWithSub|enums.d.ts| +|Added||Module name: flow_item
Class name: FlowItemInterface|flow_item.d.ts| +|Added||Module name: flow_item
Class name: FlowItemInterface
Method or attribute name: FlowItemInterface|flow_item.d.ts| +|Added||Module name: flow_item
Class name: FlowItemAttribute|flow_item.d.ts| +|Added||Method or attribute name: FormComponentInterface
Function name: (value: {
id: number;
name: string;
bundle: string;
ability: string;
module: string;
dimension?: FormDimension;
temporary?: boolean;
want?: import('../api/@ohos.application.Want').default;
}): FormComponentAttribute;|form_component.d.ts| +|Added||Method or attribute name: GridColInterface
Function name: (option?: GridColOptions): GridColAttribute;|grid_col.d.ts| +|Added||Module name: navigation
Class name: NavigationCommonTitle|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationCommonTitle
Method or attribute name: main|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationCommonTitle
Method or attribute name: sub|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationCustomTitle|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationCustomTitle
Method or attribute name: builder|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationCustomTitle
Method or attribute name: height|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationMode|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationMode
Method or attribute name: Stack|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationMode
Method or attribute name: Split|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationMode
Method or attribute name: Auto|navigation.d.ts| +|Added||Module name: navigation
Class name: NavBarPosition|navigation.d.ts| +|Added||Module name: navigation
Class name: NavBarPosition
Method or attribute name: Start|navigation.d.ts| +|Added||Module name: navigation
Class name: NavBarPosition
Method or attribute name: End|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationAttribute
Method or attribute name: navBarWidth|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationAttribute
Method or attribute name: navBarPosition|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationAttribute
Method or attribute name: mode|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationAttribute
Method or attribute name: backButtonIcon|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationAttribute
Method or attribute name: hideNavBar|navigation.d.ts| +|Added||Method or attribute name: title
Function name: title(value: string \| CustomBuilder \| NavigationCommonTitle \| NavigationCustomTitle): NavigationAttribute;|navigation.d.ts| +|Added||Module name: navigation
Class name: NavigationAttribute
Method or attribute name: onNavBarStateChange|navigation.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationCommonTitle|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationCommonTitle
Method or attribute name: main|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationCommonTitle
Method or attribute name: sub|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationCustomTitle|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationCustomTitle
Method or attribute name: builder|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationCustomTitle
Method or attribute name: height|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationInterface|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationInterface
Method or attribute name: NavDestinationInterface|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationAttribute|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationAttribute
Method or attribute name: title|nav_destination.d.ts| +|Added||Module name: nav_destination
Class name: NavDestinationAttribute
Method or attribute name: hideTitleBar|nav_destination.d.ts| +|Added||Module name: nav_router
Class name: NavRouterInterface|nav_router.d.ts| +|Added||Module name: nav_router
Class name: NavRouterInterface
Method or attribute name: NavRouterInterface|nav_router.d.ts| +|Added||Module name: nav_router
Class name: NavRouterAttribute|nav_router.d.ts| +|Added||Module name: nav_router
Class name: NavRouterAttribute
Method or attribute name: onStateChange|nav_router.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowOptions|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowOptions
Method or attribute name: footer|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowOptions
Method or attribute name: scroller|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowInterface|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowInterface
Method or attribute name: WaterFlowInterface|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowAttribute|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowAttribute
Method or attribute name: columnsTemplate|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowAttribute
Method or attribute name: itemConstraintSize|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowAttribute
Method or attribute name: rowsTemplate|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowAttribute
Method or attribute name: columnsGap|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowAttribute
Method or attribute name: rowsGap|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowAttribute
Method or attribute name: layoutDirection|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowAttribute
Method or attribute name: onReachStart|water_flow.d.ts| +|Added||Module name: water_flow
Class name: WaterFlowAttribute
Method or attribute name: onReachEnd|water_flow.d.ts| +|Added||Module name: web
Class name: FullScreenExitHandler|web.d.ts| +|Added||Module name: web
Class name: FullScreenExitHandler
Method or attribute name: exitFullScreen|web.d.ts| +|Added||Module name: web
Class name: ControllerHandler|web.d.ts| +|Added||Module name: web
Class name: ControllerHandler
Method or attribute name: setWebController|web.d.ts| +|Added||Module name: web
Class name: WebController
Method or attribute name: getUrl|web.d.ts| +|Added||Method or attribute name: controller
Function name: controller: WebController \| WebviewController;|web.d.ts| +|Added||Method or attribute name: javaScriptProxy
Function name: javaScriptProxy(javaScriptProxy: { object: object, name: string, methodList: Array,
controller: WebController \| WebviewController }): WebAttribute;|web.d.ts| +|Added||Module name: web
Class name: WebAttribute
Method or attribute name: onFullScreenExit|web.d.ts| +|Added||Module name: web
Class name: WebAttribute
Method or attribute name: onFullScreenEnter|web.d.ts| +|Added||Module name: web
Class name: WebAttribute
Method or attribute name: onWindowNew|web.d.ts| +|Added||Module name: web
Class name: WebAttribute
Method or attribute name: onWindowExit|web.d.ts| +|Added||Module name: web
Class name: WebAttribute
Method or attribute name: multiWindowAccess|web.d.ts| +|Added||Module name: viewmodel
Class name: ViewModel
Method or attribute name: $t|viewmodel.d.ts| +|Added||Module name: viewmodel
Class name: ElementReferences
Method or attribute name: ElementReferences|viewmodel.d.ts| +|Deleted||Module name: ohos.uiAppearance
Class name: uiAppearance||@ohos.uiAppearance.d.ts| +|Deleted||Module name: ohos.uiAppearance
Class name: DarkMode||@ohos.uiAppearance.d.ts| +|Deleted||Module name: ohos.uiAppearance
Class name: DarkMode
Method or attribute name: ALWAYS_DARK||@ohos.uiAppearance.d.ts| +|Deleted||Module name: ohos.uiAppearance
Class name: DarkMode
Method or attribute name: ALWAYS_LIGHT||@ohos.uiAppearance.d.ts| +|Deleted||Module name: ohos.uiAppearance
Class name: uiAppearance
Method or attribute name: setDarkMode||@ohos.uiAppearance.d.ts| +|Deleted||Module name: ohos.uiAppearance
Class name: uiAppearance
Method or attribute name: setDarkMode||@ohos.uiAppearance.d.ts| +|Deleted||Module name: ohos.uiAppearance
Class name: uiAppearance
Method or attribute name: getDarkMode||@ohos.uiAppearance.d.ts| +|Deleted||Module name: web
Class name: WebAttribute
Method or attribute name: fileFromUrlAccess||web.d.ts| +|Access level changed|Method or attribute name: springMotion
Access level: public API|Method or attribute name: springMotion
Access level: system API|@ohos.curves.d.ts| +|Access level changed|Method or attribute name: responsiveSpringMotion
Access level: public API|Method or attribute name: responsiveSpringMotion
Access level: system API|@ohos.curves.d.ts| +|Access level changed|Class name: BlurStyle
Access level: public API|Class name: BlurStyle
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: Thin
Access level: public API|Method or attribute name: Thin
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: Regular
Access level: public API|Method or attribute name: Regular
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: Thick
Access level: public API|Method or attribute name: Thick
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: backgroundBlurStyle
Access level: public API|Method or attribute name: backgroundBlurStyle
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: extendViewModel
Access level: public API|Method or attribute name: extendViewModel
Access level: system API|viewmodel.d.ts| +|Deprecated version changed|Method or attribute name: update
Deprecated version: N/A|Method or attribute name: update
Deprecated version: 9
New API: ohos.animator.reset |@ohos.animator.d.ts| +|Deprecated version changed|Method or attribute name: createAnimator
Deprecated version: N/A|Method or attribute name: createAnimator
Deprecated version: 9
New API: ohos.animator.create |@ohos.animator.d.ts| +|Deprecated version changed|Class name: prompt
Deprecated version: N/A|Class name: prompt
Deprecated version: 9
New API: ohos.promptAction |@ohos.prompt.d.ts| +|Deprecated version changed|Method or attribute name: push
Deprecated version: N/A|Method or attribute name: push
Deprecated version: 9
New API: ohos.router.router|@ohos.router.d.ts| +|Deprecated version changed|Method or attribute name: replace
Deprecated version: N/A|Method or attribute name: replace
Deprecated version: 9
New API: ohos.router.router|@ohos.router.d.ts| +|Deprecated version changed|Method or attribute name: enableAlertBeforeBackPage
Deprecated version: N/A|Method or attribute name: enableAlertBeforeBackPage
Deprecated version: 9
New API: ohos.router.router|@ohos.router.d.ts| +|Deprecated version changed|Method or attribute name: staticClear
Deprecated version: N/A|Method or attribute name: staticClear
Deprecated version: 9
New API: AppStorage.Clear |common_ts_ets_api.d.ts| +|Deprecated version changed|Method or attribute name: subTitle
Deprecated version: N/A|Method or attribute name: subTitle
Deprecated version: 9
New API: title |navigation.d.ts| +|Deprecated version changed|Method or attribute name: ructor(message
Deprecated version: N/A|Method or attribute name: ructor(message
Deprecated version: 9
New API: ohos.web.ConsoleMessage|web.d.ts| +|Deprecated version changed|Class name: WebController
Deprecated version: N/A|Class name: WebController
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController |web.d.ts| +|Deprecated version changed|Method or attribute name: onInactive
Deprecated version: N/A|Method or attribute name: onInactive
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: onActive
Deprecated version: N/A|Method or attribute name: onActive
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: zoom
Deprecated version: N/A|Method or attribute name: zoom
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: clearHistory
Deprecated version: N/A|Method or attribute name: clearHistory
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: runJavaScript
Deprecated version: N/A|Method or attribute name: runJavaScript
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: loadData
Deprecated version: N/A|Method or attribute name: loadData
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: loadUrl
Deprecated version: N/A|Method or attribute name: loadUrl
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: refresh
Deprecated version: N/A|Method or attribute name: refresh
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: stop
Deprecated version: N/A|Method or attribute name: stop
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: registerJavaScriptProxy
Deprecated version: N/A|Method or attribute name: registerJavaScriptProxy
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: deleteJavaScriptRegister
Deprecated version: N/A|Method or attribute name: deleteJavaScriptRegister
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: getHitTest
Deprecated version: N/A|Method or attribute name: getHitTest
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: requestFocus
Deprecated version: N/A|Method or attribute name: requestFocus
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: accessBackward
Deprecated version: N/A|Method or attribute name: accessBackward
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: accessForward
Deprecated version: N/A|Method or attribute name: accessForward
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: accessStep
Deprecated version: N/A|Method or attribute name: accessStep
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: backward
Deprecated version: N/A|Method or attribute name: backward
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Deprecated version changed|Method or attribute name: forward
Deprecated version: N/A|Method or attribute name: forward
Deprecated version: 9
New API: ohos.web.webview.webview.WebviewController|web.d.ts| +|Initial version changed|Method or attribute name: extendViewModel
Initial version: |Method or attribute name: extendViewModel
Initial version: 4|viewmodel.d.ts| +|Access level changed|Method or attribute name: springMotion
Access level: public API|Method or attribute name: springMotion
Access level: system API|@ohos.curves.d.ts| +|Access level changed|Method or attribute name: responsiveSpringMotion
Access level: public API|Method or attribute name: responsiveSpringMotion
Access level: system API|@ohos.curves.d.ts| +|Access level changed|Class name: BlurStyle
Access level: public API|Class name: BlurStyle
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: Thin
Access level: public API|Method or attribute name: Thin
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: Regular
Access level: public API|Method or attribute name: Regular
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: Thick
Access level: public API|Method or attribute name: Thick
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: backgroundBlurStyle
Access level: public API|Method or attribute name: backgroundBlurStyle
Access level: system API|common.d.ts| +|Access level changed|Method or attribute name: extendViewModel
Access level: public API|Method or attribute name: extendViewModel
Access level: system API|viewmodel.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-battery.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-battery.md new file mode 100644 index 0000000000000000000000000000000000000000..5a64b73afc104608ed9bef532f31bfbfee8c838a --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-battery.md @@ -0,0 +1,75 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.power
Class name: power
Method or attribute name: shutdown|@ohos.power.d.ts| +|Added||Module name: ohos.power
Class name: power
Method or attribute name: reboot|@ohos.power.d.ts| +|Added||Module name: ohos.power
Class name: power
Method or attribute name: isActive|@ohos.power.d.ts| +|Added||Module name: ohos.power
Class name: power
Method or attribute name: wakeup|@ohos.power.d.ts| +|Added||Module name: ohos.power
Class name: power
Method or attribute name: suspend|@ohos.power.d.ts| +|Added||Method or attribute name: getPowerMode
Function name: function getPowerMode(): DevicePowerMode;|@ohos.power.d.ts| +|Added||Module name: ohos.runningLock
Class name: RunningLock
Method or attribute name: hold|@ohos.runningLock.d.ts| +|Added||Module name: ohos.runningLock
Class name: RunningLock
Method or attribute name: isHolding|@ohos.runningLock.d.ts| +|Added||Module name: ohos.runningLock
Class name: RunningLock
Method or attribute name: unhold|@ohos.runningLock.d.ts| +|Added||Module name: ohos.runningLock
Class name: runningLock
Method or attribute name: isSupported|@ohos.runningLock.d.ts| +|Added||Module name: ohos.runningLock
Class name: runningLock
Method or attribute name: create|@ohos.runningLock.d.ts| +|Added||Module name: ohos.runningLock
Class name: runningLock
Method or attribute name: create|@ohos.runningLock.d.ts| +|Added||Module name: ohos.thermal
Class name: thermal
Method or attribute name: registerThermalLevelCallback|@ohos.thermal.d.ts| +|Added||Module name: ohos.thermal
Class name: thermal
Method or attribute name: unregisterThermalLevelCallback|@ohos.thermal.d.ts| +|Added||Module name: ohos.thermal
Class name: thermal
Method or attribute name: getLevel|@ohos.thermal.d.ts| +|Deleted|Module name: ohos.power
Class name: power
Method or attribute name: shutdownDevice||@ohos.power.d.ts| +|Deleted|Module name: ohos.power
Class name: power
Method or attribute name: wakeupDevice||@ohos.power.d.ts| +|Deleted|Module name: ohos.power
Class name: power
Method or attribute name: suspendDevice||@ohos.power.d.ts| +|Deprecated version changed|Method or attribute name: rebootDevice
Deprecated version: N/A|Method or attribute name: rebootDevice
Deprecated version: 9
New API: {@link power|@ohos.power.d.ts| +|Deprecated version changed|Method or attribute name: isScreenOn
Deprecated version: N/A|Method or attribute name: isScreenOn
Deprecated version: 9
New API: {@link power|@ohos.power.d.ts| +|Deprecated version changed|Method or attribute name: isScreenOn
Deprecated version: N/A|Method or attribute name: isScreenOn
Deprecated version: 9|@ohos.power.d.ts| +|Deprecated version changed|Method or attribute name: lock
Deprecated version: N/A|Method or attribute name: lock
Deprecated version: 9
New API: {@link RunningLock|@ohos.runningLock.d.ts| +|Deprecated version changed|Method or attribute name: isUsed
Deprecated version: N/A|Method or attribute name: isUsed
Deprecated version: 9
New API: {@link RunningLock|@ohos.runningLock.d.ts| +|Deprecated version changed|Method or attribute name: unlock
Deprecated version: N/A|Method or attribute name: unlock
Deprecated version: 9
New API: {@link RunningLock|@ohos.runningLock.d.ts| +|Deprecated version changed|Method or attribute name: isRunningLockTypeSupported
Deprecated version: N/A|Method or attribute name: isRunningLockTypeSupported
Deprecated version: 9
New API: {@link RunningLock|@ohos.runningLock.d.ts| +|Deprecated version changed|Method or attribute name: isRunningLockTypeSupported
Deprecated version: N/A|Method or attribute name: isRunningLockTypeSupported
Deprecated version: 9|@ohos.runningLock.d.ts| +|Deprecated version changed|Method or attribute name: createRunningLock
Deprecated version: N/A|Method or attribute name: createRunningLock
Deprecated version: 9
New API: {@link RunningLock|@ohos.runningLock.d.ts| +|Deprecated version changed|Method or attribute name: createRunningLock
Deprecated version: N/A|Method or attribute name: createRunningLock
Deprecated version: 9|@ohos.runningLock.d.ts| +|Deprecated version changed|Method or attribute name: subscribeThermalLevel
Deprecated version: N/A|Method or attribute name: subscribeThermalLevel
Deprecated version: 9
New API: {@link thermal|@ohos.thermal.d.ts| +|Deprecated version changed|Method or attribute name: unsubscribeThermalLevel
Deprecated version: N/A|Method or attribute name: unsubscribeThermalLevel
Deprecated version: 9
New API: {@link thermal|@ohos.thermal.d.ts| +|Deprecated version changed|Method or attribute name: getThermalLevel
Deprecated version: N/A|Method or attribute name: getThermalLevel
Deprecated version: 9
New API: {@link thermal|@ohos.thermal.d.ts| +|Deprecated version changed|Class name: BatteryResponse
Deprecated version: 9|Class name: BatteryResponse
Deprecated version: 6|@system.battery.d.ts| +|Deprecated version changed|Method or attribute name: charging
Deprecated version: 9|Method or attribute name: charging
Deprecated version: 6|@system.battery.d.ts| +|Deprecated version changed|Method or attribute name: level
Deprecated version: 9|Method or attribute name: level
Deprecated version: 6|@system.battery.d.ts| +|Deprecated version changed|Class name: GetStatusOptions
Deprecated version: 9|Class name: GetStatusOptions
Deprecated version: 6|@system.battery.d.ts| +|Deprecated version changed|Method or attribute name: success
Deprecated version: 9|Method or attribute name: success
Deprecated version: 6|@system.battery.d.ts| +|Deprecated version changed|Method or attribute name: fail
Deprecated version: 9|Method or attribute name: fail
Deprecated version: 6|@system.battery.d.ts| +|Deprecated version changed|Method or attribute name: complete
Deprecated version: 9|Method or attribute name: complete
Deprecated version: 6|@system.battery.d.ts| +|Deprecated version changed|Class name: Battery
Deprecated version: 9|Class name: Battery
Deprecated version: 6|@system.battery.d.ts| +|Deprecated version changed|Method or attribute name: getStatus
Deprecated version: 9|Method or attribute name: getStatus
Deprecated version: 6|@system.battery.d.ts| +|Deprecated version changed|Class name: BrightnessResponse
Deprecated version: 9|Class name: BrightnessResponse
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: value
Deprecated version: 9|Method or attribute name: value
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Class name: GetBrightnessOptions
Deprecated version: 9|Class name: GetBrightnessOptions
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: success
Deprecated version: 9|Method or attribute name: success
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: fail
Deprecated version: 9|Method or attribute name: fail
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: complete
Deprecated version: 9|Method or attribute name: complete
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Class name: SetBrightnessOptions
Deprecated version: 9|Class name: SetBrightnessOptions
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: value
Deprecated version: 9|Method or attribute name: value
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: success
Deprecated version: 9|Method or attribute name: success
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: fail
Deprecated version: 9|Method or attribute name: fail
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: complete
Deprecated version: 9|Method or attribute name: complete
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Class name: BrightnessModeResponse
Deprecated version: 9|Class name: BrightnessModeResponse
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: mode
Deprecated version: 9|Method or attribute name: mode
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Class name: GetBrightnessModeOptions
Deprecated version: 9|Class name: GetBrightnessModeOptions
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: success
Deprecated version: 9|Method or attribute name: success
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: fail
Deprecated version: 9|Method or attribute name: fail
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: complete
Deprecated version: 9|Method or attribute name: complete
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Class name: SetBrightnessModeOptions
Deprecated version: 9|Class name: SetBrightnessModeOptions
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: mode
Deprecated version: 9|Method or attribute name: mode
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: success
Deprecated version: 9|Method or attribute name: success
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: fail
Deprecated version: 9|Method or attribute name: fail
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: complete
Deprecated version: 9|Method or attribute name: complete
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Class name: SetKeepScreenOnOptions
Deprecated version: 9|Class name: SetKeepScreenOnOptions
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: keepScreenOn
Deprecated version: 9|Method or attribute name: keepScreenOn
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: success
Deprecated version: 9|Method or attribute name: success
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: fail
Deprecated version: 9|Method or attribute name: fail
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: complete
Deprecated version: 9|Method or attribute name: complete
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Class name: Brightness
Deprecated version: 9|Class name: Brightness
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: getValue
Deprecated version: 9|Method or attribute name: getValue
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: setValue
Deprecated version: 9|Method or attribute name: setValue
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: getMode
Deprecated version: 9|Method or attribute name: getMode
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: setMode
Deprecated version: 9|Method or attribute name: setMode
Deprecated version: 7|@system.brightness.d.ts| +|Deprecated version changed|Method or attribute name: setKeepScreenOn
Deprecated version: 9|Method or attribute name: setKeepScreenOn
Deprecated version: 7|@system.brightness.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-bundle.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-bundle.md new file mode 100644 index 0000000000000000000000000000000000000000..48a79d30e72e4091466e5bae4c122f172eee937c --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-bundle.md @@ -0,0 +1,520 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.bundle.appControl
Class name: appControl|@ohos.bundle.appControl.d.ts| +|Added||Module name: ohos.bundle.appControl
Class name: appControl
Method or attribute name: setDisposedStatus|@ohos.bundle.appControl.d.ts| +|Added||Module name: ohos.bundle.appControl
Class name: appControl
Method or attribute name: setDisposedStatus|@ohos.bundle.appControl.d.ts| +|Added||Module name: ohos.bundle.appControl
Class name: appControl
Method or attribute name: getDisposedStatus|@ohos.bundle.appControl.d.ts| +|Added||Module name: ohos.bundle.appControl
Class name: appControl
Method or attribute name: getDisposedStatus|@ohos.bundle.appControl.d.ts| +|Added||Module name: ohos.bundle.appControl
Class name: appControl
Method or attribute name: deleteDisposedStatus|@ohos.bundle.appControl.d.ts| +|Added||Module name: ohos.bundle.appControl
Class name: appControl
Method or attribute name: deleteDisposedStatus|@ohos.bundle.appControl.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_INFO_WITH_APPLICATION|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_INFO_WITH_HAP_MODULE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_INFO_WITH_ABILITY|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_INFO_WITH_REQUESTED_PERMISSION|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_INFO_WITH_DISABLE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_INFO_WITH_SIGNATURE_INFO|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ApplicationFlag|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ApplicationFlag
Method or attribute name: GET_APPLICATION_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ApplicationFlag
Method or attribute name: GET_APPLICATION_INFO_WITH_PERMISSION|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ApplicationFlag
Method or attribute name: GET_APPLICATION_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ApplicationFlag
Method or attribute name: GET_APPLICATION_INFO_WITH_DISABLE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityFlag|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityFlag
Method or attribute name: GET_ABILITY_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityFlag
Method or attribute name: GET_ABILITY_INFO_WITH_PERMISSION|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityFlag
Method or attribute name: GET_ABILITY_INFO_WITH_APPLICATION|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityFlag
Method or attribute name: GET_ABILITY_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityFlag
Method or attribute name: GET_ABILITY_INFO_WITH_DISABLE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityFlag
Method or attribute name: GET_ABILITY_INFO_ONLY_SYSTEM_APP|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityFlag|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityFlag
Method or attribute name: GET_EXTENSION_ABILITY_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityFlag
Method or attribute name: GET_EXTENSION_ABILITY_INFO_WITH_PERMISSION|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityFlag
Method or attribute name: GET_EXTENSION_ABILITY_INFO_WITH_APPLICATION|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityFlag
Method or attribute name: GET_EXTENSION_ABILITY_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: FORM|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: WORK_SCHEDULER|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: INPUT_METHOD|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: SERVICE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: ACCESSIBILITY|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: DATA_SHARE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: FILE_SHARE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: STATIC_SUBSCRIBER|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: WALLPAPER|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: BACKUP|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: WINDOW|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: ENTERPRISE_ADMIN|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: THUMBNAIL|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: PREVIEW|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: ExtensionAbilityType
Method or attribute name: UNSPECIFIED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: PermissionGrantState|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: PermissionGrantState
Method or attribute name: PERMISSION_DENIED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: PermissionGrantState
Method or attribute name: PERMISSION_GRANTED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: SupportWindowMode|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: SupportWindowMode
Method or attribute name: FULL_SCREEN|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: SupportWindowMode
Method or attribute name: SPLIT|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: SupportWindowMode
Method or attribute name: FLOATING|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: LaunchType|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: LaunchType
Method or attribute name: SINGLETON|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: LaunchType
Method or attribute name: STANDARD|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: LaunchType
Method or attribute name: SPECIFIED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityType|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityType
Method or attribute name: PAGE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityType
Method or attribute name: SERVICE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: AbilityType
Method or attribute name: DATA|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: UNSPECIFIED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: LANDSCAPE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: PORTRAIT|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: FOLLOW_RECENT|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: LANDSCAPE_INVERTED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: PORTRAIT_INVERTED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_LANDSCAPE|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_PORTRAIT|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_RESTRICTED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_LANDSCAPE_RESTRICTED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_PORTRAIT_RESTRICTED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: DisplayOrientation
Method or attribute name: LOCKED|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleInfoForSelf|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleInfoForSelf|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAllBundleInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAllBundleInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAllBundleInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAllApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAllApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAllApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: queryAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: queryAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: queryAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: queryExtensionAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: queryExtensionAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: queryExtensionAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleNameByUid|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleNameByUid|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleArchiveInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleArchiveInfo|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: cleanBundleCacheFiles|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: cleanBundleCacheFiles|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: setApplicationEnabled|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: setApplicationEnabled|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: setAbilityEnabled|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: setAbilityEnabled|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: isApplicationEnabled|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: isApplicationEnabled|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: isAbilityEnabled|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: isAbilityEnabled|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getLaunchWantForBundle|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getLaunchWantForBundle|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getLaunchWantForBundle|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getProfileByAbility|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getProfileByAbility|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getProfileByExtensionAbility|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getProfileByExtensionAbility|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getPermissionDef|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getPermissionDef|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAbilityLabel|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAbilityLabel|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAbilityIcon|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getAbilityIcon|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getApplicationInfoSync|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getApplicationInfoSync|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleInfoSync|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleManager
Class name: bundleManager
Method or attribute name: getBundleInfoSync|@ohos.bundle.bundleManager.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: bundleMonitor|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: BundleChangedInfo|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: BundleChangedInfo
Method or attribute name: bundleName|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: BundleChangedInfo
Method or attribute name: userId|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: bundleMonitor
Method or attribute name: on_add|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: bundleMonitor
Method or attribute name: on_update|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: bundleMonitor
Method or attribute name: on_remove|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: bundleMonitor
Method or attribute name: off_add|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: bundleMonitor
Method or attribute name: off_update|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.bundleMonitor
Class name: bundleMonitor
Method or attribute name: off_remove|@ohos.bundle.bundleMonitor.d.ts| +|Added||Module name: ohos.bundle.defaultAppManager
Class name: ApplicationType|@ohos.bundle.defaultAppManager.d.ts| +|Added||Method or attribute name: BROWSER
Function name: BROWSER = "Web Browser"|@ohos.bundle.defaultAppManager.d.ts| +|Added||Method or attribute name: IMAGE
Function name: IMAGE = "Image Gallery"|@ohos.bundle.defaultAppManager.d.ts| +|Added||Method or attribute name: AUDIO
Function name: AUDIO = "Audio Player"|@ohos.bundle.defaultAppManager.d.ts| +|Added||Method or attribute name: VIDEO
Function name: VIDEO = "Video Player"|@ohos.bundle.defaultAppManager.d.ts| +|Added||Method or attribute name: PDF
Function name: PDF = "PDF Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|Added||Method or attribute name: WORD
Function name: WORD = "Word Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|Added||Method or attribute name: EXCEL
Function name: EXCEL = "Excel Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|Added||Method or attribute name: PPT
Function name: PPT = "PPT Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|Added||Module name: ohos.bundle.distributedBundle
Class name: distributedBundle|@ohos.bundle.distributedBundle.d.ts| +|Added||Module name: ohos.bundle.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|Added||Module name: ohos.bundle.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|Added||Module name: ohos.bundle.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|Added||Module name: ohos.bundle.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|Added||Module name: ohos.bundle.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|Added||Module name: ohos.bundle.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|Added||Module name: ohos.bundle.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|Added||Module name: ohos.bundle.distributedBundle
Class name: distributedBundle
Method or attribute name: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: freeInstall|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: UpgradeFlag|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: UpgradeFlag
Method or attribute name: NOT_UPGRADE|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: UpgradeFlag
Method or attribute name: SINGLE_UPGRADE|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: UpgradeFlag
Method or attribute name: RELATION_UPGRADE|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: BundlePackFlag|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: BundlePackFlag
Method or attribute name: GET_PACK_INFO_ALL|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: BundlePackFlag
Method or attribute name: GET_PACKAGES|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: BundlePackFlag
Method or attribute name: GET_BUNDLE_SUMMARY|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: BundlePackFlag
Method or attribute name: GET_MODULE_SUMMARY|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: freeInstall
Method or attribute name: setHapModuleUpgradeFlag|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: freeInstall
Method or attribute name: setHapModuleUpgradeFlag|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: freeInstall
Method or attribute name: isHapModuleRemovable|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: freeInstall
Method or attribute name: isHapModuleRemovable|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: freeInstall
Method or attribute name: getBundlePackInfo|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: freeInstall
Method or attribute name: getBundlePackInfo|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: freeInstall
Method or attribute name: getDispatchInfo|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.freeInstall
Class name: freeInstall
Method or attribute name: getDispatchInfo|@ohos.bundle.freeInstall.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: installer|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: installer
Method or attribute name: getBundleInstaller|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: installer
Method or attribute name: getBundleInstaller|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: BundleInstaller|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: BundleInstaller
Method or attribute name: install|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: BundleInstaller
Method or attribute name: uninstall|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: BundleInstaller
Method or attribute name: recover|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: HashParam|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: HashParam
Method or attribute name: moduleName|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: HashParam
Method or attribute name: hashValue|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: InstallParam|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: InstallParam
Method or attribute name: userId|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: InstallParam
Method or attribute name: installFlag|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: InstallParam
Method or attribute name: isKeepData|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: InstallParam
Method or attribute name: hashParams|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.installer
Class name: InstallParam
Method or attribute name: crowdtestDeadline|@ohos.bundle.installer.d.ts| +|Added||Module name: ohos.bundle.launcherBundleManager
Class name: launcherBundleManager|@ohos.bundle.launcherBundleManager.d.ts| +|Added||Module name: ohos.bundle.launcherBundleManager
Class name: launcherBundleManager
Method or attribute name: getLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| +|Added||Module name: ohos.bundle.launcherBundleManager
Class name: launcherBundleManager
Method or attribute name: getLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| +|Added||Module name: ohos.bundle.launcherBundleManager
Class name: launcherBundleManager
Method or attribute name: getAllLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| +|Added||Module name: ohos.bundle.launcherBundleManager
Class name: launcherBundleManager
Method or attribute name: getAllLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| +|Added||Module name: ohos.bundle.launcherBundleManager
Class name: launcherBundleManager
Method or attribute name: getShortcutInfo|@ohos.bundle.launcherBundleManager.d.ts| +|Added||Module name: ohos.bundle.launcherBundleManager
Class name: launcherBundleManager
Method or attribute name: getShortcutInfo|@ohos.bundle.launcherBundleManager.d.ts| +|Added||Module name: ohos.zlib
Class name: zlib
Method or attribute name: compressFile|@ohos.zlib.d.ts| +|Added||Module name: ohos.zlib
Class name: zlib
Method or attribute name: compressFile|@ohos.zlib.d.ts| +|Added||Module name: ohos.zlib
Class name: zlib
Method or attribute name: decompressFile|@ohos.zlib.d.ts| +|Added||Module name: ohos.zlib
Class name: zlib
Method or attribute name: decompressFile|@ohos.zlib.d.ts| +|Added||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: type|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: orientation|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: launchType|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: metadata|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: supportWindowModes|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: windowSize|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: WindowSize|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: WindowSize
Method or attribute name: maxWindowRatio|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: WindowSize
Method or attribute name: minWindowRatio|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: WindowSize
Method or attribute name: maxWindowWidth|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: WindowSize
Method or attribute name: minWindowWidth|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: WindowSize
Method or attribute name: maxWindowHeight|abilityInfo.d.ts| +|Added||Module name: abilityInfo
Class name: WindowSize
Method or attribute name: minWindowHeight|abilityInfo.d.ts| +|Added||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: labelId|applicationInfo.d.ts| +|Added||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: iconId|applicationInfo.d.ts| +|Added||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: metadata|applicationInfo.d.ts| +|Added||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: iconResource|applicationInfo.d.ts| +|Added||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: labelResource|applicationInfo.d.ts| +|Added||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: descriptionResource|applicationInfo.d.ts| +|Added||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: appDistributionType|applicationInfo.d.ts| +|Added||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: appProvisionType|applicationInfo.d.ts| +|Added||Module name: bundleInfo
Class name: BundleInfo
Method or attribute name: hapModulesInfo|bundleInfo.d.ts| +|Added||Module name: bundleInfo
Class name: BundleInfo
Method or attribute name: permissionGrantStates|bundleInfo.d.ts| +|Added||Module name: bundleInfo
Class name: BundleInfo
Method or attribute name: signatureInfo|bundleInfo.d.ts| +|Added||Module name: bundleInfo
Class name: ReqPermissionDetail
Method or attribute name: reasonId|bundleInfo.d.ts| +|Added||Module name: bundleInfo
Class name: SignatureInfo|bundleInfo.d.ts| +|Added||Module name: bundleInfo
Class name: SignatureInfo
Method or attribute name: appId|bundleInfo.d.ts| +|Added||Module name: bundleInfo
Class name: SignatureInfo
Method or attribute name: fingerprint|bundleInfo.d.ts| +|Added||Module name: dispatchInfo
Class name: DispatchInfo|dispatchInfo.d.ts| +|Added||Module name: dispatchInfo
Class name: DispatchInfo
Method or attribute name: version|dispatchInfo.d.ts| +|Added||Module name: dispatchInfo
Class name: DispatchInfo
Method or attribute name: dispatchAPIVersion|dispatchInfo.d.ts| +|Added||Module name: elementName
Class name: ElementName
Method or attribute name: moduleName|elementName.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: bundleName|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: moduleName|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: name|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: labelId|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: descriptionId|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: iconId|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: isVisible|extensionAbilityInfo.d.ts| +|Added||Method or attribute name: extensionAbilityType
Function name: readonly extensionAbilityType: bundleManager.ExtensionAbilityType;|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: permissions|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: applicationInfo|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: metadata|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: enabled|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: readPermission|extensionAbilityInfo.d.ts| +|Added||Module name: extensionAbilityInfo
Class name: ExtensionAbilityInfo
Method or attribute name: writePermission|extensionAbilityInfo.d.ts| +|Added||Module name: hapModuleInfo
Class name: HapModuleInfo
Method or attribute name: mainElementName|hapModuleInfo.d.ts| +|Added||Module name: hapModuleInfo
Class name: HapModuleInfo
Method or attribute name: abilitiesInfo|hapModuleInfo.d.ts| +|Added||Module name: hapModuleInfo
Class name: HapModuleInfo
Method or attribute name: extensionAbilitiesInfo|hapModuleInfo.d.ts| +|Added||Module name: hapModuleInfo
Class name: HapModuleInfo
Method or attribute name: metadata|hapModuleInfo.d.ts| +|Added||Module name: hapModuleInfo
Class name: HapModuleInfo
Method or attribute name: hashValue|hapModuleInfo.d.ts| +|Added||Module name: hapModuleInfo
Class name: HapModuleInfo
Method or attribute name: moduleSourceDir|hapModuleInfo.d.ts| +|Added||Module name: metadata
Class name: Metadata
Method or attribute name: name|metadata.d.ts| +|Added||Module name: metadata
Class name: Metadata
Method or attribute name: value|metadata.d.ts| +|Added||Module name: metadata
Class name: Metadata
Method or attribute name: resource|metadata.d.ts| +|Added||Module name: packInfo
Class name: BundlePackInfo|packInfo.d.ts| +|Added||Module name: packInfo
Class name: BundlePackInfo
Method or attribute name: packages|packInfo.d.ts| +|Added||Module name: packInfo
Class name: BundlePackInfo
Method or attribute name: summary|packInfo.d.ts| +|Added||Module name: packInfo
Class name: PackageConfig|packInfo.d.ts| +|Added||Module name: packInfo
Class name: PackageConfig
Method or attribute name: deviceTypes|packInfo.d.ts| +|Added||Module name: packInfo
Class name: PackageConfig
Method or attribute name: name|packInfo.d.ts| +|Added||Module name: packInfo
Class name: PackageConfig
Method or attribute name: moduleType|packInfo.d.ts| +|Added||Module name: packInfo
Class name: PackageConfig
Method or attribute name: deliveryWithInstall|packInfo.d.ts| +|Added||Module name: packInfo
Class name: PackageSummary|packInfo.d.ts| +|Added||Module name: packInfo
Class name: PackageSummary
Method or attribute name: app|packInfo.d.ts| +|Added||Module name: packInfo
Class name: PackageSummary
Method or attribute name: modules|packInfo.d.ts| +|Added||Module name: packInfo
Class name: BundleConfigInfo|packInfo.d.ts| +|Added||Module name: packInfo
Class name: BundleConfigInfo
Method or attribute name: bundleName|packInfo.d.ts| +|Added||Module name: packInfo
Class name: BundleConfigInfo
Method or attribute name: version|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ExtensionAbility|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ExtensionAbility
Method or attribute name: name|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ExtensionAbility
Method or attribute name: forms|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleConfigInfo|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleConfigInfo
Method or attribute name: mainAbility|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleConfigInfo
Method or attribute name: apiVersion|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleConfigInfo
Method or attribute name: deviceTypes|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleConfigInfo
Method or attribute name: distro|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleConfigInfo
Method or attribute name: abilities|packInfo.d.ts| +|Added||Method or attribute name: extensionAbilities
Function name: readonly extensionAbilities: Array;|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleDistroInfo|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleDistroInfo
Method or attribute name: deliveryWithInstall|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleDistroInfo
Method or attribute name: installationFree|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleDistroInfo
Method or attribute name: moduleName|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleDistroInfo
Method or attribute name: moduleType|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleAbilityInfo|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleAbilityInfo
Method or attribute name: name|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleAbilityInfo
Method or attribute name: label|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleAbilityInfo
Method or attribute name: visible|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ModuleAbilityInfo
Method or attribute name: forms|packInfo.d.ts| +|Added||Module name: packInfo
Class name: AbilityFormInfo|packInfo.d.ts| +|Added||Module name: packInfo
Class name: AbilityFormInfo
Method or attribute name: name|packInfo.d.ts| +|Added||Module name: packInfo
Class name: AbilityFormInfo
Method or attribute name: type|packInfo.d.ts| +|Added||Module name: packInfo
Class name: AbilityFormInfo
Method or attribute name: updateEnabled|packInfo.d.ts| +|Added||Module name: packInfo
Class name: AbilityFormInfo
Method or attribute name: scheduledUpdateTime|packInfo.d.ts| +|Added||Module name: packInfo
Class name: AbilityFormInfo
Method or attribute name: updateDuration|packInfo.d.ts| +|Added||Method or attribute name: supportDimensions
Function name: readonly supportDimensions: Array;|packInfo.d.ts| +|Added||Method or attribute name: defaultDimension
Function name: readonly defaultDimension: string;|packInfo.d.ts| +|Added||Module name: packInfo
Class name: Version|packInfo.d.ts| +|Added||Module name: packInfo
Class name: Version
Method or attribute name: minCompatibleVersionCode|packInfo.d.ts| +|Added||Module name: packInfo
Class name: Version
Method or attribute name: name|packInfo.d.ts| +|Added||Module name: packInfo
Class name: Version
Method or attribute name: code|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ApiVersion|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ApiVersion
Method or attribute name: releaseType|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ApiVersion
Method or attribute name: compatible|packInfo.d.ts| +|Added||Module name: packInfo
Class name: ApiVersion
Method or attribute name: target|packInfo.d.ts| +|Added||Module name: permissionDef
Class name: PermissionDef|permissionDef.d.ts| +|Added||Module name: permissionDef
Class name: PermissionDef
Method or attribute name: permissionName|permissionDef.d.ts| +|Added||Module name: permissionDef
Class name: PermissionDef
Method or attribute name: grantMode|permissionDef.d.ts| +|Added||Module name: permissionDef
Class name: PermissionDef
Method or attribute name: labelId|permissionDef.d.ts| +|Added||Module name: permissionDef
Class name: PermissionDef
Method or attribute name: descriptionId|permissionDef.d.ts| +|Added||Method or attribute name: moduleName
Function name: readonly moduleName: string;|shortcutInfo.d.ts| +|Added||Module name: shortcutInfo
Class name: ShortcutWant
Method or attribute name: targetModule|shortcutInfo.d.ts| +|Added||Module name: shortcutInfo
Class name: ShortcutWant
Method or attribute name: targetAbility|shortcutInfo.d.ts| +|Deleted||Module name: ohos.bundle
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_WITH_EXTENSION_ABILITY||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: BundleFlag
Method or attribute name: GET_BUNDLE_WITH_HASH_VALUE||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: BundleFlag
Method or attribute name: GET_APPLICATION_INFO_WITH_CERTIFICATE_FINGERPRINT||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionFlag||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionFlag
Method or attribute name: GET_EXTENSION_INFO_DEFAULT||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionFlag
Method or attribute name: GET_EXTENSION_INFO_WITH_PERMISSION||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionFlag
Method or attribute name: GET_EXTENSION_INFO_WITH_APPLICATION||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionFlag
Method or attribute name: GET_EXTENSION_INFO_WITH_METADATA||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: DisplayOrientation
Method or attribute name: LANDSCAPE_INVERTED||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: DisplayOrientation
Method or attribute name: PORTRAIT_INVERTED||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_LANDSCAPE||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_PORTRAIT||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_RESTRICTED||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_LANDSCAPE_RESTRICTED||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: DisplayOrientation
Method or attribute name: AUTO_ROTATION_PORTRAIT_RESTRICTED||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: DisplayOrientation
Method or attribute name: LOCKED||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionAbilityType||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: FORM||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: WORK_SCHEDULER||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: INPUT_METHOD||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: SERVICE||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: ACCESSIBILITY||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: DATA_SHARE||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: FILE_SHARE||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: STATIC_SUBSCRIBER||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: WALLPAPER||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: BACKUP||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: WINDOW||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: ENTERPRISE_ADMIN||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: THUMBNAIL||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: PREVIEW||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: ExtensionAbilityType
Method or attribute name: UNSPECIFIED||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: UpgradeFlag||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: UpgradeFlag
Method or attribute name: NOT_UPGRADE||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: UpgradeFlag
Method or attribute name: SINGLE_UPGRADE||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: UpgradeFlag
Method or attribute name: RELATION_UPGRADE||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: SupportWindowMode||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: SupportWindowMode
Method or attribute name: FULL_SCREEN||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: SupportWindowMode
Method or attribute name: SPLIT||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: SupportWindowMode
Method or attribute name: FLOATING||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: queryExtensionAbilityInfos||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: queryExtensionAbilityInfos||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: queryExtensionAbilityInfos||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: setModuleUpgradeFlag||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: setModuleUpgradeFlag||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: isModuleRemovable||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: isModuleRemovable||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: getBundlePackInfo||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: getBundlePackInfo||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: getDispatcherVersion||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: getDispatcherVersion||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: getProfileByAbility||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: getProfileByAbility||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: getProfileByExtensionAbility||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: getProfileByExtensionAbility||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: setDisposedStatus||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: setDisposedStatus||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: getDisposedStatus||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: getDisposedStatus||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: getApplicationInfoSync||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: getApplicationInfoSync||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: getBundleInfoSync||@ohos.bundle.d.ts| +|Deleted||Module name: ohos.bundle
Class name: bundle
Method or attribute name: getBundleInfoSync||@ohos.bundle.d.ts| +|Deleted||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: supportWindowMode||abilityInfo.d.ts| +|Deleted||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: maxWindowRatio||abilityInfo.d.ts| +|Deleted||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: minWindowRatio||abilityInfo.d.ts| +|Deleted||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: maxWindowWidth||abilityInfo.d.ts| +|Deleted||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: minWindowWidth||abilityInfo.d.ts| +|Deleted||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: maxWindowHeight||abilityInfo.d.ts| +|Deleted||Module name: abilityInfo
Class name: AbilityInfo
Method or attribute name: minWindowHeight||abilityInfo.d.ts| +|Deleted||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: labelIndex||applicationInfo.d.ts| +|Deleted||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: iconIndex||applicationInfo.d.ts| +|Deleted||Module name: applicationInfo
Class name: ApplicationInfo
Method or attribute name: fingerprint||applicationInfo.d.ts| +|Deleted||Module name: bundleInfo
Class name: BundleInfo
Method or attribute name: extensionAbilityInfo||bundleInfo.d.ts| +|Deleted||Module name: bundleInstaller
Class name: HashParam||bundleInstaller.d.ts| +|Deleted||Module name: bundleInstaller
Class name: HashParam
Method or attribute name: moduleName||bundleInstaller.d.ts| +|Deleted||Module name: bundleInstaller
Class name: HashParam
Method or attribute name: hashValue||bundleInstaller.d.ts| +|Deleted||Module name: bundleInstaller
Class name: InstallParam
Method or attribute name: hashParams||bundleInstaller.d.ts| +|Deleted||Module name: bundleInstaller
Class name: InstallParam
Method or attribute name: crowdtestDeadline||bundleInstaller.d.ts| +|Deleted||Module name: dispatchInfo
Class name: DispatchInfo
Method or attribute name: dispatchAPI||dispatchInfo.d.ts| +|Deleted||Module name: hapModuleInfo
Class name: HapModuleInfo
Method or attribute name: extensionAbilityInfo||hapModuleInfo.d.ts| +|Deleted||Module name: packInfo
Class name: PackageConfig
Method or attribute name: deviceType||packInfo.d.ts| +|Deleted||Module name: packInfo
Class name: ExtensionAbilities||packInfo.d.ts| +|Deleted||Module name: packInfo
Class name: ExtensionAbilities
Method or attribute name: name||packInfo.d.ts| +|Deleted||Module name: packInfo
Class name: ExtensionAbilities
Method or attribute name: forms||packInfo.d.ts| +|Deleted||Module name: packInfo
Class name: ModuleConfigInfo
Method or attribute name: deviceType||packInfo.d.ts| +|Deleted||Module name: packInfo
Class name: ModuleDistroInfo
Method or attribute name: mainAbility||packInfo.d.ts| +|Deleted||Module name: packInfo
Class name: BundlePackFlag||packInfo.d.ts| +|Deleted||Module name: packInfo
Class name: BundlePackFlag
Method or attribute name: GET_PACK_INFO_ALL||packInfo.d.ts| +|Deleted||Module name: packInfo
Class name: BundlePackFlag
Method or attribute name: GET_PACKAGES||packInfo.d.ts| +|Deleted||Module name: packInfo
Class name: BundlePackFlag
Method or attribute name: GET_BUNDLE_SUMMARY||packInfo.d.ts| +|Deleted||Module name: packInfo
Class name: BundlePackFlag
Method or attribute name: GET_MODULE_SUMMARY||packInfo.d.ts| +|Deprecated version changed|Class name: bundle
Deprecated version: N/A|Class name: bundle
Deprecated version: 9
New API: ohos.bundle.bundleManager |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: BundleFlag
Deprecated version: N/A|Class name: BundleFlag
Deprecated version: 9
New API: ohos.bundle.bundleManager.BundleFlag|@ohos.bundle.d.ts| +|Deprecated version changed|Class name: ColorMode
Deprecated version: N/A|Class name: ColorMode
Deprecated version: 9
New API: ohos.bundle.bundleManager |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: GrantStatus
Deprecated version: N/A|Class name: GrantStatus
Deprecated version: 9
New API: ohos.bundle.bundleManager.PermissionGrantState |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: AbilityType
Deprecated version: N/A|Class name: AbilityType
Deprecated version: 9
New API: ohos.bundle.bundleManager.AbilityType |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: AbilitySubType
Deprecated version: N/A|Class name: AbilitySubType
Deprecated version: 9
New API: ohos.bundle.bundleManager |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: DisplayOrientation
Deprecated version: N/A|Class name: DisplayOrientation
Deprecated version: 9
New API: ohos.bundle.bundleManager.DisplayOrientation |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: LaunchMode
Deprecated version: N/A|Class name: LaunchMode
Deprecated version: 9
New API: ohos.bundle.bundleManager.LaunchType |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: BundleOptions
Deprecated version: N/A|Class name: BundleOptions
Deprecated version: 9
New API: ohos.bundle.bundleManager |@ohos.bundle.d.ts| +|Deprecated version changed|Class name: InstallErrorCode
Deprecated version: N/A|Class name: InstallErrorCode
Deprecated version: 9
New API: ohos.bundle.bundleManager |@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getBundleInfo
Deprecated version: N/A|Method or attribute name: getBundleInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getBundleInfo
Deprecated version: N/A|Method or attribute name: getBundleInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getBundleInfo
Deprecated version: N/A|Method or attribute name: getBundleInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getBundleInstaller
Deprecated version: N/A|Method or attribute name: getBundleInstaller
Deprecated version: 9
New API: ohos.bundle.installer|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getBundleInstaller
Deprecated version: N/A|Method or attribute name: getBundleInstaller
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityInfo
Deprecated version: N/A|Method or attribute name: getAbilityInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityInfo
Deprecated version: N/A|Method or attribute name: getAbilityInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getApplicationInfo
Deprecated version: N/A|Method or attribute name: getApplicationInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getApplicationInfo
Deprecated version: N/A|Method or attribute name: getApplicationInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getApplicationInfo
Deprecated version: N/A|Method or attribute name: getApplicationInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: queryAbilityByWant
Deprecated version: N/A|Method or attribute name: queryAbilityByWant
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: queryAbilityByWant
Deprecated version: N/A|Method or attribute name: queryAbilityByWant
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: queryAbilityByWant
Deprecated version: N/A|Method or attribute name: queryAbilityByWant
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAllBundleInfo
Deprecated version: N/A|Method or attribute name: getAllBundleInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAllBundleInfo
Deprecated version: N/A|Method or attribute name: getAllBundleInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAllBundleInfo
Deprecated version: N/A|Method or attribute name: getAllBundleInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAllApplicationInfo
Deprecated version: N/A|Method or attribute name: getAllApplicationInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAllApplicationInfo
Deprecated version: N/A|Method or attribute name: getAllApplicationInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAllApplicationInfo
Deprecated version: N/A|Method or attribute name: getAllApplicationInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getNameForUid
Deprecated version: N/A|Method or attribute name: getNameForUid
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getNameForUid
Deprecated version: N/A|Method or attribute name: getNameForUid
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getBundleArchiveInfo
Deprecated version: N/A|Method or attribute name: getBundleArchiveInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getBundleArchiveInfo
Deprecated version: N/A|Method or attribute name: getBundleArchiveInfo
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getLaunchWantForBundle
Deprecated version: N/A|Method or attribute name: getLaunchWantForBundle
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getLaunchWantForBundle
Deprecated version: N/A|Method or attribute name: getLaunchWantForBundle
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: cleanBundleCacheFiles
Deprecated version: N/A|Method or attribute name: cleanBundleCacheFiles
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: cleanBundleCacheFiles
Deprecated version: N/A|Method or attribute name: cleanBundleCacheFiles
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: setApplicationEnabled
Deprecated version: N/A|Method or attribute name: setApplicationEnabled
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: setApplicationEnabled
Deprecated version: N/A|Method or attribute name: setApplicationEnabled
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: setAbilityEnabled
Deprecated version: N/A|Method or attribute name: setAbilityEnabled
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: setAbilityEnabled
Deprecated version: N/A|Method or attribute name: setAbilityEnabled
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getPermissionDef
Deprecated version: N/A|Method or attribute name: getPermissionDef
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getPermissionDef
Deprecated version: N/A|Method or attribute name: getPermissionDef
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityLabel
Deprecated version: N/A|Method or attribute name: getAbilityLabel
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityLabel
Deprecated version: N/A|Method or attribute name: getAbilityLabel
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityIcon
Deprecated version: N/A|Method or attribute name: getAbilityIcon
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: getAbilityIcon
Deprecated version: N/A|Method or attribute name: getAbilityIcon
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: isAbilityEnabled
Deprecated version: N/A|Method or attribute name: isAbilityEnabled
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: isAbilityEnabled
Deprecated version: N/A|Method or attribute name: isAbilityEnabled
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: isApplicationEnabled
Deprecated version: N/A|Method or attribute name: isApplicationEnabled
Deprecated version: 9
New API: ohos.bundle.bundleManager|@ohos.bundle.d.ts| +|Deprecated version changed|Method or attribute name: isApplicationEnabled
Deprecated version: N/A|Method or attribute name: isApplicationEnabled
Deprecated version: 9|@ohos.bundle.d.ts| +|Deprecated version changed|Class name: innerBundleManager
Deprecated version: N/A|Class name: innerBundleManager
Deprecated version: 9
New API: ohos.bundle.launcherBundleManager |@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: getLauncherAbilityInfos
Deprecated version: N/A|Method or attribute name: getLauncherAbilityInfos
Deprecated version: 9
New API: ohos.bundle.launcherBundleManager|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: getLauncherAbilityInfos
Deprecated version: N/A|Method or attribute name: getLauncherAbilityInfos
Deprecated version: 9|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: on_BundleStatusChange
Deprecated version: N/A|Method or attribute name: on_BundleStatusChange
Deprecated version: 9
New API: ohos.bundle.bundleMonitor|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: on_BundleStatusChange
Deprecated version: N/A|Method or attribute name: on_BundleStatusChange
Deprecated version: 9|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: off_BundleStatusChange
Deprecated version: N/A|Method or attribute name: off_BundleStatusChange
Deprecated version: 9
New API: ohos.bundle.bundleMonitor|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: off_BundleStatusChange
Deprecated version: N/A|Method or attribute name: off_BundleStatusChange
Deprecated version: 9|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: getAllLauncherAbilityInfos
Deprecated version: N/A|Method or attribute name: getAllLauncherAbilityInfos
Deprecated version: 9
New API: ohos.bundle.launcherBundleManager|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: getAllLauncherAbilityInfos
Deprecated version: N/A|Method or attribute name: getAllLauncherAbilityInfos
Deprecated version: 9|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: getShortcutInfos
Deprecated version: N/A|Method or attribute name: getShortcutInfos
Deprecated version: 9
New API: ohos.bundle.launcherBundleManager|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Method or attribute name: getShortcutInfos
Deprecated version: N/A|Method or attribute name: getShortcutInfos
Deprecated version: 9|@ohos.bundle.innerBundleManager.d.ts| +|Deprecated version changed|Class name: distributedBundle
Deprecated version: N/A|Class name: distributedBundle
Deprecated version: 9
New API: ohos.bundle.distributeBundle |@ohos.distributedBundle.d.ts| +|Deprecated version changed|Method or attribute name: getRemoteAbilityInfo
Deprecated version: N/A|Method or attribute name: getRemoteAbilityInfo
Deprecated version: 9
New API: ohos.bundle.distributeBundle|@ohos.distributedBundle.d.ts| +|Deprecated version changed|Method or attribute name: getRemoteAbilityInfo
Deprecated version: N/A|Method or attribute name: getRemoteAbilityInfo
Deprecated version: 9|@ohos.distributedBundle.d.ts| +|Deprecated version changed|Method or attribute name: getRemoteAbilityInfos
Deprecated version: N/A|Method or attribute name: getRemoteAbilityInfos
Deprecated version: 9
New API: ohos.bundle.distributeBundle|@ohos.distributedBundle.d.ts| +|Deprecated version changed|Method or attribute name: getRemoteAbilityInfos
Deprecated version: N/A|Method or attribute name: getRemoteAbilityInfos
Deprecated version: 9|@ohos.distributedBundle.d.ts| +|Deprecated version changed|Class name: ErrorCode
Deprecated version: N/A|Class name: ErrorCode
Deprecated version: 9|@ohos.zlib.d.ts| +|Deprecated version changed|Method or attribute name: zipFile
Deprecated version: N/A|Method or attribute name: zipFile
Deprecated version: 9
New API: ohos.zlib|@ohos.zlib.d.ts| +|Deprecated version changed|Method or attribute name: unzipFile
Deprecated version: N/A|Method or attribute name: unzipFile
Deprecated version: 9
New API: ohos.zlib|@ohos.zlib.d.ts| +|Deprecated version changed|Class name: CheckPackageHasInstalledResponse
Deprecated version: N/A|Class name: CheckPackageHasInstalledResponse
Deprecated version: 9|@system.package.d.ts| +|Deprecated version changed|Class name: CheckPackageHasInstalledOptions
Deprecated version: N/A|Class name: CheckPackageHasInstalledOptions
Deprecated version: 9|@system.package.d.ts| +|Deprecated version changed|Class name: Package
Deprecated version: N/A|Class name: Package
Deprecated version: 9|@system.package.d.ts| +|Deprecated version changed|Method or attribute name: hasInstalled
Deprecated version: N/A|Method or attribute name: hasInstalled
Deprecated version: 9|@system.package.d.ts| +|Deprecated version changed|Class name: AbilityInfo
Deprecated version: N/A|Class name: AbilityInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager.AbilityInfo |abilityInfo.d.ts| +|Deprecated version changed|Class name: ApplicationInfo
Deprecated version: N/A|Class name: ApplicationInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager.ApplicationInfo |applicationInfo.d.ts| +|Deprecated version changed|Class name: UsedScene
Deprecated version: N/A|Class name: UsedScene
Deprecated version: 9
New API: ohos.bundle.bundleManager.UsedScene |bundleInfo.d.ts| +|Deprecated version changed|Class name: ReqPermissionDetail
Deprecated version: N/A|Class name: ReqPermissionDetail
Deprecated version: 9
New API: ohos.bundle.bundleManager.ReqPermissionDetail |bundleInfo.d.ts| +|Deprecated version changed|Class name: BundleInfo
Deprecated version: N/A|Class name: BundleInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager.BundleInfo |bundleInfo.d.ts| +|Deprecated version changed|Class name: InstallParam
Deprecated version: N/A|Class name: InstallParam
Deprecated version: 9
New API: ohos.bundle.installer|bundleInstaller.d.ts| +|Deprecated version changed|Method or attribute name: userId
Deprecated version: N/A|Method or attribute name: userId
Deprecated version: 9
New API: ohos.bundle.installer.InstallParam|bundleInstaller.d.ts| +|Deprecated version changed|Method or attribute name: installFlag
Deprecated version: N/A|Method or attribute name: installFlag
Deprecated version: 9
New API: ohos.bundle.installer.InstallParam|bundleInstaller.d.ts| +|Deprecated version changed|Method or attribute name: isKeepData
Deprecated version: N/A|Method or attribute name: isKeepData
Deprecated version: 9
New API: ohos.bundle.installer.InstallParam|bundleInstaller.d.ts| +|Deprecated version changed|Class name: InstallStatus
Deprecated version: N/A|Class name: InstallStatus
Deprecated version: 9|bundleInstaller.d.ts| +|Deprecated version changed|Method or attribute name: status
Deprecated version: N/A|Method or attribute name: status
Deprecated version: 9|bundleInstaller.d.ts| +|Deprecated version changed|Method or attribute name: statusMessage
Deprecated version: N/A|Method or attribute name: statusMessage
Deprecated version: 9|bundleInstaller.d.ts| +|Deprecated version changed|Class name: BundleInstaller
Deprecated version: N/A|Class name: BundleInstaller
Deprecated version: 9
New API: ohos.bundle.installer|bundleInstaller.d.ts| +|Deprecated version changed|Method or attribute name: install
Deprecated version: N/A|Method or attribute name: install
Deprecated version: 9
New API: ohos.bundle.installer.BundleInstaller|bundleInstaller.d.ts| +|Deprecated version changed|Method or attribute name: uninstall
Deprecated version: N/A|Method or attribute name: uninstall
Deprecated version: 9
New API: ohos.bundle.installer.BundleInstaller|bundleInstaller.d.ts| +|Deprecated version changed|Method or attribute name: recover
Deprecated version: N/A|Method or attribute name: recover
Deprecated version: 9
New API: ohos.bundle.installer.BundleInstaller|bundleInstaller.d.ts| +|Deprecated version changed|Class name: BundleStatusCallback
Deprecated version: N/A|Class name: BundleStatusCallback
Deprecated version: 9|bundleStatusCallback.d.ts| +|Deprecated version changed|Class name: CustomizeData
Deprecated version: N/A|Class name: CustomizeData
Deprecated version: 9
New API: ohos.bundle.bundleManager.Metadata |customizeData.d.ts| +|Deprecated version changed|Class name: ElementName
Deprecated version: N/A|Class name: ElementName
Deprecated version: 9
New API: ohos.bundle.bundleManager.ElementName |elementName.d.ts| +|Deprecated version changed|Class name: HapModuleInfo
Deprecated version: N/A|Class name: HapModuleInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager.HapModuleInfo |hapModuleInfo.d.ts| +|Deprecated version changed|Class name: LauncherAbilityInfo
Deprecated version: N/A|Class name: LauncherAbilityInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager.LauncherAbilityInfo |launcherAbilityInfo.d.ts| +|Deprecated version changed|Class name: ModuleInfo
Deprecated version: N/A|Class name: ModuleInfo
Deprecated version: 9
New API: ohos.bundle.bundleManager.HapModuleInfo |moduleInfo.d.ts| +|Deprecated version changed|Class name: PermissionDef
Deprecated version: N/A|Class name: PermissionDef
Deprecated version: 9
New API: ohos.bundle.bundleManager.PermissionDef |PermissionDef.d.ts| +|Deprecated version changed|Class name: RemoteAbilityInfo
Deprecated version: N/A|Class name: RemoteAbilityInfo
Deprecated version: 9
New API: ohos.bundle.distributedBundle.RemoteAbilityInfo |remoteAbilityInfo.d.ts| +|Deprecated version changed|Class name: ShortcutWant
Deprecated version: N/A|Class name: ShortcutWant
Deprecated version: 9
New API: ohos.bundle.launcherBundleManager.ShortcutWant |shortcutInfo.d.ts| +|Deprecated version changed|Class name: ShortcutInfo
Deprecated version: N/A|Class name: ShortcutInfo
Deprecated version: 9
New API: ohos.bundle.launcherBundleManager.ShortcutInfo |shortcutInfo.d.ts| +|Error code added||Method or attribute name: isDefaultApplication
Error code: 401, 801|@ohos.bundle.defaultAppManager.d.ts| +|Error code added||Method or attribute name: isDefaultApplication
Error code: 401, 801|@ohos.bundle.defaultAppManager.d.ts| +|Error code added||Method or attribute name: getDefaultApplication
Error code: 201, 401, 801, 17700004, 17700023, 17700025|@ohos.bundle.defaultAppManager.d.ts| +|Error code added||Method or attribute name: getDefaultApplication
Error code: 201, 401, 801, 17700004, 17700023, 17700025|@ohos.bundle.defaultAppManager.d.ts| +|Error code added||Method or attribute name: setDefaultApplication
Error code: 201, 401, 801, 17700004, 17700025, 17700028|@ohos.bundle.defaultAppManager.d.ts| +|Error code added||Method or attribute name: setDefaultApplication
Error code: 201, 401, 801, 17700004, 17700025, 17700028|@ohos.bundle.defaultAppManager.d.ts| +|Error code added||Method or attribute name: resetDefaultApplication
Error code: 201, 401, 801, 17700004, 17700025|@ohos.bundle.defaultAppManager.d.ts| +|Error code added||Method or attribute name: resetDefaultApplication
Error code: 201, 401, 801, 17700004, 17700025|@ohos.bundle.defaultAppManager.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-communication.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-communication.md new file mode 100644 index 0000000000000000000000000000000000000000..6695b031adee94b825050bd20c4113f879a54dd8 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-communication.md @@ -0,0 +1,866 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.net.connection
Class name: connection
Method or attribute name: isDefaultNetMetered|@ohos.net.connection.d.ts| +|Added||Module name: ohos.net.connection
Class name: connection
Method or attribute name: isDefaultNetMetered|@ohos.net.connection.d.ts| +|Added||Module name: ohos.net.connection
Class name: NetHandle
Method or attribute name: bindSocket|@ohos.net.connection.d.ts| +|Added||Module name: ohos.net.connection
Class name: NetHandle
Method or attribute name: bindSocket|@ohos.net.connection.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: ethernet|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: ethernet
Method or attribute name: getIfaceConfig|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: ethernet
Method or attribute name: getIfaceConfig|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: ethernet
Method or attribute name: setIfaceConfig|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: ethernet
Method or attribute name: setIfaceConfig|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: ethernet
Method or attribute name: isIfaceActive|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: ethernet
Method or attribute name: isIfaceActive|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: ethernet
Method or attribute name: getAllActiveIfaces|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: ethernet
Method or attribute name: getAllActiveIfaces|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: InterfaceConfiguration|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: InterfaceConfiguration
Method or attribute name: mode|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: InterfaceConfiguration
Method or attribute name: ipAddr|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: InterfaceConfiguration
Method or attribute name: route|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: InterfaceConfiguration
Method or attribute name: gateway|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: InterfaceConfiguration
Method or attribute name: netMask|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: InterfaceConfiguration
Method or attribute name: dnsServers|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: IPSetMode|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: IPSetMode
Method or attribute name: STATIC|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.ethernet
Class name: IPSetMode
Method or attribute name: DHCP|@ohos.net.ethernet.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpRequestOptions
Method or attribute name: expectDataType|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpRequestOptions
Method or attribute name: usingCache|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpRequestOptions
Method or attribute name: priority|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpRequestOptions
Method or attribute name: usingProtocol|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpProtocol|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpProtocol
Method or attribute name: HTTP1_1|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpProtocol
Method or attribute name: HTTP2|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpDataType|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpDataType
Method or attribute name: STRING|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpDataType
Method or attribute name: OBJECT|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpDataType
Method or attribute name: ARRAY_BUFFER|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpResponse
Method or attribute name: resultType|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: http
Method or attribute name: createHttpResponseCache|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpResponseCache|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpResponseCache
Method or attribute name: flush|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpResponseCache
Method or attribute name: flush|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpResponseCache
Method or attribute name: delete|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.http
Class name: HttpResponseCache
Method or attribute name: delete|@ohos.net.http.d.ts| +|Added||Module name: ohos.net.socket
Class name: socket
Method or attribute name: constructTLSSocketInstance|@ohos.net.socket.d.ts| +|Added||Method or attribute name: socketLinger
Function name: socketLinger?: {on: boolean, linger: number};|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: bind|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: bind|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getRemoteAddress|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getRemoteAddress|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getState|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getState|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: setExtraOptions|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: setExtraOptions|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: on_message|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: off_message|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: on_connect|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: on_close|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: off_connect|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: off_close|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: on_error|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: off_error|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getCertificate|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getCertificate|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getRemoteCertificate|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getRemoteCertificate|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getProtocol|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getProtocol|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getCipherSuite|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getCipherSuite|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getSignatureAlgorithms|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: getSignatureAlgorithms|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: connect|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: connect|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: send|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: send|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: close|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSocket
Method or attribute name: close|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSecureOptions|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSecureOptions
Method or attribute name: ca|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSecureOptions
Method or attribute name: cert|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSecureOptions
Method or attribute name: key|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSecureOptions
Method or attribute name: passwd|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSecureOptions
Method or attribute name: protocols|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSecureOptions
Method or attribute name: useRemoteCipherPrefer|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSecureOptions
Method or attribute name: signatureAlgorithms|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSSecureOptions
Method or attribute name: cipherSuite|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSConnectOptions|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSConnectOptions
Method or attribute name: address|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSConnectOptions
Method or attribute name: secureOptions|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: TLSConnectOptions
Method or attribute name: ALPNProtocols|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: Protocol|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: Protocol
Method or attribute name: TLSv12|@ohos.net.socket.d.ts| +|Added||Module name: ohos.net.socket
Class name: Protocol
Method or attribute name: TLSv13|@ohos.net.socket.d.ts| +|Added||Method or attribute name: NDEF_FORMATABLE
Function name: const NDEF_FORMATABLE = 7;|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: TnfType|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: TnfType
Method or attribute name: TNF_EMPTY|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: TnfType
Method or attribute name: TNF_WELL_KNOWN|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: TnfType
Method or attribute name: TNF_MEDIA|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: TnfType
Method or attribute name: TNF_ABSOLUTE_URI|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: TnfType
Method or attribute name: TNF_EXT_APP|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: TnfType
Method or attribute name: TNF_UNKNOWN|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: TnfType
Method or attribute name: TNF_UNCHANGED|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NfcForumType|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NfcForumType
Method or attribute name: NFC_FORUM_TYPE_1|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NfcForumType
Method or attribute name: NFC_FORUM_TYPE_2|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NfcForumType
Method or attribute name: NFC_FORUM_TYPE_3|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NfcForumType
Method or attribute name: NFC_FORUM_TYPE_4|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NfcForumType
Method or attribute name: MIFARE_CLASSIC|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: RTD_TEXT|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: RTD_URI|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicType|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicType
Method or attribute name: TYPE_UNKNOWN|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicType
Method or attribute name: TYPE_CLASSIC|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicType
Method or attribute name: TYPE_PLUS|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicType
Method or attribute name: TYPE_PRO|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicSize|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicSize
Method or attribute name: MC_SIZE_MINI|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicSize
Method or attribute name: MC_SIZE_1K|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicSize
Method or attribute name: MC_SIZE_2K|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareClassicSize
Method or attribute name: MC_SIZE_4K|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareUltralightType|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareUltralightType
Method or attribute name: TYPE_UNKNOWN|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareUltralightType
Method or attribute name: TYPE_ULTRALIGHT|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: MifareUltralightType
Method or attribute name: TYPE_ULTRALIGHT_C|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getIsoDep|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getNdef|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getMifareClassic|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getMifareUltralight|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getNdefFormatable|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getTagInfo|@ohos.nfc.tag.d.ts| +|Added||Method or attribute name: uid
Function name: uid: number[];|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NdefRecord|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NdefRecord
Method or attribute name: tnf|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NdefRecord
Method or attribute name: rtdType|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NdefRecord
Method or attribute name: id|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: NdefRecord
Method or attribute name: payload|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: ndef|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: ndef
Method or attribute name: makeUriRecord|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: ndef
Method or attribute name: makeTextRecord|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: ndef
Method or attribute name: makeMimeRecord|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: ndef
Method or attribute name: makeExternalRecord|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: ndef
Method or attribute name: createNdefMessage|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: ndef
Method or attribute name: createNdefMessage|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.nfc.tag
Class name: ndef
Method or attribute name: messageToBytes|@ohos.nfc.tag.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: CHECK_PARAM_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: OS_MMAP_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: OS_IOCTL_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: WRITE_TO_ASHMEM_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: READ_FROM_ASHMEM_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: ONLY_PROXY_OBJECT_PERMITTED_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: ONLY_REMOTE_OBJECT_PERMITTED_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: COMMUNICATION_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: PROXY_OR_REMOTE_OBJECT_INVALID_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: WRITE_DATA_TO_MESSAGE_SEQUENCE_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: READ_DATA_FROM_MESSAGE_SEQUENCE_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: PARCEL_MEMORY_ALLOC_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: CALL_JS_METHOD_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: ErrorCode
Method or attribute name: OS_DUP_ERROR|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: create|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: reclaim|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeRemoteObject|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readRemoteObject|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeInterfaceToken|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readInterfaceToken|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: getSize|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: getCapacity|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: setSize|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: setCapacity|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: getWritableBytes|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: getReadableBytes|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: getReadPosition|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: getWritePosition|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: rewindRead|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: rewindWrite|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeNoException|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readException|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeByte|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeShort|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeInt|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeLong|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeFloat|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeDouble|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeBoolean|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeChar|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeString|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeParcelable|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeByteArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeShortArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeIntArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeLongArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeFloatArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeDoubleArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeBooleanArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeCharArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeStringArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeParcelableArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeRemoteObjectArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readByte|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readShort|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readInt|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readLong|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readFloat|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readDouble|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readBoolean|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readChar|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readString|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readParcelable|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readByteArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readByteArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readShortArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readShortArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readIntArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readIntArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readLongArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readLongArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readFloatArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readFloatArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readDoubleArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readDoubleArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readBooleanArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readBooleanArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readCharArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readCharArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readStringArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readStringArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readParcelableArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readRemoteObjectArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readRemoteObjectArray|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: closeFileDescriptor|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: dupFileDescriptor|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: containFileDescriptors|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeFileDescriptor|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readFileDescriptor|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeAshmem|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readAshmem|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: getRawDataCapacity|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: writeRawData|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageSequence
Method or attribute name: readRawData|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Parcelable|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Parcelable
Method or attribute name: marshalling|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Parcelable
Method or attribute name: unmarshalling|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RequestResult|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RequestResult
Method or attribute name: errCode|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RequestResult
Method or attribute name: code|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RequestResult
Method or attribute name: data|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RequestResult
Method or attribute name: reply|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: IRemoteObject
Method or attribute name: getLocalInterface|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: IRemoteObject
Method or attribute name: sendMessageRequest|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: IRemoteObject
Method or attribute name: sendMessageRequest|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: IRemoteObject
Method or attribute name: registerDeathRecipient|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: IRemoteObject
Method or attribute name: unregisterDeathRecipient|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: IRemoteObject
Method or attribute name: getDescriptor|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageOption
Method or attribute name: ructor(async?|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageOption
Method or attribute name: isAsync|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: MessageOption
Method or attribute name: setAsync|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteObject
Method or attribute name: getLocalInterface|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteObject
Method or attribute name: getDescriptor|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteObject
Method or attribute name: onRemoteMessageRequest|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteObject
Method or attribute name: sendMessageRequest|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteObject
Method or attribute name: sendMessageRequest|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteObject
Method or attribute name: modifyLocalInterface|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteProxy
Method or attribute name: getLocalInterface|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteProxy
Method or attribute name: registerDeathRecipient|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteProxy
Method or attribute name: unregisterDeathRecipient|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteProxy
Method or attribute name: getDescriptor|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteProxy
Method or attribute name: sendMessageRequest|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: RemoteProxy
Method or attribute name: sendMessageRequest|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: IPCSkeleton
Method or attribute name: flushCmdBuffer|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: IPCSkeleton
Method or attribute name: restoreCallingIdentity|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Ashmem
Method or attribute name: create|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Ashmem
Method or attribute name: create|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Ashmem
Method or attribute name: mapTypedAshmem|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Ashmem
Method or attribute name: mapReadWriteAshmem|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Ashmem
Method or attribute name: mapReadonlyAshmem|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Ashmem
Method or attribute name: setProtectionType|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Ashmem
Method or attribute name: writeAshmem|@ohos.rpc.d.ts| +|Added||Module name: ohos.rpc
Class name: Ashmem
Method or attribute name: readAshmem|@ohos.rpc.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: enableWifi|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: disableWifi|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: isWifiActive|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: scan|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getScanResults|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getScanResults|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getScanResultsSync|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: addDeviceConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: addDeviceConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: addCandidateConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: addCandidateConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: removeCandidateConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: removeCandidateConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getCandidateConfigs|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: connectToCandidateConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: connectToNetwork|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: connectToDevice|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: disconnect|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getSignalLevel|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getLinkedInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getLinkedInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: isConnected|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getSupportedFeatures|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: isFeatureSupported|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getDeviceMacAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getIpInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getCountryCode|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: reassociate|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: reconnect|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getDeviceConfigs|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: updateNetwork|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: disableNetwork|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: removeAllNetwork|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: removeDevice|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: enableHotspot|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: disableHotspot|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: isHotspotDualBandSupported|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: isHotspotActive|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: setHotspotConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getHotspotConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getStations|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getP2pLinkedInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getP2pLinkedInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getCurrentGroup|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getCurrentGroup|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getP2pPeerDevices|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getP2pPeerDevices|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getP2pLocalDevice|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getP2pLocalDevice|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: createGroup|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: removeGroup|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: p2pConnect|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: p2pDisconnect|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: startDiscoverDevices|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: stopDiscoverDevices|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: deletePersistentGroup|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getP2pGroups|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: getP2pGroups|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: setDeviceName|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_wifiStateChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_wifiStateChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_wifiConnectionChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_wifiConnectionChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_wifiScanStateChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_wifiScanStateChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_wifiRssiChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_wifiRssiChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_streamChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_streamChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_deviceConfigChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_deviceConfigChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_hotspotStateChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_hotspotStateChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_hotspotStaJoin|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_hotspotStaJoin|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_hotspotStaLeave|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_hotspotStaLeave|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_p2pStateChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_p2pStateChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_p2pConnectionChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_p2pConnectionChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_p2pDeviceChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_p2pDeviceChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_p2pPeerDeviceChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_p2pPeerDeviceChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_p2pPersistentGroupChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_p2pPersistentGroupChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: on_p2pDiscoveryChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: wifiManager
Method or attribute name: off_p2pDiscoveryChange|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod
Method or attribute name: EAP_NONE|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod
Method or attribute name: EAP_PEAP|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod
Method or attribute name: EAP_TLS|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod
Method or attribute name: EAP_TTLS|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod
Method or attribute name: EAP_PWD|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod
Method or attribute name: EAP_SIM|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod
Method or attribute name: EAP_AKA|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod
Method or attribute name: EAP_AKA_PRIME|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: EapMethod
Method or attribute name: EAP_UNAUTH_TLS|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: Phase2Method|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: Phase2Method
Method or attribute name: PHASE2_NONE|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: Phase2Method
Method or attribute name: PHASE2_PAP|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: Phase2Method
Method or attribute name: PHASE2_MSCHAP|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: Phase2Method
Method or attribute name: PHASE2_MSCHAPV2|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: Phase2Method
Method or attribute name: PHASE2_GTC|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: Phase2Method
Method or attribute name: PHASE2_SIM|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: Phase2Method
Method or attribute name: PHASE2_AKA|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: Phase2Method
Method or attribute name: PHASE2_AKA_PRIME|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: eapMethod|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: phase2Method|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: identity|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: anonymousIdentity|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: password|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: caCertAliases|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: caPath|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: clientCertAliases|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: altSubjectMatch|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: domainSuffixMatch|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: realm|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: plmn|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiEapConfig
Method or attribute name: eapSubId|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: ssid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: bssid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: preSharedKey|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: isHiddenSsid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: securityType|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: creatorUid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: disableReason|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: netId|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: randomMacType|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: randomMacAddr|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: ipType|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: staticIp|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiDeviceConfig
Method or attribute name: eapConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpConfig
Method or attribute name: ipAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpConfig
Method or attribute name: gateway|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpConfig
Method or attribute name: prefixLength|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpConfig
Method or attribute name: dnsServers|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpConfig
Method or attribute name: domains|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiInfoElem|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiInfoElem
Method or attribute name: eid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiInfoElem
Method or attribute name: content|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiChannelWidth|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiChannelWidth
Method or attribute name: WIDTH_20MHZ|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiChannelWidth
Method or attribute name: WIDTH_40MHZ|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiChannelWidth
Method or attribute name: WIDTH_80MHZ|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiChannelWidth
Method or attribute name: WIDTH_160MHZ|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiChannelWidth
Method or attribute name: WIDTH_80MHZ_PLUS|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiChannelWidth
Method or attribute name: WIDTH_INVALID|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: ssid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: bssid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: capabilities|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: securityType|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: rssi|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: band|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: frequency|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: channelWidth|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: centerFrequency0|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: centerFrequency1|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: infoElems|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiScanInfo
Method or attribute name: timestamp|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_INVALID|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_OPEN|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_WEP|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_PSK|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_SAE|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_EAP|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_EAP_SUITE_B|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_OWE|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_WAPI_CERT|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_WAPI_PSK|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: ssid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: bssid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: networkId|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: rssi|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: band|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: linkSpeed|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: frequency|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: isHidden|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: isRestricted|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: chload|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: snr|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: macType|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: macAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: ipAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: suppState|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiLinkedInfo
Method or attribute name: connState|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpInfo
Method or attribute name: ipAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpInfo
Method or attribute name: gateway|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpInfo
Method or attribute name: netmask|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpInfo
Method or attribute name: primaryDns|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpInfo
Method or attribute name: secondDns|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpInfo
Method or attribute name: serverIp|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpInfo
Method or attribute name: leaseDuration|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: HotspotConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: HotspotConfig
Method or attribute name: ssid|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: HotspotConfig
Method or attribute name: securityType|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: HotspotConfig
Method or attribute name: band|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: HotspotConfig
Method or attribute name: preSharedKey|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: HotspotConfig
Method or attribute name: maxConn|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: StationInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: StationInfo
Method or attribute name: name|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: StationInfo
Method or attribute name: macAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: StationInfo
Method or attribute name: ipAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpType|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpType
Method or attribute name: STATIC|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpType
Method or attribute name: DHCP|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: IpType
Method or attribute name: UNKNOWN|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: DISCONNECTED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: INTERFACE_DISABLED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: INACTIVE|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: SCANNING|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: AUTHENTICATING|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: ASSOCIATING|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: ASSOCIATED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: FOUR_WAY_HANDSHAKE|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: GROUP_HANDSHAKE|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: COMPLETED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: UNINITIALIZED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: SuppState
Method or attribute name: INVALID|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: ConnState|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: ConnState
Method or attribute name: SCANNING|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: ConnState
Method or attribute name: CONNECTING|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: ConnState
Method or attribute name: AUTHENTICATING|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: ConnState
Method or attribute name: OBTAINING_IPADDR|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: ConnState
Method or attribute name: CONNECTED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: ConnState
Method or attribute name: DISCONNECTING|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: ConnState
Method or attribute name: DISCONNECTED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: ConnState
Method or attribute name: UNKNOWN|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pDevice|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pDevice
Method or attribute name: deviceName|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pDevice
Method or attribute name: deviceAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pDevice
Method or attribute name: primaryDeviceType|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pDevice
Method or attribute name: deviceStatus|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pDevice
Method or attribute name: groupCapabilities|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2PConfig|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2PConfig
Method or attribute name: deviceAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2PConfig
Method or attribute name: netId|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2PConfig
Method or attribute name: passphrase|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2PConfig
Method or attribute name: groupName|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2PConfig
Method or attribute name: goBand|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo
Method or attribute name: isP2pGo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo
Method or attribute name: ownerInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo
Method or attribute name: passphrase|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo
Method or attribute name: interface|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo
Method or attribute name: groupName|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo
Method or attribute name: networkId|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo
Method or attribute name: frequency|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo
Method or attribute name: clientDevices|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pGroupInfo
Method or attribute name: goIpAddress|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: P2pConnectState|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: P2pConnectState
Method or attribute name: DISCONNECTED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: P2pConnectState
Method or attribute name: CONNECTED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pLinkedInfo|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pLinkedInfo
Method or attribute name: connectState|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pLinkedInfo
Method or attribute name: isGroupOwner|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: WifiP2pLinkedInfo
Method or attribute name: groupOwnerAddr|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: P2pDeviceStatus|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: P2pDeviceStatus
Method or attribute name: CONNECTED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: P2pDeviceStatus
Method or attribute name: INVITED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: P2pDeviceStatus
Method or attribute name: FAILED|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: P2pDeviceStatus
Method or attribute name: AVAILABLE|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: P2pDeviceStatus
Method or attribute name: UNAVAILABLE|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: GroupOwnerBand|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: GroupOwnerBand
Method or attribute name: GO_BAND_AUTO|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: GroupOwnerBand
Method or attribute name: GO_BAND_2GHZ|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManager
Class name: GroupOwnerBand
Method or attribute name: GO_BAND_5GHZ|@ohos.wifiManager.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: wifiManagerExt|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: wifiManagerExt
Method or attribute name: enableHotspot|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: wifiManagerExt
Method or attribute name: disableHotspot|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: wifiManagerExt
Method or attribute name: getSupportedPowerMode|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: wifiManagerExt
Method or attribute name: getSupportedPowerMode|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: wifiManagerExt
Method or attribute name: getPowerMode|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: wifiManagerExt
Method or attribute name: getPowerMode|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: wifiManagerExt
Method or attribute name: setPowerMode|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: PowerMode|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: PowerMode
Method or attribute name: SLEEPING|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: PowerMode
Method or attribute name: GENERAL|@ohos.wifiManagerExt.d.ts| +|Added||Module name: ohos.wifiManagerExt
Class name: PowerMode
Method or attribute name: THROUGH_WALL|@ohos.wifiManagerExt.d.ts| +|Added||Method or attribute name: getHistoricalBytes
Function name: getHistoricalBytes(): number[];|nfctech.d.ts| +|Added||Method or attribute name: getHiLayerResponse
Function name: getHiLayerResponse(): number[];|nfctech.d.ts| +|Added||Method or attribute name: getNdefRecords
Function name: getNdefRecords(): tag.NdefRecord[];|nfctech.d.ts| +|Added||Method or attribute name: getNdefTagType
Function name: getNdefTagType(): tag.NfcForumType;|nfctech.d.ts| +|Added||Method or attribute name: isNdefWritable
Function name: isNdefWritable(): boolean;|nfctech.d.ts| +|Added||Method or attribute name: writeNdef
Function name: writeNdef(msg: NdefMessage): Promise;|nfctech.d.ts| +|Added||Method or attribute name: writeNdef
Function name: writeNdef(msg: NdefMessage, callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: canSetReadOnly
Function name: canSetReadOnly(): boolean;|nfctech.d.ts| +|Added||Method or attribute name: setReadOnly
Function name: setReadOnly(): Promise;|nfctech.d.ts| +|Added||Method or attribute name: setReadOnly
Function name: setReadOnly(callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: getNdefTagTypeString
Function name: getNdefTagTypeString(type: tag.NfcForumType): string;|nfctech.d.ts| +|Added||Method or attribute name: authenticateSector
Function name: authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean): Promise;|nfctech.d.ts| +|Added||Method or attribute name: authenticateSector
Function name: authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean, callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: readSingleBlock
Function name: readSingleBlock(blockIndex: number): Promise;|nfctech.d.ts| +|Added||Method or attribute name: readSingleBlock
Function name: readSingleBlock(blockIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: writeSingleBlock
Function name: writeSingleBlock(blockIndex: number, data: number[]): Promise;|nfctech.d.ts| +|Added||Method or attribute name: writeSingleBlock
Function name: writeSingleBlock(blockIndex: number, data: number[], callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: incrementBlock
Function name: incrementBlock(blockIndex: number, value: number): Promise;|nfctech.d.ts| +|Added||Method or attribute name: incrementBlock
Function name: incrementBlock(blockIndex: number, value: number, callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: decrementBlock
Function name: decrementBlock(blockIndex: number, value: number): Promise;|nfctech.d.ts| +|Added||Method or attribute name: decrementBlock
Function name: decrementBlock(blockIndex: number, value: number, callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: transferToBlock
Function name: transferToBlock(blockIndex: number): Promise;|nfctech.d.ts| +|Added||Method or attribute name: transferToBlock
Function name: transferToBlock(blockIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: restoreFromBlock
Function name: restoreFromBlock(blockIndex: number): Promise;|nfctech.d.ts| +|Added||Method or attribute name: restoreFromBlock
Function name: restoreFromBlock(blockIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: getType
Function name: getType(): tag.MifareClassicType;|nfctech.d.ts| +|Added||Method or attribute name: readMultiplePages
Function name: readMultiplePages(pageIndex: number): Promise;|nfctech.d.ts| +|Added||Method or attribute name: readMultiplePages
Function name: readMultiplePages(pageIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Module name: nfctech
Class name: MifareUltralightTag
Method or attribute name: writeSinglePage|nfctech.d.ts| +|Added||Module name: nfctech
Class name: MifareUltralightTag
Method or attribute name: writeSinglePage|nfctech.d.ts| +|Added||Method or attribute name: getType
Function name: getType(): tag.MifareUltralightType;|nfctech.d.ts| +|Added||Method or attribute name: format
Function name: format(message: NdefMessage): Promise;|nfctech.d.ts| +|Added||Method or attribute name: format
Function name: format(message: NdefMessage, callback: AsyncCallback): void;|nfctech.d.ts| +|Added||Method or attribute name: formatReadOnly
Function name: formatReadOnly(message: NdefMessage): Promise;|nfctech.d.ts| +|Added||Method or attribute name: formatReadOnly
Function name: formatReadOnly(message: NdefMessage, callback: AsyncCallback): void;|nfctech.d.ts| +|Deleted|Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getIsoDepTag||@ohos.nfc.tag.d.ts| +|Deleted|Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getNdefTag||@ohos.nfc.tag.d.ts| +|Deleted|Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getMifareClassicTag||@ohos.nfc.tag.d.ts| +|Deleted|Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getMifareUltralightTag||@ohos.nfc.tag.d.ts| +|Deleted|Module name: ohos.nfc.tag
Class name: tag
Method or attribute name: getNdefFormatableTag||@ohos.nfc.tag.d.ts| +|Deleted|Module name: ohos.rpc
Class name: IRemoteObject
Method or attribute name: sendRequestAsync||@ohos.rpc.d.ts| +|Deleted|Module name: ohos.rpc
Class name: RemoteObject
Method or attribute name: onRemoteRequestEx||@ohos.rpc.d.ts| +|Deleted|Module name: ohos.rpc
Class name: RemoteObject
Method or attribute name: sendRequestAsync||@ohos.rpc.d.ts| +|Deleted|Module name: ohos.rpc
Class name: RemoteProxy
Method or attribute name: sendRequestAsync||@ohos.rpc.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: getScanInfosSync||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: addCandidateConfig||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: addCandidateConfig||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: removeCandidateConfig||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: removeCandidateConfig||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: getCandidateConfigs||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: connectToCandidateConfig||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: getP2pLocalDevice||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: getP2pLocalDevice||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: getP2pGroups||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: getP2pGroups||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: on_deviceConfigChange||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: wifi
Method or attribute name: off_deviceConfigChange||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod
Method or attribute name: EAP_NONE||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod
Method or attribute name: EAP_PEAP||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod
Method or attribute name: EAP_TLS||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod
Method or attribute name: EAP_TTLS||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod
Method or attribute name: EAP_PWD||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod
Method or attribute name: EAP_SIM||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod
Method or attribute name: EAP_AKA||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod
Method or attribute name: EAP_AKA_PRIME||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: EapMethod
Method or attribute name: EAP_UNAUTH_TLS||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: Phase2Method||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: Phase2Method
Method or attribute name: PHASE2_NONE||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: Phase2Method
Method or attribute name: PHASE2_PAP||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: Phase2Method
Method or attribute name: PHASE2_MSCHAP||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: Phase2Method
Method or attribute name: PHASE2_MSCHAPV2||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: Phase2Method
Method or attribute name: PHASE2_GTC||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: Phase2Method
Method or attribute name: PHASE2_SIM||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: Phase2Method
Method or attribute name: PHASE2_AKA||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: Phase2Method
Method or attribute name: PHASE2_AKA_PRIME||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: eapMethod||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: phase2Method||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: identity||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: anonymousIdentity||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: password||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: caCertAliases||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: caPath||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: clientCertAliases||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: altSubjectMatch||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: domainSuffixMatch||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: realm||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: plmn||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiEapConfig
Method or attribute name: eapSubId||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiDeviceConfig
Method or attribute name: eapConfig||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiInfoElem||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiInfoElem
Method or attribute name: eid||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiInfoElem
Method or attribute name: content||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiChannelWidth||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiChannelWidth
Method or attribute name: WIDTH_20MHZ||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiChannelWidth
Method or attribute name: WIDTH_40MHZ||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiChannelWidth
Method or attribute name: WIDTH_80MHZ||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiChannelWidth
Method or attribute name: WIDTH_160MHZ||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiChannelWidth
Method or attribute name: WIDTH_80MHZ_PLUS||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiChannelWidth
Method or attribute name: WIDTH_INVALID||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiScanInfo
Method or attribute name: centerFrequency0||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiScanInfo
Method or attribute name: centerFrequency1||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiScanInfo
Method or attribute name: infoElems||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_EAP||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_EAP_SUITE_B||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_OWE||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_WAPI_CERT||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiSecurityType
Method or attribute name: WIFI_SEC_TYPE_WAPI_PSK||@ohos.wifi.d.ts| +|Deleted|Module name: ohos.wifi
Class name: WifiLinkedInfo
Method or attribute name: macType||@ohos.wifi.d.ts| +|Deleted|Module name: nfctech
Class name: NdefRecord||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefRecord
Method or attribute name: tnf||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefRecord
Method or attribute name: rtdType||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefRecord
Method or attribute name: id||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefRecord
Method or attribute name: payload||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: TnfType||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: TnfType
Method or attribute name: TNF_EMPTY||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: TnfType
Method or attribute name: TNF_WELL_KNOWN||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: TnfType
Method or attribute name: TNF_MEDIA||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: TnfType
Method or attribute name: TNF_ABSOLUTE_URI||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: TnfType
Method or attribute name: TNF_EXT_APP||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: TnfType
Method or attribute name: TNF_UNKNOWN||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: TnfType
Method or attribute name: TNF_UNCHANGED||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: RtdType||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: RtdType
Method or attribute name: RTD_TEXT||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: RtdType
Method or attribute name: RTD_URI||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefMessage
Method or attribute name: makeUriRecord||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefMessage
Method or attribute name: makeTextRecord||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefMessage
Method or attribute name: makeMimeRecord||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefMessage
Method or attribute name: makeExternalRecord||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefMessage
Method or attribute name: messageToString||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NfcForumType||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NfcForumType
Method or attribute name: NFC_FORUM_TYPE_1||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NfcForumType
Method or attribute name: NFC_FORUM_TYPE_2||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NfcForumType
Method or attribute name: NFC_FORUM_TYPE_3||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NfcForumType
Method or attribute name: NFC_FORUM_TYPE_4||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NfcForumType
Method or attribute name: MIFARE_CLASSIC||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefTag
Method or attribute name: createNdefMessage||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: NdefTag
Method or attribute name: createNdefMessage||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareClassicType||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareClassicType
Method or attribute name: TYPE_UNKNOWN||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareClassicType
Method or attribute name: TYPE_CLASSIC||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareClassicType
Method or attribute name: TYPE_PLUS||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareClassicType
Method or attribute name: TYPE_PRO||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareTagSize||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareTagSize
Method or attribute name: MC_SIZE_MINI||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareTagSize
Method or attribute name: MC_SIZE_1K||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareTagSize
Method or attribute name: MC_SIZE_2K||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareTagSize
Method or attribute name: MC_SIZE_4K||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareUltralightType||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareUltralightType
Method or attribute name: TYPE_UNKOWN||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareUltralightType
Method or attribute name: TYPE_ULTRALIGHT||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareUltralightType
Method or attribute name: TYPE_ULTRALIGHT_C||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareUltralightTag
Method or attribute name: writeSinglePages||nfctech.d.ts| +|Deleted|Module name: nfctech
Class name: MifareUltralightTag
Method or attribute name: writeSinglePages||nfctech.d.ts| +|Deprecated version changed|Class name: MessageParcel
Deprecated version: N/A|Class name: MessageParcel
Deprecated version: 9
New API: ohos.rpc.MessageSequence |@ohos.rpc.d.ts| +|Deprecated version changed|Class name: Sequenceable
Deprecated version: N/A|Class name: Sequenceable
Deprecated version: 9
New API: ohos.rpc.Parcelable |@ohos.rpc.d.ts| +|Deprecated version changed|Class name: SendRequestResult
Deprecated version: N/A|Class name: SendRequestResult
Deprecated version: 9
New API: ohos.rpc.RequestResult |@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: queryLocalInterface
Deprecated version: N/A|Method or attribute name: queryLocalInterface
Deprecated version: 9
New API: ohos.rpc.IRemoteObject|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: sendRequest
Deprecated version: 8|Method or attribute name: sendRequest
Deprecated version: 9|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: sendRequest
Deprecated version: N/A|Method or attribute name: sendRequest
Deprecated version: 9
New API: ohos.rpc.IRemoteObject|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: addDeathRecipient
Deprecated version: N/A|Method or attribute name: addDeathRecipient
Deprecated version: 9
New API: ohos.rpc.IRemoteObject|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: removeDeathRecipient
Deprecated version: N/A|Method or attribute name: removeDeathRecipient
Deprecated version: 9
New API: ohos.rpc.IRemoteObject|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: getInterfaceDescriptor
Deprecated version: N/A|Method or attribute name: getInterfaceDescriptor
Deprecated version: 9
New API: ohos.rpc.IRemoteObject|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: queryLocalInterface
Deprecated version: N/A|Method or attribute name: queryLocalInterface
Deprecated version: 9
New API: ohos.rpc.RemoteObject|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: getInterfaceDescriptor
Deprecated version: N/A|Method or attribute name: getInterfaceDescriptor
Deprecated version: 9
New API: ohos.rpc.RemoteObject|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: sendRequest
Deprecated version: N/A|Method or attribute name: sendRequest
Deprecated version: 9
New API: ohos.rpc.RemoteObject|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: attachLocalInterface
Deprecated version: N/A|Method or attribute name: attachLocalInterface
Deprecated version: 9
New API: ohos.rpc.RemoteObject|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: queryLocalInterface
Deprecated version: N/A|Method or attribute name: queryLocalInterface
Deprecated version: 9
New API: ohos.rpc.RemoteProxy|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: addDeathRecipient
Deprecated version: N/A|Method or attribute name: addDeathRecipient
Deprecated version: 9
New API: ohos.rpc.RemoteProxy|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: removeDeathRecipient
Deprecated version: N/A|Method or attribute name: removeDeathRecipient
Deprecated version: 9
New API: ohos.rpc.RemoteProxy|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: getInterfaceDescriptor
Deprecated version: N/A|Method or attribute name: getInterfaceDescriptor
Deprecated version: 9
New API: ohos.rpc.RemoteProxy|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: sendRequest
Deprecated version: N/A|Method or attribute name: sendRequest
Deprecated version: 9
New API: ohos.rpc.RemoteProxy|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: flushCommands
Deprecated version: N/A|Method or attribute name: flushCommands
Deprecated version: 9
New API: ohos.rpc.IPCSkeleton|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: setCallingIdentity
Deprecated version: N/A|Method or attribute name: setCallingIdentity
Deprecated version: 9
New API: ohos.rpc.IPCSkeleton|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: createAshmem
Deprecated version: N/A|Method or attribute name: createAshmem
Deprecated version: 9
New API: ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: createAshmemFromExisting
Deprecated version: N/A|Method or attribute name: createAshmemFromExisting
Deprecated version: 9
New API: ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: mapAshmem
Deprecated version: N/A|Method or attribute name: mapAshmem
Deprecated version: 9
New API: ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: mapReadAndWriteAshmem
Deprecated version: N/A|Method or attribute name: mapReadAndWriteAshmem
Deprecated version: 9
New API: ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: mapReadOnlyAshmem
Deprecated version: N/A|Method or attribute name: mapReadOnlyAshmem
Deprecated version: 9
New API: ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: setProtection
Deprecated version: N/A|Method or attribute name: setProtection
Deprecated version: 9
New API: ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: writeToAshmem
Deprecated version: N/A|Method or attribute name: writeToAshmem
Deprecated version: 9
New API: ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: readFromAshmem
Deprecated version: N/A|Method or attribute name: readFromAshmem
Deprecated version: 9
New API: ohos.rpc.Ashmem|@ohos.rpc.d.ts| +|Deprecated version changed|Method or attribute name: enableWifi
Deprecated version: N/A|Method or attribute name: enableWifi
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.enableWifi |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: disableWifi
Deprecated version: N/A|Method or attribute name: disableWifi
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.disableWifi |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: isWifiActive
Deprecated version: N/A|Method or attribute name: isWifiActive
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.isWifiActive |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: scan
Deprecated version: N/A|Method or attribute name: scan
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.scan |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getScanInfos
Deprecated version: N/A|Method or attribute name: getScanInfos
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getScanResults |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getScanInfos
Deprecated version: N/A|Method or attribute name: getScanInfos
Deprecated version: 9|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: addDeviceConfig
Deprecated version: N/A|Method or attribute name: addDeviceConfig
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.addDeviceConfig |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: addDeviceConfig
Deprecated version: N/A|Method or attribute name: addDeviceConfig
Deprecated version: 9|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: connectToNetwork
Deprecated version: N/A|Method or attribute name: connectToNetwork
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.connectToNetwork |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: connectToDevice
Deprecated version: N/A|Method or attribute name: connectToDevice
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.connectToDevice |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: disconnect
Deprecated version: N/A|Method or attribute name: disconnect
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.disconnect |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getSignalLevel
Deprecated version: N/A|Method or attribute name: getSignalLevel
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getSignalLevel |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getLinkedInfo
Deprecated version: N/A|Method or attribute name: getLinkedInfo
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getLinkedInfo |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getLinkedInfo
Deprecated version: N/A|Method or attribute name: getLinkedInfo
Deprecated version: 9|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: isConnected
Deprecated version: N/A|Method or attribute name: isConnected
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.isConnected |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getSupportedFeatures
Deprecated version: N/A|Method or attribute name: getSupportedFeatures
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getSupportedFeatures |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: isFeatureSupported
Deprecated version: N/A|Method or attribute name: isFeatureSupported
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.isFeatureSupported |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getDeviceMacAddress
Deprecated version: N/A|Method or attribute name: getDeviceMacAddress
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getDeviceMacAddress |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getIpInfo
Deprecated version: N/A|Method or attribute name: getIpInfo
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getIpInfo |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getCountryCode
Deprecated version: N/A|Method or attribute name: getCountryCode
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getCountryCode |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: reassociate
Deprecated version: N/A|Method or attribute name: reassociate
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.reassociate |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: reconnect
Deprecated version: N/A|Method or attribute name: reconnect
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.reconnect |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getDeviceConfigs
Deprecated version: N/A|Method or attribute name: getDeviceConfigs
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getDeviceConfigs |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: updateNetwork
Deprecated version: N/A|Method or attribute name: updateNetwork
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.updateNetwork |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: disableNetwork
Deprecated version: N/A|Method or attribute name: disableNetwork
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.disableNetwork |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: removeAllNetwork
Deprecated version: N/A|Method or attribute name: removeAllNetwork
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.removeAllNetwork |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: removeDevice
Deprecated version: N/A|Method or attribute name: removeDevice
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.removeDevice |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: enableHotspot
Deprecated version: N/A|Method or attribute name: enableHotspot
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.enableHotspot |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: disableHotspot
Deprecated version: N/A|Method or attribute name: disableHotspot
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.disableHotspot |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: isHotspotDualBandSupported
Deprecated version: N/A|Method or attribute name: isHotspotDualBandSupported
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.isHotspotDualBandSupported |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: isHotspotActive
Deprecated version: N/A|Method or attribute name: isHotspotActive
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.isHotspotActive |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: setHotspotConfig
Deprecated version: N/A|Method or attribute name: setHotspotConfig
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.setHotspotConfig |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getHotspotConfig
Deprecated version: N/A|Method or attribute name: getHotspotConfig
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getHotspotConfig |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getStations
Deprecated version: N/A|Method or attribute name: getStations
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getStations |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getP2pLinkedInfo
Deprecated version: N/A|Method or attribute name: getP2pLinkedInfo
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getP2pLinkedInfo |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getP2pLinkedInfo
Deprecated version: N/A|Method or attribute name: getP2pLinkedInfo
Deprecated version: 9|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getCurrentGroup
Deprecated version: N/A|Method or attribute name: getCurrentGroup
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getCurrentGroup |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getCurrentGroup
Deprecated version: N/A|Method or attribute name: getCurrentGroup
Deprecated version: 9|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getP2pPeerDevices
Deprecated version: N/A|Method or attribute name: getP2pPeerDevices
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.getP2pPeerDevices |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: getP2pPeerDevices
Deprecated version: N/A|Method or attribute name: getP2pPeerDevices
Deprecated version: 9|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: createGroup
Deprecated version: N/A|Method or attribute name: createGroup
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.createGroup |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: removeGroup
Deprecated version: N/A|Method or attribute name: removeGroup
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.removeGroup |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: p2pConnect
Deprecated version: N/A|Method or attribute name: p2pConnect
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.p2pConnect |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: p2pCancelConnect
Deprecated version: N/A|Method or attribute name: p2pCancelConnect
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.p2pDisonnect |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: startDiscoverDevices
Deprecated version: N/A|Method or attribute name: startDiscoverDevices
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.startDiscoverDevices |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: stopDiscoverDevices
Deprecated version: N/A|Method or attribute name: stopDiscoverDevices
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.stopDiscoverDevices |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: deletePersistentGroup
Deprecated version: N/A|Method or attribute name: deletePersistentGroup
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.deletePersistentGroup |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: setDeviceName
Deprecated version: N/A|Method or attribute name: setDeviceName
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.setDeviceName |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_wifiStateChange
Deprecated version: N/A|Method or attribute name: on_wifiStateChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_wifiStateChange
Deprecated version: N/A|Method or attribute name: off_wifiStateChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_wifiConnectionChange
Deprecated version: N/A|Method or attribute name: on_wifiConnectionChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_wifiConnectionChange
Deprecated version: N/A|Method or attribute name: off_wifiConnectionChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_wifiScanStateChange
Deprecated version: N/A|Method or attribute name: on_wifiScanStateChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_wifiScanStateChange
Deprecated version: N/A|Method or attribute name: off_wifiScanStateChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_wifiRssiChange
Deprecated version: N/A|Method or attribute name: on_wifiRssiChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_wifiRssiChange
Deprecated version: N/A|Method or attribute name: off_wifiRssiChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_streamChange
Deprecated version: N/A|Method or attribute name: on_streamChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_streamChange
Deprecated version: N/A|Method or attribute name: off_streamChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_hotspotStateChange
Deprecated version: N/A|Method or attribute name: on_hotspotStateChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_hotspotStateChange
Deprecated version: N/A|Method or attribute name: off_hotspotStateChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_hotspotStaJoin
Deprecated version: N/A|Method or attribute name: on_hotspotStaJoin
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_hotspotStaJoin
Deprecated version: N/A|Method or attribute name: off_hotspotStaJoin
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_hotspotStaLeave
Deprecated version: N/A|Method or attribute name: on_hotspotStaLeave
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_hotspotStaLeave
Deprecated version: N/A|Method or attribute name: off_hotspotStaLeave
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_p2pStateChange
Deprecated version: N/A|Method or attribute name: on_p2pStateChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_p2pStateChange
Deprecated version: N/A|Method or attribute name: off_p2pStateChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_p2pConnectionChange
Deprecated version: N/A|Method or attribute name: on_p2pConnectionChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_p2pConnectionChange
Deprecated version: N/A|Method or attribute name: off_p2pConnectionChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_p2pDeviceChange
Deprecated version: N/A|Method or attribute name: on_p2pDeviceChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_p2pDeviceChange
Deprecated version: N/A|Method or attribute name: off_p2pDeviceChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_p2pPeerDeviceChange
Deprecated version: N/A|Method or attribute name: on_p2pPeerDeviceChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_p2pPeerDeviceChange
Deprecated version: N/A|Method or attribute name: off_p2pPeerDeviceChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_p2pPersistentGroupChange
Deprecated version: N/A|Method or attribute name: on_p2pPersistentGroupChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_p2pPersistentGroupChange
Deprecated version: N/A|Method or attribute name: off_p2pPersistentGroupChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: on_p2pDiscoveryChange
Deprecated version: N/A|Method or attribute name: on_p2pDiscoveryChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.on|@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: off_p2pDiscoveryChange
Deprecated version: N/A|Method or attribute name: off_p2pDiscoveryChange
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.off|@ohos.wifi.d.ts| +|Deprecated version changed|Class name: WifiDeviceConfig
Deprecated version: N/A|Class name: WifiDeviceConfig
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.WifiDeviceConfig |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: IpConfig
Deprecated version: N/A|Class name: IpConfig
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.IpConfig |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: WifiScanInfo
Deprecated version: N/A|Class name: WifiScanInfo
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.WifiScanInfo |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: WifiSecurityType
Deprecated version: N/A|Class name: WifiSecurityType
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.WifiSecurityType |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: WifiLinkedInfo
Deprecated version: N/A|Class name: WifiLinkedInfo
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.WifiLinkedInfo |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: IpInfo
Deprecated version: N/A|Class name: IpInfo
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.IpInfo |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: HotspotConfig
Deprecated version: N/A|Class name: HotspotConfig
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.HotspotConfig |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: StationInfo
Deprecated version: N/A|Class name: StationInfo
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.StationInfo |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: IpType
Deprecated version: N/A|Class name: IpType
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.IpType |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: SuppState
Deprecated version: N/A|Class name: SuppState
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.SuppState |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: ConnState
Deprecated version: N/A|Class name: ConnState
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.ConnState |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: WifiP2pDevice
Deprecated version: N/A|Class name: WifiP2pDevice
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.WifiP2pDevice |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: WifiP2PConfig
Deprecated version: N/A|Class name: WifiP2PConfig
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.WifiP2PConfig |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: WifiP2pGroupInfo
Deprecated version: N/A|Class name: WifiP2pGroupInfo
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.WifiP2pGroupInfo |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: P2pConnectState
Deprecated version: N/A|Class name: P2pConnectState
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.P2pConnectState |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: WifiP2pLinkedInfo
Deprecated version: N/A|Class name: WifiP2pLinkedInfo
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.WifiP2pLinkedInfo |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: P2pDeviceStatus
Deprecated version: N/A|Class name: P2pDeviceStatus
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.P2pDeviceStatus |@ohos.wifi.d.ts| +|Deprecated version changed|Class name: GroupOwnerBand
Deprecated version: N/A|Class name: GroupOwnerBand
Deprecated version: 9
New API: ohos.wifiManager/wifiManager.GroupOwnerBand |@ohos.wifi.d.ts| +|Deprecated version changed|Method or attribute name: enableHotspot
Deprecated version: N/A|Method or attribute name: enableHotspot
Deprecated version: 9
New API: ohos.wifiManagerExt/wifiManagerExt.enableHotspot |@ohos.wifiext.d.ts| +|Deprecated version changed|Method or attribute name: disableHotspot
Deprecated version: N/A|Method or attribute name: disableHotspot
Deprecated version: 9
New API: ohos.wifiManagerExt/wifiManagerExt.disableHotspot |@ohos.wifiext.d.ts| +|Deprecated version changed|Method or attribute name: getSupportedPowerModel
Deprecated version: N/A|Method or attribute name: getSupportedPowerModel
Deprecated version: 9
New API: ohos.wifiManagerExt/wifiManagerExt.getSupportedPowerMode |@ohos.wifiext.d.ts| +|Deprecated version changed|Method or attribute name: getSupportedPowerModel
Deprecated version: N/A|Method or attribute name: getSupportedPowerModel
Deprecated version: 9|@ohos.wifiext.d.ts| +|Deprecated version changed|Method or attribute name: getPowerModel
Deprecated version: N/A|Method or attribute name: getPowerModel
Deprecated version: 9
New API: ohos.wifiManagerExt/wifiManagerExt.getPowerMode |@ohos.wifiext.d.ts| +|Deprecated version changed|Method or attribute name: getPowerModel
Deprecated version: N/A|Method or attribute name: getPowerModel
Deprecated version: 9|@ohos.wifiext.d.ts| +|Deprecated version changed|Method or attribute name: setPowerModel
Deprecated version: N/A|Method or attribute name: setPowerModel
Deprecated version: 9
New API: ohos.wifiManagerExt/wifiManagerExt.setPowerMode |@ohos.wifiext.d.ts| +|Deprecated version changed|Class name: PowerModel
Deprecated version: N/A|Class name: PowerModel
Deprecated version: 9
New API: ohos.wifiManagerExt/wifiManagerExt.PowerMode |@ohos.wifiext.d.ts| +|Permission deleted|Method or attribute name: getNdefMessage
Permission: ohos.permission.NFC_TAG|Method or attribute name: getNdefMessage
Permission: N/A|nfctech.d.ts| +|Permission deleted|Method or attribute name: getSectorCount
Permission: ohos.permission.NFC_TAG|Method or attribute name: getSectorCount
Permission: N/A|nfctech.d.ts| +|Permission deleted|Method or attribute name: getBlockCountInSector
Permission: ohos.permission.NFC_TAG|Method or attribute name: getBlockCountInSector
Permission: N/A|nfctech.d.ts| +|Permission deleted|Method or attribute name: getTagSize
Permission: ohos.permission.NFC_TAG|Method or attribute name: getTagSize
Permission: N/A|nfctech.d.ts| +|Permission deleted|Method or attribute name: isEmulatedTag
Permission: ohos.permission.NFC_TAG|Method or attribute name: isEmulatedTag
Permission: N/A|nfctech.d.ts| +|Permission deleted|Method or attribute name: getBlockIndex
Permission: ohos.permission.NFC_TAG|Method or attribute name: getBlockIndex
Permission: N/A|nfctech.d.ts| +|Permission deleted|Method or attribute name: getSectorIndex
Permission: ohos.permission.NFC_TAG|Method or attribute name: getSectorIndex
Permission: N/A|nfctech.d.ts| +|Error code added||Method or attribute name: isExtendedApduSupported
Error code: 201, 401, 3100201|nfctech.d.ts| +|Error code added||Method or attribute name: readNdef
Error code: 201, 401, 3100201|nfctech.d.ts| +|Error code added||Method or attribute name: getBlockCountInSector
Error code: 401|nfctech.d.ts| +|Error code added||Method or attribute name: getBlockIndex
Error code: 401|nfctech.d.ts| +|Error code added||Method or attribute name: getSectorIndex
Error code: 401|nfctech.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-compiler-and-runtime.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-compiler-and-runtime.md new file mode 100644 index 0000000000000000000000000000000000000000..8e89d29151b5671fca5baceae1d7a231c5f0c150 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-compiler-and-runtime.md @@ -0,0 +1,243 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.convertxml
Class name: ConvertXML
Method or attribute name: convertToJSObject|@ohos.convertxml.d.ts| +|Added||Module name: ohos.process
Class name: ProcessManager|@ohos.process.d.ts| +|Added||Module name: ohos.process
Class name: ProcessManager
Method or attribute name: isAppUid|@ohos.process.d.ts| +|Added||Module name: ohos.process
Class name: ProcessManager
Method or attribute name: getUidForName|@ohos.process.d.ts| +|Added||Module name: ohos.process
Class name: ProcessManager
Method or attribute name: getThreadPriority|@ohos.process.d.ts| +|Added||Module name: ohos.process
Class name: ProcessManager
Method or attribute name: getSystemConfig|@ohos.process.d.ts| +|Added||Module name: ohos.process
Class name: ProcessManager
Method or attribute name: getEnvironmentVar|@ohos.process.d.ts| +|Added||Module name: ohos.process
Class name: ProcessManager
Method or attribute name: exit|@ohos.process.d.ts| +|Added||Module name: ohos.process
Class name: ProcessManager
Method or attribute name: kill|@ohos.process.d.ts| +|Added||Module name: ohos.uri
Class name: URI
Method or attribute name: equalsTo|@ohos.uri.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value: string, key: string, searchParams: this) => void, thisArg?: Object): void;|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: ructor(init?|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: append|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: delete|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: getAll|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: entries|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: forEach|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: get|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: has|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: set|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: sort|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: keys|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: values|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: [Symbol.iterator]|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URLParams
Method or attribute name: toString|@ohos.url.d.ts| +|Added||Module name: ohos.url
Class name: URL
Method or attribute name: parseURL|@ohos.url.d.ts| +|Added||Method or attribute name: replaceAllElements
Function name: replaceAllElements(callbackFn: (value: T, index?: number, arrlist?: ArrayList) => T,

thisArg?: Object): void;|@ohos.util.ArrayList.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value: T, index?: number, arrlist?: ArrayList) => void,

thisArg?: Object): void;|@ohos.util.ArrayList.d.ts| +|Added||Module name: ohos.util
Class name: util
Method or attribute name: format|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: util
Method or attribute name: errnoToString|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: TextDecoder
Method or attribute name: create|@ohos.util.d.ts| +|Added||Method or attribute name: encodeInto
Function name: encodeInto(input?: string): Uint8Array;|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: TextEncoder
Method or attribute name: encodeIntoUint8Array|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: RationalNumber
Method or attribute name: parseRationalNumber|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: RationalNumber
Method or attribute name: compare|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: RationalNumber
Method or attribute name: getCommonFactor|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: ructor(capacity?|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: updateCapacity|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: toString|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: length|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: getCapacity|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: clear|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: getCreateCount|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: getMissCount|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: getRemovalCount|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: getMatchCount|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: getPutCount|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: isEmpty|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: get|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: put|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: values|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: keys|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: remove|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: afterRemoval|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: contains|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: createDefault|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: entries|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: LRUCache
Method or attribute name: [Symbol.iterator]|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: ructor(lowerObj|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: toString|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: intersect|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: intersect|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: getUpper|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: getLower|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: expand|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: expand|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: expand|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: contains|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: contains|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: ScopeHelper
Method or attribute name: clamp|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: Base64Helper|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: Base64Helper
Method or attribute name: encodeSync|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: Base64Helper
Method or attribute name: encodeToStringSync|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: Base64Helper
Method or attribute name: decodeSync|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: Base64Helper
Method or attribute name: encode|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: Base64Helper
Method or attribute name: encodeToString|@ohos.util.d.ts| +|Added||Module name: ohos.util
Class name: Base64Helper
Method or attribute name: decode|@ohos.util.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value: T, index?: number, deque?: Deque) => void,

thisArg?: Object): void;|@ohos.util.Deque.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value?: V, key?: K, map?: HashMap) => void,

thisArg?: Object): void;|@ohos.util.HashMap.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value?: T, key?: T, set?: HashSet) => void,

thisArg?: Object): void;|@ohos.util.HashSet.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value?: V, key?: K, map?: LightWeightMap) => void,

thisArg?: Object): void;|@ohos.util.LightWeightMap.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value?: T, key?: T, set?: LightWeightSet) => void,

thisArg?: Object): void;|@ohos.util.LightWeightSet.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value: T, index?: number, LinkedList?: LinkedList) => void,

thisArg?: Object): void;|@ohos.util.LinkedList.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value: T, index?: number, List?: List) => void,

thisArg?: Object): void;|@ohos.util.List.d.ts| +|Added||Method or attribute name: replaceAllElements
Function name: replaceAllElements(callbackFn: (value: T, index?: number, list?: List) => T,

thisArg?: Object): void;|@ohos.util.List.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value: T, index?: number, PlainArray?: PlainArray) => void,

thisArg?: Object): void;|@ohos.util.PlainArray.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value: T, index?: number, Queue?: Queue) => void,

thisArg?: Object): void;|@ohos.util.Queue.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value: T, index?: number, stack?: Stack) => void,

thisArg?: Object): void;|@ohos.util.Stack.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value?: V, key?: K, map?: TreeMap) => void,

thisArg?: Object): void;|@ohos.util.TreeMap.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value?: T, key?: T, set?: TreeSet) => void,

thisArg?: Object): void;|@ohos.util.TreeSet.d.ts| +|Added||Method or attribute name: replaceAllElements
Function name: replaceAllElements(callbackFn: (value: T, index?: number, vector?: Vector) => T,

thisArg?: Object): void;|@ohos.util.Vector.d.ts| +|Added||Method or attribute name: forEach
Function name: forEach(callbackFn: (value: T, index?: number, vector?: Vector) => void,

thisArg?: Object): void;|@ohos.util.Vector.d.ts| +|Added||Module name: ohos.worker
Class name: MessageEvents|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: MessageEvents
Method or attribute name: data|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: WorkerEventListener|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: WorkerEventListener
Method or attribute name: WorkerEventListener|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: WorkerEventTarget|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: WorkerEventTarget
Method or attribute name: addEventListener|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: WorkerEventTarget
Method or attribute name: dispatchEvent|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: WorkerEventTarget
Method or attribute name: removeEventListener|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: WorkerEventTarget
Method or attribute name: removeAllListener|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: GlobalScope|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: GlobalScope
Method or attribute name: name|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: GlobalScope
Method or attribute name: onerror|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: GlobalScope
Method or attribute name: self|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorkerGlobalScope|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorkerGlobalScope
Method or attribute name: onmessage|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorkerGlobalScope
Method or attribute name: onmessageerror|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorkerGlobalScope
Method or attribute name: close|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorkerGlobalScope
Method or attribute name: postMessage|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorkerGlobalScope
Method or attribute name: postMessage|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: ructor(scriptURL|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: onexit|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: onerror|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: onmessage|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: onmessageerror|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: postMessage|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: postMessage|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: on|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: once|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: off|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: terminate|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: addEventListener|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: dispatchEvent|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: removeEventListener|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: ThreadWorker
Method or attribute name: removeAllListener|@ohos.worker.d.ts| +|Added||Module name: ohos.worker
Class name: worker
Method or attribute name: workerPort|@ohos.worker.d.ts| +|Deleted |Module name: ohos.worker
Class name: Worker
Method or attribute name: addEventListener||@ohos.worker.d.ts| +|Deleted |Module name: ohos.worker
Class name: Worker
Method or attribute name: dispatchEvent||@ohos.worker.d.ts| +|Deleted |Module name: ohos.worker
Class name: Worker
Method or attribute name: removeEventListener||@ohos.worker.d.ts| +|Deleted |Module name: ohos.worker
Class name: Worker
Method or attribute name: removeAllListener||@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: convert
Deprecated version: N/A|Method or attribute name: convert
Deprecated version:9
New API:ohos.convertxml.ConvertXML.convertToJSObject |@ohos.convertxml.d.ts| +|Deprecated version changed|Method or attribute name: isAppUid
Deprecated version: N/A|Method or attribute name: isAppUid
Deprecated version:9
New API:ohos.process.ProcessManager.isAppUid |@ohos.process.d.ts| +|Deprecated version changed|Method or attribute name: getUidForName
Deprecated version: N/A|Method or attribute name: getUidForName
Deprecated version:9
New API:ohos.process.ProcessManager.getUidForName |@ohos.process.d.ts| +|Deprecated version changed|Method or attribute name: getThreadPriority
Deprecated version: N/A|Method or attribute name: getThreadPriority
Deprecated version:9
New API:ohos.process.ProcessManager.getThreadPriority |@ohos.process.d.ts| +|Deprecated version changed|Method or attribute name: getSystemConfig
Deprecated version: N/A|Method or attribute name: getSystemConfig
Deprecated version:9
New API:ohos.process.ProcessManager.getSystemConfig |@ohos.process.d.ts| +|Deprecated version changed|Method or attribute name: getEnvironmentVar
Deprecated version: N/A|Method or attribute name: getEnvironmentVar
Deprecated version:9
New API:ohos.process.ProcessManager.getEnvironmentVar |@ohos.process.d.ts| +|Deprecated version changed|Method or attribute name: exit
Deprecated version: N/A|Method or attribute name: exit
Deprecated version:9
New API:ohos.process.ProcessManager.exit |@ohos.process.d.ts| +|Deprecated version changed|Method or attribute name: kill
Deprecated version: N/A|Method or attribute name: kill
Deprecated version:9
New API:ohos.process.ProcessManager.kill |@ohos.process.d.ts| +|Deprecated version changed|Method or attribute name: equals
Deprecated version: N/A|Method or attribute name: equals
Deprecated version:9
New API:ohos.uri.URI.equalsTo |@ohos.uri.d.ts| +|Deprecated version changed|Class name:URLSearchParams
Deprecated version: N/A|Class name:URLSearchParams
Deprecated version:9
New API:ohos.url.URLParams |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: ructor(init?
Deprecated version: N/A|Method or attribute name: ructor(init?
Deprecated version:9
New API:ohos.url.URLParams.constructor |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: append
Deprecated version: N/A|Method or attribute name: append
Deprecated version:9
New API:ohos.url.URLParams.append |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: delete
Deprecated version: N/A|Method or attribute name: delete
Deprecated version:9
New API:ohos.url.URLParams.delete |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: getAll
Deprecated version: N/A|Method or attribute name: getAll
Deprecated version:9
New API:ohos.url.URLParams.getAll |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: entries
Deprecated version: N/A|Method or attribute name: entries
Deprecated version:9
New API:ohos.url.URLParams.entries |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: get
Deprecated version: N/A|Method or attribute name: get
Deprecated version:9
New API:ohos.url.URLParams.get |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: has
Deprecated version: N/A|Method or attribute name: has
Deprecated version:9
New API:ohos.url.URLParams.has |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: set
Deprecated version: N/A|Method or attribute name: set
Deprecated version:9
New API:ohos.url.URLParams.set |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: sort
Deprecated version: N/A|Method or attribute name: sort
Deprecated version:9
New API:ohos.url.URLParams.sort |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: keys
Deprecated version: N/A|Method or attribute name: keys
Deprecated version:9
New API:ohos.url.URLParams.keys |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: values
Deprecated version: N/A|Method or attribute name: values
Deprecated version:9
New API:ohos.url.URLParams.values |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: [Symbol.iterator]
Deprecated version: N/A|Method or attribute name: [Symbol.iterator]
Deprecated version:9
New API:ohos.url.URLParams.|@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: toString
Deprecated version: N/A|Method or attribute name: toString
Deprecated version:9
New API:ohos.url.URLParams.toString |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: ructor(url
Deprecated version: N/A|Method or attribute name: ructor(url
Deprecated version:9
New API:ohos.URL.constructor |@ohos.url.d.ts| +|Deprecated version changed|Method or attribute name: printf
Deprecated version: N/A|Method or attribute name: printf
Deprecated version:9
New API:ohos.util.format |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getErrorString
Deprecated version: N/A|Method or attribute name: getErrorString
Deprecated version:9
New API:ohos.util.errnoToString |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: ructor(

encoding?
Deprecated version: N/A|Method or attribute name: ructor(

encoding?
Deprecated version:9
New API:ohos.util.constructor |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: decode
Deprecated version: N/A|Method or attribute name: decode
Deprecated version:9
New API:ohos.util.decodeWithStream |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: encode
Deprecated version: N/A|Method or attribute name: encode
Deprecated version:9
New API:ohos.util.encodeInto |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: encodeInto
Deprecated version: N/A|Method or attribute name: encodeInto
Deprecated version:9
New API:ohos.util.encodeIntoUint8Array |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: ructor(numerator
Deprecated version: N/A|Method or attribute name: ructor(numerator
Deprecated version:9
New API:ohos.util.constructor |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: compareTo
Deprecated version: N/A|Method or attribute name: compareTo
Deprecated version:9
New API:ohos.util.compare |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getCommonDivisor
Deprecated version: N/A|Method or attribute name: getCommonDivisor
Deprecated version:9
New API:ohos.util.getCommonFactor |@ohos.util.d.ts| +|Deprecated version changed|Class name:LruBuffer
Deprecated version: N/A|Class name:LruBuffer
Deprecated version:9
New API:ohos.util.LRUCache |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: updateCapacity
Deprecated version: N/A|Method or attribute name: updateCapacity
Deprecated version:9
New API:ohos.util.LRUCache.updateCapacity |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getCapacity
Deprecated version: N/A|Method or attribute name: getCapacity
Deprecated version:9
New API:ohos.util.LRUCache.getCapacity |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: clear
Deprecated version: N/A|Method or attribute name: clear
Deprecated version:9
New API:ohos.util.LRUCache.clear |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getCreateCount
Deprecated version: N/A|Method or attribute name: getCreateCount
Deprecated version:9
New API:ohos.util.LRUCache.getCreateCount |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getMissCount
Deprecated version: N/A|Method or attribute name: getMissCount
Deprecated version:9
New API:ohos.util.LRUCache.getMissCount |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getRemovalCount
Deprecated version: N/A|Method or attribute name: getRemovalCount
Deprecated version:9
New API:ohos.util.LRUCache.getRemovalCount |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getMatchCount
Deprecated version: N/A|Method or attribute name: getMatchCount
Deprecated version:9
New API:ohos.util.LRUCache.getMatchCount |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getPutCount
Deprecated version: N/A|Method or attribute name: getPutCount
Deprecated version:9
New API:ohos.util.LRUCache.getPutCount |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: isEmpty
Deprecated version: N/A|Method or attribute name: isEmpty
Deprecated version:9
New API:ohos.util.LRUCache.isEmpty |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: get
Deprecated version: N/A|Method or attribute name: get
Deprecated version:9
New API:ohos.util.LRUCache.get |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: put
Deprecated version: N/A|Method or attribute name: put
Deprecated version:9
New API:ohos.util.LRUCache.put |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: values
Deprecated version: N/A|Method or attribute name: values
Deprecated version:9
New API:ohos.util.LRUCache.values |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: keys
Deprecated version: N/A|Method or attribute name: keys
Deprecated version:9
New API:ohos.util.LRUCache.keys |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: remove
Deprecated version: N/A|Method or attribute name: remove
Deprecated version:9
New API:ohos.util.LRUCache.remove |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: afterRemoval
Deprecated version: N/A|Method or attribute name: afterRemoval
Deprecated version:9
New API:ohos.util.LRUCache.afterRemoval |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: contains
Deprecated version: N/A|Method or attribute name: contains
Deprecated version:9
New API:ohos.util.LRUCache.contains |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: createDefault
Deprecated version: N/A|Method or attribute name: createDefault
Deprecated version:9
New API:ohos.util.LRUCache.createDefault |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: entries
Deprecated version: N/A|Method or attribute name: entries
Deprecated version:9
New API:ohos.util.LRUCache.entries |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: [Symbol.iterator]
Deprecated version: N/A|Method or attribute name: [Symbol.iterator]
Deprecated version:9
New API:ohos.util.LRUCache.|@ohos.util.d.ts| +|Deprecated version changed|Class name:Scope
Deprecated version: N/A|Class name:Scope
Deprecated version:9
New API:ohos.util.ScopeHelper |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: ructor(lowerObj
Deprecated version: N/A|Method or attribute name: ructor(lowerObj
Deprecated version:9
New API:ohos.util.ScopeHelper.constructor |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: toString
Deprecated version: N/A|Method or attribute name: toString
Deprecated version:9
New API:ohos.util.ScopeHelper.toString |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: intersect
Deprecated version: N/A|Method or attribute name: intersect
Deprecated version:9
New API:ohos.util.ScopeHelper.intersect |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: intersect
Deprecated version: N/A|Method or attribute name: intersect
Deprecated version:9
New API:ohos.util.ScopeHelper.intersect |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getUpper
Deprecated version: N/A|Method or attribute name: getUpper
Deprecated version:9
New API:ohos.util.ScopeHelper.getUpper |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: getLower
Deprecated version: N/A|Method or attribute name: getLower
Deprecated version:9
New API:ohos.util.ScopeHelper.getLower |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: expand
Deprecated version: N/A|Method or attribute name: expand
Deprecated version:9
New API:ohos.util.ScopeHelper.expand |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: expand
Deprecated version: N/A|Method or attribute name: expand
Deprecated version:9
New API:ohos.util.ScopeHelper.expand |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: expand
Deprecated version: N/A|Method or attribute name: expand
Deprecated version:9
New API:ohos.util.ScopeHelper.expand |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: contains
Deprecated version: N/A|Method or attribute name: contains
Deprecated version:9
New API:ohos.util.ScopeHelper.contains |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: contains
Deprecated version: N/A|Method or attribute name: contains
Deprecated version:9
New API:ohos.util.ScopeHelper.contains |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: clamp
Deprecated version: N/A|Method or attribute name: clamp
Deprecated version:9
New API:ohos.util.ScopeHelper.clamp |@ohos.util.d.ts| +|Deprecated version changed|Class name:Base64
Deprecated version: N/A|Class name:Base64
Deprecated version:9
New API:ohos.util.Base64Helper |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: encodeSync
Deprecated version: N/A|Method or attribute name: encodeSync
Deprecated version:9
New API:ohos.util.Base64Helper.encodeSync |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: encodeToStringSync
Deprecated version: N/A|Method or attribute name: encodeToStringSync
Deprecated version:9
New API:ohos.util.Base64Helper.encodeToStringSync |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: decodeSync
Deprecated version: N/A|Method or attribute name: decodeSync
Deprecated version:9
New API:ohos.util.Base64Helper.decodeSync |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: encode
Deprecated version: N/A|Method or attribute name: encode
Deprecated version:9
New API:ohos.util.Base64Helper.encode |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: encodeToString
Deprecated version: N/A|Method or attribute name: encodeToString
Deprecated version:9
New API:ohos.util.Base64Helper.encodeToString |@ohos.util.d.ts| +|Deprecated version changed|Method or attribute name: decode
Deprecated version: N/A|Method or attribute name: decode
Deprecated version:9
New API:ohos.util.Base64Helper.decode |@ohos.util.d.ts| +|Deprecated version changed|Class name:Vector
Deprecated version: N/A|Class name:Vector
Deprecated version:9
New API:ohos.util.ArrayList |@ohos.util.Vector.d.ts| +|Deprecated version changed|Class name:EventListener
Deprecated version: N/A|Class name:EventListener
Deprecated version:9
New API:ohos.worker.WorkerEventListener |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: EventListener
Deprecated version: N/A|Method or attribute name: EventListener
Deprecated version:9
New API:ohos.worker.WorkerEventListener.|@ohos.worker.d.ts| +|Deprecated version changed|Class name:EventTarget
Deprecated version: N/A|Class name:EventTarget
Deprecated version:9
New API:ohos.worker.WorkerEventTarget |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: addEventListener
Deprecated version: N/A|Method or attribute name: addEventListener
Deprecated version:9
New API:ohos.worker.WorkerEventTarget.addEventListener |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: dispatchEvent
Deprecated version: N/A|Method or attribute name: dispatchEvent
Deprecated version:9
New API:ohos.worker.WorkerEventTarget.dispatchEvent |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: removeEventListener
Deprecated version: N/A|Method or attribute name: removeEventListener
Deprecated version:9
New API:ohos.worker.WorkerEventTarget.removeEventListener |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: removeAllListener
Deprecated version: N/A|Method or attribute name: removeAllListener
Deprecated version:9
New API:ohos.worker.WorkerEventTarget.removeAllListener |@ohos.worker.d.ts| +|Deprecated version changed|Class name:WorkerGlobalScope
Deprecated version: N/A|Class name:WorkerGlobalScope
Deprecated version:9
New API:ohos.worker.GlobalScope |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: name
Deprecated version: N/A|Method or attribute name: name
Deprecated version:9
New API:ohos.worker.GlobalScope.name |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: onerror
Deprecated version: N/A|Method or attribute name: onerror
Deprecated version:9
New API:ohos.worker.GlobalScope.onerror |@ohos.worker.d.ts| +|Deprecated version changed|Class name:DedicatedWorkerGlobalScope
Deprecated version: N/A|Class name:DedicatedWorkerGlobalScope
Deprecated version:9
New API:ohos.worker.ThreadWorkerGlobalScope |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: onmessage
Deprecated version: N/A|Method or attribute name: onmessage
Deprecated version:9
New API:ohos.worker.ThreadWorkerGlobalScope.onmessage |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: onmessageerror
Deprecated version: N/A|Method or attribute name: onmessageerror
Deprecated version:9
New API:ohos.worker.ThreadWorkerGlobalScope.onmessageerror |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: close
Deprecated version: N/A|Method or attribute name: close
Deprecated version:9
New API:ohos.worker.ThreadWorkerGlobalScope.close |@ohos.worker.d.ts| +|Deprecated version changed|Class name:Worker
Deprecated version: N/A|Class name:Worker
Deprecated version:9
New API:ohos.worker.ThreadWorker |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: ructor(scriptURL
Deprecated version: N/A|Method or attribute name: ructor(scriptURL
Deprecated version:9
New API:ohos.worker.ThreadWorker.constructor |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: onexit
Deprecated version: N/A|Method or attribute name: onexit
Deprecated version:9
New API:ohos.worker.ThreadWorker.onexit |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: onerror
Deprecated version: N/A|Method or attribute name: onerror
Deprecated version:9
New API:ohos.worker.ThreadWorker.onerror |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: onmessage
Deprecated version: N/A|Method or attribute name: onmessage
Deprecated version:9
New API:ohos.worker.ThreadWorker.onmessage |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: onmessageerror
Deprecated version: N/A|Method or attribute name: onmessageerror
Deprecated version:9
New API:ohos.worker.ThreadWorker.onmessageerror |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: postMessage
Deprecated version: N/A|Method or attribute name: postMessage
Deprecated version:9
New API:ohos.worker.ThreadWorker.postMessage |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: postMessage
Deprecated version: N/A|Method or attribute name: postMessage
Deprecated version:9|@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: on
Deprecated version: N/A|Method or attribute name: on
Deprecated version:9
New API:ohos.worker.ThreadWorker.on |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version:9
New API:ohos.worker.ThreadWorker.once |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: off
Deprecated version: N/A|Method or attribute name: off
Deprecated version:9
New API:ohos.worker.ThreadWorker.off |@ohos.worker.d.ts| +|Deprecated version changed|Method or attribute name: terminate
Deprecated version: N/A|Method or attribute name: terminate
Deprecated version:9
New API:ohos.worker.ThreadWorker.terminate |@ohos.worker.d.ts| +|Initial version changed|Class name:RationalNumber
Initial version: 7|Class name:RationalNumber
Initial version: 8|@ohos.util.d.ts| +|Initial version changed|Class name:LruBuffer
Initial version: 7|Class name:LruBuffer
Initial version: 8|@ohos.util.d.ts| +|Initial version changed|Class name:Scope
Initial version: 7|Class name:Scope
Initial version: 8|@ohos.util.d.ts| +|Initial version changed|Class name:Base64
Initial version: 7|Class name:Base64
Initial version: 8|@ohos.util.d.ts| +|Initial version changed|Class name:types
Initial version: 7|Class name:types
Initial version: 8|@ohos.util.d.ts| +|Initial version changed|Class name:Vector
Initial version: |Class name:Vector
Initial version: 8|@ohos.util.Vector.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-customization.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-customization.md new file mode 100644 index 0000000000000000000000000000000000000000..6ed3d3189cef2e2247a9c75ed68524c942e8a505 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-customization.md @@ -0,0 +1,78 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: EnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: EnterpriseInfo
Method or attribute name: name|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: EnterpriseInfo
Method or attribute name: description|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: AdminType|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: AdminType
Method or attribute name: ADMIN_TYPE_NORMAL|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: AdminType
Method or attribute name: ADMIN_TYPE_SUPER|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: ManagedEvent|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: ManagedEvent
Method or attribute name: MANAGED_EVENT_BUNDLE_ADDED|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: ManagedEvent
Method or attribute name: MANAGED_EVENT_BUNDLE_REMOVED|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: enableAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: enableAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: enableAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: disableAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: disableAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: disableAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: disableSuperAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: disableSuperAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: isAdminEnabled|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: isAdminEnabled|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: isAdminEnabled|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: getEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: getEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: setEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: setEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: isSuperAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: isSuperAdmin|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: subscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: subscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: unsubscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.adminManager
Class name: adminManager
Method or attribute name: unsubscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| +|Added||Module name: ohos.enterprise.dateTimeManager
Class name: dateTimeManager|@ohos.enterprise.dateTimeManager.d.ts| +|Added||Module name: ohos.enterprise.dateTimeManager
Class name: dateTimeManager
Method or attribute name: setDateTime|@ohos.enterprise.dateTimeManager.d.ts| +|Added||Module name: ohos.enterprise.dateTimeManager
Class name: dateTimeManager
Method or attribute name: setDateTime|@ohos.enterprise.dateTimeManager.d.ts| +|Added||Module name: ohos.enterprise.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|Added||Module name: ohos.enterprise.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility
Method or attribute name: onAdminEnabled|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|Added||Module name: ohos.enterprise.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility
Method or attribute name: onAdminDisabled|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|Added||Module name: ohos.enterprise.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility
Method or attribute name: onBundleAdded|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|Added||Module name: ohos.enterprise.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility
Method or attribute name: onBundleRemoved|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|Deleted|Module name: ohos.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility||@ohos.EnterpriseAdminExtensionAbility.d.ts| +|Deleted|Module name: ohos.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility
Method or attribute name: onAdminEnabled||@ohos.EnterpriseAdminExtensionAbility.d.ts| +|Deleted|Module name: ohos.EnterpriseAdminExtensionAbility
Class name: EnterpriseAdminExtensionAbility
Method or attribute name: onAdminDisabled||@ohos.EnterpriseAdminExtensionAbility.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: EnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: EnterpriseInfo
Method or attribute name: name||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: EnterpriseInfo
Method or attribute name: description||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: AdminType||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: AdminType
Method or attribute name: ADMIN_TYPE_NORMAL||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: AdminType
Method or attribute name: ADMIN_TYPE_SUPER||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: enableAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: enableAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: enableAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: disableAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: disableAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: disableAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: disableSuperAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: disableSuperAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: isAdminEnabled||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: isAdminEnabled||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: isAdminEnabled||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: getEnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: getEnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: setEnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: setEnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: isSuperAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: isSuperAdmin||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: getDeviceSettingsManager||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: ohos.enterpriseDeviceManager
Class name: enterpriseDeviceManager
Method or attribute name: getDeviceSettingsManager||@ohos.enterpriseDeviceManager.d.ts| +|Deleted|Module name: DeviceSettingsManager
Class name: DeviceSettingsManager||DeviceSettingsManager.d.ts| +|Deleted|Module name: DeviceSettingsManager
Class name: DeviceSettingsManager
Method or attribute name: setDateTime||DeviceSettingsManager.d.ts| +|Deleted|Module name: DeviceSettingsManager
Class name: DeviceSettingsManager
Method or attribute name: setDateTime||DeviceSettingsManager.d.ts| +|Access level changed|Class name: configPolicy
Access level: public API|Class name: configPolicy
Access level: system API|@ohos.configPolicy.d.ts| +|Error code added||Method or attribute name: getOneCfgFile
Error code: 401|@ohos.configPolicy.d.ts| +|Error code added||Method or attribute name: getCfgFiles
Error code: 401|@ohos.configPolicy.d.ts| +|Error code added||Method or attribute name: getCfgDirList
Error code: 401|@ohos.configPolicy.d.ts| +|Access level changed|Class name: configPolicy
Access level: public API|Class name: configPolicy
Access level: system API|@ohos.configPolicy.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-dfx.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-dfx.md new file mode 100644 index 0000000000000000000000000000000000000000..4c7c038111957bd6e001203493012eb7f5be2895 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-dfx.md @@ -0,0 +1,108 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.faultLogger
Class name: FaultLogger
Method or attribute name: query|@ohos.faultLogger.d.ts| +|Added||Module name: ohos.faultLogger
Class name: FaultLogger
Method or attribute name: query|@ohos.faultLogger.d.ts| +|Added||Module name: ohos.hichecker
Class name: hichecker
Method or attribute name: addCheckRule|@ohos.hichecker.d.ts| +|Added||Module name: ohos.hichecker
Class name: hichecker
Method or attribute name: removeCheckRule|@ohos.hichecker.d.ts| +|Added||Module name: ohos.hichecker
Class name: hichecker
Method or attribute name: containsCheckRule|@ohos.hichecker.d.ts| +|Added||Module name: ohos.hidebug
Class name: hidebug
Method or attribute name: startJsCpuProfiling|@ohos.hidebug.d.ts| +|Added||Module name: ohos.hidebug
Class name: hidebug
Method or attribute name: stopJsCpuProfiling|@ohos.hidebug.d.ts| +|Added||Module name: ohos.hidebug
Class name: hidebug
Method or attribute name: dumpJsHeapData|@ohos.hidebug.d.ts| +|Added||Method or attribute name: getServiceDump
Function name: function getServiceDump(serviceid : number, fd : number, args : Array) : void;|@ohos.hidebug.d.ts| +|Added||Method or attribute name: onQuery
Function name: onQuery: (infos: SysEventInfo[]) => void;|@ohos.hiSysEvent.d.ts| +|Added||Method or attribute name: addWatcher
Function name: function addWatcher(watcher: Watcher): void;|@ohos.hiSysEvent.d.ts| +|Added||Method or attribute name: removeWatcher
Function name: function removeWatcher(watcher: Watcher): void;|@ohos.hiSysEvent.d.ts| +|Added||Method or attribute name: query
Function name: function query(queryArg: QueryArg, rules: QueryRule[], querier: Querier): void;|@ohos.hiSysEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: hiAppEvent|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: EventType|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: EventType
Method or attribute name: FAULT|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: EventType
Method or attribute name: STATISTIC|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: EventType
Method or attribute name: SECURITY|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: EventType
Method or attribute name: BEHAVIOR|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Event|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Event
Method or attribute name: USER_LOGIN|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Event
Method or attribute name: USER_LOGOUT|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Event
Method or attribute name: DISTRIBUTED_SERVICE_START|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Param|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Param
Method or attribute name: USER_ID|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Param
Method or attribute name: DISTRIBUTED_SERVICE_NAME|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Param
Method or attribute name: DISTRIBUTED_SERVICE_INSTANCE_ID|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: hiAppEvent
Method or attribute name: configure|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: ConfigOption|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: ConfigOption
Method or attribute name: disable|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: ConfigOption
Method or attribute name: maxStorage|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventInfo|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventInfo
Method or attribute name: domain|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventInfo
Method or attribute name: name|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventInfo
Method or attribute name: eventType|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventInfo
Method or attribute name: params|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: hiAppEvent
Method or attribute name: write|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: hiAppEvent
Method or attribute name: write|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventPackage|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventPackage
Method or attribute name: packageId|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventPackage
Method or attribute name: row|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventPackage
Method or attribute name: size|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventPackage
Method or attribute name: data|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventPackageHolder|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventPackageHolder
Method or attribute name: ructor(watcherName|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventPackageHolder
Method or attribute name: setSize|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventPackageHolder
Method or attribute name: takeNext|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: TriggerCondition|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: TriggerCondition
Method or attribute name: row|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: TriggerCondition
Method or attribute name: size|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: TriggerCondition
Method or attribute name: timeOut|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventFilter|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventFilter
Method or attribute name: domain|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: AppEventFilter
Method or attribute name: eventTypes|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Watcher|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Watcher
Method or attribute name: name|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Watcher
Method or attribute name: triggerCondition|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Watcher
Method or attribute name: appEventFilters|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: Watcher
Method or attribute name: onTrigger|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: hiAppEvent
Method or attribute name: addWatcher|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: hiAppEvent
Method or attribute name: removeWatcher|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Added||Module name: ohos.hiviewdfx.hiAppEvent
Class name: hiAppEvent
Method or attribute name: clearData|@ohos.hiviewdfx.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: AppEventInfo||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: AppEventInfo
Method or attribute name: domain||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: AppEventInfo
Method or attribute name: name||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: AppEventInfo
Method or attribute name: eventType||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: AppEventInfo
Method or attribute name: params||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: AppEventPackage||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: AppEventPackage
Method or attribute name: packageId||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: AppEventPackage
Method or attribute name: row||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: AppEventPackage
Method or attribute name: size||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: AppEventPackage
Method or attribute name: data||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: AppEventPackageHolder||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: AppEventPackageHolder
Method or attribute name: ructor(watcherName||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: AppEventPackageHolder
Method or attribute name: setSize||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: AppEventPackageHolder
Method or attribute name: takeNext||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: TriggerCondition||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: TriggerCondition
Method or attribute name: row||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: TriggerCondition
Method or attribute name: size||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: TriggerCondition
Method or attribute name: timeOut||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: AppEventFilter||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: AppEventFilter
Method or attribute name: domain||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: AppEventFilter
Method or attribute name: eventTypes||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: Watcher||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: Watcher
Method or attribute name: name||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: Watcher
Method or attribute name: triggerCondition||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: Watcher
Method or attribute name: appEventFilters||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: Watcher
Method or attribute name: onTrigger||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: hiAppEvent
Method or attribute name: addWatcher||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: hiAppEvent
Method or attribute name: removeWatcher||@ohos.hiAppEvent.d.ts| +|Deleted |Module name: ohos.hiAppEvent
Class name: hiAppEvent
Method or attribute name: clearData||@ohos.hiAppEvent.d.ts| +|Deprecated version changed|Class name: bytrace
Deprecated version: N/A|Class name: bytrace
Deprecated version: 8
New API: ohos.hiTraceMeter |@ohos.bytrace.d.ts| +|Deprecated version changed|Method or attribute name: startTrace
Deprecated version: N/A|Method or attribute name: startTrace
Deprecated version: 8
New API: ohos.hiTraceMeter.startTrace |@ohos.bytrace.d.ts| +|Deprecated version changed|Method or attribute name: finishTrace
Deprecated version: N/A|Method or attribute name: finishTrace
Deprecated version: 8
New API: ohos.hiTraceMeter.finishTrace |@ohos.bytrace.d.ts| +|Deprecated version changed|Method or attribute name: traceByValue
Deprecated version: N/A|Method or attribute name: traceByValue
Deprecated version: 8
New API: ohos.hiTraceMeter.traceByValue |@ohos.bytrace.d.ts| +|Deprecated version changed|Method or attribute name: querySelfFaultLog
Deprecated version: N/A|Method or attribute name: querySelfFaultLog
Deprecated version: 9
New API: ohos.faultlogger/FaultLogger|@ohos.faultLogger.d.ts| +|Deprecated version changed|Method or attribute name: querySelfFaultLog
Deprecated version: N/A|Method or attribute name: querySelfFaultLog
Deprecated version: 9
New API: ohos.faultlogger/FaultLogger|@ohos.faultLogger.d.ts| +|Deprecated version changed|Class name: hiAppEvent
Deprecated version: N/A|Class name: hiAppEvent
Deprecated version: 9
New API: ohos.hiviewdfx.hiAppEvent |@ohos.hiAppEvent.d.ts| +|Deprecated version changed|Method or attribute name: write
Deprecated version: 9|Method or attribute name: write
Deprecated version: N/A
New API: ohos.hiviewdfx.hiAppEvent |@ohos.hiAppEvent.d.ts| +|Deprecated version changed|Method or attribute name: write
Deprecated version: 9|Method or attribute name: write
Deprecated version: N/A|@ohos.hiAppEvent.d.ts| +|Deprecated version changed|Method or attribute name: addRule
Deprecated version: N/A|Method or attribute name: addRule
Deprecated version: 9
New API: ohos.hichecker/hichecker|@ohos.hichecker.d.ts| +|Deprecated version changed|Method or attribute name: removeRule
Deprecated version: N/A|Method or attribute name: removeRule
Deprecated version: 9
New API: ohos.hichecker/hichecker|@ohos.hichecker.d.ts| +|Deprecated version changed|Method or attribute name: contains
Deprecated version: N/A|Method or attribute name: contains
Deprecated version: 9
New API: ohos.hichecker/hichecker|@ohos.hichecker.d.ts| +|Deprecated version changed|Method or attribute name: startProfiling
Deprecated version: N/A|Method or attribute name: startProfiling
Deprecated version: 9
New API: ohos.hidebug/hidebug.startJsCpuProfiling |@ohos.hidebug.d.ts| +|Deprecated version changed|Method or attribute name: stopProfiling
Deprecated version: N/A|Method or attribute name: stopProfiling
Deprecated version: 9
New API: ohos.hidebug/hidebug.stopJsCpuProfiling |@ohos.hidebug.d.ts| +|Deprecated version changed|Method or attribute name: dumpHeapData
Deprecated version: N/A|Method or attribute name: dumpHeapData
Deprecated version: 9
New API: ohos.hidebug/hidebug.dumpJsHeapData |@ohos.hidebug.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-distributed-data.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-distributed-data.md new file mode 100644 index 0000000000000000000000000000000000000000..43ba43f0b2e958c4b07985ccb901373fe1160096 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-distributed-data.md @@ -0,0 +1,627 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.data.distributedDataObject
Class name: distributedDataObject
Method or attribute name: create|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: setSessionId|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: setSessionId|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: setSessionId|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: on_change|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: off_change|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: on_status|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: off_status|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: save|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: save|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: revokeSave|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedDataObject
Class name: DistributedObjectV9
Method or attribute name: revokeSave|@ohos.data.distributedDataObject.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: distributedKVStore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManagerConfig|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManagerConfig
Method or attribute name: bundleName|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManagerConfig
Method or attribute name: context|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Constants|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Constants
Method or attribute name: MAX_KEY_LENGTH|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Constants
Method or attribute name: MAX_VALUE_LENGTH|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Constants
Method or attribute name: MAX_KEY_LENGTH_DEVICE|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Constants
Method or attribute name: MAX_STORE_ID_LENGTH|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Constants
Method or attribute name: MAX_QUERY_LENGTH|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Constants
Method or attribute name: MAX_BATCH_SIZE|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ValueType|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ValueType
Method or attribute name: STRING|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ValueType
Method or attribute name: INTEGER|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ValueType
Method or attribute name: FLOAT|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ValueType
Method or attribute name: BYTE_ARRAY|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ValueType
Method or attribute name: BOOLEAN|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ValueType
Method or attribute name: DOUBLE|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Value|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Value
Method or attribute name: type|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Value
Method or attribute name: value|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Entry|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Entry
Method or attribute name: key|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Entry
Method or attribute name: value|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ChangeNotification|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ChangeNotification
Method or attribute name: insertEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ChangeNotification
Method or attribute name: updateEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ChangeNotification
Method or attribute name: deleteEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: ChangeNotification
Method or attribute name: deviceId|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SyncMode|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SyncMode
Method or attribute name: PULL_ONLY|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SyncMode
Method or attribute name: PUSH_ONLY|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SyncMode
Method or attribute name: PUSH_PULL|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SubscribeType|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SubscribeType
Method or attribute name: SUBSCRIBE_TYPE_LOCAL|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SubscribeType
Method or attribute name: SUBSCRIBE_TYPE_REMOTE|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SubscribeType
Method or attribute name: SUBSCRIBE_TYPE_ALL|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreType|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreType
Method or attribute name: DEVICE_COLLABORATION|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreType
Method or attribute name: SINGLE_VERSION|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SecurityLevel|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SecurityLevel
Method or attribute name: S1|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SecurityLevel
Method or attribute name: S2|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SecurityLevel
Method or attribute name: S3|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SecurityLevel
Method or attribute name: S4|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Options|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Options
Method or attribute name: createIfMissing|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Options
Method or attribute name: encrypt|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Options
Method or attribute name: backup|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Options
Method or attribute name: autoSync|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Options
Method or attribute name: kvStoreType|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Options
Method or attribute name: securityLevel|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Options
Method or attribute name: schema|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Schema|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Schema
Method or attribute name: root|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Schema
Method or attribute name: indexes|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Schema
Method or attribute name: mode|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Schema
Method or attribute name: skip|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: FieldNode|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: FieldNode
Method or attribute name: ructor(name|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: FieldNode
Method or attribute name: appendChild|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: FieldNode
Method or attribute name: default|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: FieldNode
Method or attribute name: nullable|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: FieldNode
Method or attribute name: type|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: getCount|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: getPosition|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: moveToFirst|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: moveToLast|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: moveToNext|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: moveToPrevious|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: move|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: moveToPosition|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: isFirst|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: isLast|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: isBeforeFirst|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: isAfterLast|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVStoreResultSet
Method or attribute name: getEntry|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: reset|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: equalTo|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: notEqualTo|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: greaterThan|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: lessThan|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: greaterThanOrEqualTo|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: lessThanOrEqualTo|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: isNull|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: inNumber|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: inString|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: notInNumber|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: notInString|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: like|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: unlike|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: and|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: or|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: orderByAsc|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: orderByDesc|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: limit|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: isNotNull|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: beginGroup|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: endGroup|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: prefixKey|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: setSuggestIndex|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: deviceId|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: Query
Method or attribute name: getSqlLike|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: put|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: put|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: putBatch|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: putBatch|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: putBatch|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: putBatch|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: delete|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: delete|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: delete|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: delete|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: deleteBatch|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: deleteBatch|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: removeDeviceData|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: removeDeviceData|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: get|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: get|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: closeResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: closeResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getResultSize|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getResultSize|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: backup|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: backup|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: restore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: restore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: deleteBackup|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: deleteBackup|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: startTransaction|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: startTransaction|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: commit|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: commit|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: rollback|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: rollback|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: enableSync|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: enableSync|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: setSyncRange|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: setSyncRange|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: setSyncParam|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: setSyncParam|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: sync|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: sync|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: on_dataChange|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: on_syncComplete|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: off_dataChange|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: off_syncComplete|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getSecurityLevel|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: SingleKVStore
Method or attribute name: getSecurityLevel|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: get|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: get|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: get|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: get|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getEntries|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSet|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSize|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSize|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSize|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: DeviceKVStore
Method or attribute name: getResultSize|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: distributedKVStore
Method or attribute name: createKVManager|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: distributedKVStore
Method or attribute name: createKVManager|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: getKVStore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: getKVStore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: closeKVStore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: closeKVStore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: deleteKVStore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: deleteKVStore|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: getAllKVStoreId|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: getAllKVStoreId|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: on_distributedDataServiceDie|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.distributedKVStore
Class name: KVManager
Method or attribute name: off_distributedDataServiceDie|@ohos.data.distributedKVStore.d.ts| +|Added||Module name: ohos.data.rdb
Class name: rdb
Method or attribute name: getRdbStoreV9|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: rdb
Method or attribute name: getRdbStoreV9|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: rdb
Method or attribute name: deleteRdbStoreV9|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: rdb
Method or attribute name: deleteRdbStoreV9|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: SecurityLevel|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: SecurityLevel
Method or attribute name: S1|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: SecurityLevel
Method or attribute name: S2|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: SecurityLevel
Method or attribute name: S3|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: SecurityLevel
Method or attribute name: S4|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: insert|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: insert|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: batchInsert|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: batchInsert|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: update|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: update|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: update|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: update|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: delete|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: delete|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: delete|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: delete|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: query|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: query|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: query|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: query|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: remoteQuery|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: remoteQuery|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: querySql|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: querySql|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: executeSql|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: executeSql|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: beginTransaction|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: commit|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: rollBack|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: backup|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: backup|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: restore|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: restore|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: setDistributedTables|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: setDistributedTables|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: obtainDistributedTableName|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: obtainDistributedTableName|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: sync|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: sync|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: on_dataChange|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbStoreV9
Method or attribute name: off_dataChange|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: StoreConfigV9|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: StoreConfigV9
Method or attribute name: name|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: StoreConfigV9
Method or attribute name: securityLevel|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: StoreConfigV9
Method or attribute name: encrypt|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: ructor(name|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: inDevices|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: inAllDevices|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: equalTo|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: notEqualTo|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: beginWrap|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: endWrap|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: or|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: and|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: contains|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: beginsWith|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: endsWith|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: isNull|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: isNotNull|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: like|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: glob|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: between|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: notBetween|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: greaterThan|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: lessThan|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: greaterThanOrEqualTo|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: lessThanOrEqualTo|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: orderByAsc|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: orderByDesc|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: distinct|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: limitAs|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: offsetAs|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: groupBy|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: indexedBy|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: in|@ohos.data.rdb.d.ts| +|Added||Module name: ohos.data.rdb
Class name: RdbPredicatesV9
Method or attribute name: notIn|@ohos.data.rdb.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: columnNames|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: columnCount|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: rowCount|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: rowIndex|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: isAtFirstRow|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: isAtLastRow|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: isEnded|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: isStarted|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: isClosed|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: getColumnIndex|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: getColumnName|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: goTo|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: goToRow|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: goToFirstRow|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: goToLastRow|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: goToNextRow|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: goToPreviousRow|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: getBlob|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: getString|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: getLong|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: getDouble|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: isColumnNull|resultSet.d.ts| +|Added||Module name: resultSet
Class name: ResultSetV9
Method or attribute name: close|resultSet.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: KVManagerConfig
Method or attribute name: context||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: KVStore
Method or attribute name: backup||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: KVStore
Method or attribute name: backup||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: KVStore
Method or attribute name: restore||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: KVStore
Method or attribute name: restore||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: KVStore
Method or attribute name: deleteBackup||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedData
Class name: KVStore
Method or attribute name: deleteBackup||@ohos.data.distributedData.d.ts| +|Deleted|Module name: ohos.data.distributedDataObject
Class name: DistributedObject
Method or attribute name: save||@ohos.data.distributedDataObject.d.ts| +|Deleted|Module name: ohos.data.distributedDataObject
Class name: DistributedObject
Method or attribute name: save||@ohos.data.distributedDataObject.d.ts| +|Deleted|Module name: ohos.data.distributedDataObject
Class name: DistributedObject
Method or attribute name: revokeSave||@ohos.data.distributedDataObject.d.ts| +|Deleted|Module name: ohos.data.distributedDataObject
Class name: DistributedObject
Method or attribute name: revokeSave||@ohos.data.distributedDataObject.d.ts| +|Deleted|Module name: ohos.data.rdb
Class name: RdbStore
Method or attribute name: remoteQuery||@ohos.data.rdb.d.ts| +|Deleted|Module name: ohos.data.rdb
Class name: RdbStore
Method or attribute name: remoteQuery||@ohos.data.rdb.d.ts| +|Deleted|Module name: ohos.data.rdb
Class name: RdbStore
Method or attribute name: backup||@ohos.data.rdb.d.ts| +|Deleted|Module name: ohos.data.rdb
Class name: RdbStore
Method or attribute name: backup||@ohos.data.rdb.d.ts| +|Deleted|Module name: ohos.data.rdb
Class name: RdbStore
Method or attribute name: restore||@ohos.data.rdb.d.ts| +|Deleted|Module name: ohos.data.rdb
Class name: RdbStore
Method or attribute name: restore||@ohos.data.rdb.d.ts| +|Deleted|Module name: ohos.data.rdb
Class name: StoreConfig
Method or attribute name: encrypt||@ohos.data.rdb.d.ts| +|Model changed|Class name: dataShare
model:|Class name: dataShare
model: @Stage Model Only|@ohos.data.dataShare.d.ts| +|Access level changed |Class name: dataShare
Access level: public API|Class name: dataShare
Access level: system API|@ohos.data.dataShare.d.ts| +|Deprecated version changed|Class name: distributedData
Deprecated version: N/A|Class name: distributedData
Deprecated version: 9
New API: ohos.data.distributedKVStore |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: KVManagerConfig
Deprecated version: N/A|Class name: KVManagerConfig
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManagerConfig |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: userInfo
Deprecated version: N/A|Method or attribute name: userInfo
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManagerConfig |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: bundleName
Deprecated version: N/A|Method or attribute name: bundleName
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManagerConfig|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: UserInfo
Deprecated version: N/A|Class name: UserInfo
Deprecated version: 9
New API: ohos.data.distributedKVStore |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: userId
Deprecated version: N/A|Method or attribute name: userId
Deprecated version: 9
New API: ohos.data.distributedKVStore |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: userType
Deprecated version: N/A|Method or attribute name: userType
Deprecated version: 9
New API: ohos.data.distributedKVStore |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: UserType
Deprecated version: N/A|Class name: UserType
Deprecated version: 9
New API: ohos.data.distributedKVStore |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: SAME_USER_ID
Deprecated version: N/A|Method or attribute name: SAME_USER_ID
Deprecated version: 9
New API: ohos.data.distributedKVStore |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: Constants
Deprecated version: N/A|Class name: Constants
Deprecated version: 9
New API: ohos.data.distributedKVStore.Constants |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: MAX_KEY_LENGTH
Deprecated version: N/A|Method or attribute name: MAX_KEY_LENGTH
Deprecated version: 9
New API: ohos.data.distributedKVStore.Constants|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: MAX_VALUE_LENGTH
Deprecated version: N/A|Method or attribute name: MAX_VALUE_LENGTH
Deprecated version: 9
New API: ohos.data.distributedKVStore.Constants|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: MAX_KEY_LENGTH_DEVICE
Deprecated version: N/A|Method or attribute name: MAX_KEY_LENGTH_DEVICE
Deprecated version: 9
New API: ohos.data.distributedKVStore.Constants|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: MAX_STORE_ID_LENGTH
Deprecated version: N/A|Method or attribute name: MAX_STORE_ID_LENGTH
Deprecated version: 9
New API: ohos.data.distributedKVStore.Constants|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: MAX_QUERY_LENGTH
Deprecated version: N/A|Method or attribute name: MAX_QUERY_LENGTH
Deprecated version: 9
New API: ohos.data.distributedKVStore.Constants|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: MAX_BATCH_SIZE
Deprecated version: N/A|Method or attribute name: MAX_BATCH_SIZE
Deprecated version: 9
New API: ohos.data.distributedKVStore.Constants|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: ValueType
Deprecated version: N/A|Class name: ValueType
Deprecated version: 9
New API: ohos.data.distributedKVStore.ValueType |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: STRING
Deprecated version: N/A|Method or attribute name: STRING
Deprecated version: 9
New API: ohos.data.distributedKVStore.ValueType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: INTEGER
Deprecated version: N/A|Method or attribute name: INTEGER
Deprecated version: 9
New API: ohos.data.distributedKVStore.ValueType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: FLOAT
Deprecated version: N/A|Method or attribute name: FLOAT
Deprecated version: 9
New API: ohos.data.distributedKVStore.ValueType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: BYTE_ARRAY
Deprecated version: N/A|Method or attribute name: BYTE_ARRAY
Deprecated version: 9
New API: ohos.data.distributedKVStore.ValueType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: BOOLEAN
Deprecated version: N/A|Method or attribute name: BOOLEAN
Deprecated version: 9
New API: ohos.data.distributedKVStore.ValueType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: DOUBLE
Deprecated version: N/A|Method or attribute name: DOUBLE
Deprecated version: 9
New API: ohos.data.distributedKVStore.ValueType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: Value
Deprecated version: N/A|Class name: Value
Deprecated version: 9
New API: ohos.data.distributedKVStore.Value |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: type
Deprecated version: N/A|Method or attribute name: type
Deprecated version: 9
New API: ohos.data.distributedKVStore.Value|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: value
Deprecated version: N/A|Method or attribute name: value
Deprecated version: 9
New API: ohos.data.distributedKVStore.Value|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: Entry
Deprecated version: N/A|Class name: Entry
Deprecated version: 9
New API: ohos.data.distributedKVStore.Entry |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: key
Deprecated version: N/A|Method or attribute name: key
Deprecated version: 9
New API: ohos.data.distributedKVStore.Entry|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: value
Deprecated version: N/A|Method or attribute name: value
Deprecated version: 9
New API: ohos.data.distributedKVStore.Entry|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: ChangeNotification
Deprecated version: N/A|Class name: ChangeNotification
Deprecated version: 9
New API: ohos.data.distributedKVStore.ChangeNotification |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: insertEntries
Deprecated version: N/A|Method or attribute name: insertEntries
Deprecated version: 9
New API: ohos.data.distributedKVStore.ChangeNotification|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: updateEntries
Deprecated version: N/A|Method or attribute name: updateEntries
Deprecated version: 9
New API: ohos.data.distributedKVStore.ChangeNotification|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: deleteEntries
Deprecated version: N/A|Method or attribute name: deleteEntries
Deprecated version: 9
New API: ohos.data.distributedKVStore.ChangeNotification|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: deviceId
Deprecated version: N/A|Method or attribute name: deviceId
Deprecated version: 9
New API: ohos.data.distributedKVStore.ChangeNotification|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: SyncMode
Deprecated version: N/A|Class name: SyncMode
Deprecated version: 9
New API: ohos.data.distributedKVStore.SyncMode |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: PULL_ONLY
Deprecated version: N/A|Method or attribute name: PULL_ONLY
Deprecated version: 9
New API: ohos.data.distributedKVStore.SyncMode|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: PUSH_ONLY
Deprecated version: N/A|Method or attribute name: PUSH_ONLY
Deprecated version: 9
New API: ohos.data.distributedKVStore.SyncMode|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: PUSH_PULL
Deprecated version: N/A|Method or attribute name: PUSH_PULL
Deprecated version: 9
New API: ohos.data.distributedKVStore.SyncMode|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: SubscribeType
Deprecated version: N/A|Class name: SubscribeType
Deprecated version: 9
New API: ohos.data.distributedKVStore.SubscribeType |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: SUBSCRIBE_TYPE_LOCAL
Deprecated version: N/A|Method or attribute name: SUBSCRIBE_TYPE_LOCAL
Deprecated version: 9
New API: ohos.data.distributedKVStore.SubscribeType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: SUBSCRIBE_TYPE_REMOTE
Deprecated version: N/A|Method or attribute name: SUBSCRIBE_TYPE_REMOTE
Deprecated version: 9
New API: ohos.data.distributedKVStore.SubscribeType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: SUBSCRIBE_TYPE_ALL
Deprecated version: N/A|Method or attribute name: SUBSCRIBE_TYPE_ALL
Deprecated version: 9
New API: ohos.data.distributedKVStore.SubscribeType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: KVStoreType
Deprecated version: N/A|Class name: KVStoreType
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreType |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: DEVICE_COLLABORATION
Deprecated version: N/A|Method or attribute name: DEVICE_COLLABORATION
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: SINGLE_VERSION
Deprecated version: N/A|Method or attribute name: SINGLE_VERSION
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreType|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: MULTI_VERSION
Deprecated version: N/A|Method or attribute name: MULTI_VERSION
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreType |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: SecurityLevel
Deprecated version: N/A|Class name: SecurityLevel
Deprecated version: 9
New API: ohos.data.distributedKVStore.SecurityLevel |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: NO_LEVEL
Deprecated version: N/A|Method or attribute name: NO_LEVEL
Deprecated version: 9
New API: ohos.data.distributedKVStore.SecurityLevel |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: S0
Deprecated version: N/A|Method or attribute name: S0
Deprecated version: 9
New API: ohos.data.distributedKVStore.SecurityLevel |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: S1
Deprecated version: N/A|Method or attribute name: S1
Deprecated version: 9
New API: ohos.data.distributedKVStore.SecurityLevel|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: S2
Deprecated version: N/A|Method or attribute name: S2
Deprecated version: 9
New API: ohos.data.distributedKVStore.SecurityLevel|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: S3
Deprecated version: N/A|Method or attribute name: S3
Deprecated version: 9
New API: ohos.data.distributedKVStore.SecurityLevel|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: S4
Deprecated version: N/A|Method or attribute name: S4
Deprecated version: 9
New API: ohos.data.distributedKVStore.SecurityLevel|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: Options
Deprecated version: N/A|Class name: Options
Deprecated version: 9
New API: ohos.data.distributedKVStore.Options |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: createIfMissing
Deprecated version: N/A|Method or attribute name: createIfMissing
Deprecated version: 9
New API: ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: encrypt
Deprecated version: N/A|Method or attribute name: encrypt
Deprecated version: 9
New API: ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: backup
Deprecated version: N/A|Method or attribute name: backup
Deprecated version: 9
New API: ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: autoSync
Deprecated version: N/A|Method or attribute name: autoSync
Deprecated version: 9
New API: ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: kvStoreType
Deprecated version: N/A|Method or attribute name: kvStoreType
Deprecated version: 9
New API: ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: securityLevel
Deprecated version: N/A|Method or attribute name: securityLevel
Deprecated version: 9
New API: ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: schema
Deprecated version: N/A|Method or attribute name: schema
Deprecated version: 9
New API: ohos.data.distributedKVStore.Options|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: Schema
Deprecated version: N/A|Class name: Schema
Deprecated version: 9
New API: ohos.data.distributedKVStore.Schema |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: root
Deprecated version: N/A|Method or attribute name: root
Deprecated version: 9
New API: ohos.data.distributedKVStore.Schema|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: indexes
Deprecated version: N/A|Method or attribute name: indexes
Deprecated version: 9
New API: ohos.data.distributedKVStore.Schema|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: mode
Deprecated version: N/A|Method or attribute name: mode
Deprecated version: 9
New API: ohos.data.distributedKVStore.Schema|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: skip
Deprecated version: N/A|Method or attribute name: skip
Deprecated version: 9
New API: ohos.data.distributedKVStore.Schema|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: FieldNode
Deprecated version: N/A|Class name: FieldNode
Deprecated version: 9
New API: ohos.data.distributedKVStore.FieldNode |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: ructor(name
Deprecated version: N/A|Method or attribute name: ructor(name
Deprecated version: 9
New API: ohos.data.distributedKVStore.FieldNode|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: appendChild
Deprecated version: N/A|Method or attribute name: appendChild
Deprecated version: 9
New API: ohos.data.distributedKVStore.FieldNode|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: default
Deprecated version: N/A|Method or attribute name: default
Deprecated version: 9
New API: ohos.data.distributedKVStore.FieldNode|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: nullable
Deprecated version: N/A|Method or attribute name: nullable
Deprecated version: 9
New API: ohos.data.distributedKVStore.FieldNode|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: type
Deprecated version: N/A|Method or attribute name: type
Deprecated version: 9
New API: ohos.data.distributedKVStore.FieldNode|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: KvStoreResultSet
Deprecated version: N/A|Class name: KvStoreResultSet
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getCount
Deprecated version: N/A|Method or attribute name: getCount
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getPosition
Deprecated version: N/A|Method or attribute name: getPosition
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: moveToFirst
Deprecated version: N/A|Method or attribute name: moveToFirst
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: moveToLast
Deprecated version: N/A|Method or attribute name: moveToLast
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: moveToNext
Deprecated version: N/A|Method or attribute name: moveToNext
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: moveToPrevious
Deprecated version: N/A|Method or attribute name: moveToPrevious
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: move
Deprecated version: N/A|Method or attribute name: move
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: moveToPosition
Deprecated version: N/A|Method or attribute name: moveToPosition
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: isFirst
Deprecated version: N/A|Method or attribute name: isFirst
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: isLast
Deprecated version: N/A|Method or attribute name: isLast
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: isBeforeFirst
Deprecated version: N/A|Method or attribute name: isBeforeFirst
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: isAfterLast
Deprecated version: N/A|Method or attribute name: isAfterLast
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntry
Deprecated version: N/A|Method or attribute name: getEntry
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVStoreResultSet|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: Query
Deprecated version: N/A|Class name: Query
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: reset
Deprecated version: N/A|Method or attribute name: reset
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: isNull
Deprecated version: N/A|Method or attribute name: isNull
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: inNumber
Deprecated version: N/A|Method or attribute name: inNumber
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: inString
Deprecated version: N/A|Method or attribute name: inString
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: notInNumber
Deprecated version: N/A|Method or attribute name: notInNumber
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: notInString
Deprecated version: N/A|Method or attribute name: notInString
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: like
Deprecated version: N/A|Method or attribute name: like
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: unlike
Deprecated version: N/A|Method or attribute name: unlike
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: and
Deprecated version: N/A|Method or attribute name: and
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: or
Deprecated version: N/A|Method or attribute name: or
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: orderByAsc
Deprecated version: N/A|Method or attribute name: orderByAsc
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: orderByDesc
Deprecated version: N/A|Method or attribute name: orderByDesc
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: limit
Deprecated version: N/A|Method or attribute name: limit
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: isNotNull
Deprecated version: N/A|Method or attribute name: isNotNull
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: beginGroup
Deprecated version: N/A|Method or attribute name: beginGroup
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: endGroup
Deprecated version: N/A|Method or attribute name: endGroup
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: prefixKey
Deprecated version: N/A|Method or attribute name: prefixKey
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: setSuggestIndex
Deprecated version: N/A|Method or attribute name: setSuggestIndex
Deprecated version: 9
New API: ohos.data.distributedKVStore.Query|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: KVStore
Deprecated version: N/A|Class name: KVStore
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: put
Deprecated version: N/A|Method or attribute name: put
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: put
Deprecated version: N/A|Method or attribute name: put
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: delete
Deprecated version: N/A|Method or attribute name: delete
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: delete
Deprecated version: N/A|Method or attribute name: delete
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: on_dataChange
Deprecated version: N/A|Method or attribute name: on_dataChange
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: on_syncComplete
Deprecated version: N/A|Method or attribute name: on_syncComplete
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: off_syncComplete
Deprecated version: N/A|Method or attribute name: off_syncComplete
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: putBatch
Deprecated version: N/A|Method or attribute name: putBatch
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: putBatch
Deprecated version: N/A|Method or attribute name: putBatch
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: deleteBatch
Deprecated version: N/A|Method or attribute name: deleteBatch
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: deleteBatch
Deprecated version: N/A|Method or attribute name: deleteBatch
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: startTransaction
Deprecated version: N/A|Method or attribute name: startTransaction
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: startTransaction
Deprecated version: N/A|Method or attribute name: startTransaction
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: commit
Deprecated version: N/A|Method or attribute name: commit
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: commit
Deprecated version: N/A|Method or attribute name: commit
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: rollback
Deprecated version: N/A|Method or attribute name: rollback
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: rollback
Deprecated version: N/A|Method or attribute name: rollback
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: enableSync
Deprecated version: N/A|Method or attribute name: enableSync
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: enableSync
Deprecated version: N/A|Method or attribute name: enableSync
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: setSyncRange
Deprecated version: N/A|Method or attribute name: setSyncRange
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: setSyncRange
Deprecated version: N/A|Method or attribute name: setSyncRange
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: SingleKVStore
Deprecated version: N/A|Class name: SingleKVStore
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: get
Deprecated version: N/A|Method or attribute name: get
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: get
Deprecated version: N/A|Method or attribute name: get
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: closeResultSet
Deprecated version: N/A|Method or attribute name: closeResultSet
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: closeResultSet
Deprecated version: N/A|Method or attribute name: closeResultSet
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSize
Deprecated version: N/A|Method or attribute name: getResultSize
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSize
Deprecated version: N/A|Method or attribute name: getResultSize
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: removeDeviceData
Deprecated version: N/A|Method or attribute name: removeDeviceData
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: removeDeviceData
Deprecated version: N/A|Method or attribute name: removeDeviceData
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: on_dataChange
Deprecated version: N/A|Method or attribute name: on_dataChange
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: on_syncComplete
Deprecated version: N/A|Method or attribute name: on_syncComplete
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: off_syncComplete
Deprecated version: N/A|Method or attribute name: off_syncComplete
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: setSyncParam
Deprecated version: N/A|Method or attribute name: setSyncParam
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: setSyncParam
Deprecated version: N/A|Method or attribute name: setSyncParam
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getSecurityLevel
Deprecated version: N/A|Method or attribute name: getSecurityLevel
Deprecated version: 9
New API: ohos.data.distributedKVStore.SingleKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getSecurityLevel
Deprecated version: N/A|Method or attribute name: getSecurityLevel
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: DeviceKVStore
Deprecated version: N/A|Class name: DeviceKVStore
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getEntries
Deprecated version: N/A|Method or attribute name: getEntries
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSet
Deprecated version: N/A|Method or attribute name: getResultSet
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: closeResultSet
Deprecated version: N/A|Method or attribute name: closeResultSet
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: closeResultSet
Deprecated version: N/A|Method or attribute name: closeResultSet
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSize
Deprecated version: N/A|Method or attribute name: getResultSize
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSize
Deprecated version: N/A|Method or attribute name: getResultSize
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSize
Deprecated version: N/A|Method or attribute name: getResultSize
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getResultSize
Deprecated version: N/A|Method or attribute name: getResultSize
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: removeDeviceData
Deprecated version: N/A|Method or attribute name: removeDeviceData
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: removeDeviceData
Deprecated version: N/A|Method or attribute name: removeDeviceData
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: sync
Deprecated version: N/A|Method or attribute name: sync
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: on_dataChange
Deprecated version: N/A|Method or attribute name: on_dataChange
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: on_syncComplete
Deprecated version: N/A|Method or attribute name: on_syncComplete
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: off_syncComplete
Deprecated version: N/A|Method or attribute name: off_syncComplete
Deprecated version: 9
New API: ohos.data.distributedKVStore.DeviceKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: createKVManager
Deprecated version: N/A|Method or attribute name: createKVManager
Deprecated version: 9
New API: ohos.data.distributedKVStore|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: createKVManager
Deprecated version: N/A|Method or attribute name: createKVManager
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Class name: KVManager
Deprecated version: N/A|Class name: KVManager
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManager |@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getKVStore
Deprecated version: N/A|Method or attribute name: getKVStore
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getKVStore
Deprecated version: N/A|Method or attribute name: getKVStore
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: closeKVStore
Deprecated version: N/A|Method or attribute name: closeKVStore
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: closeKVStore
Deprecated version: N/A|Method or attribute name: closeKVStore
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: deleteKVStore
Deprecated version: N/A|Method or attribute name: deleteKVStore
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: deleteKVStore
Deprecated version: N/A|Method or attribute name: deleteKVStore
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getAllKVStoreId
Deprecated version: N/A|Method or attribute name: getAllKVStoreId
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: getAllKVStoreId
Deprecated version: N/A|Method or attribute name: getAllKVStoreId
Deprecated version: 9|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: on_distributedDataServiceDie
Deprecated version: N/A|Method or attribute name: on_distributedDataServiceDie
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: off_distributedDataServiceDie
Deprecated version: N/A|Method or attribute name: off_distributedDataServiceDie
Deprecated version: 9
New API: ohos.data.distributedKVStore.KVManager|@ohos.data.distributedData.d.ts| +|Deprecated version changed|Method or attribute name: createDistributedObject
Deprecated version: N/A|Method or attribute name: createDistributedObject
Deprecated version: 9
New API: ohos.distributedDataObject.create |@ohos.data.distributedDataObject.d.ts| +|Deprecated version changed|Class name: DistributedObject
Deprecated version: N/A|Class name: DistributedObject
Deprecated version: 9
New API: ohos.distributedDataObject.DistributedObjectV9 |@ohos.data.distributedDataObject.d.ts| +|Deprecated version changed|Method or attribute name: setSessionId
Deprecated version: N/A|Method or attribute name: setSessionId
Deprecated version: 9
New API: ohos.distributedDataObject.DistributedObjectV9.setSessionId |@ohos.data.distributedDataObject.d.ts| +|Deprecated version changed|Method or attribute name: on_change
Deprecated version: N/A|Method or attribute name: on_change
Deprecated version: 9
New API: ohos.distributedDataObject.DistributedObjectV9.on |@ohos.data.distributedDataObject.d.ts| +|Deprecated version changed|Method or attribute name: off_change
Deprecated version: N/A|Method or attribute name: off_change
Deprecated version: 9
New API: ohos.distributedDataObject.DistributedObjectV9.off |@ohos.data.distributedDataObject.d.ts| +|Deprecated version changed|Method or attribute name: getRdbStore
Deprecated version: N/A|Method or attribute name: getRdbStore
Deprecated version: 9
New API: ohos.data.rdb.getRdbStoreV9 |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: getRdbStore
Deprecated version: N/A|Method or attribute name: getRdbStore
Deprecated version: 9
New API: ohos.data.rdb.getRdbStoreV9 |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: deleteRdbStore
Deprecated version: N/A|Method or attribute name: deleteRdbStore
Deprecated version: 9
New API: ohos.data.rdb.deleteRdbStoreV9 |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: deleteRdbStore
Deprecated version: N/A|Method or attribute name: deleteRdbStore
Deprecated version: 9
New API: ohos.data.rdb.deleteRdbStoreV9 |@ohos.data.rdb.d.ts| +|Deprecated version changed|Class name: RdbStore
Deprecated version: N/A|Class name: RdbStore
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9 |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: insert
Deprecated version: N/A|Method or attribute name: insert
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.insert |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: insert
Deprecated version: N/A|Method or attribute name: insert
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.insert |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: batchInsert
Deprecated version: N/A|Method or attribute name: batchInsert
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.batchInsert |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: batchInsert
Deprecated version: N/A|Method or attribute name: batchInsert
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.batchInsert |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: update
Deprecated version: N/A|Method or attribute name: update
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.update |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: update
Deprecated version: N/A|Method or attribute name: update
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.update |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: delete
Deprecated version: N/A|Method or attribute name: delete
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.delete |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: delete
Deprecated version: N/A|Method or attribute name: delete
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.delete |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: query
Deprecated version: N/A|Method or attribute name: query
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.query |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: querySql
Deprecated version: N/A|Method or attribute name: querySql
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.querySql |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: executeSql
Deprecated version: N/A|Method or attribute name: executeSql
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.executeSql |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: setDistributedTables
Deprecated version: N/A|Method or attribute name: setDistributedTables
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.setDistributedTables |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: setDistributedTables
Deprecated version: N/A|Method or attribute name: setDistributedTables
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.setDistributedTables |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: obtainDistributedTableName
Deprecated version: N/A|Method or attribute name: obtainDistributedTableName
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.obtainDistributedTableName |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: obtainDistributedTableName
Deprecated version: N/A|Method or attribute name: obtainDistributedTableName
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.obtainDistributedTableName |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: on_dataChange
Deprecated version: N/A|Method or attribute name: on_dataChange
Deprecated version: 9
New API: ohos.data.rdb.RdbStoreV9.on |@ohos.data.rdb.d.ts| +|Deprecated version changed|Class name: StoreConfig
Deprecated version: N/A|Class name: StoreConfig
Deprecated version: 9
New API: ohos.data.rdb.StoreConfigV9 |@ohos.data.rdb.d.ts| +|Deprecated version changed|Class name: RdbPredicates
Deprecated version: N/A|Class name: RdbPredicates
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9 |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: ructor(name
Deprecated version: N/A|Method or attribute name: ructor(name
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.constructor |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: inDevices
Deprecated version: N/A|Method or attribute name: inDevices
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.inDevices |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: inAllDevices
Deprecated version: N/A|Method or attribute name: inAllDevices
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.inAllDevices |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: equalTo
Deprecated version: N/A|Method or attribute name: equalTo
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.equalTo |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: notEqualTo
Deprecated version: N/A|Method or attribute name: notEqualTo
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.notEqualTo |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: beginWrap
Deprecated version: N/A|Method or attribute name: beginWrap
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.beginWrap |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: endWrap
Deprecated version: N/A|Method or attribute name: endWrap
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.endWrap |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: or
Deprecated version: N/A|Method or attribute name: or
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.or |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: and
Deprecated version: N/A|Method or attribute name: and
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.and |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: contains
Deprecated version: N/A|Method or attribute name: contains
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.contains |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: beginsWith
Deprecated version: N/A|Method or attribute name: beginsWith
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.beginsWith |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: endsWith
Deprecated version: N/A|Method or attribute name: endsWith
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.endsWith |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: isNull
Deprecated version: N/A|Method or attribute name: isNull
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.isNull |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: isNotNull
Deprecated version: N/A|Method or attribute name: isNotNull
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.isNotNull |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: like
Deprecated version: N/A|Method or attribute name: like
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.like |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: glob
Deprecated version: N/A|Method or attribute name: glob
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.glob |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: between
Deprecated version: N/A|Method or attribute name: between
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.between |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: notBetween
Deprecated version: N/A|Method or attribute name: notBetween
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.notBetween |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: greaterThan
Deprecated version: N/A|Method or attribute name: greaterThan
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.greaterThan |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: lessThan
Deprecated version: N/A|Method or attribute name: lessThan
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.lessThan |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: greaterThanOrEqualTo
Deprecated version: N/A|Method or attribute name: greaterThanOrEqualTo
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.greaterThanOrEqualTo |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: lessThanOrEqualTo
Deprecated version: N/A|Method or attribute name: lessThanOrEqualTo
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.lessThanOrEqualTo |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: orderByAsc
Deprecated version: N/A|Method or attribute name: orderByAsc
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.orderByAsc |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: orderByDesc
Deprecated version: N/A|Method or attribute name: orderByDesc
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.orderByDesc |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: distinct
Deprecated version: N/A|Method or attribute name: distinct
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.distinct |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: limitAs
Deprecated version: N/A|Method or attribute name: limitAs
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.limitAs |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: offsetAs
Deprecated version: N/A|Method or attribute name: offsetAs
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.offsetAs |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: groupBy
Deprecated version: N/A|Method or attribute name: groupBy
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.groupBy |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: indexedBy
Deprecated version: N/A|Method or attribute name: indexedBy
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.indexedBy |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: in
Deprecated version: N/A|Method or attribute name: in
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.in |@ohos.data.rdb.d.ts| +|Deprecated version changed|Method or attribute name: notIn
Deprecated version: N/A|Method or attribute name: notIn
Deprecated version: 9
New API: ohos.data.rdb.RdbPredicatesV9.notIn |@ohos.data.rdb.d.ts| +|Deprecated version changed|Class name: ResultSet
Deprecated version: N/A|Class name: ResultSet
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9 |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: columnNames
Deprecated version: N/A|Method or attribute name: columnNames
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.columnNames |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: columnCount
Deprecated version: N/A|Method or attribute name: columnCount
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.columnCount |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: rowCount
Deprecated version: N/A|Method or attribute name: rowCount
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.rowCount |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: rowIndex
Deprecated version: N/A|Method or attribute name: rowIndex
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.rowIndex |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: isAtFirstRow
Deprecated version: N/A|Method or attribute name: isAtFirstRow
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.isAtFirstRow |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: isAtLastRow
Deprecated version: N/A|Method or attribute name: isAtLastRow
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.isAtLastRow |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: isEnded
Deprecated version: N/A|Method or attribute name: isEnded
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.isEnded |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: isStarted
Deprecated version: N/A|Method or attribute name: isStarted
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.isStarted |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: isClosed
Deprecated version: N/A|Method or attribute name: isClosed
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.isClosed |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: getColumnIndex
Deprecated version: N/A|Method or attribute name: getColumnIndex
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.getColumnIndex |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: getColumnName
Deprecated version: N/A|Method or attribute name: getColumnName
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.getColumnName |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: goTo
Deprecated version: N/A|Method or attribute name: goTo
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.goTo |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: goToRow
Deprecated version: N/A|Method or attribute name: goToRow
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.goToRow |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: goToFirstRow
Deprecated version: N/A|Method or attribute name: goToFirstRow
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.goToFirstRow |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: goToLastRow
Deprecated version: N/A|Method or attribute name: goToLastRow
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.goToLastRow |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: goToNextRow
Deprecated version: N/A|Method or attribute name: goToNextRow
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.goToNextRow |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: goToPreviousRow
Deprecated version: N/A|Method or attribute name: goToPreviousRow
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.goToPreviousRow |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: getBlob
Deprecated version: N/A|Method or attribute name: getBlob
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.getBlob |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: getString
Deprecated version: N/A|Method or attribute name: getString
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.getString |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: getLong
Deprecated version: N/A|Method or attribute name: getLong
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.getLong |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: getDouble
Deprecated version: N/A|Method or attribute name: getDouble
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.getDouble |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: isColumnNull
Deprecated version: N/A|Method or attribute name: isColumnNull
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.isColumnNull |resultSet.d.ts| +|Deprecated version changed|Method or attribute name: close
Deprecated version: N/A|Method or attribute name: close
Deprecated version: 9
New API: ohos.data.rdb.ResultSetV9.close |resultSet.d.ts| +|Initial version changed|Class name: dataShare
Initial version: |Class name: dataShare
Initial version: 9|@ohos.data.dataShare.d.ts| +|Initial version changed|Method or attribute name: off_syncComplete
Initial version: 9|Method or attribute name: off_syncComplete
Initial version: 8|@ohos.data.distributedData.d.ts| +|Initial version changed|Method or attribute name: on_dataChange
Initial version: 9|Method or attribute name: on_dataChange
Initial version: 8|@ohos.data.distributedData.d.ts| +|Initial version changed|Method or attribute name: on_dataChange
Initial version: 9|Method or attribute name: on_dataChange
Initial version: 8|@ohos.data.distributedData.d.ts| +|Initial version changed|Method or attribute name: batchInsert
Initial version: 9|Method or attribute name: batchInsert
Initial version: 7|@ohos.data.rdb.d.ts| +|Initial version changed|Method or attribute name: batchInsert
Initial version: 9|Method or attribute name: batchInsert
Initial version: 7|@ohos.data.rdb.d.ts| +|Initial version changed|Method or attribute name: executeSql
Initial version: 7|Method or attribute name: executeSql
Initial version: 8|@ohos.data.rdb.d.ts| +|Permission deleted|Method or attribute name: on_dataChange
Permission: ohos.permission.DISTRIBUTED_DATASYNC|Method or attribute name: on_dataChange
Permission: N/A|@ohos.data.rdb.d.ts| +|Access level changed |Class name: dataShare
Access level: public API|Class name: dataShare
Access level: system API|@ohos.data.dataShare.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-distributed-hardware.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-distributed-hardware.md new file mode 100644 index 0000000000000000000000000000000000000000..7065876b974c7fdce95939d6a3a207b89366ebac --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-distributed-hardware.md @@ -0,0 +1,5 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.distributedHardware.deviceManager
Class name: DeviceManager
Method or attribute name: setUserOperation|@ohos.distributedHardware.deviceManager.d.ts| +|Added||Module name: ohos.distributedHardware.deviceManager
Class name: DeviceManager
Method or attribute name: on_uiStateChange|@ohos.distributedHardware.deviceManager.d.ts| +|Added||Module name: ohos.distributedHardware.deviceManager
Class name: DeviceManager
Method or attribute name: off_uiStateChange|@ohos.distributedHardware.deviceManager.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-file-management.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-file-management.md new file mode 100644 index 0000000000000000000000000000000000000000..89921c693d161cab4868afe979c8e9199c2ea42f --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-file-management.md @@ -0,0 +1,372 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.file.fs
Class name: fileIo|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: READ_ONLY|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: WRITE_ONLY|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: READ_WRITE|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: CREATE|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: TRUNC|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: APPEND|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: NONBLOCK|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: DIR|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: NOFOLLOW|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: OpenMode
Method or attribute name: SYNC|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: open|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: open|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: open|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: openSync|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: read|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: read|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: read|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: readSync|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: stat|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: stat|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: statSync|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: truncate|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: truncate|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: truncate|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: truncateSync|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: write|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: write|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: write|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: fileIo
Method or attribute name: writeSync|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: File|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: File
Method or attribute name: fd|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: ino|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: mode|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: uid|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: gid|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: size|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: atime|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: mtime|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: ctime|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: isBlockDevice|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: isCharacterDevice|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: isDirectory|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: isFIFO|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: isFile|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: isSocket|@ohos.file.fs.d.ts| +|Added||Module name: ohos.file.fs
Class name: Stat
Method or attribute name: isSymbolicLink|@ohos.file.fs.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: userFileManager|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: userFileManager
Method or attribute name: getUserFileMgr|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileType|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileType
Method or attribute name: IMAGE|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileType
Method or attribute name: VIDEO|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileType
Method or attribute name: AUDIO|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: uri|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: fileType|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: displayName|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: get|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: set|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: commitModify|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: commitModify|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: open|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: open|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: close|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: close|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: getThumbnail|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: getThumbnail|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: getThumbnail|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: favorite|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FileAsset
Method or attribute name: favorite|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey
Method or attribute name: URI|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey
Method or attribute name: DISPLAY_NAME|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey
Method or attribute name: DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey
Method or attribute name: DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey
Method or attribute name: TITLE|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey
Method or attribute name: ARTIST|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey
Method or attribute name: AUDIOALBUM|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey
Method or attribute name: DURATION|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AudioKey
Method or attribute name: FAVORITE|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: URI|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: FILE_TYPE|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: DISPLAY_NAME|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: TITLE|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: DURATION|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: WIDTH|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: HEIGHT|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: DATE_TAKEN|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: ORIENTATION|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: ImageVideoKey
Method or attribute name: FAVORITE|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AlbumKey|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AlbumKey
Method or attribute name: URI|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AlbumKey
Method or attribute name: FILE_TYPE|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AlbumKey
Method or attribute name: ALBUM_NAME|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AlbumKey
Method or attribute name: DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AlbumKey
Method or attribute name: DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchOptions|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchOptions
Method or attribute name: fetchColumns|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchOptions
Method or attribute name: predicates|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AlbumFetchOptions|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AlbumFetchOptions
Method or attribute name: predicates|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: getCount|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: isAfterLast|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: close|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: getFirstObject|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: getFirstObject|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: getNextObject|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: getNextObject|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: getLastObject|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: getLastObject|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: getPositionObject|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: FetchResult
Method or attribute name: getPositionObject|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AbsAlbum|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AbsAlbum
Method or attribute name: albumName|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AbsAlbum
Method or attribute name: albumUri|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AbsAlbum
Method or attribute name: dateModified|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AbsAlbum
Method or attribute name: count|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AbsAlbum
Method or attribute name: coverUri|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AbsAlbum
Method or attribute name: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: AbsAlbum
Method or attribute name: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: Album|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: Album
Method or attribute name: commitModify|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: Album
Method or attribute name: commitModify|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: createPhotoAsset|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: createPhotoAsset|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: createPhotoAsset|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getPhotoAlbums|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getPhotoAlbums|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getPrivateAlbum|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getPrivateAlbum|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getAudioAssets|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getAudioAssets|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: delete|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: delete|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: on_deviceChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: on_albumChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: on_imageChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: on_audioChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: on_videoChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: on_remoteFileChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: off_deviceChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: off_albumChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: off_imageChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: off_audioChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: off_videoChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: off_remoteFileChange|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getActivePeers|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getActivePeers|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getAllPeers|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: getAllPeers|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: release|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: UserFileManager
Method or attribute name: release|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PeerInfo|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PeerInfo
Method or attribute name: deviceName|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PeerInfo
Method or attribute name: networkId|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PeerInfo
Method or attribute name: isOnline|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PrivateAlbumType|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PrivateAlbumType
Method or attribute name: TYPE_FAVORITE|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PrivateAlbumType
Method or attribute name: TYPE_TRASH|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PrivateAlbum|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PrivateAlbum
Method or attribute name: delete|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PrivateAlbum
Method or attribute name: delete|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PrivateAlbum
Method or attribute name: recover|@ohos.filemanagement.userFileManager.d.ts| +|Added||Module name: ohos.filemanagement.userFileManager
Class name: PrivateAlbum
Method or attribute name: recover|@ohos.filemanagement.userFileManager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: userfile_manager||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: userfile_manager
Method or attribute name: getUserFileMgr||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: userfile_manager
Method or attribute name: getUserFileMgr||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: MediaType||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: MediaType
Method or attribute name: FILE||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: MediaType
Method or attribute name: IMAGE||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: MediaType
Method or attribute name: VIDEO||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: MediaType
Method or attribute name: AUDIO||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: uri||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: mediaType||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: displayName||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: isDirectory||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: isDirectory||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: commitModify||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: commitModify||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: open||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: open||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: close||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: close||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: getThumbnail||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: getThumbnail||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: getThumbnail||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: favorite||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: favorite||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: isFavorite||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: isFavorite||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: trash||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: trash||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: isTrash||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileAsset
Method or attribute name: isTrash||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileKey||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileKey
Method or attribute name: URI||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileKey
Method or attribute name: RELATIVE_PATH||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileKey
Method or attribute name: DISPLAY_NAME||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileKey
Method or attribute name: DATE_ADDED||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileKey
Method or attribute name: DATE_MODIFIED||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FileKey
Method or attribute name: TITLE||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey
Method or attribute name: URI||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey
Method or attribute name: RELATIVE_PATH||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey
Method or attribute name: DISPLAY_NAME||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey
Method or attribute name: DATE_ADDED||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey
Method or attribute name: DATE_MODIFIED||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey
Method or attribute name: TITLE||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey
Method or attribute name: ARTIST||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey
Method or attribute name: AUDIOALBUM||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: AudioKey
Method or attribute name: DURATION||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: URI||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: RELATIVE_PATH||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: DISPLAY_NAME||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: DATE_ADDED||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: DATE_MODIFIED||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: TITLE||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: DURATION||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: WIDTH||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: HEIGHT||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: ImageVideoKey
Method or attribute name: DATE_TAKEN||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: AlbumKey||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: AlbumKey
Method or attribute name: URI||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: AlbumKey
Method or attribute name: RELATIVE_PATH||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: AlbumKey
Method or attribute name: DISPLAY_NAME||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: AlbumKey
Method or attribute name: DATE_ADDED||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: AlbumKey
Method or attribute name: DATE_MODIFIED||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: MediaFetchOptions||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: MediaFetchOptions
Method or attribute name: selections||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: MediaFetchOptions
Method or attribute name: selectionArgs||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: getCount||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: isAfterLast||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: close||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: getFirstObject||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: getFirstObject||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: getNextObject||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: getNextObject||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: getLastObject||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: getLastObject||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: getPositionObject||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: FetchFileResult
Method or attribute name: getPositionObject||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: Album||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: albumName||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: albumUri||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: dateModified||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: count||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: relativePath||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: coverUri||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: commitModify||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: commitModify||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: Album
Method or attribute name: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: DirectoryType||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: DirectoryType
Method or attribute name: DIR_CAMERA||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: DirectoryType
Method or attribute name: DIR_VIDEO||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: DirectoryType
Method or attribute name: DIR_IMAGE||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: DirectoryType
Method or attribute name: DIR_AUDIO||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: DirectoryType
Method or attribute name: DIR_DOCUMENTS||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: DirectoryType
Method or attribute name: DIR_DOWNLOAD||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getPublicDirectory||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getPublicDirectory||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: on_deviceChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: on_albumChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: on_imageChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: on_audioChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: on_videoChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: on_fileChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: on_remoteFileChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: off_deviceChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: off_albumChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: off_imageChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: off_audioChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: off_videoChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: off_fileChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: off_remoteFileChange||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: createAsset||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: createAsset||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: deleteAsset||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: deleteAsset||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getAlbums||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getAlbums||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getPrivateAlbum||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getPrivateAlbum||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getActivePeers||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getActivePeers||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getAllPeers||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: getAllPeers||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: release||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: UserFileManager
Method or attribute name: release||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: Size||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: Size
Method or attribute name: width||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: Size
Method or attribute name: height||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: PeerInfo||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: PeerInfo
Method or attribute name: deviceName||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: PeerInfo
Method or attribute name: networkId||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: PeerInfo
Method or attribute name: isOnline||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: VirtualAlbumType||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: VirtualAlbumType
Method or attribute name: TYPE_FAVORITE||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: VirtualAlbumType
Method or attribute name: TYPE_TRASH||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: VirtualAlbum||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: VirtualAlbum
Method or attribute name: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.filemanagement.userfile_manager
Class name: VirtualAlbum
Method or attribute name: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: filemanager||@ohos.fileManager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: filemanager
Method or attribute name: listFile||@ohos.fileManager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: filemanager
Method or attribute name: listFile||@ohos.fileManager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: filemanager
Method or attribute name: listFile||@ohos.fileManager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: filemanager
Method or attribute name: getRoot||@ohos.fileManager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: filemanager
Method or attribute name: getRoot||@ohos.fileManager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: filemanager
Method or attribute name: getRoot||@ohos.fileManager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: filemanager
Method or attribute name: createFile||@ohos.fileManager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: filemanager
Method or attribute name: createFile||@ohos.fileManager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: filemanager
Method or attribute name: createFile||@ohos.fileManager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: FileInfo||@ohos.fileManager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: FileInfo
Method or attribute name: name||@ohos.fileManager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: FileInfo
Method or attribute name: path||@ohos.fileManager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: FileInfo
Method or attribute name: type||@ohos.fileManager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: FileInfo
Method or attribute name: size||@ohos.fileManager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: FileInfo
Method or attribute name: addedTime||@ohos.fileManager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: FileInfo
Method or attribute name: modifiedTime||@ohos.fileManager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: DevInfo||@ohos.fileManager.d.ts| +|Deleted||Module name: ohos.fileManager
Class name: DevInfo
Method or attribute name: name||@ohos.fileManager.d.ts| +|Deprecated version changed|Method or attribute name: ftruncate
Deprecated version: N/A|Method or attribute name: ftruncate
Deprecated version: 9
New API: ohos.file.fs.truncate |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: ftruncate
Deprecated version: N/A|Method or attribute name: ftruncate
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: ftruncate
Deprecated version: N/A|Method or attribute name: ftruncate
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: ftruncateSync
Deprecated version: N/A|Method or attribute name: ftruncateSync
Deprecated version: 9
New API: ohos.file.fs.truncateSync |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: fstat
Deprecated version: N/A|Method or attribute name: fstat
Deprecated version: 9
New API: ohos.file.fs.stat |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: fstat
Deprecated version: N/A|Method or attribute name: fstat
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: fstatSync
Deprecated version: N/A|Method or attribute name: fstatSync
Deprecated version: 9
New API: ohos.file.fs.statSync |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: open
Deprecated version: N/A|Method or attribute name: open
Deprecated version: 9
New API: ohos.file.fs.open |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: open
Deprecated version: N/A|Method or attribute name: open
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: open
Deprecated version: N/A|Method or attribute name: open
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: open
Deprecated version: N/A|Method or attribute name: open
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: openSync
Deprecated version: N/A|Method or attribute name: openSync
Deprecated version: 9
New API: ohos.file.fs.openSync |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: read
Deprecated version: N/A|Method or attribute name: read
Deprecated version: 9
New API: ohos.file.fs.read |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: read
Deprecated version: N/A|Method or attribute name: read
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: read
Deprecated version: N/A|Method or attribute name: read
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: readSync
Deprecated version: N/A|Method or attribute name: readSync
Deprecated version: 9
New API: ohos.file.fs.readSync |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: stat
Deprecated version: N/A|Method or attribute name: stat
Deprecated version: 9
New API: ohos.file.fs.stat |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: stat
Deprecated version: N/A|Method or attribute name: stat
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: statSync
Deprecated version: N/A|Method or attribute name: statSync
Deprecated version: 9
New API: ohos.file.fs.statSync |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: truncate
Deprecated version: N/A|Method or attribute name: truncate
Deprecated version: 9
New API: ohos.file.fs.truncate |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: truncate
Deprecated version: N/A|Method or attribute name: truncate
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: truncate
Deprecated version: N/A|Method or attribute name: truncate
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: truncateSync
Deprecated version: N/A|Method or attribute name: truncateSync
Deprecated version: 9
New API: ohos.file.fs.truncateSync |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: write
Deprecated version: N/A|Method or attribute name: write
Deprecated version: 9
New API: ohos.file.fs.write |@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: write
Deprecated version: N/A|Method or attribute name: write
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: write
Deprecated version: N/A|Method or attribute name: write
Deprecated version: 9|@ohos.fileio.d.ts| +|Deprecated version changed|Method or attribute name: writeSync
Deprecated version: N/A|Method or attribute name: writeSync
Deprecated version: 9
New API: ohos.file.fs.writeSync |@ohos.fileio.d.ts| +|Deprecated version changed|Class name: Stat
Deprecated version: N/A|Class name: Stat
Deprecated version: 9
New API: ohos.file.fs.Stat |@ohos.fileio.d.ts| +|Deprecated version changed|Class name: ReadOut
Deprecated version: N/A|Class name: ReadOut
Deprecated version: 9|@ohos.fileio.d.ts| +|Permission changed|Method or attribute name: getFileAccessAbilityInfo
Permission: ohos.permission.FILE_ACCESS_MANAGER|Method or attribute name: getFileAccessAbilityInfo
Permission: ohos.permission.FILE_ACCESS_MANAGER and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|@ohos.data.fileAccess.d.ts| +|Permission changed|Method or attribute name: getFileAccessAbilityInfo
Permission: ohos.permission.FILE_ACCESS_MANAGER|Method or attribute name: getFileAccessAbilityInfo
Permission: ohos.permission.FILE_ACCESS_MANAGER and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|@ohos.data.fileAccess.d.ts| +|Permission changed|Method or attribute name: createFileAccessHelper
Permission: ohos.permission.FILE_ACCESS_MANAGER|Method or attribute name: createFileAccessHelper
Permission: ohos.permission.FILE_ACCESS_MANAGER and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|@ohos.data.fileAccess.d.ts| +|Permission changed|Method or attribute name: createFileAccessHelper
Permission: ohos.permission.FILE_ACCESS_MANAGER|Method or attribute name: createFileAccessHelper
Permission: ohos.permission.FILE_ACCESS_MANAGER and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|@ohos.data.fileAccess.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-geolocation.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-geolocation.md new file mode 100644 index 0000000000000000000000000000000000000000..c20d0b35204c56ac7d0ca66f0f70e71bdc5844c1 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-geolocation.md @@ -0,0 +1,173 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: on_countryCodeChange|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: off_countryCodeChange|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: enableLocation|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: enableLocation|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: disableLocation|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: disableLocation|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: getCountryCode|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: getCountryCode|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: enableLocationMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: enableLocationMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: disableLocationMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: disableLocationMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: setMockedLocations|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: setMockedLocations|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: enableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: enableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: disableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: disableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: setReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: setReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: isLocationPrivacyConfirmed|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: isLocationPrivacyConfirmed|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: setLocationPrivacyConfirmStatus|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: geoLocationManager
Method or attribute name: setLocationPrivacyConfirmStatus|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: ReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: ReverseGeocodingMockInfo
Method or attribute name: location|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: ReverseGeocodingMockInfo
Method or attribute name: geoAddress|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationMockConfig|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationMockConfig
Method or attribute name: timeInterval|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationMockConfig
Method or attribute name: locations|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: SatelliteStatusInfo|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: SatelliteStatusInfo
Method or attribute name: satellitesNumber|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: SatelliteStatusInfo
Method or attribute name: satelliteIds|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: SatelliteStatusInfo
Method or attribute name: carrierToNoiseDensitys|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: SatelliteStatusInfo
Method or attribute name: altitudes|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: SatelliteStatusInfo
Method or attribute name: azimuths|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: SatelliteStatusInfo
Method or attribute name: carrierFrequencies|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CachedGnssLocationsRequest|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CachedGnssLocationsRequest
Method or attribute name: reportingPeriodSec|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CachedGnssLocationsRequest
Method or attribute name: wakeUpCacheQueueFull|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeofenceRequest|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeofenceRequest
Method or attribute name: priority|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeofenceRequest
Method or attribute name: scenario|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeofenceRequest
Method or attribute name: geofence|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Geofence|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Geofence
Method or attribute name: latitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Geofence
Method or attribute name: longitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Geofence
Method or attribute name: radius|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Geofence
Method or attribute name: expiration|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: ReverseGeoCodeRequest|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: ReverseGeoCodeRequest
Method or attribute name: locale|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: ReverseGeoCodeRequest
Method or attribute name: latitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: ReverseGeoCodeRequest
Method or attribute name: longitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: ReverseGeoCodeRequest
Method or attribute name: maxItems|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoCodeRequest|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoCodeRequest
Method or attribute name: locale|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoCodeRequest
Method or attribute name: description|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoCodeRequest
Method or attribute name: maxItems|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoCodeRequest
Method or attribute name: minLatitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoCodeRequest
Method or attribute name: minLongitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoCodeRequest
Method or attribute name: maxLatitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoCodeRequest
Method or attribute name: maxLongitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: latitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: longitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: locale|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: placeName|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: countryCode|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: countryName|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: administrativeArea|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: subAdministrativeArea|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: locality|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: subLocality|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: roadName|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: subRoadName|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: premises|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: postalCode|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: phoneNumber|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: addressUrl|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: descriptions|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: descriptionsSize|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: GeoAddress
Method or attribute name: isFromMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequest|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequest
Method or attribute name: priority|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequest
Method or attribute name: scenario|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequest
Method or attribute name: timeInterval|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequest
Method or attribute name: distanceInterval|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequest
Method or attribute name: maxAccuracy|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CurrentLocationRequest|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CurrentLocationRequest
Method or attribute name: priority|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CurrentLocationRequest
Method or attribute name: scenario|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CurrentLocationRequest
Method or attribute name: maxAccuracy|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CurrentLocationRequest
Method or attribute name: timeoutMs|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: latitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: longitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: altitude|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: accuracy|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: speed|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: timeStamp|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: direction|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: timeSinceBoot|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: additions|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: additionSize|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: Location
Method or attribute name: isFromMock|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestPriority|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestPriority
Method or attribute name: UNSET|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestPriority
Method or attribute name: ACCURACY|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestPriority
Method or attribute name: LOW_POWER|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestPriority
Method or attribute name: FIRST_FIX|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestScenario|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestScenario
Method or attribute name: UNSET|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestScenario
Method or attribute name: NAVIGATION|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestScenario
Method or attribute name: TRAJECTORY_TRACKING|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestScenario
Method or attribute name: CAR_HAILING|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestScenario
Method or attribute name: DAILY_LIFE_SERVICE|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationRequestScenario
Method or attribute name: NO_POWER|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationPrivacyType|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationPrivacyType
Method or attribute name: OTHERS|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationPrivacyType
Method or attribute name: STARTUP|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationPrivacyType
Method or attribute name: CORE_LOCATION|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationCommand|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationCommand
Method or attribute name: scenario|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: LocationCommand
Method or attribute name: command|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CountryCode|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CountryCode
Method or attribute name: country|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CountryCode
Method or attribute name: type|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CountryCodeType|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CountryCodeType
Method or attribute name: COUNTRY_CODE_FROM_LOCALE|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CountryCodeType
Method or attribute name: COUNTRY_CODE_FROM_SIM|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CountryCodeType
Method or attribute name: COUNTRY_CODE_FROM_LOCATION|@ohos.geoLocationManager.d.ts| +|Added||Module name: ohos.geoLocationManager
Class name: CountryCodeType
Method or attribute name: COUNTRY_CODE_FROM_NETWORK|@ohos.geoLocationManager.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: on_countryCodeChange||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: off_countryCodeChange||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: getCountryCode||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: getCountryCode||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: enableLocationMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: enableLocationMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: disableLocationMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: disableLocationMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: setMockedLocations||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: setMockedLocations||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: enableReverseGeocodingMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: enableReverseGeocodingMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: disableReverseGeocodingMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: disableReverseGeocodingMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: setReverseGeocodingMockInfo||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: setReverseGeocodingMockInfo||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: ReverseGeocodingMockInfo||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: ReverseGeocodingMockInfo
Method or attribute name: location||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: ReverseGeocodingMockInfo
Method or attribute name: geoAddress||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: LocationMockConfig||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: LocationMockConfig
Method or attribute name: timeInterval||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: LocationMockConfig
Method or attribute name: locations||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: isLocationPrivacyConfirmed||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: isLocationPrivacyConfirmed||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: setLocationPrivacyConfirmStatus||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: geolocation
Method or attribute name: setLocationPrivacyConfirmStatus||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: GeoAddress
Method or attribute name: isFromMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: Location
Method or attribute name: isFromMock||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: GeoLocationErrorCode
Method or attribute name: NOT_SUPPORTED||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: GeoLocationErrorCode
Method or attribute name: QUERY_COUNTRY_CODE_ERROR||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: CountryCode||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: CountryCode
Method or attribute name: country||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: CountryCode
Method or attribute name: type||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: CountryCodeType||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: CountryCodeType
Method or attribute name: COUNTRY_CODE_FROM_LOCALE||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: CountryCodeType
Method or attribute name: COUNTRY_CODE_FROM_SIM||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: CountryCodeType
Method or attribute name: COUNTRY_CODE_FROM_LOCATION||@ohos.geolocation.d.ts| +|Deleted||Module name: ohos.geolocation
Class name: CountryCodeType
Method or attribute name: COUNTRY_CODE_FROM_NETWORK||@ohos.geolocation.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-global.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-global.md new file mode 100644 index 0000000000000000000000000000000000000000..fb7d92d30f34b97292d69a4882dced394f0b5db2 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-global.md @@ -0,0 +1,106 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.i18n
Class name: System|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getDisplayCountry|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getDisplayLanguage|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getSystemLanguages|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getSystemCountries|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: isSuggested|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getSystemLanguage|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: setSystemLanguage|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getSystemRegion|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: setSystemRegion|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getSystemLocale|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: setSystemLocale|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: is24HourClock|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: set24HourClock|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: addPreferredLanguage|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: removePreferredLanguage|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getPreferredLanguageList|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getFirstPreferredLanguage|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getAppPreferredLanguage|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: setUsingLocalDigit|@ohos.i18n.d.ts| +|Added||Module name: ohos.i18n
Class name: System
Method or attribute name: getUsingLocalDigit|@ohos.i18n.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getStringValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getStringValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getStringArrayValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getStringArrayValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getMediaContent|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getMediaContent|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getMediaContentBase64|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getMediaContentBase64|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getPluralStringValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getPluralStringValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getStringValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getStringValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getStringArrayValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getStringArrayValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getPluralStringValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getPluralStringValue|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getMediaContent|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getMediaContent|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getMediaContentBase64|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getMediaContentBase64|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getRawFileContent|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getRawFileContent|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getRawFd|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: getRawFd|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: closeRawFd|@ohos.resourceManager.d.ts| +|Added||Module name: ohos.resourceManager
Class name: ResourceManager
Method or attribute name: closeRawFd|@ohos.resourceManager.d.ts| +|Deleted||Module name: ohos.i18n
Class name: i18n
Method or attribute name: getSystemLanguages||@ohos.i18n.d.ts| +|Deleted||Module name: ohos.i18n
Class name: i18n
Method or attribute name: getSystemCountries||@ohos.i18n.d.ts| +|Deleted||Module name: ohos.i18n
Class name: i18n
Method or attribute name: isSuggested||@ohos.i18n.d.ts| +|Deleted||Module name: ohos.i18n
Class name: i18n
Method or attribute name: setSystemLanguage||@ohos.i18n.d.ts| +|Deleted||Module name: ohos.i18n
Class name: i18n
Method or attribute name: setSystemRegion||@ohos.i18n.d.ts| +|Deleted||Module name: ohos.i18n
Class name: i18n
Method or attribute name: setSystemLocale||@ohos.i18n.d.ts| +|Deleted||Module name: ohos.i18n
Class name: i18n
Method or attribute name: getAppPreferredLanguage||@ohos.i18n.d.ts| +|Deleted||Module name: ohos.i18n
Class name: i18n
Method or attribute name: setUsingLocalDigit||@ohos.i18n.d.ts| +|Deleted||Module name: ohos.i18n
Class name: i18n
Method or attribute name: getUsingLocalDigit||@ohos.i18n.d.ts| +|Deleted||Module name: ohos.resourceManager
Class name: AsyncCallback||@ohos.resourceManager.d.ts| +|Deleted||Module name: ohos.resourceManager
Class name: AsyncCallback
Method or attribute name: AsyncCallback||@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getDisplayCountry
Deprecated version: N/A|Method or attribute name: getDisplayCountry
Deprecated version: 9
New API: ohos.System.getDisplayCountry |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: getDisplayLanguage
Deprecated version: N/A|Method or attribute name: getDisplayLanguage
Deprecated version: 9
New API: ohos.System.getDisplayLanguage |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: getSystemLanguage
Deprecated version: N/A|Method or attribute name: getSystemLanguage
Deprecated version: 9
New API: ohos.System.getSystemLanguage |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: getSystemRegion
Deprecated version: N/A|Method or attribute name: getSystemRegion
Deprecated version: 9
New API: ohos.System.getSystemRegion |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: getSystemLocale
Deprecated version: N/A|Method or attribute name: getSystemLocale
Deprecated version: 9
New API: ohos.System.getSystemLocale |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: is24HourClock
Deprecated version: N/A|Method or attribute name: is24HourClock
Deprecated version: 9
New API: ohos.System.is24HourClock |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: set24HourClock
Deprecated version: N/A|Method or attribute name: set24HourClock
Deprecated version: 9
New API: ohos.System.set24HourClock |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: addPreferredLanguage
Deprecated version: N/A|Method or attribute name: addPreferredLanguage
Deprecated version: 9
New API: ohos.System.addPreferredLanguage |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: removePreferredLanguage
Deprecated version: N/A|Method or attribute name: removePreferredLanguage
Deprecated version: 9
New API: ohos.System.removePreferredLanguage |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: getPreferredLanguageList
Deprecated version: N/A|Method or attribute name: getPreferredLanguageList
Deprecated version: 9
New API: ohos.System.getPreferredLanguageList |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: getFirstPreferredLanguage
Deprecated version: N/A|Method or attribute name: getFirstPreferredLanguage
Deprecated version: 9
New API: ohos.System.getFirstPreferredLanguage |@ohos.i18n.d.ts| +|Deprecated version changed|Method or attribute name: getString
Deprecated version: N/A|Method or attribute name: getString
Deprecated version: 9
New API: ohos.resourceManager.getStringValue |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getString
Deprecated version: N/A|Method or attribute name: getString
Deprecated version: 9
New API: ohos.resourceManager.getStringValue |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getStringArray
Deprecated version: N/A|Method or attribute name: getStringArray
Deprecated version: 9
New API: ohos.resourceManager.getStringArrayValue |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getStringArray
Deprecated version: N/A|Method or attribute name: getStringArray
Deprecated version: 9
New API: ohos.resourceManager.getStringArrayValue |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getMedia
Deprecated version: N/A|Method or attribute name: getMedia
Deprecated version: 9
New API: ohos.resourceManager.getMediaContent |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getMedia
Deprecated version: N/A|Method or attribute name: getMedia
Deprecated version: 9
New API: ohos.resourceManager.getMediaContent |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getMediaBase64
Deprecated version: N/A|Method or attribute name: getMediaBase64
Deprecated version: 9
New API: ohos.resourceManager.getMediaContentBase64 |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getMediaBase64
Deprecated version: N/A|Method or attribute name: getMediaBase64
Deprecated version: 9
New API: ohos.resourceManager.getMediaContentBase64 |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getPluralString
Deprecated version: N/A|Method or attribute name: getPluralString
Deprecated version: 9
New API: ohos.resourceManager.getPluralStringValue |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getPluralString
Deprecated version: N/A|Method or attribute name: getPluralString
Deprecated version: 9
New API: ohos.resourceManager.getPluralStringValue |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getRawFile
Deprecated version: N/A|Method or attribute name: getRawFile
Deprecated version: 9
New API: ohos.resourceManager.getRawFileContent |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getRawFile
Deprecated version: N/A|Method or attribute name: getRawFile
Deprecated version: 9
New API: ohos.resourceManager.getRawFileContent |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getRawFileDescriptor
Deprecated version: N/A|Method or attribute name: getRawFileDescriptor
Deprecated version: 9
New API: ohos.resourceManager.getRawFd |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: getRawFileDescriptor
Deprecated version: N/A|Method or attribute name: getRawFileDescriptor
Deprecated version: 9
New API: ohos.resourceManager.getRawFd |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: closeRawFileDescriptor
Deprecated version: N/A|Method or attribute name: closeRawFileDescriptor
Deprecated version: 9
New API: ohos.resourceManager.closeRawFd |@ohos.resourceManager.d.ts| +|Deprecated version changed|Method or attribute name: closeRawFileDescriptor
Deprecated version: N/A|Method or attribute name: closeRawFileDescriptor
Deprecated version: 9
New API: ohos.resourceManager.closeRawFd |@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getStringByName
Error code: 401, 9001003, 9001004, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getStringByName
Error code: 401, 9001003, 9001004, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getStringArrayByName
Error code: 401, 9001003, 9001004, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getStringArrayByName
Error code: 401, 9001003, 9001004, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getMediaByName
Error code: 401, 9001003, 9001004|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getMediaByName
Error code: 401, 9001003, 9001004|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getMediaBase64ByName
Error code: 401, 9001003, 9001004|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getMediaBase64ByName
Error code: 401, 9001003, 9001004|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getPluralStringByName
Error code: 401, 9001003, 9001004, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getPluralStringByName
Error code: 401, 9001003, 9001004, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getStringSync
Error code: 401, 9001001, 9001002, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getStringSync
Error code: 401, 9001001, 9001002, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getStringByNameSync
Error code: 401, 9001003, 9001004, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getBoolean
Error code: 401, 9001001, 9001002, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getBoolean
Error code: 401, 9001001, 9001002, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getBooleanByName
Error code: 401, 9001003, 9001004, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getNumber
Error code: 401, 9001001, 9001002, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getNumber
Error code: 401, 9001001, 9001002, 9001006|@ohos.resourceManager.d.ts| +|Error code added||Method or attribute name: getNumberByName
Error code: 401, 9001003, 9001004, 9001006|@ohos.resourceManager.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-misc.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-misc.md new file mode 100644 index 0000000000000000000000000000000000000000..2c6169439c5777022538b3427c0e29d7c55a5402 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-misc.md @@ -0,0 +1,317 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: getSetting|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: getController|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: switchCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: switchCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: getCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: switchCurrentInputMethodAndSubtype|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: inputMethod
Method or attribute name: switchCurrentInputMethodAndSubtype|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: on_imeChange|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: off_imeChange|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: listInputMethodSubtype|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: listInputMethodSubtype|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: listCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: listCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: getInputMethods|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: getInputMethods|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: showOptionalInputMethods|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodSetting
Method or attribute name: showOptionalInputMethods|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodController
Method or attribute name: stopInputSession|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodController
Method or attribute name: stopInputSession|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodProperty
Method or attribute name: name|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodProperty
Method or attribute name: id|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodProperty
Method or attribute name: label|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodProperty
Method or attribute name: icon|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodProperty
Method or attribute name: iconId|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethod
Class name: InputMethodProperty
Method or attribute name: extra|@ohos.inputmethod.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: inputMethodEngine
Method or attribute name: getInputMethodAbility|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: inputMethodEngine
Method or attribute name: getKeyboardDelegate|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: KeyboardController
Method or attribute name: hide|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: KeyboardController
Method or attribute name: hide|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: on_inputStart|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: off_inputStart|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: on_inputStop|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: off_inputStop|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: on_setCallingWindow|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: off_setCallingWindow|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: on_keyboardShow|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: on_keyboardHide|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: off_keyboardShow|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: off_keyboardHide|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: on_setSubtype|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputMethodAbility
Method or attribute name: off_setSubtype|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: sendKeyFunction|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: sendKeyFunction|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: deleteForward|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: deleteForward|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: deleteBackward|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: deleteBackward|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: insertText|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: insertText|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: getForward|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: getForward|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: getBackward|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: getBackward|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: getEditorAttribute|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: getEditorAttribute|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: moveCursor|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodengine
Class name: InputClient
Method or attribute name: moveCursor|@ohos.inputmethodengine.d.ts| +|Added||Module name: ohos.inputmethodextensioncontext
Class name: InputMethodExtensionContext
Method or attribute name: destroy|@ohos.inputmethodextensioncontext.d.ts| +|Added||Module name: ohos.inputmethodextensioncontext
Class name: InputMethodExtensionContext
Method or attribute name: destroy|@ohos.inputmethodextensioncontext.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype|@ohos.inputMethodSubtype.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype
Method or attribute name: label|@ohos.inputMethodSubtype.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype
Method or attribute name: name|@ohos.inputMethodSubtype.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype
Method or attribute name: id|@ohos.inputMethodSubtype.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype
Method or attribute name: mode|@ohos.inputMethodSubtype.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype
Method or attribute name: locale|@ohos.inputMethodSubtype.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype
Method or attribute name: language|@ohos.inputMethodSubtype.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype
Method or attribute name: icon|@ohos.inputMethodSubtype.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype
Method or attribute name: iconId|@ohos.inputMethodSubtype.d.ts| +|Added||Module name: ohos.inputMethodSubtype
Class name: InputMethodSubtype
Method or attribute name: extra|@ohos.inputMethodSubtype.d.ts| +|Add||Method or attribute name: createData
Function name: function createData(mimeType: string, value: ValueType): PasteData;|@ohos.pasteboard.d.ts| +|Add||Method or attribute name: createRecord
Function name: function createRecord(mimeType: string, value: ValueType): PasteDataRecord;|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: PasteDataRecord
Method or attribute name: convertToTextV9|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: PasteDataRecord
Method or attribute name: convertToTextV9|@ohos.pasteboard.d.ts| +|Add||Method or attribute name: addRecord
Function name: addRecord(mimeType: string, value: ValueType): void;|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: PasteData
Method or attribute name: getRecord|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: PasteData
Method or attribute name: hasType|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: PasteData
Method or attribute name: removeRecord|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: PasteData
Method or attribute name: replaceRecord|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: SystemPasteboard
Method or attribute name: clearData|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: SystemPasteboard
Method or attribute name: clearData|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: SystemPasteboard
Method or attribute name: getData|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: SystemPasteboard
Method or attribute name: getData|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: SystemPasteboard
Method or attribute name: hasData|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: SystemPasteboard
Method or attribute name: hasData|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: SystemPasteboard
Method or attribute name: setData|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.pasteboard
Class name: SystemPasteboard
Method or attribute name: setData|@ohos.pasteboard.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: EXCEPTION_PERMISSION|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: EXCEPTION_PARAMCHECK|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: EXCEPTION_UNSUPPORTED|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: EXCEPTION_FILEIO|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: EXCEPTION_FILEPATH|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: EXCEPTION_SERVICE|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: EXCEPTION_OTHERS|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: ERROR_OFFLINE|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: ERROR_UNSUPPORTED_NETWORK_TYPE|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: downloadFile|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: downloadFile|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: uploadFile|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: request
Method or attribute name: uploadFile|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: delete|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: delete|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: suspend|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: suspend|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: restore|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: restore|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: getTaskInfo|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: getTaskInfo|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: getTaskMimeType|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: DownloadTask
Method or attribute name: getTaskMimeType|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: UploadTask
Method or attribute name: delete|@ohos.request.d.ts| +|Added||Module name: ohos.request
Class name: UploadTask
Method or attribute name: delete|@ohos.request.d.ts| +|Added||Module name: ohos.screenLock
Class name: screenLock
Method or attribute name: isLocked|@ohos.screenLock.d.ts| +|Added||Module name: ohos.screenLock
Class name: screenLock
Method or attribute name: isSecure|@ohos.screenLock.d.ts| +|Added||Module name: ohos.screenLock
Class name: screenLock
Method or attribute name: unlock|@ohos.screenLock.d.ts| +|Added||Module name: ohos.screenLock
Class name: screenLock
Method or attribute name: unlock|@ohos.screenLock.d.ts| +|Added||Module name: ohos.screenLock
Class name: screenLock
Method or attribute name: lock|@ohos.screenLock.d.ts| +|Added||Module name: ohos.screenLock
Class name: screenLock
Method or attribute name: lock|@ohos.screenLock.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: getColorsSync|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: getIdSync|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: getFileSync|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: getMinHeightSync|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: getMinWidthSync|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: isChangeAllowed|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: isUserChangeAllowed|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: restore|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: restore|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: setImage|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: setImage|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: getImage|@ohos.wallpaper.d.ts| +|Added||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: getImage|@ohos.wallpaper.d.ts| +|Deleted||Module name: ohos.inputmethodengine
Class name: InputMethodEngine
Method or attribute name: on_inputStop||@ohos.inputmethodengine.d.ts| +|Deleted||Module name: ohos.inputmethodengine
Class name: InputMethodEngine
Method or attribute name: off_inputStop||@ohos.inputmethodengine.d.ts| +|Deleted||Module name: ohos.inputmethodengine
Class name: InputMethodEngine
Method or attribute name: on_setCallingWindow||@ohos.inputmethodengine.d.ts| +|Deleted||Module name: ohos.inputmethodengine
Class name: InputMethodEngine
Method or attribute name: off_setCallingWindow||@ohos.inputmethodengine.d.ts| +|Deleted||Module name: ohos.inputmethodengine
Class name: TextInputClient
Method or attribute name: moveCursor||@ohos.inputmethodengine.d.ts| +|Deleted||Module name: ohos.inputmethodengine
Class name: TextInputClient
Method or attribute name: moveCursor||@ohos.inputmethodengine.d.ts| +|Deleted||Module name: ohos.inputmethodextensioncontext
Class name: InputMethodExtensionContext
Method or attribute name: startAbility||@ohos.inputmethodextensioncontext.d.ts| +|Deleted||Module name: ohos.inputmethodextensioncontext
Class name: InputMethodExtensionContext
Method or attribute name: startAbility||@ohos.inputmethodextensioncontext.d.ts| +|Deleted||Module name: ohos.inputmethodextensioncontext
Class name: InputMethodExtensionContext
Method or attribute name: startAbility||@ohos.inputmethodextensioncontext.d.ts| +|Deleted||Module name: ohos.inputmethodextensioncontext
Class name: InputMethodExtensionContext
Method or attribute name: terminateSelf||@ohos.inputmethodextensioncontext.d.ts| +|Deleted||Module name: ohos.inputmethodextensioncontext
Class name: InputMethodExtensionContext
Method or attribute name: terminateSelf||@ohos.inputmethodextensioncontext.d.ts| +|Deleted||Module name: ohos.pasteboard
Class name: pasteboard
Method or attribute name: createPixelMapData||@ohos.pasteboard.d.ts| +|Deleted||Module name: ohos.pasteboard
Class name: pasteboard
Method or attribute name: createPixelMapRecord||@ohos.pasteboard.d.ts| +|Deleted||Module name: ohos.pasteboard
Class name: PasteData
Method or attribute name: addPixelMapRecord||@ohos.pasteboard.d.ts| +|Deleted||Module name: ohos.screenLock
Class name: screenLock
Method or attribute name: lockScreen||@ohos.screenLock.d.ts| +|Deleted||Module name: ohos.screenLock
Class name: screenLock
Method or attribute name: lockScreen||@ohos.screenLock.d.ts| +|Deleted||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: screenshotLiveWallpaper||@ohos.wallpaper.d.ts| +|Deleted||Module name: ohos.wallpaper
Class name: wallpaper
Method or attribute name: screenshotLiveWallpaper||@ohos.wallpaper.d.ts| +|Model changed|Method or attribute name: switchInputMethod
model: @Stage Model Only|Method or attribute name: switchInputMethod
model:|@ohos.inputmethod.d.ts| +|Model changed|Method or attribute name: switchInputMethod
model: @Stage Model Only|Method or attribute name: switchInputMethod
model:|@ohos.inputmethod.d.ts| +|Model changed|Method or attribute name: getCurrentInputMethod
model: @Stage Model Only|Method or attribute name: getCurrentInputMethod
model:|@ohos.inputmethod.d.ts| +|Model changed|Class name: InputMethodExtensionAbility
model: @Stage Model Only|Class name: InputMethodExtensionAbility
model:|@ohos.inputmethodextensionability.d.ts| +|Model changed|Method or attribute name: context
model: @Stage Model Only|Method or attribute name: context
model:|@ohos.inputmethodextensionability.d.ts| +|Model changed|Method or attribute name: onCreate
model: @Stage Model Only|Method or attribute name: onCreate
model:|@ohos.inputmethodextensionability.d.ts| +|Model changed|Method or attribute name: onDestroy
model: @Stage Model Only|Method or attribute name: onDestroy
model:|@ohos.inputmethodextensionability.d.ts| +|Model changed|Class name: InputMethodExtensionContext
model: @Stage Model Only|Class name: InputMethodExtensionContext
model:|@ohos.inputmethodextensioncontext.d.ts| +|Deprecated version changed|Method or attribute name: getInputMethodSetting
Deprecated version: N/A|Method or attribute name: getInputMethodSetting
Deprecated version: 9
New API: ohos.inputmethod.getController |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: getInputMethodController
Deprecated version: N/A|Method or attribute name: getInputMethodController
Deprecated version: 9
New API: ohos.inputmethod.getController |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: listInputMethod
Deprecated version: N/A|Method or attribute name: listInputMethod
Deprecated version: 9
New API: ohos.inputmethod.InputMethodSetting.getInputMethods |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: listInputMethod
Deprecated version: N/A|Method or attribute name: listInputMethod
Deprecated version: 9
New API: ohos.inputmethod.InputMethodSetting.getInputMethods |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: displayOptionalInputMethod
Deprecated version: N/A|Method or attribute name: displayOptionalInputMethod
Deprecated version: 9
New API: ohos.inputmethod.InputMethodSetting.showOptionalInputMethods |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: displayOptionalInputMethod
Deprecated version: N/A|Method or attribute name: displayOptionalInputMethod
Deprecated version: 9
New API: ohos.inputmethod.InputMethodSetting.showOptionalInputMethods |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: stopInput
Deprecated version: N/A|Method or attribute name: stopInput
Deprecated version: 9
New API: ohos.inputmethod.InputMethodController.stopInputSession |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: stopInput
Deprecated version: N/A|Method or attribute name: stopInput
Deprecated version: 9
New API: ohos.inputmethod.InputMethodController.stopInputSession |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: packageName
Deprecated version: N/A|Method or attribute name: packageName
Deprecated version: 9
New API: ohos.inputmethod.InputMethodProperty.name |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: methodId
Deprecated version: N/A|Method or attribute name: methodId
Deprecated version: 9
New API: ohos.inputmethod.InputMethodProperty.id |@ohos.inputmethod.d.ts| +|Deprecated version changed|Method or attribute name: getInputMethodEngine
Deprecated version: N/A|Method or attribute name: getInputMethodEngine
Deprecated version: 9
New API: ohos.inputmethodengine.getInputMethodAbility |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: createKeyboardDelegate
Deprecated version: N/A|Method or attribute name: createKeyboardDelegate
Deprecated version: 9
New API: ohos.inputmethodengine.getKeyboardDelegate |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: hideKeyboard
Deprecated version: N/A|Method or attribute name: hideKeyboard
Deprecated version: 9
New API: ohos.inputmethodengine.KeyboardController.hide |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: hideKeyboard
Deprecated version: N/A|Method or attribute name: hideKeyboard
Deprecated version: 9
New API: ohos.inputmethodengine.KeyboardController.hide |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Class name: TextInputClient
Deprecated version: N/A|Class name: TextInputClient
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: sendKeyFunction
Deprecated version: N/A|Method or attribute name: sendKeyFunction
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.sendKeyFunction |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: sendKeyFunction
Deprecated version: N/A|Method or attribute name: sendKeyFunction
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.sendKeyFunction |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: deleteForward
Deprecated version: N/A|Method or attribute name: deleteForward
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.deleteForward |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: deleteForward
Deprecated version: N/A|Method or attribute name: deleteForward
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.deleteForward |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: deleteBackward
Deprecated version: N/A|Method or attribute name: deleteBackward
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.deleteBackward |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: deleteBackward
Deprecated version: N/A|Method or attribute name: deleteBackward
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.deleteBackward |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: insertText
Deprecated version: N/A|Method or attribute name: insertText
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.insertText |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: insertText
Deprecated version: N/A|Method or attribute name: insertText
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.insertText |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: getForward
Deprecated version: N/A|Method or attribute name: getForward
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.getForward |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: getForward
Deprecated version: N/A|Method or attribute name: getForward
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.getForward |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: getBackward
Deprecated version: N/A|Method or attribute name: getBackward
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.getBackward |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: getBackward
Deprecated version: N/A|Method or attribute name: getBackward
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.getBackward |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: getEditorAttribute
Deprecated version: N/A|Method or attribute name: getEditorAttribute
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.getEditorAttribute |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: getEditorAttribute
Deprecated version: N/A|Method or attribute name: getEditorAttribute
Deprecated version: 9
New API: ohos.inputmethodengine.InputClient.getEditorAttribute |@ohos.inputmethodengine.d.ts| +|Deprecated version changed|Method or attribute name: createHtmlData
Deprecated version: N/A|Method or attribute name: createHtmlData
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: createWantData
Deprecated version: N/A|Method or attribute name: createWantData
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: createPlainTextData
Deprecated version: N/A|Method or attribute name: createPlainTextData
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: createUriData
Deprecated version: N/A|Method or attribute name: createUriData
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: createHtmlTextRecord
Deprecated version: N/A|Method or attribute name: createHtmlTextRecord
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: createWantRecord
Deprecated version: N/A|Method or attribute name: createWantRecord
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: createPlainTextRecord
Deprecated version: N/A|Method or attribute name: createPlainTextRecord
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: createUriRecord
Deprecated version: N/A|Method or attribute name: createUriRecord
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: convertToText
Deprecated version: N/A|Method or attribute name: convertToText
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: convertToText
Deprecated version: N/A|Method or attribute name: convertToText
Deprecated version: 9|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: addHtmlRecord
Deprecated version: N/A|Method or attribute name: addHtmlRecord
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: addWantRecord
Deprecated version: N/A|Method or attribute name: addWantRecord
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: addTextRecord
Deprecated version: N/A|Method or attribute name: addTextRecord
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: addUriRecord
Deprecated version: N/A|Method or attribute name: addUriRecord
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: getRecordAt
Deprecated version: N/A|Method or attribute name: getRecordAt
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: hasMimeType
Deprecated version: N/A|Method or attribute name: hasMimeType
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: removeRecordAt
Deprecated version: N/A|Method or attribute name: removeRecordAt
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: replaceRecordAt
Deprecated version: N/A|Method or attribute name: replaceRecordAt
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: clear
Deprecated version: N/A|Method or attribute name: clear
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: clear
Deprecated version: N/A|Method or attribute name: clear
Deprecated version: 9|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: getPasteData
Deprecated version: N/A|Method or attribute name: getPasteData
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: getPasteData
Deprecated version: N/A|Method or attribute name: getPasteData
Deprecated version: 9|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: hasPasteData
Deprecated version: N/A|Method or attribute name: hasPasteData
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: hasPasteData
Deprecated version: N/A|Method or attribute name: hasPasteData
Deprecated version: 9|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: setPasteData
Deprecated version: N/A|Method or attribute name: setPasteData
Deprecated version: 9
New API: ohos.pasteboard.pasteboard|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: setPasteData
Deprecated version: N/A|Method or attribute name: setPasteData
Deprecated version: 9|@ohos.pasteboard.d.ts| +|Deprecated version changed|Method or attribute name: download
Deprecated version: N/A|Method or attribute name: download
Deprecated version: 9
New API: ohos.request.downloadFile |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: download
Deprecated version: N/A|Method or attribute name: download
Deprecated version: 9
New API: ohos.request.downloadFile |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: download
Deprecated version: N/A|Method or attribute name: download
Deprecated version: 9
New API: ohos.request.downloadFile |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: download
Deprecated version: N/A|Method or attribute name: download
Deprecated version: 9
New API: ohos.request.downloadFile |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: upload
Deprecated version: N/A|Method or attribute name: upload
Deprecated version: 9
New API: ohos.request.uploadFile |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: upload
Deprecated version: N/A|Method or attribute name: upload
Deprecated version: 9
New API: ohos.request.uploadFile |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: upload
Deprecated version: N/A|Method or attribute name: upload
Deprecated version: 9
New API: ohos.request.uploadFile |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: upload
Deprecated version: N/A|Method or attribute name: upload
Deprecated version: 9
New API: ohos.request.uploadFile |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: remove
Deprecated version: N/A|Method or attribute name: remove
Deprecated version: 9
New API: ohos.request.delete |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: remove
Deprecated version: N/A|Method or attribute name: remove
Deprecated version: 9
New API: ohos.request.delete |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: pause
Deprecated version: N/A|Method or attribute name: pause
Deprecated version: 9
New API: ohos.request.suspend |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: pause
Deprecated version: N/A|Method or attribute name: pause
Deprecated version: 9
New API: ohos.request.suspend |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: resume
Deprecated version: N/A|Method or attribute name: resume
Deprecated version: 9
New API: ohos.request.restore |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: resume
Deprecated version: N/A|Method or attribute name: resume
Deprecated version: 9
New API: ohos.request.restore |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: query
Deprecated version: N/A|Method or attribute name: query
Deprecated version: 9
New API: ohos.request.getTaskInfo |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: query
Deprecated version: N/A|Method or attribute name: query
Deprecated version: 9
New API: ohos.request.getTaskInfo |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: queryMimeType
Deprecated version: N/A|Method or attribute name: queryMimeType
Deprecated version: 9
New API: ohos.request.getTaskMimeType |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: queryMimeType
Deprecated version: N/A|Method or attribute name: queryMimeType
Deprecated version: 9
New API: ohos.request.getTaskMimeType |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: remove
Deprecated version: N/A|Method or attribute name: remove
Deprecated version: 9
New API: ohos.request.delete |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: remove
Deprecated version: N/A|Method or attribute name: remove
Deprecated version: 9
New API: ohos.request.delete |@ohos.request.d.ts| +|Deprecated version changed|Method or attribute name: isScreenLocked
Deprecated version: N/A|Method or attribute name: isScreenLocked
Deprecated version: 9
New API: ohos.screenLock.isLocked |@ohos.screenLock.d.ts| +|Deprecated version changed|Method or attribute name: isScreenLocked
Deprecated version: N/A|Method or attribute name: isScreenLocked
Deprecated version: 9|@ohos.screenLock.d.ts| +|Deprecated version changed|Method or attribute name: isSecureMode
Deprecated version: N/A|Method or attribute name: isSecureMode
Deprecated version: 9
New API: ohos.screenLock.isSecure |@ohos.screenLock.d.ts| +|Deprecated version changed|Method or attribute name: isSecureMode
Deprecated version: N/A|Method or attribute name: isSecureMode
Deprecated version: 9|@ohos.screenLock.d.ts| +|Deprecated version changed|Method or attribute name: unlockScreen
Deprecated version: N/A|Method or attribute name: unlockScreen
Deprecated version: 9
New API: ohos.screenLock.unlock |@ohos.screenLock.d.ts| +|Deprecated version changed|Method or attribute name: unlockScreen
Deprecated version: N/A|Method or attribute name: unlockScreen
Deprecated version: 9|@ohos.screenLock.d.ts| +|Deprecated version changed|Method or attribute name: getColors
Deprecated version: N/A|Method or attribute name: getColors
Deprecated version: 9
New API: ohos.wallpaper.getColorsSync |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getColors
Deprecated version: N/A|Method or attribute name: getColors
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getId
Deprecated version: N/A|Method or attribute name: getId
Deprecated version: 9
New API: ohos.wallpaper.getIdSync |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getId
Deprecated version: N/A|Method or attribute name: getId
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getFile
Deprecated version: N/A|Method or attribute name: getFile
Deprecated version: 9
New API: ohos.wallpaper.getFileSync |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getFile
Deprecated version: N/A|Method or attribute name: getFile
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getMinHeight
Deprecated version: N/A|Method or attribute name: getMinHeight
Deprecated version: 9
New API: ohos.wallpaper.getMinHeightSync |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getMinHeight
Deprecated version: N/A|Method or attribute name: getMinHeight
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getMinWidth
Deprecated version: N/A|Method or attribute name: getMinWidth
Deprecated version: 9
New API: ohos.wallpaper.getMinWidthSync |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getMinWidth
Deprecated version: N/A|Method or attribute name: getMinWidth
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: isChangePermitted
Deprecated version: N/A|Method or attribute name: isChangePermitted
Deprecated version: 9
New API: ohos.wallpaper.isChangeAllowed |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: isChangePermitted
Deprecated version: N/A|Method or attribute name: isChangePermitted
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: isOperationAllowed
Deprecated version: N/A|Method or attribute name: isOperationAllowed
Deprecated version: 9
New API: ohos.wallpaper.isUserChangeAllowed |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: isOperationAllowed
Deprecated version: N/A|Method or attribute name: isOperationAllowed
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: reset
Deprecated version: N/A|Method or attribute name: reset
Deprecated version: 9
New API: ohos.wallpaper.recovery |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: reset
Deprecated version: N/A|Method or attribute name: reset
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: setWallpaper
Deprecated version: N/A|Method or attribute name: setWallpaper
Deprecated version: 9
New API: ohos.wallpaper.setImage |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: setWallpaper
Deprecated version: N/A|Method or attribute name: setWallpaper
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getPixelMap
Deprecated version: N/A|Method or attribute name: getPixelMap
Deprecated version: 9
New API: ohos.wallpaper.getImage |@ohos.wallpaper.d.ts| +|Deprecated version changed|Method or attribute name: getPixelMap
Deprecated version: N/A|Method or attribute name: getPixelMap
Deprecated version: 9|@ohos.wallpaper.d.ts| +|Deprecated version changed|Class name: UploadResponse
Deprecated version: N/A|Class name: UploadResponse
Deprecated version: 9
New API: ohos.request |@system.request.d.ts| +|Deprecated version changed|Method or attribute name: code
Deprecated version: N/A|Method or attribute name: code
Deprecated version: 9
New API: ohos.request |@system.request.d.ts| +|Deprecated version changed|Method or attribute name: data
Deprecated version: N/A|Method or attribute name: data
Deprecated version: 9
New API: ohos.request |@system.request.d.ts| +|Deprecated version changed|Method or attribute name: headers
Deprecated version: N/A|Method or attribute name: headers
Deprecated version: 9
New API: ohos.request |@system.request.d.ts| +|Deprecated version changed|Class name: DownloadResponse
Deprecated version: N/A|Class name: DownloadResponse
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: token
Deprecated version: N/A|Method or attribute name: token
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Class name: OnDownloadCompleteResponse
Deprecated version: N/A|Class name: OnDownloadCompleteResponse
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: uri
Deprecated version: N/A|Method or attribute name: uri
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Class name: RequestFile
Deprecated version: N/A|Class name: RequestFile
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: filename
Deprecated version: N/A|Method or attribute name: filename
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: name
Deprecated version: N/A|Method or attribute name: name
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: uri
Deprecated version: N/A|Method or attribute name: uri
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: type
Deprecated version: N/A|Method or attribute name: type
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Class name: RequestData
Deprecated version: N/A|Class name: RequestData
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: name
Deprecated version: N/A|Method or attribute name: name
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: value
Deprecated version: N/A|Method or attribute name: value
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Class name: UploadRequestOptions
Deprecated version: N/A|Class name: UploadRequestOptions
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: url
Deprecated version: N/A|Method or attribute name: url
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: data
Deprecated version: N/A|Method or attribute name: data
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: files
Deprecated version: N/A|Method or attribute name: files
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: header
Deprecated version: N/A|Method or attribute name: header
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: method
Deprecated version: N/A|Method or attribute name: method
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: success
Deprecated version: N/A|Method or attribute name: success
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: fail
Deprecated version: N/A|Method or attribute name: fail
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: complete
Deprecated version: N/A|Method or attribute name: complete
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Class name: DownloadRequestOptions
Deprecated version: N/A|Class name: DownloadRequestOptions
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: url
Deprecated version: N/A|Method or attribute name: url
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: filename
Deprecated version: N/A|Method or attribute name: filename
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: header
Deprecated version: N/A|Method or attribute name: header
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: description
Deprecated version: N/A|Method or attribute name: description
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: success
Deprecated version: N/A|Method or attribute name: success
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: fail
Deprecated version: N/A|Method or attribute name: fail
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: complete
Deprecated version: N/A|Method or attribute name: complete
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Class name: OnDownloadCompleteOptions
Deprecated version: N/A|Class name: OnDownloadCompleteOptions
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: token
Deprecated version: N/A|Method or attribute name: token
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: success
Deprecated version: N/A|Method or attribute name: success
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: fail
Deprecated version: N/A|Method or attribute name: fail
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: complete
Deprecated version: N/A|Method or attribute name: complete
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Class name: Request
Deprecated version: N/A|Class name: Request
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: upload
Deprecated version: N/A|Method or attribute name: upload
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: download
Deprecated version: N/A|Method or attribute name: download
Deprecated version: 9|@system.request.d.ts| +|Deprecated version changed|Method or attribute name: onDownloadComplete
Deprecated version: N/A|Method or attribute name: onDownloadComplete
Deprecated version: 9|@system.request.d.ts| +|Initial version changed|Class name: inputMethod
Initial version: |Class name: inputMethod
Initial version: 6|@ohos.inputmethod.d.ts| +|Initial version changed|Method or attribute name: getFile
Initial version: 9|Method or attribute name: getFile
Initial version: 8|@ohos.wallpaper.d.ts| +|Initial version changed|Method or attribute name: getFile
Initial version: 9|Method or attribute name: getFile
Initial version: 8|@ohos.wallpaper.d.ts| +|Initial version changed|Method or attribute name: on_colorChange
Initial version: 7|Method or attribute name: on_colorChange
Initial version: 9|@ohos.wallpaper.d.ts| +|Initial version changed|Method or attribute name: off_colorChange
Initial version: 7|Method or attribute name: off_colorChange
Initial version: 9|@ohos.wallpaper.d.ts| +|Error code added||Method or attribute name: setProperty
Error code: 401|@ohos.pasteboard.d.ts| +|Error code added||Method or attribute name: on_update
Error code: 401|@ohos.pasteboard.d.ts| +|Error code added||Method or attribute name: off_update
Error code: 401|@ohos.pasteboard.d.ts| +|Permission added|Method or attribute name: switchInputMethod
Permission: N/A|Method or attribute name: switchInputMethod
Permission: ohos.permission.CONNECT_IME_ABILITY|@ohos.inputmethod.d.ts| +|Permission added|Method or attribute name: switchInputMethod
Permission: N/A|Method or attribute name: switchInputMethod
Permission: ohos.permission.CONNECT_IME_ABILITY|@ohos.inputmethod.d.ts| +|Permission added|Method or attribute name: showSoftKeyboard
Permission: N/A|Method or attribute name: showSoftKeyboard
Permission: ohos.permission.CONNECT_IME_ABILITY|@ohos.inputmethod.d.ts| +|Permission added|Method or attribute name: showSoftKeyboard
Permission: N/A|Method or attribute name: showSoftKeyboard
Permission: ohos.permission.CONNECT_IME_ABILITY|@ohos.inputmethod.d.ts| +|Permission added|Method or attribute name: hideSoftKeyboard
Permission: N/A|Method or attribute name: hideSoftKeyboard
Permission: ohos.permission.CONNECT_IME_ABILITY|@ohos.inputmethod.d.ts| +|Permission added|Method or attribute name: hideSoftKeyboard
Permission: N/A|Method or attribute name: hideSoftKeyboard
Permission: ohos.permission.CONNECT_IME_ABILITY|@ohos.inputmethod.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-msdp.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-msdp.md new file mode 100644 index 0000000000000000000000000000000000000000..f4930f7edda81964bd8aead705e9688f13c961c7 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-msdp.md @@ -0,0 +1,15 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.stationary
Class name: stationary|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: ActivityResponse|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: ActivityResponse
Method or attribute name: state|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: ActivityEvent|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: ActivityEvent
Method or attribute name: ENTER|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: ActivityEvent
Method or attribute name: EXIT|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: ActivityEvent
Method or attribute name: ENTER_EXIT|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: ActivityState|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: ActivityState
Method or attribute name: ENTER|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: ActivityState
Method or attribute name: EXIT|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: stationary
Method or attribute name: on|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: stationary
Method or attribute name: once|@ohos.stationary.d.ts| +|Added||Module name: ohos.stationary
Class name: stationary
Method or attribute name: off|@ohos.stationary.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-multi-modal-input.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-multi-modal-input.md new file mode 100644 index 0000000000000000000000000000000000000000..0dc8cdc6b3873ba0a88cfed57bae55b327d54449 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-multi-modal-input.md @@ -0,0 +1,17 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added|Module name: ohos.multimodalInput.inputDevice
Class name: inputDevice
Method or attribute name: getDeviceList|@ohos.multimodalInput.inputDevice.d.ts| +|Added|Module name: ohos.multimodalInput.inputDevice
Class name: inputDevice
Method or attribute name: getDeviceList|@ohos.multimodalInput.inputDevice.d.ts| +|Added|Module name: ohos.multimodalInput.inputDevice
Class name: inputDevice
Method or attribute name: getDeviceInfo|@ohos.multimodalInput.inputDevice.d.ts| +|Added|Module name: ohos.multimodalInput.inputDevice
Class name: inputDevice
Method or attribute name: getDeviceInfo|@ohos.multimodalInput.inputDevice.d.ts| +|Added||Method or attribute name: supportKeys
Function name: function supportKeys(deviceId: number, keys: Array, callback: AsyncCallback>): void;|@ohos.multimodalInput.inputDevice.d.ts| +|Added|Module name: ohos.multimodalInput.inputDeviceCooperate
Class name: EventMsg|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|Added|Module name: ohos.multimodalInput.inputDeviceCooperate
Class name: EventMsg
Method or attribute name: MSG_COOPERATE_INFO_START|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|Added|Module name: ohos.multimodalInput.inputDeviceCooperate
Class name: EventMsg
Method or attribute name: MSG_COOPERATE_INFO_SUCCESS|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|Added|Module name: ohos.multimodalInput.inputDeviceCooperate
Class name: EventMsg
Method or attribute name: MSG_COOPERATE_INFO_FAIL|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|Added|Module name: ohos.multimodalInput.inputDeviceCooperate
Class name: EventMsg
Method or attribute name: MSG_COOPERATE_STATE_ON|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|Added|Module name: ohos.multimodalInput.inputDeviceCooperate
Class name: EventMsg
Method or attribute name: MSG_COOPERATE_STATE_OFF|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|Deprecated version changed|Method or attribute name: getDeviceIds
Deprecated version: N/A|Method or attribute name: getDeviceIds
Deprecated version: 9
New API: ohos.multimodalInput.inputDevice|@ohos.multimodalInput.inputDevice.d.ts| +|Deprecated version changed|Method or attribute name: getDeviceIds
Deprecated version: N/A|Method or attribute name: getDeviceIds
Deprecated version: 9
New API: ohos.multimodalInput.inputDevice|@ohos.multimodalInput.inputDevice.d.ts| +|Deprecated version changed|Method or attribute name: getDevice
Deprecated version: N/A|Method or attribute name: getDevice
Deprecated version: 9
New API: ohos.multimodalInput.inputDevice|@ohos.multimodalInput.inputDevice.d.ts| +|Deprecated version changed|Method or attribute name: getDevice
Deprecated version: N/A|Method or attribute name: getDevice
Deprecated version: 9
New API: ohos.multimodalInput.inputDevice|@ohos.multimodalInput.inputDevice.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-multimedia.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-multimedia.md new file mode 100644 index 0000000000000000000000000000000000000000..e022fb8f0a13e8e97dee2dbaebfcc2c53504470c --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-multimedia.md @@ -0,0 +1,886 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.multimedia.audio
Class name: audio|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioErrors|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioErrors
Method or attribute name: ERROR_INVALID_PARAM|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioErrors
Method or attribute name: ERROR_NO_MEMORY|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioErrors
Method or attribute name: ERROR_ILLEGAL_STATE|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioErrors
Method or attribute name: ERROR_UNSUPPORTED|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioErrors
Method or attribute name: ERROR_TIMEOUT|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioErrors
Method or attribute name: ERROR_STREAM_LIMIT|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioErrors
Method or attribute name: ERROR_SYSTEM|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: audio
Method or attribute name: DEFAULT_VOLUME_GROUP_ID|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: audio
Method or attribute name: DEFAULT_INTERRUPT_GROUP_ID|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: audio
Method or attribute name: createTonePlayer|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: audio
Method or attribute name: createTonePlayer|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: CommunicationDeviceType|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: CommunicationDeviceType
Method or attribute name: SPEAKER|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: StreamUsage
Method or attribute name: STREAM_USAGE_VOICE_ASSISTANT|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptRequestType|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptRequestType
Method or attribute name: INTERRUPT_REQUEST_TYPE_DEFAULT|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptMode|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptMode
Method or attribute name: SHARE_MODE|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptMode
Method or attribute name: INDEPENDENT_MODE|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: getVolumeManager|@ohos.multimedia.audio.d.ts| +|Added||Method or attribute name: getStreamManager
Function name: getStreamManager(): AudioStreamManager;|@ohos.multimedia.audio.d.ts| +|Added||Method or attribute name: getRoutingManager
Function name: getRoutingManager(): AudioRoutingManager;|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptRequestResultType|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptRequestResultType
Method or attribute name: INTERRUPT_REQUEST_GRANT|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptRequestResultType
Method or attribute name: INTERRUPT_REQUEST_REJECT|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptResult|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptResult
Method or attribute name: requestResult|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: InterruptResult
Method or attribute name: interruptNode|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRoutingManager
Method or attribute name: setCommunicationDevice|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRoutingManager
Method or attribute name: setCommunicationDevice|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRoutingManager
Method or attribute name: isCommunicationDeviceActive|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRoutingManager
Method or attribute name: isCommunicationDeviceActive|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRoutingManager
Method or attribute name: selectInputDevice|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRoutingManager
Method or attribute name: selectInputDevice|@ohos.multimedia.audio.d.ts| +|Added||Method or attribute name: off_audioRendererChange
Function name: off(type: "audioRendererChange"): void;|@ohos.multimedia.audio.d.ts| +|Added||Method or attribute name: off_audioCapturerChange
Function name: off(type: "audioCapturerChange"): void;|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioStreamManager
Method or attribute name: isActive|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioStreamManager
Method or attribute name: isActive|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeManager|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeManager
Method or attribute name: getVolumeGroupInfos|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeManager
Method or attribute name: getVolumeGroupInfos|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeManager
Method or attribute name: getVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeManager
Method or attribute name: getVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeManager
Method or attribute name: on_volumeChange|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: setVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: setVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: getVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: getVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: getMinVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: getMinVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: getMaxVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: getMaxVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: mute|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: mute|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: isMute|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: isMute|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: setRingerMode|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: setRingerMode|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: getRingerMode|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: getRingerMode|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: on_ringerModeChange|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: setMicrophoneMute|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: setMicrophoneMute|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: isMicrophoneMute|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: isMicrophoneMute|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioVolumeGroupManager
Method or attribute name: on_micStateChange|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ConnectType
Method or attribute name: CONNECT_TYPE_LOCAL|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ConnectType
Method or attribute name: CONNECT_TYPE_DISTRIBUTED|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: MicStateChangeEvent|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: MicStateChangeEvent
Method or attribute name: mute|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRenderer
Method or attribute name: getAudioStreamId|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRenderer
Method or attribute name: getAudioStreamId|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRenderer
Method or attribute name: setVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRenderer
Method or attribute name: setVolume|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRenderer
Method or attribute name: on_audioInterrupt|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: SourceType
Method or attribute name: SOURCE_TYPE_VOICE_RECOGNITION|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioCapturer
Method or attribute name: getAudioStreamId|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioCapturer
Method or attribute name: getAudioStreamId|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_0|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_1|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_2|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_3|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_4|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_5|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_6|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_7|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_8|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_9|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_S|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_P|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_A|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_B|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_C|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_DIAL_D|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_SUPERVISORY_DIAL|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_SUPERVISORY_BUSY|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_SUPERVISORY_CONGESTION|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_SUPERVISORY_RADIO_ACK|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_SUPERVISORY_RADIO_NOT_AVAILABLE|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_SUPERVISORY_CALL_WAITING|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_SUPERVISORY_RINGTONE|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_PROPRIETARY_BEEP|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_PROPRIETARY_ACK|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_PROPRIETARY_PROMPT|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: ToneType
Method or attribute name: TONE_TYPE_COMMON_PROPRIETARY_DOUBLE_BEEP|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: TonePlayer|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: TonePlayer
Method or attribute name: load|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: TonePlayer
Method or attribute name: load|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: TonePlayer
Method or attribute name: start|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: TonePlayer
Method or attribute name: start|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: TonePlayer
Method or attribute name: stop|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: TonePlayer
Method or attribute name: stop|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: TonePlayer
Method or attribute name: release|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: TonePlayer
Method or attribute name: release|@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: createAVSession|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: createAVSession|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: getAllSessionDescriptors|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: getAllSessionDescriptors|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: createController|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: createController|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: castAudio|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: castAudio|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: SessionToken|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: SessionToken
Method or attribute name: sessionId|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: SessionToken
Method or attribute name: pid|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: SessionToken
Method or attribute name: uid|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: on_sessionCreate|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: on_sessionDestroy|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: on_topSessionChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: off_sessionCreate|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: off_sessionDestroy|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: off_topSessionChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: on_sessionServiceDie|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: off_sessionServiceDie|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: sendSystemAVKeyEvent|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: sendSystemAVKeyEvent|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: sendSystemControlCommand|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: avSession
Method or attribute name: sendSystemControlCommand|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: sessionId|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: setAVMetadata|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: setAVMetadata|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: setAVPlaybackState|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: setAVPlaybackState|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: setLaunchAbility|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: setLaunchAbility|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: getController|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: getController|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: getOutputDevice|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: getOutputDevice|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_play|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_pause|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_stop|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_playNext|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_playPrevious|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_fastForward|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_rewind|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_play|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_pause|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_stop|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_playNext|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_playPrevious|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_fastForward|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_rewind|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_seek|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_seek|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_setSpeed|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_setSpeed|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_setLoopMode|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_setLoopMode|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_toggleFavorite|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_toggleFavorite|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_handleKeyEvent|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_handleKeyEvent|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: on_outputDeviceChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: off_outputDeviceChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: activate|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: activate|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: deactivate|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: deactivate|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: destroy|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSession
Method or attribute name: destroy|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: assetId|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: title|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: artist|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: author|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: album|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: writer|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: composer|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: duration|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: mediaImage|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: publishDate|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: subtitle|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: description|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: lyric|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: previousAssetId|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVMetadata
Method or attribute name: nextAssetId|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVPlaybackState|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVPlaybackState
Method or attribute name: state|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVPlaybackState
Method or attribute name: speed|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVPlaybackState
Method or attribute name: position|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVPlaybackState
Method or attribute name: bufferedTime|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVPlaybackState
Method or attribute name: loopMode|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVPlaybackState
Method or attribute name: isFavorite|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackPosition|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackPosition
Method or attribute name: elapsedTime|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackPosition
Method or attribute name: updateTime|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: OutputDeviceInfo|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: OutputDeviceInfo
Method or attribute name: isRemote|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: OutputDeviceInfo
Method or attribute name: audioDeviceId|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: OutputDeviceInfo
Method or attribute name: deviceName|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: LoopMode|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: LoopMode
Method or attribute name: LOOP_MODE_SEQUENCE|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: LoopMode
Method or attribute name: LOOP_MODE_SINGLE|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: LoopMode
Method or attribute name: LOOP_MODE_LIST|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: LoopMode
Method or attribute name: LOOP_MODE_SHUFFLE|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackState|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackState
Method or attribute name: PLAYBACK_STATE_INITIAL|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackState
Method or attribute name: PLAYBACK_STATE_PREPARE|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackState
Method or attribute name: PLAYBACK_STATE_PLAY|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackState
Method or attribute name: PLAYBACK_STATE_PAUSE|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackState
Method or attribute name: PLAYBACK_STATE_FAST_FORWARD|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackState
Method or attribute name: PLAYBACK_STATE_REWIND|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: PlaybackState
Method or attribute name: PLAYBACK_STATE_STOP|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionDescriptor|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionDescriptor
Method or attribute name: sessionId|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionDescriptor
Method or attribute name: type|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionDescriptor
Method or attribute name: sessionTag|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionDescriptor
Method or attribute name: elementName|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionDescriptor
Method or attribute name: isActive|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionDescriptor
Method or attribute name: isTopSession|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionDescriptor
Method or attribute name: outputDevice|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: sessionId|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getAVPlaybackState|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getAVPlaybackState|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getAVMetadata|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getAVMetadata|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getOutputDevice|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getOutputDevice|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: sendAVKeyEvent|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: sendAVKeyEvent|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getLaunchAbility|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getLaunchAbility|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getRealPlaybackPositionSync|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: isActive|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: isActive|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: destroy|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: destroy|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getValidCommands|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: getValidCommands|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: sendControlCommand|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: sendControlCommand|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: on_metadataChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: off_metadataChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: on_playbackStateChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: off_playbackStateChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: on_sessionDestroy|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: off_sessionDestroy|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: on_activeStateChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: off_activeStateChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: on_validCommandChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: off_validCommandChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: on_outputDeviceChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionController
Method or attribute name: off_outputDeviceChange|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVControlCommand|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVControlCommand
Method or attribute name: command|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVControlCommand
Method or attribute name: parameter|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionErrorCode|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionErrorCode
Method or attribute name: ERR_CODE_SERVICE_EXCEPTION|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionErrorCode
Method or attribute name: ERR_CODE_SESSION_NOT_EXIST|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionErrorCode
Method or attribute name: ERR_CODE_CONTROLLER_NOT_EXIST|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionErrorCode
Method or attribute name: ERR_CODE_REMOTE_CONNECTION_ERR|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionErrorCode
Method or attribute name: ERR_CODE_COMMAND_INVALID|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionErrorCode
Method or attribute name: ERR_CODE_SESSION_INACTIVE|@ohos.multimedia.avsession.d.ts| +|Added||Module name: ohos.multimedia.avsession
Class name: AVSessionErrorCode
Method or attribute name: ERR_CODE_MESSAGE_OVERLOAD|@ohos.multimedia.avsession.d.ts| +|Added||Method or attribute name: CAMERA_STATUS_DISAPPEAR
Function name: CAMERA_STATUS_DISAPPEAR = 1|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_STATUS_AVAILABLE
Function name: CAMERA_STATUS_AVAILABLE = 2|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_STATUS_UNAVAILABLE
Function name: CAMERA_STATUS_UNAVAILABLE = 3|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Profile|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Profile
Method or attribute name: format|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Profile
Method or attribute name: size|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: FrameRateRange|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: FrameRateRange
Method or attribute name: min|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: FrameRateRange
Method or attribute name: max|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: VideoProfile|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: VideoProfile
Method or attribute name: frameRateRange|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraOutputCapability|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraOutputCapability
Method or attribute name: previewProfiles|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraOutputCapability
Method or attribute name: photoProfiles|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraOutputCapability
Method or attribute name: videoProfiles|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraOutputCapability
Method or attribute name: supportedMetadataObjectTypes|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: getSupportedCameras|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: getSupportedCameras|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: getSupportedOutputCapability|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: getSupportedOutputCapability|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: isCameraMuted|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: isCameraMuteSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: muteCamera|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: createCameraInput
Function name: createCameraInput(camera: CameraDevice, callback: AsyncCallback): void;|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: createCameraInput
Function name: createCameraInput(camera: CameraDevice): Promise;|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createPreviewOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createPreviewOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createPhotoOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createPhotoOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createVideoOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createVideoOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createMetadataOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createMetadataOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createCaptureSession|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: createCaptureSession|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: on_cameraMute|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: camera
Function name: camera: CameraDevice;|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_POSITION_BACK
Function name: CAMERA_POSITION_BACK = 1|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_POSITION_FRONT
Function name: CAMERA_POSITION_FRONT = 2|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_TYPE_WIDE_ANGLE
Function name: CAMERA_TYPE_WIDE_ANGLE = 1|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_TYPE_ULTRA_WIDE
Function name: CAMERA_TYPE_ULTRA_WIDE = 2|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_TYPE_TELEPHOTO
Function name: CAMERA_TYPE_TELEPHOTO = 3|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_TYPE_TRUE_DEPTH
Function name: CAMERA_TYPE_TRUE_DEPTH = 4|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_CONNECTION_USB_PLUGIN
Function name: CAMERA_CONNECTION_USB_PLUGIN = 1|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: CAMERA_CONNECTION_REMOTE
Function name: CAMERA_CONNECTION_REMOTE = 2|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraDevice|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraDevice
Method or attribute name: cameraId|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraDevice
Method or attribute name: cameraPosition|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraDevice
Method or attribute name: cameraType|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraDevice
Method or attribute name: connectionType|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Point|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Point
Method or attribute name: x|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Point
Method or attribute name: y|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: open|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: open|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: close|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: close|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: on_error
Function name: on(type: 'error', camera: CameraDevice, callback: ErrorCallback): void;|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInputErrorCode
Method or attribute name: ERROR_NO_PERMISSION|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInputErrorCode
Method or attribute name: ERROR_DEVICE_PREEMPTED|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInputErrorCode
Method or attribute name: ERROR_DEVICE_DISCONNECTED|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInputErrorCode
Method or attribute name: ERROR_DEVICE_IN_USE|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInputErrorCode
Method or attribute name: ERROR_DRIVER_ERROR|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraFormat|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraFormat
Method or attribute name: CAMERA_FORMAT_RGBA_8888|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraFormat
Method or attribute name: CAMERA_FORMAT_YUV_420_SP|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraFormat
Method or attribute name: CAMERA_FORMAT_JPEG|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: FLASH_MODE_OPEN
Function name: FLASH_MODE_OPEN = 1|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: FLASH_MODE_AUTO
Function name: FLASH_MODE_AUTO = 2|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: FLASH_MODE_ALWAYS_OPEN
Function name: FLASH_MODE_ALWAYS_OPEN = 3|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: ExposureMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: ExposureMode
Method or attribute name: EXPOSURE_MODE_LOCKED|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: ExposureMode
Method or attribute name: EXPOSURE_MODE_AUTO|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: ExposureMode
Method or attribute name: EXPOSURE_MODE_CONTINUOUS_AUTO|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: FOCUS_MODE_CONTINUOUS_AUTO
Function name: FOCUS_MODE_CONTINUOUS_AUTO = 1|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: FOCUS_MODE_AUTO
Function name: FOCUS_MODE_AUTO = 2|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: FOCUS_MODE_LOCKED
Function name: FOCUS_MODE_LOCKED = 3|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: FOCUS_STATE_FOCUSED
Function name: FOCUS_STATE_FOCUSED = 1|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: FOCUS_STATE_UNFOCUSED
Function name: FOCUS_STATE_UNFOCUSED = 2|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: VideoStabilizationMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: VideoStabilizationMode
Method or attribute name: OFF|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: VideoStabilizationMode
Method or attribute name: LOW|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: VideoStabilizationMode
Method or attribute name: MIDDLE|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: VideoStabilizationMode
Method or attribute name: HIGH|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: VideoStabilizationMode
Method or attribute name: AUTO|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: addOutput
Function name: addOutput(cameraOutput: CameraOutput, callback: AsyncCallback): void;|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: addOutput
Function name: addOutput(cameraOutput: CameraOutput): Promise;|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: removeOutput
Function name: removeOutput(cameraOutput: CameraOutput, callback: AsyncCallback): void;|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: removeOutput
Function name: removeOutput(cameraOutput: CameraOutput): Promise;|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: hasFlash|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: hasFlash|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: isFlashModeSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: isFlashModeSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getFlashMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getFlashMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setFlashMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setFlashMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: isExposureModeSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: isExposureModeSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getExposureMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getExposureMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setExposureMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setExposureMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getMeteringPoint|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getMeteringPoint|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setMeteringPoint|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setMeteringPoint|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getExposureBiasRange|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getExposureBiasRange|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setExposureBias|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setExposureBias|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getExposureValue|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getExposureValue|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: isFocusModeSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: isFocusModeSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getFocusMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getFocusMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setFocusMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setFocusMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setFocusPoint|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setFocusPoint|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getFocusPoint|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getFocusPoint|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getFocalLength|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getFocalLength|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getZoomRatioRange|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getZoomRatioRange|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getZoomRatio|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getZoomRatio|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setZoomRatio|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setZoomRatio|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: isVideoStabilizationModeSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: isVideoStabilizationModeSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getActiveVideoStabilizationMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: getActiveVideoStabilizationMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setVideoStabilizationMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: setVideoStabilizationMode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSession
Method or attribute name: on_focusStateChange|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSessionErrorCode
Method or attribute name: ERROR_INSUFFICIENT_RESOURCES|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CaptureSessionErrorCode
Method or attribute name: ERROR_TIMEOUT|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraOutput
Method or attribute name: release|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraOutput
Method or attribute name: release|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PreviewOutput
Method or attribute name: start|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PreviewOutput
Method or attribute name: start|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PreviewOutput
Method or attribute name: stop|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PreviewOutput
Method or attribute name: stop|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Location|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Location
Method or attribute name: latitude|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Location
Method or attribute name: longitude|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Location
Method or attribute name: altitude|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: QUALITY_LEVEL_MEDIUM
Function name: QUALITY_LEVEL_MEDIUM = 1|@ohos.multimedia.camera.d.ts| +|Added||Method or attribute name: QUALITY_LEVEL_LOW
Function name: QUALITY_LEVEL_LOW = 2|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PhotoCaptureSetting
Method or attribute name: location|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PhotoCaptureSetting
Method or attribute name: mirror|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PhotoOutput
Method or attribute name: isMirrorSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PhotoOutput
Method or attribute name: isMirrorSupported|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PhotoOutputErrorCode
Method or attribute name: ERROR_DRIVER_ERROR|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PhotoOutputErrorCode
Method or attribute name: ERROR_INSUFFICIENT_RESOURCES|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PhotoOutputErrorCode
Method or attribute name: ERROR_TIMEOUT|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: VideoOutputErrorCode
Method or attribute name: ERROR_DRIVER_ERROR|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataObjectType|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataObjectType
Method or attribute name: FACE_DETECTION|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Rect|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Rect
Method or attribute name: topLeftX|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Rect
Method or attribute name: topLeftY|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Rect
Method or attribute name: width|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: Rect
Method or attribute name: height|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataObject|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataObject
Method or attribute name: getType|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataObject
Method or attribute name: getType|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataObject
Method or attribute name: getTimestamp|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataObject
Method or attribute name: getTimestamp|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataObject
Method or attribute name: getBoundingBox|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataObject
Method or attribute name: getBoundingBox|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataFaceObject|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutput|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutput
Method or attribute name: start|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutput
Method or attribute name: start|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutput
Method or attribute name: stop|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutput
Method or attribute name: stop|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutput
Method or attribute name: on_metadataObjectsAvailable|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutput
Method or attribute name: on_error|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutputErrorCode|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutputErrorCode
Method or attribute name: ERROR_UNKNOWN|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutputErrorCode
Method or attribute name: ERROR_INSUFFICIENT_RESOURCES|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutputError|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: MetadataOutputError
Method or attribute name: code|@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: image|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PixelMapFormat
Method or attribute name: RGB_888|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PixelMapFormat
Method or attribute name: ALPHA_8|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PixelMapFormat
Method or attribute name: RGBA_F16|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PixelMapFormat
Method or attribute name: NV21|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PixelMapFormat
Method or attribute name: NV12|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PropertyKey
Method or attribute name: DATE_TIME_ORIGINAL|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PropertyKey
Method or attribute name: EXPOSURE_TIME|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PropertyKey
Method or attribute name: SCENE_TYPE|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PropertyKey
Method or attribute name: ISO_SPEED_RATINGS|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PropertyKey
Method or attribute name: F_NUMBER|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageInfo
Method or attribute name: density|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: PackingOption
Method or attribute name: bufferSize|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: DecodingOptions
Method or attribute name: fitDensity|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: image
Method or attribute name: createImageCreator|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator
Method or attribute name: capacity|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator
Method or attribute name: format|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator
Method or attribute name: dequeueImage|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator
Method or attribute name: dequeueImage|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator
Method or attribute name: queueImage|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator
Method or attribute name: queueImage|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator
Method or attribute name: on_imageRelease|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator
Method or attribute name: release|@ohos.multimedia.image.d.ts| +|Added||Module name: ohos.multimedia.image
Class name: ImageCreator
Method or attribute name: release|@ohos.multimedia.image.d.ts| +|Added||Method or attribute name: audioSourceType
Function name: audioSourceType?: AudioSourceType;|@ohos.multimedia.media.d.ts| +|Deleted||Module name: ohos.multimedia.audio
Class name: FocusType||@ohos.multimedia.audio.d.ts| +|Deleted||Module name: ohos.multimedia.audio
Class name: FocusType
Method or attribute name: FOCUS_TYPE_RECORDING||@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: getVolumeGroups||@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: getVolumeGroups||@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: getGroupManager||@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: getGroupManager||@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: requestIndependentInterrupt||@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: requestIndependentInterrupt||@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: abandonIndependentInterrupt||@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: abandonIndependentInterrupt||@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: on_independentInterrupt||@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioManager
Method or attribute name: off_independentInterrupt||@ohos.multimedia.audio.d.ts| +|Deleted||Module name: ohos.multimedia.audio
Class name: AudioGroupManager||@ohos.multimedia.audio.d.ts| +|Deleted||Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: setVolume||@ohos.multimedia.audio.d.ts| +|Deleted||Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: setVolume||@ohos.multimedia.audio.d.ts| +|Deleted||Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: getVolume||@ohos.multimedia.audio.d.ts| +|Deleted||Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: getVolume||@ohos.multimedia.audio.d.ts| +|Deleted||Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: getMinVolume||@ohos.multimedia.audio.d.ts| +|Deleted||Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: getMinVolume||@ohos.multimedia.audio.d.ts| +|Deleted||Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: getMaxVolume||@ohos.multimedia.audio.d.ts| +|Deleted||Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: getMaxVolume||@ohos.multimedia.audio.d.ts| +|Deleted||Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: mute||@ohos.multimedia.audio.d.ts| +|Deleted||Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: mute||@ohos.multimedia.audio.d.ts| +|Deleted||Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: isMute||@ohos.multimedia.audio.d.ts| +|Deleted||Module name: ohos.multimedia.audio
Class name: AudioGroupManager
Method or attribute name: isMute||@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.audio
Class name: AudioRenderer
Method or attribute name: on_interrupt||@ohos.multimedia.audio.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: getCameras||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraManager
Method or attribute name: getCameras||@ohos.multimedia.camera.d.ts| +|Deleted||Module name: ohos.multimedia.camera
Class name: Camera||@ohos.multimedia.camera.d.ts| +|Deleted||Module name: ohos.multimedia.camera
Class name: Camera
Method or attribute name: cameraId||@ohos.multimedia.camera.d.ts| +|Deleted||Module name: ohos.multimedia.camera
Class name: Camera
Method or attribute name: cameraPosition||@ohos.multimedia.camera.d.ts| +|Deleted||Module name: ohos.multimedia.camera
Class name: Camera
Method or attribute name: cameraType||@ohos.multimedia.camera.d.ts| +|Deleted||Module name: ohos.multimedia.camera
Class name: Camera
Method or attribute name: connectionType||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getCameraId||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getCameraId||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: hasFlash||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: hasFlash||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: isFlashModeSupported||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: isFlashModeSupported||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getFlashMode||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getFlashMode||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: setFlashMode||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: setFlashMode||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: isFocusModeSupported||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: isFocusModeSupported||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getFocusMode||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getFocusMode||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: setFocusMode||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: setFocusMode||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getZoomRatioRange||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getZoomRatioRange||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getZoomRatio||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: getZoomRatio||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: setZoomRatio||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: setZoomRatio||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: CameraInput
Method or attribute name: on_focusStateChange||@ohos.multimedia.camera.d.ts| +|Deleted||Module name: ohos.multimedia.camera
Class name: camera
Method or attribute name: createCaptureSession||@ohos.multimedia.camera.d.ts| +|Deleted||Module name: ohos.multimedia.camera
Class name: camera
Method or attribute name: createCaptureSession||@ohos.multimedia.camera.d.ts| +|Deleted||Module name: ohos.multimedia.camera
Class name: camera
Method or attribute name: createPreviewOutput||@ohos.multimedia.camera.d.ts| +|Deleted||Module name: ohos.multimedia.camera
Class name: camera
Method or attribute name: createPreviewOutput||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PreviewOutput
Method or attribute name: release||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PreviewOutput
Method or attribute name: release||@ohos.multimedia.camera.d.ts| +|Deleted||Module name: ohos.multimedia.camera
Class name: camera
Method or attribute name: createPhotoOutput||@ohos.multimedia.camera.d.ts| +|Deleted||Module name: ohos.multimedia.camera
Class name: camera
Method or attribute name: createPhotoOutput||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PhotoOutput
Method or attribute name: release||@ohos.multimedia.camera.d.ts| +|Added||Module name: ohos.multimedia.camera
Class name: PhotoOutput
Method or attribute name: release||@ohos.multimedia.camera.d.ts| +|Deleted||Module name: ohos.multimedia.camera
Class name: camera
Method or attribute name: createVideoOutput||@ohos.multimedia.camera.d.ts| +|Deleted||Module name: ohos.multimedia.camera
Class name: camera
Method or attribute name: createVideoOutput||@ohos.multimedia.camera.d.ts| +|Deleted||Module name: ohos.multimedia.camera
Class name: VideoOutput
Method or attribute name: release||@ohos.multimedia.camera.d.ts| +|Deleted||Module name: ohos.multimedia.camera
Class name: VideoOutput
Method or attribute name: release||@ohos.multimedia.camera.d.ts| +|Deleted||Module name: ohos.multimedia.media
Class name: VideoPlayer
Method or attribute name: selectBitrate||@ohos.multimedia.media.d.ts| +|Deleted||Module name: ohos.multimedia.media
Class name: VideoPlayer
Method or attribute name: selectBitrate||@ohos.multimedia.media.d.ts| +|Deleted||Module name: ohos.multimedia.media
Class name: VideoPlayer
Method or attribute name: on_availableBitratesCollect||@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: createVideoRecorder
Access level: public API|Method or attribute name: createVideoRecorder
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: createVideoRecorder
Access level: public API|Method or attribute name: createVideoRecorder
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: VideoRecorder
Access level: public API|Class name: VideoRecorder
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: prepare
Access level: public API|Method or attribute name: prepare
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: prepare
Access level: public API|Method or attribute name: prepare
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: getInputSurface
Access level: public API|Method or attribute name: getInputSurface
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: getInputSurface
Access level: public API|Method or attribute name: getInputSurface
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: start
Access level: public API|Method or attribute name: start
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: start
Access level: public API|Method or attribute name: start
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: pause
Access level: public API|Method or attribute name: pause
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: pause
Access level: public API|Method or attribute name: pause
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: resume
Access level: public API|Method or attribute name: resume
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: resume
Access level: public API|Method or attribute name: resume
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: stop
Access level: public API|Method or attribute name: stop
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: stop
Access level: public API|Method or attribute name: stop
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: release
Access level: public API|Method or attribute name: release
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: release
Access level: public API|Method or attribute name: release
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: reset
Access level: public API|Method or attribute name: reset
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: reset
Access level: public API|Method or attribute name: reset
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: on_error
Access level: public API|Method or attribute name: on_error
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: state
Access level: public API|Method or attribute name: state
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: VideoRecorderProfile
Access level: public API|Class name: VideoRecorderProfile
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: audioBitrate
Access level: public API|Method or attribute name: audioBitrate
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: audioChannels
Access level: public API|Method or attribute name: audioChannels
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: audioCodec
Access level: public API|Method or attribute name: audioCodec
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: audioSampleRate
Access level: public API|Method or attribute name: audioSampleRate
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: fileFormat
Access level: public API|Method or attribute name: fileFormat
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoBitrate
Access level: public API|Method or attribute name: videoBitrate
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoCodec
Access level: public API|Method or attribute name: videoCodec
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoFrameWidth
Access level: public API|Method or attribute name: videoFrameWidth
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoFrameHeight
Access level: public API|Method or attribute name: videoFrameHeight
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoFrameRate
Access level: public API|Method or attribute name: videoFrameRate
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: AudioSourceType
Access level: public API|Class name: AudioSourceType
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: AUDIO_SOURCE_TYPE_DEFAULT
Access level: public API|Method or attribute name: AUDIO_SOURCE_TYPE_DEFAULT
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: AUDIO_SOURCE_TYPE_MIC
Access level: public API|Method or attribute name: AUDIO_SOURCE_TYPE_MIC
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: VideoSourceType
Access level: public API|Class name: VideoSourceType
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: VIDEO_SOURCE_TYPE_SURFACE_YUV
Access level: public API|Method or attribute name: VIDEO_SOURCE_TYPE_SURFACE_YUV
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: VIDEO_SOURCE_TYPE_SURFACE_ES
Access level: public API|Method or attribute name: VIDEO_SOURCE_TYPE_SURFACE_ES
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: VideoRecorderConfig
Access level: public API|Class name: VideoRecorderConfig
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoSourceType
Access level: public API|Method or attribute name: videoSourceType
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: profile
Access level: public API|Method or attribute name: profile
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: url
Access level: public API|Method or attribute name: url
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: rotation
Access level: public API|Method or attribute name: rotation
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: location
Access level: public API|Method or attribute name: location
Access level: system API|@ohos.multimedia.media.d.ts| +|Deprecated version changed|Class name: ActiveDeviceType
Deprecated version: N/A|Class name: ActiveDeviceType
Deprecated version: 9
New API: ohos.multimedia.audio.CommunicationDeviceType |@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: SPEAKER
Deprecated version: N/A|Method or attribute name: SPEAKER
Deprecated version: 9
New API: ohos.multimedia.audio.CommunicationDeviceType.SPEAKER |@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: BLUETOOTH_SCO
Deprecated version: N/A|Method or attribute name: BLUETOOTH_SCO
Deprecated version: 9
New API: ohos.multimedia.audio.CommunicationDeviceType |@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Class name: InterruptActionType
Deprecated version: N/A|Class name: InterruptActionType
Deprecated version: 9|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_ACTIVATED
Deprecated version: N/A|Method or attribute name: TYPE_ACTIVATED
Deprecated version: 9|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_INTERRUPT
Deprecated version: N/A|Method or attribute name: TYPE_INTERRUPT
Deprecated version: 9|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: setVolume
Deprecated version: N/A|Method or attribute name: setVolume
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: setVolume
Deprecated version: N/A|Method or attribute name: setVolume
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getVolume
Deprecated version: N/A|Method or attribute name: getVolume
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getVolume
Deprecated version: N/A|Method or attribute name: getVolume
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getMinVolume
Deprecated version: N/A|Method or attribute name: getMinVolume
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getMinVolume
Deprecated version: N/A|Method or attribute name: getMinVolume
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getMaxVolume
Deprecated version: N/A|Method or attribute name: getMaxVolume
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getMaxVolume
Deprecated version: N/A|Method or attribute name: getMaxVolume
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getDevices
Deprecated version: N/A|Method or attribute name: getDevices
Deprecated version: 9
New API: ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getDevices
Deprecated version: N/A|Method or attribute name: getDevices
Deprecated version: 9
New API: ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: mute
Deprecated version: N/A|Method or attribute name: mute
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: mute
Deprecated version: N/A|Method or attribute name: mute
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: isMute
Deprecated version: N/A|Method or attribute name: isMute
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: isMute
Deprecated version: N/A|Method or attribute name: isMute
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: isActive
Deprecated version: N/A|Method or attribute name: isActive
Deprecated version: 9
New API: ohos.multimedia.audio.AudioStreamManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: isActive
Deprecated version: N/A|Method or attribute name: isActive
Deprecated version: 9
New API: ohos.multimedia.audio.AudioStreamManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: setMicrophoneMute
Deprecated version: N/A|Method or attribute name: setMicrophoneMute
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: setMicrophoneMute
Deprecated version: N/A|Method or attribute name: setMicrophoneMute
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: isMicrophoneMute
Deprecated version: N/A|Method or attribute name: isMicrophoneMute
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: isMicrophoneMute
Deprecated version: N/A|Method or attribute name: isMicrophoneMute
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: setRingerMode
Deprecated version: N/A|Method or attribute name: setRingerMode
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: setRingerMode
Deprecated version: N/A|Method or attribute name: setRingerMode
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getRingerMode
Deprecated version: N/A|Method or attribute name: getRingerMode
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: getRingerMode
Deprecated version: N/A|Method or attribute name: getRingerMode
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: setDeviceActive
Deprecated version: N/A|Method or attribute name: setDeviceActive
Deprecated version: 9
New API: ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: setDeviceActive
Deprecated version: N/A|Method or attribute name: setDeviceActive
Deprecated version: 9
New API: ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: isDeviceActive
Deprecated version: N/A|Method or attribute name: isDeviceActive
Deprecated version: 9
New API: ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: isDeviceActive
Deprecated version: N/A|Method or attribute name: isDeviceActive
Deprecated version: 9
New API: ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: on_volumeChange
Deprecated version: N/A|Method or attribute name: on_volumeChange
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: on_ringerModeChange
Deprecated version: N/A|Method or attribute name: on_ringerModeChange
Deprecated version: 9
New API: ohos.multimedia.audio.AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: on_deviceChange
Deprecated version: N/A|Method or attribute name: on_deviceChange
Deprecated version: 9
New API: ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: off_deviceChange
Deprecated version: N/A|Method or attribute name: off_deviceChange
Deprecated version: 9
New API: ohos.multimedia.audio.AudioRoutingManager|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Class name: InterruptAction
Deprecated version: N/A|Class name: InterruptAction
Deprecated version: 9
New API: ohos.multimedia.audio.InterruptEvent |@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: actionType
Deprecated version: N/A|Method or attribute name: actionType
Deprecated version: 9
New API: ohos.multimedia.audio.InterruptEvent |@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: type
Deprecated version: N/A|Method or attribute name: type
Deprecated version: 9
New API: ohos.multimedia.audio.InterruptEvent |@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: hint
Deprecated version: N/A|Method or attribute name: hint
Deprecated version: 9
New API: ohos.multimedia.audio.InterruptEvent |@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: activated
Deprecated version: N/A|Method or attribute name: activated
Deprecated version: 9
New API: ohos.multimedia.audio.InterruptEvent |@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Class name: AudioInterrupt
Deprecated version: N/A|Class name: AudioInterrupt
Deprecated version: 9|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: streamUsage
Deprecated version: N/A|Method or attribute name: streamUsage
Deprecated version: 9|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: contentType
Deprecated version: N/A|Method or attribute name: contentType
Deprecated version: 9|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Method or attribute name: pauseWhenDucked
Deprecated version: N/A|Method or attribute name: pauseWhenDucked
Deprecated version: 9|@ohos.multimedia.audio.d.ts| +|Deprecated version changed|Class name: mediaLibrary
Deprecated version: 9|Class name: mediaLibrary
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getMediaLibrary
Deprecated version: 9|Method or attribute name: getMediaLibrary
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getMediaLibrary
Deprecated version: 9|Method or attribute name: getMediaLibrary
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: MediaType
Deprecated version: 9|Class name: MediaType
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: FILE
Deprecated version: 9|Method or attribute name: FILE
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: IMAGE
Deprecated version: 9|Method or attribute name: IMAGE
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: VIDEO
Deprecated version: 9|Method or attribute name: VIDEO
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: AUDIO
Deprecated version: 9|Method or attribute name: AUDIO
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: FileAsset
Deprecated version: 9|Class name: FileAsset
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: id
Deprecated version: 9|Method or attribute name: id
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: uri
Deprecated version: 9|Method or attribute name: uri
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: mimeType
Deprecated version: 9|Method or attribute name: mimeType
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: mediaType
Deprecated version: 9|Method or attribute name: mediaType
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: displayName
Deprecated version: 9|Method or attribute name: displayName
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: title
Deprecated version: 9|Method or attribute name: title
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: relativePath
Deprecated version: 9|Method or attribute name: relativePath
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: parent
Deprecated version: 9|Method or attribute name: parent
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: size
Deprecated version: 9|Method or attribute name: size
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: dateAdded
Deprecated version: 9|Method or attribute name: dateAdded
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: dateModified
Deprecated version: 9|Method or attribute name: dateModified
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: dateTaken
Deprecated version: 9|Method or attribute name: dateTaken
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: artist
Deprecated version: 9|Method or attribute name: artist
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: audioAlbum
Deprecated version: 9|Method or attribute name: audioAlbum
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: width
Deprecated version: 9|Method or attribute name: width
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: height
Deprecated version: 9|Method or attribute name: height
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: orientation
Deprecated version: 9|Method or attribute name: orientation
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: duration
Deprecated version: 9|Method or attribute name: duration
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: albumId
Deprecated version: 9|Method or attribute name: albumId
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: albumUri
Deprecated version: 9|Method or attribute name: albumUri
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: albumName
Deprecated version: 9|Method or attribute name: albumName
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: isDirectory
Deprecated version: 9|Method or attribute name: isDirectory
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: isDirectory
Deprecated version: 9|Method or attribute name: isDirectory
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: commitModify
Deprecated version: 9|Method or attribute name: commitModify
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: commitModify
Deprecated version: 9|Method or attribute name: commitModify
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: open
Deprecated version: 9|Method or attribute name: open
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: open
Deprecated version: 9|Method or attribute name: open
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: close
Deprecated version: 9|Method or attribute name: close
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: close
Deprecated version: 9|Method or attribute name: close
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getThumbnail
Deprecated version: 9|Method or attribute name: getThumbnail
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getThumbnail
Deprecated version: 9|Method or attribute name: getThumbnail
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getThumbnail
Deprecated version: 9|Method or attribute name: getThumbnail
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: favorite
Deprecated version: 9|Method or attribute name: favorite
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: favorite
Deprecated version: 9|Method or attribute name: favorite
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: isFavorite
Deprecated version: 9|Method or attribute name: isFavorite
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: isFavorite
Deprecated version: 9|Method or attribute name: isFavorite
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: trash
Deprecated version: 9|Method or attribute name: trash
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: trash
Deprecated version: 9|Method or attribute name: trash
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: isTrash
Deprecated version: 9|Method or attribute name: isTrash
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: isTrash
Deprecated version: 9|Method or attribute name: isTrash
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: FileKey
Deprecated version: 9|Class name: FileKey
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: ID
Deprecated version: 9|Method or attribute name: ID
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: RELATIVE_PATH
Deprecated version: 9|Method or attribute name: RELATIVE_PATH
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DISPLAY_NAME
Deprecated version: 9|Method or attribute name: DISPLAY_NAME
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: PARENT
Deprecated version: 9|Method or attribute name: PARENT
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: MIME_TYPE
Deprecated version: 9|Method or attribute name: MIME_TYPE
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: MEDIA_TYPE
Deprecated version: 9|Method or attribute name: MEDIA_TYPE
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: SIZE
Deprecated version: 9|Method or attribute name: SIZE
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DATE_ADDED
Deprecated version: 9|Method or attribute name: DATE_ADDED
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DATE_MODIFIED
Deprecated version: 9|Method or attribute name: DATE_MODIFIED
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DATE_TAKEN
Deprecated version: 9|Method or attribute name: DATE_TAKEN
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: TITLE
Deprecated version: 9|Method or attribute name: TITLE
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: ARTIST
Deprecated version: 9|Method or attribute name: ARTIST
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: AUDIOALBUM
Deprecated version: 9|Method or attribute name: AUDIOALBUM
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DURATION
Deprecated version: 9|Method or attribute name: DURATION
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: WIDTH
Deprecated version: 9|Method or attribute name: WIDTH
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: HEIGHT
Deprecated version: 9|Method or attribute name: HEIGHT
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: ORIENTATION
Deprecated version: 9|Method or attribute name: ORIENTATION
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: ALBUM_ID
Deprecated version: 9|Method or attribute name: ALBUM_ID
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: ALBUM_NAME
Deprecated version: 9|Method or attribute name: ALBUM_NAME
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: MediaFetchOptions
Deprecated version: 9|Class name: MediaFetchOptions
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: selections
Deprecated version: 9|Method or attribute name: selections
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: selectionArgs
Deprecated version: 9|Method or attribute name: selectionArgs
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: order
Deprecated version: 9|Method or attribute name: order
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: uri
Deprecated version: 9|Method or attribute name: uri
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: networkId
Deprecated version: 9|Method or attribute name: networkId
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: extendArgs
Deprecated version: 9|Method or attribute name: extendArgs
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: FetchFileResult
Deprecated version: 9|Class name: FetchFileResult
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getCount
Deprecated version: 9|Method or attribute name: getCount
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: isAfterLast
Deprecated version: 9|Method or attribute name: isAfterLast
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: close
Deprecated version: 9|Method or attribute name: close
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getFirstObject
Deprecated version: 9|Method or attribute name: getFirstObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getFirstObject
Deprecated version: 9|Method or attribute name: getFirstObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getNextObject
Deprecated version: 9|Method or attribute name: getNextObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getNextObject
Deprecated version: 9|Method or attribute name: getNextObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getLastObject
Deprecated version: 9|Method or attribute name: getLastObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getLastObject
Deprecated version: 9|Method or attribute name: getLastObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getPositionObject
Deprecated version: 9|Method or attribute name: getPositionObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getPositionObject
Deprecated version: 9|Method or attribute name: getPositionObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getAllObject
Deprecated version: 9|Method or attribute name: getAllObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getAllObject
Deprecated version: 9|Method or attribute name: getAllObject
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: Album
Deprecated version: 9|Class name: Album
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: albumId
Deprecated version: 9|Method or attribute name: albumId
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: albumName
Deprecated version: 9|Method or attribute name: albumName
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: albumUri
Deprecated version: 9|Method or attribute name: albumUri
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: dateModified
Deprecated version: 9|Method or attribute name: dateModified
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: count
Deprecated version: 9|Method or attribute name: count
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: relativePath
Deprecated version: 9|Method or attribute name: relativePath
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: coverUri
Deprecated version: 9|Method or attribute name: coverUri
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: commitModify
Deprecated version: 9|Method or attribute name: commitModify
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: commitModify
Deprecated version: 9|Method or attribute name: commitModify
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getFileAssets
Deprecated version: 9|Method or attribute name: getFileAssets
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getFileAssets
Deprecated version: 9|Method or attribute name: getFileAssets
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getFileAssets
Deprecated version: 9|Method or attribute name: getFileAssets
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: DirectoryType
Deprecated version: 9|Class name: DirectoryType
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DIR_CAMERA
Deprecated version: 9|Method or attribute name: DIR_CAMERA
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DIR_VIDEO
Deprecated version: 9|Method or attribute name: DIR_VIDEO
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DIR_IMAGE
Deprecated version: 9|Method or attribute name: DIR_IMAGE
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DIR_AUDIO
Deprecated version: 9|Method or attribute name: DIR_AUDIO
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DIR_DOCUMENTS
Deprecated version: 9|Method or attribute name: DIR_DOCUMENTS
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: DIR_DOWNLOAD
Deprecated version: 9|Method or attribute name: DIR_DOWNLOAD
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: MediaLibrary
Deprecated version: 9|Class name: MediaLibrary
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getPublicDirectory
Deprecated version: 9|Method or attribute name: getPublicDirectory
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getPublicDirectory
Deprecated version: 9|Method or attribute name: getPublicDirectory
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getFileAssets
Deprecated version: 9|Method or attribute name: getFileAssets
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getFileAssets
Deprecated version: 9|Method or attribute name: getFileAssets
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: on_deviceChange
Deprecated version: 9|Method or attribute name: on_deviceChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: on_albumChange
Deprecated version: 9|Method or attribute name: on_albumChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: on_imageChange
Deprecated version: 9|Method or attribute name: on_imageChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: on_audioChange
Deprecated version: 9|Method or attribute name: on_audioChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: on_videoChange
Deprecated version: 9|Method or attribute name: on_videoChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: on_fileChange
Deprecated version: 9|Method or attribute name: on_fileChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: on_remoteFileChange
Deprecated version: 9|Method or attribute name: on_remoteFileChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: off_deviceChange
Deprecated version: 9|Method or attribute name: off_deviceChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: off_albumChange
Deprecated version: 9|Method or attribute name: off_albumChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: off_imageChange
Deprecated version: 9|Method or attribute name: off_imageChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: off_audioChange
Deprecated version: 9|Method or attribute name: off_audioChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: off_videoChange
Deprecated version: 9|Method or attribute name: off_videoChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: off_fileChange
Deprecated version: 9|Method or attribute name: off_fileChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: off_remoteFileChange
Deprecated version: 9|Method or attribute name: off_remoteFileChange
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: createAsset
Deprecated version: 9|Method or attribute name: createAsset
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: createAsset
Deprecated version: 9|Method or attribute name: createAsset
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: deleteAsset
Deprecated version: 9|Method or attribute name: deleteAsset
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: deleteAsset
Deprecated version: 9|Method or attribute name: deleteAsset
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getAlbums
Deprecated version: 9|Method or attribute name: getAlbums
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getAlbums
Deprecated version: 9|Method or attribute name: getAlbums
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getActivePeers
Deprecated version: 9|Method or attribute name: getActivePeers
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getActivePeers
Deprecated version: 9|Method or attribute name: getActivePeers
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getAllPeers
Deprecated version: 9|Method or attribute name: getAllPeers
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: getAllPeers
Deprecated version: 9|Method or attribute name: getAllPeers
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: release
Deprecated version: 9|Method or attribute name: release
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: release
Deprecated version: 9|Method or attribute name: release
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: Size
Deprecated version: 9|Class name: Size
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: width
Deprecated version: 9|Method or attribute name: width
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: height
Deprecated version: 9|Method or attribute name: height
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: PeerInfo
Deprecated version: 9|Class name: PeerInfo
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: deviceName
Deprecated version: 9|Method or attribute name: deviceName
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: networkId
Deprecated version: 9|Method or attribute name: networkId
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: deviceType
Deprecated version: 9|Method or attribute name: deviceType
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: isOnline
Deprecated version: 9|Method or attribute name: isOnline
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Class name: DeviceType
Deprecated version: 9|Class name: DeviceType
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_UNKNOWN
Deprecated version: 9|Method or attribute name: TYPE_UNKNOWN
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_LAPTOP
Deprecated version: 9|Method or attribute name: TYPE_LAPTOP
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_PHONE
Deprecated version: 9|Method or attribute name: TYPE_PHONE
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_TABLET
Deprecated version: 9|Method or attribute name: TYPE_TABLET
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_WATCH
Deprecated version: 9|Method or attribute name: TYPE_WATCH
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_CAR
Deprecated version: 9|Method or attribute name: TYPE_CAR
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_TV
Deprecated version: 9|Method or attribute name: TYPE_TV
Deprecated version: N/A|@ohos.multimedia.mediaLibrary.d.ts| +|Error code added||Method or attribute name: on_deviceChange
Error code: 401, 6800101|@ohos.multimedia.audio.d.ts| +|Error code added||Method or attribute name: off_deviceChange
Error code: 401, 6800101|@ohos.multimedia.audio.d.ts| +|Error code added||Method or attribute name: on_audioRendererChange
Error code: 401, 6800101|@ohos.multimedia.audio.d.ts| +|Error code added||Method or attribute name: on_audioCapturerChange
Error code: 401, 6800101|@ohos.multimedia.audio.d.ts| +|Error code added||Method or attribute name: createVideoRecorder
Error code: 5400101|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: createVideoRecorder
Error code: 5400101|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: prepare
Error code: 201, 401, 5400102, 5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: prepare
Error code: 201, 401, 5400102, 5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: getInputSurface
Error code: 5400102, 5400103, 5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: getInputSurface
Error code: 5400102, 5400103, 5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: start
Error code: 5400102, 5400103, 5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: start
Error code: 5400102, 5400103, 5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: pause
Error code: 5400102, 5400103, 5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: pause
Error code: 5400102, 5400103, 5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: resume
Error code: 5400102, 5400103, 5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: resume
Error code: 5400102, 5400103, 5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: stop
Error code: 5400102, 5400103, 5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: stop
Error code: 5400102, 5400103, 5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: release
Error code: 5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: release
Error code: 5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: reset
Error code: 5400103, 5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: reset
Error code: 5400103, 5400105|@ohos.multimedia.media.d.ts| +|Error code added||Method or attribute name: on_error
Error code: 5400103, 5400105|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: createVideoRecorder
Access level: public API|Method or attribute name: createVideoRecorder
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: createVideoRecorder
Access level: public API|Method or attribute name: createVideoRecorder
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: VideoRecorder
Access level: public API|Class name: VideoRecorder
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: prepare
Access level: public API|Method or attribute name: prepare
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: prepare
Access level: public API|Method or attribute name: prepare
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: getInputSurface
Access level: public API|Method or attribute name: getInputSurface
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: getInputSurface
Access level: public API|Method or attribute name: getInputSurface
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: start
Access level: public API|Method or attribute name: start
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: start
Access level: public API|Method or attribute name: start
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: pause
Access level: public API|Method or attribute name: pause
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: pause
Access level: public API|Method or attribute name: pause
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: resume
Access level: public API|Method or attribute name: resume
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: resume
Access level: public API|Method or attribute name: resume
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: stop
Access level: public API|Method or attribute name: stop
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: stop
Access level: public API|Method or attribute name: stop
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: release
Access level: public API|Method or attribute name: release
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: release
Access level: public API|Method or attribute name: release
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: reset
Access level: public API|Method or attribute name: reset
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: reset
Access level: public API|Method or attribute name: reset
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: on_error
Access level: public API|Method or attribute name: on_error
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: state
Access level: public API|Method or attribute name: state
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: VideoRecorderProfile
Access level: public API|Class name: VideoRecorderProfile
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: audioBitrate
Access level: public API|Method or attribute name: audioBitrate
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: audioChannels
Access level: public API|Method or attribute name: audioChannels
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: audioCodec
Access level: public API|Method or attribute name: audioCodec
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: audioSampleRate
Access level: public API|Method or attribute name: audioSampleRate
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: fileFormat
Access level: public API|Method or attribute name: fileFormat
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoBitrate
Access level: public API|Method or attribute name: videoBitrate
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoCodec
Access level: public API|Method or attribute name: videoCodec
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoFrameWidth
Access level: public API|Method or attribute name: videoFrameWidth
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoFrameHeight
Access level: public API|Method or attribute name: videoFrameHeight
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoFrameRate
Access level: public API|Method or attribute name: videoFrameRate
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: AudioSourceType
Access level: public API|Class name: AudioSourceType
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: AUDIO_SOURCE_TYPE_DEFAULT
Access level: public API|Method or attribute name: AUDIO_SOURCE_TYPE_DEFAULT
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: AUDIO_SOURCE_TYPE_MIC
Access level: public API|Method or attribute name: AUDIO_SOURCE_TYPE_MIC
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: VideoSourceType
Access level: public API|Class name: VideoSourceType
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: VIDEO_SOURCE_TYPE_SURFACE_YUV
Access level: public API|Method or attribute name: VIDEO_SOURCE_TYPE_SURFACE_YUV
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: VIDEO_SOURCE_TYPE_SURFACE_ES
Access level: public API|Method or attribute name: VIDEO_SOURCE_TYPE_SURFACE_ES
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Class name: VideoRecorderConfig
Access level: public API|Class name: VideoRecorderConfig
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: videoSourceType
Access level: public API|Method or attribute name: videoSourceType
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: profile
Access level: public API|Method or attribute name: profile
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: url
Access level: public API|Method or attribute name: url
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: rotation
Access level: public API|Method or attribute name: rotation
Access level: system API|@ohos.multimedia.media.d.ts| +|Access level changed|Method or attribute name: location
Access level: public API|Method or attribute name: location
Access level: system API|@ohos.multimedia.media.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-notification.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-notification.md new file mode 100644 index 0000000000000000000000000000000000000000..e75ad08d78dbb160e5461dd2560d77198167bf09 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-notification.md @@ -0,0 +1,558 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.commonEventManager
Class name: commonEventManager|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: commonEventManager
Method or attribute name: publish|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: commonEventManager
Method or attribute name: publish|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: commonEventManager
Method or attribute name: publishAsUser|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: commonEventManager
Method or attribute name: publishAsUser|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: commonEventManager
Method or attribute name: createSubscriber|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: commonEventManager
Method or attribute name: createSubscriber|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: commonEventManager
Method or attribute name: subscribe|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: commonEventManager
Method or attribute name: unsubscribe|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BOOT_COMPLETED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_LOCKED_BOOT_COMPLETED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_SHUTDOWN|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BATTERY_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BATTERY_LOW|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BATTERY_OKAY|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_POWER_CONNECTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_POWER_DISCONNECTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_SCREEN_OFF|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_SCREEN_ON|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_THERMAL_LEVEL_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_PRESENT|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_TIME_TICK|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_TIME_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DATE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_TIMEZONE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_CLOSE_SYSTEM_DIALOGS|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_ADDED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_REPLACED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_MY_PACKAGE_REPLACED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_REMOVED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BUNDLE_REMOVED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_FULLY_REMOVED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_RESTARTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_DATA_CLEARED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_CACHE_CLEARED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGES_SUSPENDED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGES_UNSUSPENDED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_MY_PACKAGE_SUSPENDED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_MY_PACKAGE_UNSUSPENDED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_UID_REMOVED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_FIRST_LAUNCH|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_PACKAGE_VERIFIED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_CONFIGURATION_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_LOCALE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_MANAGE_PACKAGE_STORAGE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DRIVE_MODE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_HOME_MODE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_OFFICE_MODE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_STARTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_BACKGROUND|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_FOREGROUND|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_SWITCHED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_STARTING|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_UNLOCKED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_STOPPING|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_STOPPED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_POWER_STATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_SCAN_FINISHED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_RSSI_VALUE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_CONN_STATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_HOTSPOT_STATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_AP_STA_JOIN|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_AP_STA_LEAVE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_P2P_CONN_STATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_P2P_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISCHARGING|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_CHARGING|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_POWER_SAVE_MODE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_ADDED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USER_REMOVED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_ABILITY_ADDED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_ABILITY_REMOVED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_ABILITY_UPDATED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_LOCATION_MODE_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_SLEEP|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_PAUSE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_STANDBY|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_LASTMODE_SAVE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_VOLTAGE_ABNORMAL|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_HIGH_TEMPERATURE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_EXTREME_TEMPERATURE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_VOLTAGE_RECOVERY|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_TEMPERATURE_RECOVERY|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_IVI_ACTIVE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USB_STATE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USB_PORT_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USB_DEVICE_ATTACHED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USB_DEVICE_DETACHED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USB_ACCESSORY_ATTACHED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_USB_ACCESSORY_DETACHED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISK_REMOVED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISK_UNMOUNTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISK_MOUNTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISK_BAD_REMOVAL|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISK_UNMOUNTABLE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_DISK_EJECT|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_VOLUME_REMOVED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_VOLUME_UNMOUNTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_VOLUME_MOUNTED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_VOLUME_BAD_REMOVAL|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_VOLUME_EJECT|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_ACCOUNT_DELETED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_FOUNDATION_READY|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_AIRPLANE_MODE_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_SPLIT_SCREEN|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_SLOT_CHANGE|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_SPN_INFO_CHANGED|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.commonEventManager
Class name: Support
Method or attribute name: COMMON_EVENT_QUICK_FIX_APPLY_RESULT|@ohos.commonEventManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: publish|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: publish|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: publish|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: publish|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: publishAsBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: publishAsBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: cancel|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: cancel|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: cancel|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: cancelAsBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: cancelAsBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: cancelAll|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: cancelAll|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: addSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: addSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: addSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: addSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: addSlots|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: addSlots|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSlots|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSlots|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: removeSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: removeSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: removeAllSlots|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: removeAllSlots|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setNotificationEnable|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setNotificationEnable|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isNotificationEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isNotificationEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isNotificationEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isNotificationEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isNotificationEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isNotificationEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: displayBadge|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: displayBadge|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isBadgeDisplayed|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isBadgeDisplayed|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setSlotByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setSlotByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSlotsByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSlotsByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSlotNumByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSlotNumByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getAllActiveNotifications|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getAllActiveNotifications|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getActiveNotificationCount|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getActiveNotificationCount|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getActiveNotifications|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getActiveNotifications|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: cancelGroup|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: cancelGroup|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: removeGroupByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: removeGroupByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setDoNotDisturbDate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setDoNotDisturbDate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setDoNotDisturbDate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setDoNotDisturbDate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getDoNotDisturbDate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getDoNotDisturbDate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getDoNotDisturbDate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getDoNotDisturbDate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: supportDoNotDisturbMode|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: supportDoNotDisturbMode|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isSupportTemplate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isSupportTemplate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: requestEnableNotification|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: requestEnableNotification|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setDistributedEnable|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setDistributedEnable|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isDistributedEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isDistributedEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setDistributedEnableByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setDistributedEnableByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isDistributedEnabledByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isDistributedEnabledByBundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getDeviceRemindType|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getDeviceRemindType|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setNotificationEnableSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setNotificationEnableSlot|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isNotificationSlotEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: isNotificationSlotEnabled|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: setSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: notificationManager
Method or attribute name: getSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotType|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotType
Method or attribute name: UNKNOWN_TYPE|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotType
Method or attribute name: SOCIAL_COMMUNICATION|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotType
Method or attribute name: SERVICE_INFORMATION|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotType
Method or attribute name: CONTENT_INFORMATION|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotType
Method or attribute name: OTHER_TYPES|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: ContentType|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: ContentType
Method or attribute name: NOTIFICATION_CONTENT_BASIC_TEXT|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: ContentType
Method or attribute name: NOTIFICATION_CONTENT_LONG_TEXT|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: ContentType
Method or attribute name: NOTIFICATION_CONTENT_PICTURE|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: ContentType
Method or attribute name: NOTIFICATION_CONTENT_CONVERSATION|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: ContentType
Method or attribute name: NOTIFICATION_CONTENT_MULTILINE|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotLevel|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotLevel
Method or attribute name: LEVEL_NONE|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotLevel
Method or attribute name: LEVEL_MIN|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotLevel
Method or attribute name: LEVEL_LOW|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotLevel
Method or attribute name: LEVEL_DEFAULT|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SlotLevel
Method or attribute name: LEVEL_HIGH|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: BundleOption|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: BundleOption
Method or attribute name: bundle|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: BundleOption
Method or attribute name: uid|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DoNotDisturbType|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DoNotDisturbType
Method or attribute name: TYPE_NONE|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DoNotDisturbType
Method or attribute name: TYPE_ONCE|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DoNotDisturbType
Method or attribute name: TYPE_DAILY|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DoNotDisturbType
Method or attribute name: TYPE_CLEARLY|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DoNotDisturbDate|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DoNotDisturbDate
Method or attribute name: type|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DoNotDisturbDate
Method or attribute name: begin|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DoNotDisturbDate
Method or attribute name: end|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DeviceRemindType|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DeviceRemindType
Method or attribute name: IDLE_DONOT_REMIND|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DeviceRemindType
Method or attribute name: IDLE_REMIND|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DeviceRemindType
Method or attribute name: ACTIVE_DONOT_REMIND|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: DeviceRemindType
Method or attribute name: ACTIVE_REMIND|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SourceType|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SourceType
Method or attribute name: TYPE_NORMAL|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SourceType
Method or attribute name: TYPE_CONTINUOUS|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationManager
Class name: SourceType
Method or attribute name: TYPE_TIMER|@ohos.notificationManager.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: BundleOption|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: BundleOption
Method or attribute name: bundle|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: BundleOption
Method or attribute name: uid|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: NotificationKey|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: NotificationKey
Method or attribute name: id|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: NotificationKey
Method or attribute name: label|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: RemoveReason|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: RemoveReason
Method or attribute name: CLICK_REASON_REMOVE|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: RemoveReason
Method or attribute name: CANCEL_REASON_REMOVE|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: subscribe|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: subscribe|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: subscribe|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: unsubscribe|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: unsubscribe|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: remove|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: remove|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: remove|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: remove|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: removeAll|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: removeAll|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: removeAll|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: removeAll|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.notificationSubscribe
Class name: notificationSubscribe
Method or attribute name: removeAll|@ohos.notificationSubscribe.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: publishReminder|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: publishReminder|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: cancelReminder|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: cancelReminder|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: getValidReminders|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: getValidReminders|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: cancelAllReminders|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: cancelAllReminders|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: addNotificationSlot|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: addNotificationSlot|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: removeNotificationSlot|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: reminderAgentManager
Method or attribute name: removeNotificationSlot|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ActionButtonType|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ActionButtonType
Method or attribute name: ACTION_BUTTON_TYPE_CLOSE|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ActionButtonType
Method or attribute name: ACTION_BUTTON_TYPE_SNOOZE|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderType|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderType
Method or attribute name: REMINDER_TYPE_TIMER|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderType
Method or attribute name: REMINDER_TYPE_CALENDAR|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderType
Method or attribute name: REMINDER_TYPE_ALARM|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ActionButton|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ActionButton
Method or attribute name: title|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ActionButton
Method or attribute name: type|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: WantAgent|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: WantAgent
Method or attribute name: pkgName|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: WantAgent
Method or attribute name: abilityName|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: MaxScreenWantAgent|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: MaxScreenWantAgent
Method or attribute name: pkgName|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: MaxScreenWantAgent
Method or attribute name: abilityName|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: reminderType|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: actionButton|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: wantAgent|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: maxScreenWantAgent|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: ringDuration|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: snoozeTimes|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: timeInterval|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: title|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: content|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: expiredContent|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: snoozeContent|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: notificationId|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequest
Method or attribute name: slotType|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestCalendar|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestCalendar
Method or attribute name: dateTime|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestCalendar
Method or attribute name: repeatMonths|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestCalendar
Method or attribute name: repeatDays|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestAlarm|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestAlarm
Method or attribute name: hour|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestAlarm
Method or attribute name: minute|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestAlarm
Method or attribute name: daysOfWeek|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestTimer|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: ReminderRequestTimer
Method or attribute name: triggerTimeInSeconds|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: LocalDateTime|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: LocalDateTime
Method or attribute name: year|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: LocalDateTime
Method or attribute name: month|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: LocalDateTime
Method or attribute name: day|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: LocalDateTime
Method or attribute name: hour|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: LocalDateTime
Method or attribute name: minute|@ohos.reminderAgentManager.d.ts| +|Added||Module name: ohos.reminderAgentManager
Class name: LocalDateTime
Method or attribute name: second|@ohos.reminderAgentManager.d.ts| +|Deprecated version changed|Class name: commonEvent
Deprecated version: N/A|Class name: commonEvent
Deprecated version: 9
New API: ohos.commonEventManager |@ohos.commonEvent.d.ts| +|Deprecated version changed|Method or attribute name: publish
Deprecated version: N/A|Method or attribute name: publish
Deprecated version: 9
New API: ohos.commonEventManager.publish |@ohos.commonEvent.d.ts| +|Deprecated version changed|Method or attribute name: publish
Deprecated version: N/A|Method or attribute name: publish
Deprecated version: 9
New API: ohos.commonEventManager.publish |@ohos.commonEvent.d.ts| +|Deprecated version changed|Method or attribute name: publishAsUser
Deprecated version: N/A|Method or attribute name: publishAsUser
Deprecated version: 9
New API: ohos.commonEventManager.publishAsUser |@ohos.commonEvent.d.ts| +|Deprecated version changed|Method or attribute name: publishAsUser
Deprecated version: N/A|Method or attribute name: publishAsUser
Deprecated version: 9
New API: ohos.commonEventManager.publishAsUser |@ohos.commonEvent.d.ts| +|Deprecated version changed|Method or attribute name: createSubscriber
Deprecated version: N/A|Method or attribute name: createSubscriber
Deprecated version: 9
New API: ohos.commonEventManager.createSubscriber |@ohos.commonEvent.d.ts| +|Deprecated version changed|Method or attribute name: createSubscriber
Deprecated version: N/A|Method or attribute name: createSubscriber
Deprecated version: 9
New API: ohos.commonEventManager.createSubscriber |@ohos.commonEvent.d.ts| +|Deprecated version changed|Method or attribute name: subscribe
Deprecated version: N/A|Method or attribute name: subscribe
Deprecated version: 9
New API: ohos.commonEventManager.subscribe |@ohos.commonEvent.d.ts| +|Deprecated version changed|Method or attribute name: unsubscribe
Deprecated version: N/A|Method or attribute name: unsubscribe
Deprecated version: 9
New API: ohos.commonEventManager.unsubscribe |@ohos.commonEvent.d.ts| +|Deprecated version changed|Class name: Support
Deprecated version: N/A|Class name: Support
Deprecated version: 9
New API: ohos.commonEventManager.Support |@ohos.commonEvent.d.ts| +|Deprecated version changed|Class name: notification
Deprecated version: N/A|Class name: notification
Deprecated version: 9
New API: ohos.notificationManager and ohos.notificationSubscribe |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: publish
Deprecated version: N/A|Method or attribute name: publish
Deprecated version: 9
New API: ohos.notificationManager.publish |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: publish
Deprecated version: N/A|Method or attribute name: publish
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: publish
Deprecated version: N/A|Method or attribute name: publish
Deprecated version: 9
New API: ohos.notificationManager.publish |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: publish
Deprecated version: N/A|Method or attribute name: publish
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: publishAsBundle
Deprecated version: N/A|Method or attribute name: publishAsBundle
Deprecated version: 9
New API: ohos.notificationManager.publishAsBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: publishAsBundle
Deprecated version: N/A|Method or attribute name: publishAsBundle
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: cancel
Deprecated version: N/A|Method or attribute name: cancel
Deprecated version: 9
New API: ohos.notificationManager.cancel |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: cancel
Deprecated version: N/A|Method or attribute name: cancel
Deprecated version: 9
New API: ohos.notificationManager.cancel |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: cancel
Deprecated version: N/A|Method or attribute name: cancel
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: cancelAsBundle
Deprecated version: N/A|Method or attribute name: cancelAsBundle
Deprecated version: 9
New API: ohos.notificationManager.cancelAsBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: cancelAsBundle
Deprecated version: N/A|Method or attribute name: cancelAsBundle
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: cancelAll
Deprecated version: N/A|Method or attribute name: cancelAll
Deprecated version: 9
New API: ohos.notificationManager.cancelAll |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: cancelAll
Deprecated version: N/A|Method or attribute name: cancelAll
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: addSlot
Deprecated version: N/A|Method or attribute name: addSlot
Deprecated version: 9
New API: ohos.notificationManager.addSlot |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: addSlot
Deprecated version: N/A|Method or attribute name: addSlot
Deprecated version: 9
New API: ohos.notificationManager.addSlot |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: addSlot
Deprecated version: N/A|Method or attribute name: addSlot
Deprecated version: 9
New API: ohos.notificationManager.addSlot |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: addSlot
Deprecated version: N/A|Method or attribute name: addSlot
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: addSlots
Deprecated version: N/A|Method or attribute name: addSlots
Deprecated version: 9
New API: ohos.notificationManager.addSlots |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: addSlots
Deprecated version: N/A|Method or attribute name: addSlots
Deprecated version: 9
New API: ohos.notificationManager.addSlots |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSlot
Deprecated version: N/A|Method or attribute name: getSlot
Deprecated version: 9
New API: ohos.notificationManager.getSlot |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSlot
Deprecated version: N/A|Method or attribute name: getSlot
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSlots
Deprecated version: N/A|Method or attribute name: getSlots
Deprecated version: 9
New API: ohos.notificationManager.getSlots |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSlots
Deprecated version: N/A|Method or attribute name: getSlots
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeSlot
Deprecated version: N/A|Method or attribute name: removeSlot
Deprecated version: 9
New API: ohos.notificationManager.removeSlot |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeSlot
Deprecated version: N/A|Method or attribute name: removeSlot
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeAllSlots
Deprecated version: N/A|Method or attribute name: removeAllSlots
Deprecated version: 9
New API: ohos.notificationManager.removeAllSlots |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeAllSlots
Deprecated version: N/A|Method or attribute name: removeAllSlots
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Class name: SlotType
Deprecated version: N/A|Class name: SlotType
Deprecated version: 9
New API: ohos.notificationManager.SlotType |@ohos.notification.d.ts| +|Deprecated version changed|Class name: ContentType
Deprecated version: N/A|Class name: ContentType
Deprecated version: 9
New API: ohos.notificationManager.ContentType |@ohos.notification.d.ts| +|Deprecated version changed|Class name: SlotLevel
Deprecated version: N/A|Class name: SlotLevel
Deprecated version: 9
New API: ohos.notificationManager.SlotLevel |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: subscribe
Deprecated version: N/A|Method or attribute name: subscribe
Deprecated version: 9
New API: ohos.notificationSubscribe.subscribe |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: subscribe
Deprecated version: N/A|Method or attribute name: subscribe
Deprecated version: 9
New API: ohos.notificationSubscribe.subscribe |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: subscribe
Deprecated version: N/A|Method or attribute name: subscribe
Deprecated version: 9
New API: ohos.notificationSubscribe.subscribe |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: unsubscribe
Deprecated version: N/A|Method or attribute name: unsubscribe
Deprecated version: 9
New API: ohos.notificationSubscribe.unsubscribe |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: unsubscribe
Deprecated version: N/A|Method or attribute name: unsubscribe
Deprecated version: 9
New API: ohos.notificationSubscribe.unsubscribe |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: enableNotification
Deprecated version: N/A|Method or attribute name: enableNotification
Deprecated version: 9
New API: ohos.notificationManager.setNotificationEnable |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: enableNotification
Deprecated version: N/A|Method or attribute name: enableNotification
Deprecated version: 9
New API: ohos.notificationManager.setNotificationEnable |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isNotificationEnabled
Deprecated version: N/A|Method or attribute name: isNotificationEnabled
Deprecated version: 9
New API: ohos.notificationManager.isNotificationEnabled |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isNotificationEnabled
Deprecated version: N/A|Method or attribute name: isNotificationEnabled
Deprecated version: 9
New API: ohos.notificationManager.isNotificationEnabled |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isNotificationEnabled
Deprecated version: N/A|Method or attribute name: isNotificationEnabled
Deprecated version: 9
New API: ohos.notificationManager.isNotificationEnabled |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isNotificationEnabled
Deprecated version: N/A|Method or attribute name: isNotificationEnabled
Deprecated version: 9
New API: ohos.notificationManager.isNotificationEnabled |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isNotificationEnabled
Deprecated version: N/A|Method or attribute name: isNotificationEnabled
Deprecated version: 9
New API: ohos.notificationManager.isNotificationEnabled |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isNotificationEnabled
Deprecated version: N/A|Method or attribute name: isNotificationEnabled
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: displayBadge
Deprecated version: N/A|Method or attribute name: displayBadge
Deprecated version: 9
New API: ohos.notificationManager.displayBadge |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: displayBadge
Deprecated version: N/A|Method or attribute name: displayBadge
Deprecated version: 9
New API: ohos.notificationManager.displayBadge |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isBadgeDisplayed
Deprecated version: N/A|Method or attribute name: isBadgeDisplayed
Deprecated version: 9
New API: ohos.notificationManager.isBadgeDisplayed |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isBadgeDisplayed
Deprecated version: N/A|Method or attribute name: isBadgeDisplayed
Deprecated version: 9
New API: ohos.notificationManager.isBadgeDisplayed |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: setSlotByBundle
Deprecated version: N/A|Method or attribute name: setSlotByBundle
Deprecated version: 9
New API: ohos.notificationManager.setSlotByBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: setSlotByBundle
Deprecated version: N/A|Method or attribute name: setSlotByBundle
Deprecated version: 9
New API: ohos.notificationManager.setSlotByBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSlotsByBundle
Deprecated version: N/A|Method or attribute name: getSlotsByBundle
Deprecated version: 9
New API: ohos.notificationManager.getSlotsByBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSlotsByBundle
Deprecated version: N/A|Method or attribute name: getSlotsByBundle
Deprecated version: 9
New API: ohos.notificationManager.getSlotsByBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSlotNumByBundle
Deprecated version: N/A|Method or attribute name: getSlotNumByBundle
Deprecated version: 9
New API: ohos.notificationManager.getSlotNumByBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSlotNumByBundle
Deprecated version: N/A|Method or attribute name: getSlotNumByBundle
Deprecated version: 9
New API: ohos.notificationManager.getSlotNumByBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: remove
Deprecated version: N/A|Method or attribute name: remove
Deprecated version: 9
New API: ohos.notificationSubscribe.remove |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: remove
Deprecated version: N/A|Method or attribute name: remove
Deprecated version: 9
New API: ohos.notificationSubscribe.remove |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: remove
Deprecated version: N/A|Method or attribute name: remove
Deprecated version: 9
New API: ohos.notificationSubscribe.remove |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: remove
Deprecated version: N/A|Method or attribute name: remove
Deprecated version: 9
New API: ohos.notificationSubscribe.remove |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeAll
Deprecated version: N/A|Method or attribute name: removeAll
Deprecated version: 9
New API: ohos.notificationSubscribe.removeAll |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeAll
Deprecated version: N/A|Method or attribute name: removeAll
Deprecated version: 9
New API: ohos.notificationSubscribe.removeAll |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeAll
Deprecated version: N/A|Method or attribute name: removeAll
Deprecated version: 9
New API: ohos.notificationSubscribe.removeAll |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeAll
Deprecated version: N/A|Method or attribute name: removeAll
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeAll
Deprecated version: N/A|Method or attribute name: removeAll
Deprecated version: 9
New API: notificationSubscribe.removeAll |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getAllActiveNotifications
Deprecated version: N/A|Method or attribute name: getAllActiveNotifications
Deprecated version: 9
New API: ohos.notificationManager.getAllActiveNotifications |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getAllActiveNotifications
Deprecated version: N/A|Method or attribute name: getAllActiveNotifications
Deprecated version: 9
New API: ohos.notificationManager.getAllActiveNotifications |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getActiveNotificationCount
Deprecated version: N/A|Method or attribute name: getActiveNotificationCount
Deprecated version: 9
New API: ohos.notificationManager.getActiveNotificationCount |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getActiveNotificationCount
Deprecated version: N/A|Method or attribute name: getActiveNotificationCount
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getActiveNotifications
Deprecated version: N/A|Method or attribute name: getActiveNotifications
Deprecated version: 9
New API: ohos.notificationManager.cancelGroup |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getActiveNotifications
Deprecated version: N/A|Method or attribute name: getActiveNotifications
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: cancelGroup
Deprecated version: N/A|Method or attribute name: cancelGroup
Deprecated version: 9
New API: ohos.notificationManager.cancelGroup |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: cancelGroup
Deprecated version: N/A|Method or attribute name: cancelGroup
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeGroupByBundle
Deprecated version: N/A|Method or attribute name: removeGroupByBundle
Deprecated version: 9
New API: ohos.notificationManager.removeGroupByBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: removeGroupByBundle
Deprecated version: N/A|Method or attribute name: removeGroupByBundle
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: setDoNotDisturbDate
Deprecated version: N/A|Method or attribute name: setDoNotDisturbDate
Deprecated version: 9
New API: ohos.notificationManager.setDoNotDisturbDate |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: setDoNotDisturbDate
Deprecated version: N/A|Method or attribute name: setDoNotDisturbDate
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: setDoNotDisturbDate
Deprecated version: N/A|Method or attribute name: setDoNotDisturbDate
Deprecated version: 9
New API: ohos.notificationManager.setDoNotDisturbDate |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: setDoNotDisturbDate
Deprecated version: N/A|Method or attribute name: setDoNotDisturbDate
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getDoNotDisturbDate
Deprecated version: N/A|Method or attribute name: getDoNotDisturbDate
Deprecated version: 9
New API: ohos.notificationManager.getDoNotDisturbDate |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getDoNotDisturbDate
Deprecated version: N/A|Method or attribute name: getDoNotDisturbDate
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getDoNotDisturbDate
Deprecated version: N/A|Method or attribute name: getDoNotDisturbDate
Deprecated version: 9
New API: ohos.notificationManager.getDoNotDisturbDate |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getDoNotDisturbDate
Deprecated version: N/A|Method or attribute name: getDoNotDisturbDate
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: supportDoNotDisturbMode
Deprecated version: N/A|Method or attribute name: supportDoNotDisturbMode
Deprecated version: 9
New API: ohos.notificationManager.supportDoNotDisturbMode |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: supportDoNotDisturbMode
Deprecated version: N/A|Method or attribute name: supportDoNotDisturbMode
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isSupportTemplate
Deprecated version: N/A|Method or attribute name: isSupportTemplate
Deprecated version: 9
New API: ohos.notificationManager.isSupportTemplate |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isSupportTemplate
Deprecated version: N/A|Method or attribute name: isSupportTemplate
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: requestEnableNotification
Deprecated version: N/A|Method or attribute name: requestEnableNotification
Deprecated version: 9
New API: ohos.notificationManager.requestEnableNotification |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: requestEnableNotification
Deprecated version: N/A|Method or attribute name: requestEnableNotification
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: enableDistributed
Deprecated version: N/A|Method or attribute name: enableDistributed
Deprecated version: 9
New API: ohos.notificationManager.setDistributedEnable |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: enableDistributed
Deprecated version: N/A|Method or attribute name: enableDistributed
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isDistributedEnabled
Deprecated version: N/A|Method or attribute name: isDistributedEnabled
Deprecated version: 9
New API: ohos.notificationManager.isDistributedEnabled |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isDistributedEnabled
Deprecated version: N/A|Method or attribute name: isDistributedEnabled
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: enableDistributedByBundle
Deprecated version: N/A|Method or attribute name: enableDistributedByBundle
Deprecated version: 9
New API: ohos.notificationManager.setDistributedEnableByBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: enableDistributedByBundle
Deprecated version: N/A|Method or attribute name: enableDistributedByBundle
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isDistributedEnabledByBundle
Deprecated version: N/A|Method or attribute name: isDistributedEnabledByBundle
Deprecated version: 9
New API: ohos.notificationManager.isDistributedEnabledByBundle |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isDistributedEnabledByBundle
Deprecated version: N/A|Method or attribute name: isDistributedEnabledByBundle
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getDeviceRemindType
Deprecated version: N/A|Method or attribute name: getDeviceRemindType
Deprecated version: 9
New API: ohos.notificationManager.getDeviceRemindType |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getDeviceRemindType
Deprecated version: N/A|Method or attribute name: getDeviceRemindType
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: enableNotificationSlot
Deprecated version: N/A|Method or attribute name: enableNotificationSlot
Deprecated version: 9
New API: ohos.notificationManager.setNotificationEnableSlot |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: enableNotificationSlot
Deprecated version: N/A|Method or attribute name: enableNotificationSlot
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isNotificationSlotEnabled
Deprecated version: N/A|Method or attribute name: isNotificationSlotEnabled
Deprecated version: 9
New API: ohos.notificationManager.isNotificationSlotEnabled |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: isNotificationSlotEnabled
Deprecated version: N/A|Method or attribute name: isNotificationSlotEnabled
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: setSyncNotificationEnabledWithoutApp
Deprecated version: N/A|Method or attribute name: setSyncNotificationEnabledWithoutApp
Deprecated version: 9
New API: ohos.notificationManager.setSyncNotificationEnabledWithoutApp |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: setSyncNotificationEnabledWithoutApp
Deprecated version: N/A|Method or attribute name: setSyncNotificationEnabledWithoutApp
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSyncNotificationEnabledWithoutApp
Deprecated version: N/A|Method or attribute name: getSyncNotificationEnabledWithoutApp
Deprecated version: 9
New API: ohos.notificationManager.getSyncNotificationEnabledWithoutApp |@ohos.notification.d.ts| +|Deprecated version changed|Method or attribute name: getSyncNotificationEnabledWithoutApp
Deprecated version: N/A|Method or attribute name: getSyncNotificationEnabledWithoutApp
Deprecated version: 9|@ohos.notification.d.ts| +|Deprecated version changed|Class name: BundleOption
Deprecated version: N/A|Class name: BundleOption
Deprecated version: 9
New API: ohos.notificationManager.BundleOption |@ohos.notification.d.ts| +|Deprecated version changed|Class name: NotificationKey
Deprecated version: N/A|Class name: NotificationKey
Deprecated version: 9
New API: ohos.notificationManager.NotificationKey |@ohos.notification.d.ts| +|Deprecated version changed|Class name: DoNotDisturbType
Deprecated version: N/A|Class name: DoNotDisturbType
Deprecated version: 9
New API: ohos.notificationManager.DoNotDisturbType |@ohos.notification.d.ts| +|Deprecated version changed|Class name: DoNotDisturbDate
Deprecated version: N/A|Class name: DoNotDisturbDate
Deprecated version: 9
New API: ohos.notificationManager.DoNotDisturbDate |@ohos.notification.d.ts| +|Deprecated version changed|Class name: DeviceRemindType
Deprecated version: N/A|Class name: DeviceRemindType
Deprecated version: 9
New API: ohos.notificationManager.DeviceRemindType |@ohos.notification.d.ts| +|Deprecated version changed|Class name: SourceType
Deprecated version: N/A|Class name: SourceType
Deprecated version: 9
New API: ohos.notificationManager.SourceType |@ohos.notification.d.ts| +|Deprecated version changed|Class name: RemoveReason
Deprecated version: N/A|Class name: RemoveReason
Deprecated version: 9
New API: ohos.notificationManager.RemoveReason |@ohos.notification.d.ts| +|Deprecated version changed|Class name: reminderAgent
Deprecated version: N/A|Class name: reminderAgent
Deprecated version: 9
New API: reminderAgentManager |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: publishReminder
Deprecated version: N/A|Method or attribute name: publishReminder
Deprecated version: 9
New API: reminderAgentManager.publishReminder |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: publishReminder
Deprecated version: N/A|Method or attribute name: publishReminder
Deprecated version: 9|@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: cancelReminder
Deprecated version: N/A|Method or attribute name: cancelReminder
Deprecated version: 9
New API: reminderAgentManager.cancelReminder |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: cancelReminder
Deprecated version: N/A|Method or attribute name: cancelReminder
Deprecated version: 9|@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: getValidReminders
Deprecated version: N/A|Method or attribute name: getValidReminders
Deprecated version: 9
New API: reminderAgentManager.getValidReminders |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: getValidReminders
Deprecated version: N/A|Method or attribute name: getValidReminders
Deprecated version: 9|@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: cancelAllReminders
Deprecated version: N/A|Method or attribute name: cancelAllReminders
Deprecated version: 9
New API: reminderAgentManager.cancelAllReminders |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: cancelAllReminders
Deprecated version: N/A|Method or attribute name: cancelAllReminders
Deprecated version: 9|@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: addNotificationSlot
Deprecated version: N/A|Method or attribute name: addNotificationSlot
Deprecated version: 9
New API: reminderAgentManager.addNotificationSlot |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: addNotificationSlot
Deprecated version: N/A|Method or attribute name: addNotificationSlot
Deprecated version: 9|@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: removeNotificationSlot
Deprecated version: N/A|Method or attribute name: removeNotificationSlot
Deprecated version: 9
New API: reminderAgentManager.removeNotificationSlot |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: removeNotificationSlot
Deprecated version: N/A|Method or attribute name: removeNotificationSlot
Deprecated version: 9|@ohos.reminderAgent.d.ts| +|Deprecated version changed|Class name: ActionButtonType
Deprecated version: N/A|Class name: ActionButtonType
Deprecated version: 9
New API: reminderAgentManager.ActionButtonType |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: ACTION_BUTTON_TYPE_CLOSE
Deprecated version: N/A|Method or attribute name: ACTION_BUTTON_TYPE_CLOSE
Deprecated version: 9
New API: reminderAgentManager.ActionButtonType.ACTION_BUTTON_TYPE_CLOSE |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: ACTION_BUTTON_TYPE_SNOOZE
Deprecated version: N/A|Method or attribute name: ACTION_BUTTON_TYPE_SNOOZE
Deprecated version: 9
New API: reminderAgentManager.ActionButtonType.ACTION_BUTTON_TYPE_SNOOZE |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Class name: ReminderType
Deprecated version: N/A|Class name: ReminderType
Deprecated version: 9
New API: reminderAgentManager.ReminderType |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: REMINDER_TYPE_TIMER
Deprecated version: N/A|Method or attribute name: REMINDER_TYPE_TIMER
Deprecated version: 9
New API: reminderAgentManager.ReminderType.REMINDER_TYPE_TIMER |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: REMINDER_TYPE_CALENDAR
Deprecated version: N/A|Method or attribute name: REMINDER_TYPE_CALENDAR
Deprecated version: 9
New API: reminderAgentManager.ReminderType.REMINDER_TYPE_CALENDAR |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: REMINDER_TYPE_ALARM
Deprecated version: N/A|Method or attribute name: REMINDER_TYPE_ALARM
Deprecated version: 9
New API: reminderAgentManager.ReminderType.REMINDER_TYPE_ALARM |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Class name: ActionButton
Deprecated version: N/A|Class name: ActionButton
Deprecated version: 9
New API: reminderAgentManager.ActionButton |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: title
Deprecated version: N/A|Method or attribute name: title
Deprecated version: 9
New API: reminderAgentManager.ActionButton.title |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: type
Deprecated version: N/A|Method or attribute name: type
Deprecated version: 9
New API: reminderAgentManager.ActionButton.type |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Class name: WantAgent
Deprecated version: N/A|Class name: WantAgent
Deprecated version: 9
New API: reminderAgentManager.WantAgent |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: pkgName
Deprecated version: N/A|Method or attribute name: pkgName
Deprecated version: 9
New API: reminderAgentManager.WantAgent.pkgName |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: abilityName
Deprecated version: N/A|Method or attribute name: abilityName
Deprecated version: 9
New API: reminderAgentManager.WantAgent.abilityName |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Class name: MaxScreenWantAgent
Deprecated version: N/A|Class name: MaxScreenWantAgent
Deprecated version: 9
New API: reminderAgentManager.MaxScreenWantAgent |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: pkgName
Deprecated version: N/A|Method or attribute name: pkgName
Deprecated version: 9
New API: reminderAgentManager.MaxScreenWantAgent.pkgName |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: abilityName
Deprecated version: N/A|Method or attribute name: abilityName
Deprecated version: 9
New API: reminderAgentManager.MaxScreenWantAgent.abilityName |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Class name: ReminderRequest
Deprecated version: N/A|Class name: ReminderRequest
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: reminderType
Deprecated version: N/A|Method or attribute name: reminderType
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.reminderType |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: actionButton
Deprecated version: N/A|Method or attribute name: actionButton
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.actionButton |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: wantAgent
Deprecated version: N/A|Method or attribute name: wantAgent
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.wantAgent |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: maxScreenWantAgent
Deprecated version: N/A|Method or attribute name: maxScreenWantAgent
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.maxScreenWantAgent |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: ringDuration
Deprecated version: N/A|Method or attribute name: ringDuration
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.ringDuration |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: snoozeTimes
Deprecated version: N/A|Method or attribute name: snoozeTimes
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.snoozeTimes |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: timeInterval
Deprecated version: N/A|Method or attribute name: timeInterval
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.timeInterval |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: title
Deprecated version: N/A|Method or attribute name: title
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.title |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: content
Deprecated version: N/A|Method or attribute name: content
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.content |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: expiredContent
Deprecated version: N/A|Method or attribute name: expiredContent
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.expiredContent |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: snoozeContent
Deprecated version: N/A|Method or attribute name: snoozeContent
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.snoozeContent |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: notificationId
Deprecated version: N/A|Method or attribute name: notificationId
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.notificationId |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: slotType
Deprecated version: N/A|Method or attribute name: slotType
Deprecated version: 9
New API: reminderAgentManager.ReminderRequest.slotType |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Class name: ReminderRequestCalendar
Deprecated version: N/A|Class name: ReminderRequestCalendar
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestCalendar |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: dateTime
Deprecated version: N/A|Method or attribute name: dateTime
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestCalendar.dateTime |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: repeatMonths
Deprecated version: N/A|Method or attribute name: repeatMonths
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestCalendar.repeatMonths |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: repeatDays
Deprecated version: N/A|Method or attribute name: repeatDays
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestCalendar.repeatDays |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Class name: ReminderRequestAlarm
Deprecated version: N/A|Class name: ReminderRequestAlarm
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestAlarm |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: hour
Deprecated version: N/A|Method or attribute name: hour
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestAlarm.hour |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: minute
Deprecated version: N/A|Method or attribute name: minute
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestAlarm.minute |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: daysOfWeek
Deprecated version: N/A|Method or attribute name: daysOfWeek
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestAlarm.daysOfWeek |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Class name: ReminderRequestTimer
Deprecated version: N/A|Class name: ReminderRequestTimer
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestTimer |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: year
Deprecated version: N/A|Method or attribute name: year
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestTimer.year |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: month
Deprecated version: N/A|Method or attribute name: month
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestTimer.month |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: day
Deprecated version: N/A|Method or attribute name: day
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestTimer.day |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: hour
Deprecated version: N/A|Method or attribute name: hour
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestTimer.hour |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: minute
Deprecated version: N/A|Method or attribute name: minute
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestTimer.minute |@ohos.reminderAgent.d.ts| +|Deprecated version changed|Method or attribute name: second
Deprecated version: N/A|Method or attribute name: second
Deprecated version: 9
New API: reminderAgentManager.ReminderRequestTimer.second |@ohos.reminderAgent.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-resource-scheduler.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-resource-scheduler.md new file mode 100644 index 0000000000000000000000000000000000000000..787fdcd554b5c15e7592d634a2caa57b31de580e --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-resource-scheduler.md @@ -0,0 +1,281 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: DelaySuspendInfo|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: DelaySuspendInfo
Method or attribute name: requestId|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: DelaySuspendInfo
Method or attribute name: actualDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: cancelSuspendDelay|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: getRemainingDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: getRemainingDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: requestSuspendDelay|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: startBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: startBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: stopBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: stopBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: applyEfficiencyResources|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: backgroundTaskManager
Method or attribute name: resetAllEfficiencyResources|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: DATA_TRANSFER|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: AUDIO_PLAYBACK|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: AUDIO_RECORDING|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: LOCATION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: BLUETOOTH_INTERACTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: MULTI_DEVICE_CONNECTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: WIFI_INTERACTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: VOIP|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: BackgroundMode
Method or attribute name: TASK_KEEPING|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: CPU|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: COMMON_EVENT|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: TIMER|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: WORK_SCHEDULER|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: BLUETOOTH|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: GPS|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: ResourceType
Method or attribute name: AUDIO|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest
Method or attribute name: resourceTypes|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest
Method or attribute name: isApply|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest
Method or attribute name: timeOut|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest
Method or attribute name: isPersist|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest
Method or attribute name: isProcess|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.backgroundTaskManager
Class name: EfficiencyResourcesRequest
Method or attribute name: reason|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: id|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: abilityInFgTotalTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: abilityPrevAccessTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: abilityPrevSeenTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: abilitySeenTotalTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: fgAbilityAccessTotalTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: fgAbilityPrevAccessTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: infosBeginTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsInfo
Method or attribute name: infosEndTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapFormInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapFormInfo
Method or attribute name: formName|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapFormInfo
Method or attribute name: formDimension|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapFormInfo
Method or attribute name: formId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapFormInfo
Method or attribute name: formLastUsedTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapFormInfo
Method or attribute name: count|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: deviceId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: moduleName|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: abilityName|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: appLabelId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: labelId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: descriptionId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: abilityLableId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: abilityDescriptionId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: abilityIconId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: launchedCount|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: lastModuleUsedTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: HapModuleInfo
Method or attribute name: formRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: DeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: DeviceEventStats
Method or attribute name: name|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: DeviceEventStats
Method or attribute name: eventId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: DeviceEventStats
Method or attribute name: count|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleEvents
Method or attribute name: appGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleEvents
Method or attribute name: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleEvents
Method or attribute name: indexOfLink|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleEvents
Method or attribute name: nameOfClass|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleEvents
Method or attribute name: eventOccurredTime|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleEvents
Method or attribute name: eventId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: AppGroupCallbackInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: AppGroupCallbackInfo
Method or attribute name: appOldGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: AppGroupCallbackInfo
Method or attribute name: appNewGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: AppGroupCallbackInfo
Method or attribute name: userId|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: AppGroupCallbackInfo
Method or attribute name: changeReason|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: AppGroupCallbackInfo
Method or attribute name: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: isIdleState|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: isIdleState|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsMap|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: BundleStatsMap
Method or attribute name: BundleStatsMap|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryBundleStatsInfos|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryBundleStatsInfos|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: IntervalType|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: IntervalType
Method or attribute name: BY_OPTIMIZED|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: IntervalType
Method or attribute name: BY_DAILY|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: IntervalType
Method or attribute name: BY_WEEKLY|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: IntervalType
Method or attribute name: BY_MONTHLY|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: IntervalType
Method or attribute name: BY_ANNUALLY|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryBundleStatsInfoByInterval|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryBundleStatsInfoByInterval|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryCurrentBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryCurrentBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: GroupType|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: GroupType
Method or attribute name: ALIVE_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: GroupType
Method or attribute name: DAILY_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: GroupType
Method or attribute name: FIXED_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: GroupType
Method or attribute name: RARE_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: GroupType
Method or attribute name: LIMITED_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: GroupType
Method or attribute name: NEVER_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: setAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: setAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: registerAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: registerAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: unregisterAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: unregisterAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryDeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryDeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryNotificationEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.usageStatistics
Class name: usageStatistics
Method or attribute name: queryNotificationEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: workId|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: bundleName|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: abilityName|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: isPersisted|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: networkType|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: isCharging|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: chargerType|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: batteryLevel|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: batteryStatus|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: storageRequest|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: repeatCycleTime|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: isRepeat|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: repeatCount|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: isDeepIdle|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: idleWaitTime|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: WorkInfo
Method or attribute name: parameters|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler
Method or attribute name: startWork|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler
Method or attribute name: stopWork|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler
Method or attribute name: getWorkStatus|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler
Method or attribute name: getWorkStatus|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler
Method or attribute name: obtainAllWorks|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler
Method or attribute name: obtainAllWorks|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler
Method or attribute name: stopAndClearWorks|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler
Method or attribute name: isLastWorkTimeOut|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: workScheduler
Method or attribute name: isLastWorkTimeOut|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: NetworkType|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: NetworkType
Method or attribute name: NETWORK_TYPE_ANY|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: NetworkType
Method or attribute name: NETWORK_TYPE_MOBILE|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: NetworkType
Method or attribute name: NETWORK_TYPE_WIFI|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: NetworkType
Method or attribute name: NETWORK_TYPE_BLUETOOTH|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: NetworkType
Method or attribute name: NETWORK_TYPE_WIFI_P2P|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: NetworkType
Method or attribute name: NETWORK_TYPE_ETHERNET|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: ChargingType|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: ChargingType
Method or attribute name: CHARGING_PLUGGED_ANY|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: ChargingType
Method or attribute name: CHARGING_PLUGGED_AC|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: ChargingType
Method or attribute name: CHARGING_PLUGGED_USB|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: ChargingType
Method or attribute name: CHARGING_PLUGGED_WIRELESS|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: BatteryStatus|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: BatteryStatus
Method or attribute name: BATTERY_STATUS_LOW|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: BatteryStatus
Method or attribute name: BATTERY_STATUS_OKAY|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: BatteryStatus
Method or attribute name: BATTERY_STATUS_LOW_OR_OKAY|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: StorageRequest|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: StorageRequest
Method or attribute name: STORAGE_LEVEL_LOW|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: StorageRequest
Method or attribute name: STORAGE_LEVEL_OKAY|@ohos.resourceschedule.workScheduler.d.ts| +|Added||Module name: ohos.resourceschedule.workScheduler
Class name: StorageRequest
Method or attribute name: STORAGE_LEVEL_LOW_OR_OKAY|@ohos.resourceschedule.workScheduler.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveFormInfo||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveFormInfo
Method or attribute name: formName||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveFormInfo
Method or attribute name: formDimension||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveFormInfo
Method or attribute name: formId||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveFormInfo
Method or attribute name: formLastUsedTime||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveFormInfo
Method or attribute name: count||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveModuleInfo||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: deviceId||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: bundleName||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: moduleName||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: abilityName||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: appLabelId||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: labelId||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: descriptionId||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: abilityLableId||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: abilityDescriptionId||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: abilityIconId||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: launchedCount||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: lastModuleUsedTime||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveModuleInfo
Method or attribute name: formRecords||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveEventState||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveEventState
Method or attribute name: name||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveEventState
Method or attribute name: eventId||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveEventState
Method or attribute name: count||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveGroupCallbackInfo||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveGroupCallbackInfo
Method or attribute name: appUsageOldGroup||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveGroupCallbackInfo
Method or attribute name: appUsageNewGroup||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveGroupCallbackInfo
Method or attribute name: userId||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveGroupCallbackInfo
Method or attribute name: changeReason||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: BundleActiveGroupCallbackInfo
Method or attribute name: bundleName||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: getRecentlyUsedModules||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: getRecentlyUsedModules||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: getRecentlyUsedModules||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: GroupType||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: GroupType
Method or attribute name: ACTIVE_GROUP_ALIVE||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: GroupType
Method or attribute name: ACTIVE_GROUP_DAILY||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: GroupType
Method or attribute name: ACTIVE_GROUP_FIXED||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: GroupType
Method or attribute name: ACTIVE_GROUP_RARE||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: GroupType
Method or attribute name: ACTIVE_GROUP_LIMIT||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: GroupType
Method or attribute name: ACTIVE_GROUP_NEVER||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: setBundleGroup||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: setBundleGroup||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: registerGroupCallBack||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: registerGroupCallBack||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: unRegisterGroupCallBack||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: unRegisterGroupCallBack||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: queryBundleActiveEventStates||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: queryBundleActiveEventStates||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: queryAppNotificationNumber||@ohos.bundleState.d.ts| +|Deleted||Module name: ohos.bundleState
Class name: bundleState
Method or attribute name: queryAppNotificationNumber||@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: startBackgroundRunning
Deprecated version: N/A|Method or attribute name: startBackgroundRunning
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.startBackgroundRunning |@ohos.ability.particleAbility.d.ts| +|Deprecated version changed|Method or attribute name: startBackgroundRunning
Deprecated version: N/A|Method or attribute name: startBackgroundRunning
Deprecated version: 9|@ohos.ability.particleAbility.d.ts| +|Deprecated version changed|Method or attribute name: cancelBackgroundRunning
Deprecated version: N/A|Method or attribute name: cancelBackgroundRunning
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.stopBackgroundRunning |@ohos.ability.particleAbility.d.ts| +|Deprecated version changed|Method or attribute name: cancelBackgroundRunning
Deprecated version: N/A|Method or attribute name: cancelBackgroundRunning
Deprecated version: 9|@ohos.ability.particleAbility.d.ts| +|Deprecated version changed|Class name: backgroundTaskManager
Deprecated version: N/A|Class name: backgroundTaskManager
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Class name: DelaySuspendInfo
Deprecated version: N/A|Class name: DelaySuspendInfo
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.DelaySuspendInfo |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: cancelSuspendDelay
Deprecated version: N/A|Method or attribute name: cancelSuspendDelay
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.cancelSuspendDelay |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: getRemainingDelayTime
Deprecated version: N/A|Method or attribute name: getRemainingDelayTime
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.getRemainingDelayTime |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: getRemainingDelayTime
Deprecated version: N/A|Method or attribute name: getRemainingDelayTime
Deprecated version: 9|@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: requestSuspendDelay
Deprecated version: N/A|Method or attribute name: requestSuspendDelay
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.requestSuspendDelay |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: startBackgroundRunning
Deprecated version: N/A|Method or attribute name: startBackgroundRunning
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.startBackgroundRunning |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: startBackgroundRunning
Deprecated version: N/A|Method or attribute name: startBackgroundRunning
Deprecated version: 9|@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: stopBackgroundRunning
Deprecated version: N/A|Method or attribute name: stopBackgroundRunning
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.stopBackgroundRunning |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: stopBackgroundRunning
Deprecated version: N/A|Method or attribute name: stopBackgroundRunning
Deprecated version: 9|@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: applyEfficiencyResources
Deprecated version: N/A|Method or attribute name: applyEfficiencyResources
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.applyEfficiencyResources |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Method or attribute name: resetAllEfficiencyResources
Deprecated version: N/A|Method or attribute name: resetAllEfficiencyResources
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.resetAllEfficiencyResources |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Class name: BackgroundMode
Deprecated version: N/A|Class name: BackgroundMode
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.BackgroundMode |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Class name: ResourceType
Deprecated version: N/A|Class name: ResourceType
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.ResourceType |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Class name: EfficiencyResourcesRequest
Deprecated version: N/A|Class name: EfficiencyResourcesRequest
Deprecated version: 9
New API: ohos.resourceschedule.backgroundTaskManager.EfficiencyResourcesRequest |@ohos.backgroundTaskManager.d.ts| +|Deprecated version changed|Class name: bundleState
Deprecated version: N/A|Class name: bundleState
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics |@ohos.bundleState.d.ts| +|Deprecated version changed|Class name: BundleStateInfo
Deprecated version: N/A|Class name: BundleStateInfo
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.BundleStatsInfo |@ohos.bundleState.d.ts| +|Deprecated version changed|Class name: BundleActiveState
Deprecated version: N/A|Class name: BundleActiveState
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.BundleEvents |@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: isIdleState
Deprecated version: N/A|Method or attribute name: isIdleState
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.isIdleState |@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: isIdleState
Deprecated version: N/A|Method or attribute name: isIdleState
Deprecated version: 9|@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryAppUsagePriorityGroup
Deprecated version: N/A|Method or attribute name: queryAppUsagePriorityGroup
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.queryAppGroup |@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryAppUsagePriorityGroup
Deprecated version: N/A|Method or attribute name: queryAppUsagePriorityGroup
Deprecated version: 9|@ohos.bundleState.d.ts| +|Deprecated version changed|Class name: BundleActiveInfoResponse
Deprecated version: N/A|Class name: BundleActiveInfoResponse
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.BundleStatsMap |@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryBundleStateInfos
Deprecated version: N/A|Method or attribute name: queryBundleStateInfos
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.queryBundleStatsInfos |@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryBundleStateInfos
Deprecated version: N/A|Method or attribute name: queryBundleStateInfos
Deprecated version: 9|@ohos.bundleState.d.ts| +|Deprecated version changed|Class name: IntervalType
Deprecated version: N/A|Class name: IntervalType
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.IntervalType |@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryBundleStateInfoByInterval
Deprecated version: N/A|Method or attribute name: queryBundleStateInfoByInterval
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.queryBundleStatsInfoByInterval |@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryBundleStateInfoByInterval
Deprecated version: N/A|Method or attribute name: queryBundleStateInfoByInterval
Deprecated version: 9|@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryBundleActiveStates
Deprecated version: N/A|Method or attribute name: queryBundleActiveStates
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.queryBundleEvents |@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryBundleActiveStates
Deprecated version: N/A|Method or attribute name: queryBundleActiveStates
Deprecated version: 9|@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryCurrentBundleActiveStates
Deprecated version: N/A|Method or attribute name: queryCurrentBundleActiveStates
Deprecated version: 9
New API: ohos.resourceschedule.usageStatistics.queryCurrentBundleEvents |@ohos.bundleState.d.ts| +|Deprecated version changed|Method or attribute name: queryCurrentBundleActiveStates
Deprecated version: N/A|Method or attribute name: queryCurrentBundleActiveStates
Deprecated version: 9|@ohos.bundleState.d.ts| +|Deprecated version changed|Class name: workScheduler
Deprecated version: N/A|Class name: workScheduler
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler |@ohos.workScheduler.d.ts| +|Deprecated version changed|Class name: WorkInfo
Deprecated version: N/A|Class name: WorkInfo
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.WorkInfo |@ohos.workScheduler.d.ts| +|Deprecated version changed|Method or attribute name: startWork
Deprecated version: N/A|Method or attribute name: startWork
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.startWork |@ohos.workScheduler.d.ts| +|Deprecated version changed|Method or attribute name: stopWork
Deprecated version: N/A|Method or attribute name: stopWork
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.stopWork |@ohos.workScheduler.d.ts| +|Deprecated version changed|Method or attribute name: getWorkStatus
Deprecated version: N/A|Method or attribute name: getWorkStatus
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.getWorkStatus |@ohos.workScheduler.d.ts| +|Deprecated version changed|Method or attribute name: getWorkStatus
Deprecated version: N/A|Method or attribute name: getWorkStatus
Deprecated version: 9|@ohos.workScheduler.d.ts| +|Deprecated version changed|Method or attribute name: obtainAllWorks
Deprecated version: N/A|Method or attribute name: obtainAllWorks
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.obtainAllWorks |@ohos.workScheduler.d.ts| +|Deprecated version changed|Method or attribute name: obtainAllWorks
Deprecated version: N/A|Method or attribute name: obtainAllWorks
Deprecated version: 9|@ohos.workScheduler.d.ts| +|Deprecated version changed|Method or attribute name: stopAndClearWorks
Deprecated version: N/A|Method or attribute name: stopAndClearWorks
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.stopAndClearWorks |@ohos.workScheduler.d.ts| +|Deprecated version changed|Method or attribute name: isLastWorkTimeOut
Deprecated version: N/A|Method or attribute name: isLastWorkTimeOut
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.isLastWorkTimeOut |@ohos.workScheduler.d.ts| +|Deprecated version changed|Method or attribute name: isLastWorkTimeOut
Deprecated version: N/A|Method or attribute name: isLastWorkTimeOut
Deprecated version: 9|@ohos.workScheduler.d.ts| +|Deprecated version changed|Class name: NetworkType
Deprecated version: N/A|Class name: NetworkType
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.NetworkType |@ohos.workScheduler.d.ts| +|Deprecated version changed|Class name: ChargingType
Deprecated version: N/A|Class name: ChargingType
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.ChargingType |@ohos.workScheduler.d.ts| +|Deprecated version changed|Class name: BatteryStatus
Deprecated version: N/A|Class name: BatteryStatus
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.BatteryStatus |@ohos.workScheduler.d.ts| +|Deprecated version changed|Class name: StorageRequest
Deprecated version: N/A|Class name: StorageRequest
Deprecated version: 9
New API: ohos.resourceschedule.workScheduler.StorageRequest |@ohos.workScheduler.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-security.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-security.md new file mode 100644 index 0000000000000000000000000000000000000000..0e799d2bd04978f2708092161728d60b74f12f38 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-security.md @@ -0,0 +1,112 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.abilityAccessCtrl
Class name: AtManager
Method or attribute name: checkAccessToken|@ohos.abilityAccessCtrl.d.ts| +|Added||Method or attribute name: grantUserGrantedPermission
Function name: grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number): Promise;|@ohos.abilityAccessCtrl.d.ts| +|Added||Method or attribute name: grantUserGrantedPermission
Function name: grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number, callback: AsyncCallback): void;|@ohos.abilityAccessCtrl.d.ts| +|Added||Method or attribute name: revokeUserGrantedPermission
Function name: revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number): Promise;|@ohos.abilityAccessCtrl.d.ts| +|Added||Method or attribute name: revokeUserGrantedPermission
Function name: revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number, callback: AsyncCallback): void;|@ohos.abilityAccessCtrl.d.ts| +|Added||Method or attribute name: permissionName
Function name: permissionName: Permissions;|@ohos.abilityAccessCtrl.d.ts| +|Added||Method or attribute name: addPermissionUsedRecord
Function name: function addPermissionUsedRecord(tokenID: number, permissionName: Permissions, successCount: number, failCount: number): Promise;|@ohos.privacyManager.d.ts| +|Added||Method or attribute name: addPermissionUsedRecord
Function name: function addPermissionUsedRecord(tokenID: number, permissionName: Permissions, successCount: number, failCount: number, callback: AsyncCallback): void;|@ohos.privacyManager.d.ts| +|Added||Method or attribute name: startUsingPermission
Function name: function startUsingPermission(tokenID: number, permissionName: Permissions): Promise;|@ohos.privacyManager.d.ts| +|Added||Method or attribute name: startUsingPermission
Function name: function startUsingPermission(tokenID: number, permissionName: Permissions, callback: AsyncCallback): void;|@ohos.privacyManager.d.ts| +|Added||Method or attribute name: stopUsingPermission
Function name: function stopUsingPermission(tokenID: number, permissionName: Permissions): Promise;|@ohos.privacyManager.d.ts| +|Added||Method or attribute name: stopUsingPermission
Function name: function stopUsingPermission(tokenID: number, permissionName: Permissions, callback: AsyncCallback): void;|@ohos.privacyManager.d.ts| +|Added||Method or attribute name: permissionNames
Function name: permissionNames: Array;|@ohos.privacyManager.d.ts| +|Added||Module name: ohos.security.cryptoFramework
Class name: Result
Method or attribute name: ERR_RUNTIME_ERROR|@ohos.security.cryptoFramework.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: generateKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: generateKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: deleteKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: deleteKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: importKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: importKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: importWrappedKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: importWrappedKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: exportKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: exportKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: getKeyItemProperties|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: getKeyItemProperties|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: isKeyItemExist|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: isKeyItemExist|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: initSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: initSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: updateSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: updateSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: updateSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: finishSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: finishSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: finishSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: abortSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: abortSession|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: attestKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: huks
Method or attribute name: attestKeyItem|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksSessionHandle|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksSessionHandle
Method or attribute name: handle|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksSessionHandle
Method or attribute name: challenge|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksReturnResult|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksReturnResult
Method or attribute name: outData|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksReturnResult
Method or attribute name: properties|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksReturnResult
Method or attribute name: certChains|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_PERMISSION_FAIL|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_ILLEGAL_ARGUMENT|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_NOT_SUPPORTED_API|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_FILE_OPERATION_FAIL|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_COMMUNICATION_FAIL|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_CRYPTO_FAIL|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_KEY_AUTH_PERMANENTLY_INVALIDATED|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_KEY_AUTH_VERIFY_FAILED|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_KEY_AUTH_TIME_OUT|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_SESSION_LIMIT|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_ITEM_NOT_EXIST|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_EXTERNAL_ERROR|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_CREDENTIAL_NOT_EXIST|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_INSUFFICIENT_MEMORY|@ohos.security.huks.d.ts| +|Added||Module name: ohos.security.huks
Class name: HuksExceptionErrCode
Method or attribute name: HUKS_ERR_CODE_CALL_SERVICE_FAILED|@ohos.security.huks.d.ts| +|Deleted||Module name: ohos.security.cryptoFramework
Class name: Result
Method or attribute name: ERR_EXTERNAL_ERROR||@ohos.security.cryptoFramework.d.ts| +|Deleted||Module name: ohos.security.huks
Class name: huks
Method or attribute name: importWrappedKey||@ohos.security.huks.d.ts| +|Deleted||Module name: ohos.security.huks
Class name: huks
Method or attribute name: importWrappedKey||@ohos.security.huks.d.ts| +|Deleted||Module name: ohos.security.huks
Class name: huks
Method or attribute name: attestKey||@ohos.security.huks.d.ts| +|Deleted||Module name: ohos.security.huks
Class name: huks
Method or attribute name: attestKey||@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: verifyAccessToken
Deprecated version: N/A|Method or attribute name: verifyAccessToken
Deprecated version: 9
New API: ohos.abilityAccessCtrl.AtManager|@ohos.abilityAccessCtrl.d.ts| +|Deprecated version changed|Method or attribute name: generateKey
Deprecated version: N/A|Method or attribute name: generateKey
Deprecated version: 9
New API: ohos.security.huks.generateKeyItem |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: generateKey
Deprecated version: N/A|Method or attribute name: generateKey
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: deleteKey
Deprecated version: N/A|Method or attribute name: deleteKey
Deprecated version: 9
New API: ohos.security.huks.deleteKeyItem |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: deleteKey
Deprecated version: N/A|Method or attribute name: deleteKey
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: importKey
Deprecated version: N/A|Method or attribute name: importKey
Deprecated version: 9
New API: ohos.security.huks.importKeyItem |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: importKey
Deprecated version: N/A|Method or attribute name: importKey
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: exportKey
Deprecated version: N/A|Method or attribute name: exportKey
Deprecated version: 9
New API: ohos.security.huks.exportKeyItem |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: exportKey
Deprecated version: N/A|Method or attribute name: exportKey
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: getKeyProperties
Deprecated version: N/A|Method or attribute name: getKeyProperties
Deprecated version: 9
New API: ohos.security.huks.getKeyItemProperties |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: getKeyProperties
Deprecated version: N/A|Method or attribute name: getKeyProperties
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: isKeyExist
Deprecated version: N/A|Method or attribute name: isKeyExist
Deprecated version: 9
New API: ohos.security.huks.isKeyItemExist |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: isKeyExist
Deprecated version: N/A|Method or attribute name: isKeyExist
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: init
Deprecated version: N/A|Method or attribute name: init
Deprecated version: 9
New API: ohos.security.huks.initSession |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: init
Deprecated version: N/A|Method or attribute name: init
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: update
Deprecated version: N/A|Method or attribute name: update
Deprecated version: 9
New API: ohos.security.huks.updateSession |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: update
Deprecated version: N/A|Method or attribute name: update
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: update
Deprecated version: N/A|Method or attribute name: update
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: finish
Deprecated version: N/A|Method or attribute name: finish
Deprecated version: 9
New API: ohos.security.huks.finishSession |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: finish
Deprecated version: N/A|Method or attribute name: finish
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: abort
Deprecated version: N/A|Method or attribute name: abort
Deprecated version: 9
New API: ohos.security.huks.abortSession |@ohos.security.huks.d.ts| +|Deprecated version changed|Method or attribute name: abort
Deprecated version: N/A|Method or attribute name: abort
Deprecated version: 9|@ohos.security.huks.d.ts| +|Deprecated version changed|Class name: HuksHandle
Deprecated version: N/A|Class name: HuksHandle
Deprecated version: 9
New API: ohos.security.huks.HuksSessionHandle |@ohos.security.huks.d.ts| +|Deprecated version changed|Class name: HuksResult
Deprecated version: N/A|Class name: HuksResult
Deprecated version: 9
New API: ohos.security.huks.HuksReturnResult |@ohos.security.huks.d.ts| +|Deprecated version changed|Class name: HuksErrorCode
Deprecated version: N/A|Class name: HuksErrorCode
Deprecated version: 9
New API: ohos.security.huks.HuksExceptionErrCode |@ohos.security.huks.d.ts| +|Deprecated version changed|Class name: Cipher
Deprecated version: N/A|Class name: Cipher
Deprecated version: 9
New API: ohos.security.cryptoFramework.Cipher |@system.cipher.d.ts| +|Deprecated version changed|Method or attribute name: rsa
Deprecated version: N/A|Method or attribute name: rsa
Deprecated version: 9
New API: ohos.security.cryptoFramework.Cipher |@system.cipher.d.ts| +|Deprecated version changed|Method or attribute name: aes
Deprecated version: N/A|Method or attribute name: aes
Deprecated version: 9
New API: ohos.security.cryptoFramework.Cipher |@system.cipher.d.ts| +|Initial version changed|Method or attribute name: getPermissionFlags
Initial version: 9|Method or attribute name: getPermissionFlags
Initial version: 8|@ohos.abilityAccessCtrl.d.ts| +|Initial version changed|Method or attribute name: update
Initial version: 9|Method or attribute name: update
Initial version: 8|@ohos.security.huks.d.ts| +|Initial version changed|Method or attribute name: update
Initial version: 9|Method or attribute name: update
Initial version: 8|@ohos.security.huks.d.ts| +|Initial version changed|Method or attribute name: update
Initial version: 9|Method or attribute name: update
Initial version: 8|@ohos.security.huks.d.ts| +|Error code added||Method or attribute name: verifyAccessTokenSync
Error code: 401, 12100001|@ohos.abilityAccessCtrl.d.ts| +|Error code added||Method or attribute name: getPermissionFlags
Error code: 401, 201, 12100001, 12100002, 12100003, 12100006, 12100007|@ohos.abilityAccessCtrl.d.ts| +|Error code added||Method or attribute name: on_permissionStateChange
Error code: 401, 201, 12100001, 12100004, 12100005, 12100007, 12100008|@ohos.abilityAccessCtrl.d.ts| +|Error code added||Method or attribute name: off_permissionStateChange
Error code: 401, 201, 12100001, 12100004, 12100007, 12100008|@ohos.abilityAccessCtrl.d.ts| +|Error code added||Method or attribute name: getPermissionUsedRecords
Error code: 401, 201, 12100001, 12100002, 12100003, 12100007,12100008|@ohos.privacyManager.d.ts| +|Error code added||Method or attribute name: on_activeStateChange
Error code: 401, 201, 12100001, 12100004, 12100005, 12100007, 12100008|@ohos.privacyManager.d.ts| +|Error code added||Method or attribute name: off_activeStateChange
Error code: 401, 201, 12100001, 12100004, 12100007, 12100008|@ohos.privacyManager.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-sensor.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-sensor.md new file mode 100644 index 0000000000000000000000000000000000000000..02be636ee644fc36a553aff82085576cb01ce73e --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-sensor.md @@ -0,0 +1,209 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.sensor
Class name: SensorId|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: ACCELEROMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: GYROSCOPE|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: AMBIENT_LIGHT|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: MAGNETIC_FIELD|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: BAROMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: HALL|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: PROXIMITY|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: HUMIDITY|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: ORIENTATION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: GRAVITY|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: LINEAR_ACCELEROMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: ROTATION_VECTOR|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: AMBIENT_TEMPERATURE|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: MAGNETIC_FIELD_UNCALIBRATED|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: GYROSCOPE_UNCALIBRATED|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: SIGNIFICANT_MOTION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: PEDOMETER_DETECTION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: PEDOMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: HEART_RATE|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: WEAR_DETECTION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: SensorId
Method or attribute name: ACCELEROMETER_UNCALIBRATED|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_ACCELEROMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_ACCELEROMETER_UNCALIBRATED|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_AMBIENT_LIGHT|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_AMBIENT_TEMPERATURE|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_BAROMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_GRAVITY|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_GYROSCOPE|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_GYROSCOPE_UNCALIBRATED|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_HALL|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_HEART_RATE|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_HUMIDITY|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_LINEAR_ACCELEROMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_MAGNETIC_FIELD|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_MAGNETIC_FIELD_UNCALIBRATED|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_ORIENTATION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_PEDOMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_PEDOMETER_DETECTION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_PROXIMITY|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_ROTATION_VECTOR|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_SIGNIFICANT_MOTION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorId_WEAR_DETECTION|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.ACCELEROMETER, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.AMBIENT_LIGHT, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.BAROMETER, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.GRAVITY, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.GYROSCOPE, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.HALL, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.HEART_RATE, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.HUMIDITY, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.MAGNETIC_FIELD, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.ORIENTATION, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.PEDOMETER, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.PROXIMITY, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.ROTATION_VECTOR, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: once
Function name: function once(type: SensorId.WEAR_DETECTION, callback: Callback): void;|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_ACCELEROMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_ACCELEROMETER_UNCALIBRATED|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_AMBIENT_LIGHT|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_AMBIENT_TEMPERATURE|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_BAROMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_GRAVITY|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_GYROSCOPE|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_GYROSCOPE_UNCALIBRATED|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_HALL|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_HEART_RATE|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_HUMIDITY|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_LINEAR_ACCELEROMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_MAGNETIC_FIELD|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_MAGNETIC_FIELD_UNCALIBRATED|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_ORIENTATION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_PEDOMETER|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_PEDOMETER_DETECTION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_PROXIMITY|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_ROTATION_VECTOR|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_SIGNIFICANT_MOTION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorId_WEAR_DETECTION|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: Sensor
Method or attribute name: sensorId|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: Sensor
Method or attribute name: minSamplePeriod|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: Sensor
Method or attribute name: maxSamplePeriod|@ohos.sensor.d.ts| +|Added||Method or attribute name: getSingleSensor
Function name: function getSingleSensor(type: SensorId, callback: AsyncCallback): void;|@ohos.sensor.d.ts| +|Added||Method or attribute name: getSingleSensor
Function name: function getSingleSensor(type: SensorId): Promise;|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getSensorList|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getSensorList|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getGeomagneticInfo|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getGeomagneticInfo|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getDeviceAltitude|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getDeviceAltitude|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getInclination|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getInclination|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getAngleVariation|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getAngleVariation|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getRotationMatrix|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getRotationMatrix|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: transformRotationMatrix|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: transformRotationMatrix|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getQuaternion|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getQuaternion|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getOrientation|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getOrientation|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getRotationMatrix|@ohos.sensor.d.ts| +|Added||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getRotationMatrix|@ohos.sensor.d.ts| +|Added||Module name: ohos.vibrator
Class name: vibrator
Method or attribute name: startVibration|@ohos.vibrator.d.ts| +|Added||Module name: ohos.vibrator
Class name: vibrator
Method or attribute name: startVibration|@ohos.vibrator.d.ts| +|Added||Module name: ohos.vibrator
Class name: vibrator
Method or attribute name: stopVibration|@ohos.vibrator.d.ts| +|Added||Module name: ohos.vibrator
Class name: vibrator
Method or attribute name: stopVibration|@ohos.vibrator.d.ts| +|Deleted||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorType_SENSOR_TYPE_ID_HEART_BEAT_RATE||@ohos.sensor.d.ts| +|Deleted||Module name: ohos.sensor
Class name: sensor
Method or attribute name: on_SensorType_SENSOR_TYPE_ID_LINEAR_ACCELEROMETER||@ohos.sensor.d.ts| +|Deleted||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorType_SENSOR_TYPE_ID_HEART_BEAT_RATE||@ohos.sensor.d.ts| +|Deleted||Module name: ohos.sensor
Class name: sensor
Method or attribute name: off_SensorType_SENSOR_TYPE_ID_LINEAR_ACCELEROMETER||@ohos.sensor.d.ts| +|Deleted||Module name: ohos.sensor
Class name: Sensor
Method or attribute name: sensorTypeId||@ohos.sensor.d.ts| +|Deleted||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getSensorLists||@ohos.sensor.d.ts| +|Deleted||Module name: ohos.sensor
Class name: sensor
Method or attribute name: getSensorLists||@ohos.sensor.d.ts| +|Deleted||Module name: ohos.sensor
Class name: SensorType
Method or attribute name: SENSOR_TYPE_ID_LINEAR_ACCELEROMETER||@ohos.sensor.d.ts| +|Deleted||Module name: ohos.sensor
Class name: SensorType
Method or attribute name: SENSOR_TYPE_ID_HEART_BEAT_RATE||@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_ACCELEROMETER
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_ACCELEROMETER
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_AMBIENT_LIGHT
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_AMBIENT_LIGHT
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_AMBIENT_TEMPERATURE
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_AMBIENT_TEMPERATURE
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_BAROMETER
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_BAROMETER
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_GRAVITY
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_GRAVITY
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_GYROSCOPE
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_GYROSCOPE
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_HALL
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_HALL
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_HUMIDITY
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_HUMIDITY
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_MAGNETIC_FIELD
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_MAGNETIC_FIELD
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_ORIENTATION
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_ORIENTATION
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_PEDOMETER
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_PEDOMETER
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_PEDOMETER_DETECTION
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_PEDOMETER_DETECTION
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_PROXIMITY
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_PROXIMITY
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_ROTATION_VECTOR
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_ROTATION_VECTOR
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_SIGNIFICANT_MOTION
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_SIGNIFICANT_MOTION
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_WEAR_DETECTION
Deprecated version: N/A|Method or attribute name: on_SensorType_SENSOR_TYPE_ID_WEAR_DETECTION
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: once
Deprecated version: N/A|Method or attribute name: once
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_ACCELEROMETER
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_ACCELEROMETER
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_AMBIENT_LIGHT
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_AMBIENT_LIGHT
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_AMBIENT_TEMPERATURE
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_AMBIENT_TEMPERATURE
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_BAROMETER
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_BAROMETER
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_GRAVITY
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_GRAVITY
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_GYROSCOPE
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_GYROSCOPE
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_HALL
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_HALL
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_HUMIDITY
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_HUMIDITY
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_MAGNETIC_FIELD
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_MAGNETIC_FIELD
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_ORIENTATION
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_ORIENTATION
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_PEDOMETER
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_PEDOMETER
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_PEDOMETER_DETECTION
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_PEDOMETER_DETECTION
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_PROXIMITY
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_PROXIMITY
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_ROTATION_VECTOR
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_ROTATION_VECTOR
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_SIGNIFICANT_MOTION
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_SIGNIFICANT_MOTION
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_WEAR_DETECTION
Deprecated version: N/A|Method or attribute name: off_SensorType_SENSOR_TYPE_ID_WEAR_DETECTION
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getGeomagneticField
Deprecated version: N/A|Method or attribute name: getGeomagneticField
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getGeomagneticField
Deprecated version: N/A|Method or attribute name: getGeomagneticField
Deprecated version: 9|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getAltitude
Deprecated version: N/A|Method or attribute name: getAltitude
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getAltitude
Deprecated version: N/A|Method or attribute name: getAltitude
Deprecated version: 9|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getGeomagneticDip
Deprecated version: N/A|Method or attribute name: getGeomagneticDip
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getGeomagneticDip
Deprecated version: N/A|Method or attribute name: getGeomagneticDip
Deprecated version: 9|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getAngleModify
Deprecated version: N/A|Method or attribute name: getAngleModify
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getAngleModify
Deprecated version: N/A|Method or attribute name: getAngleModify
Deprecated version: 9|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: createRotationMatrix
Deprecated version: N/A|Method or attribute name: createRotationMatrix
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: createRotationMatrix
Deprecated version: N/A|Method or attribute name: createRotationMatrix
Deprecated version: 9|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: transformCoordinateSystem
Deprecated version: N/A|Method or attribute name: transformCoordinateSystem
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: transformCoordinateSystem
Deprecated version: N/A|Method or attribute name: transformCoordinateSystem
Deprecated version: 9|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: createQuaternion
Deprecated version: N/A|Method or attribute name: createQuaternion
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: createQuaternion
Deprecated version: N/A|Method or attribute name: createQuaternion
Deprecated version: 9|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getDirection
Deprecated version: N/A|Method or attribute name: getDirection
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: getDirection
Deprecated version: N/A|Method or attribute name: getDirection
Deprecated version: 9|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: createRotationMatrix
Deprecated version: N/A|Method or attribute name: createRotationMatrix
Deprecated version: 9
New API: sensor|@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: createRotationMatrix
Deprecated version: N/A|Method or attribute name: createRotationMatrix
Deprecated version: 9|@ohos.sensor.d.ts| +|Deprecated version changed|Class name: SensorType
Deprecated version: N/A|Class name: SensorType
Deprecated version: 9
New API: sensor.SensorId |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: SENSOR_TYPE_ID_LINEAR_ACCELERATION
Deprecated version: 9|Method or attribute name: SENSOR_TYPE_ID_LINEAR_ACCELERATION
Deprecated version: N/A
New API: sensor.SensorId |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: SENSOR_TYPE_ID_HEART_RATE
Deprecated version: 9|Method or attribute name: SENSOR_TYPE_ID_HEART_RATE
Deprecated version: N/A
New API: sensor.SensorId |@ohos.sensor.d.ts| +|Deprecated version changed|Method or attribute name: vibrate
Deprecated version: N/A|Method or attribute name: vibrate
Deprecated version: 9
New API: vibrator|@ohos.vibrator.d.ts| +|Deprecated version changed|Method or attribute name: vibrate
Deprecated version: N/A|Method or attribute name: vibrate
Deprecated version: 9|@ohos.vibrator.d.ts| +|Deprecated version changed|Method or attribute name: vibrate
Deprecated version: N/A|Method or attribute name: vibrate
Deprecated version: 9
New API: vibrator|@ohos.vibrator.d.ts| +|Deprecated version changed|Method or attribute name: vibrate
Deprecated version: N/A|Method or attribute name: vibrate
Deprecated version: 9|@ohos.vibrator.d.ts| +|Deprecated version changed|Method or attribute name: stop
Deprecated version: N/A|Method or attribute name: stop
Deprecated version: 9
New API: vibrator|@ohos.vibrator.d.ts| +|Deprecated version changed|Method or attribute name: stop
Deprecated version: N/A|Method or attribute name: stop
Deprecated version: 9|@ohos.vibrator.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-start-up.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-start-up.md new file mode 100644 index 0000000000000000000000000000000000000000..c83271778fd0b90a8c0da966999603c89a8ce354 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-start-up.md @@ -0,0 +1,10 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.systemParameterV9
Class name: systemParameterV9|@ohos.systemParameterV9.d.ts| +|Added||Module name: ohos.systemParameterV9
Class name: systemParameterV9
Method or attribute name: getSync|@ohos.systemParameterV9.d.ts| +|Added||Module name: ohos.systemParameterV9
Class name: systemParameterV9
Method or attribute name: get|@ohos.systemParameterV9.d.ts| +|Added||Module name: ohos.systemParameterV9
Class name: systemParameterV9
Method or attribute name: get|@ohos.systemParameterV9.d.ts| +|Added||Module name: ohos.systemParameterV9
Class name: systemParameterV9
Method or attribute name: get|@ohos.systemParameterV9.d.ts| +|Added||Module name: ohos.systemParameterV9
Class name: systemParameterV9
Method or attribute name: setSync|@ohos.systemParameterV9.d.ts| +|Added||Module name: ohos.systemParameterV9
Class name: systemParameterV9
Method or attribute name: set|@ohos.systemParameterV9.d.ts| +|Added||Module name: ohos.systemParameterV9
Class name: systemParameterV9
Method or attribute name: set|@ohos.systemParameterV9.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-telephony.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-telephony.md new file mode 100644 index 0000000000000000000000000000000000000000..df47ac6b58531d3404fbf9971d40333c94d1dc08 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-telephony.md @@ -0,0 +1,11 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|New||Method or attribute name: sendUpdateCellLocationRequest
Function name: function sendUpdateCellLocationRequest(slotId?: number): Promise;|@ohos.telephony.radio.d.ts| +|Initial version changed|Method or attribute name: sendUpdateCellLocationRequest
Initial version: 9|Method or attribute name: sendUpdateCellLocationRequest
Initial version: 8|@ohos.telephony.radio.d.ts| +|Permission deleted|Method or attribute name: getDefaultCellularDataSlotId
Permission: ohos.permission.GET_NETWORK_INFO|Method or attribute name: getDefaultCellularDataSlotId
Permission: N/A|@ohos.telephony.data.d.ts| +|Permission deleted|Method or attribute name: getDefaultCellularDataSlotId
Permission: ohos.permission.GET_NETWORK_INFO|Method or attribute name: getDefaultCellularDataSlotId
Permission: N/A|@ohos.telephony.data.d.ts| +|Permission deleted|Method or attribute name: getDefaultCellularDataSlotIdSync
Permission: ohos.permission.GET_NETWORK_INFO|Method or attribute name: getDefaultCellularDataSlotIdSync
Permission: N/A|@ohos.telephony.data.d.ts| +|Permission added|Method or attribute name: sendUpdateCellLocationRequest
Permission: N/A|Method or attribute name: sendUpdateCellLocationRequest
Permission: ohos.permission.LOCATION|@ohos.telephony.radio.d.ts| +|Permission added|Method or attribute name: sendUpdateCellLocationRequest
Permission: N/A|Method or attribute name: sendUpdateCellLocationRequest
Permission: ohos.permission.LOCATION|@ohos.telephony.radio.d.ts| +|Permission added|Method or attribute name: getLockState
Permission: N/A|Method or attribute name: getLockState
Permission: ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.sim.d.ts| +|Permission added|Method or attribute name: getLockState
Permission: N/A|Method or attribute name: getLockState
Permission: ohos.permission.GET_TELEPHONY_STATE|@ohos.telephony.sim.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-unitest.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-unitest.md new file mode 100644 index 0000000000000000000000000000000000000000..f1abc43037b8b59e0ad8cf319260ea2d76bae5cf --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-unitest.md @@ -0,0 +1,111 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Method or attribute name: bundleName
Function name: bundleName?: string;|@ohos.uitest.d.ts| +|Added||Method or attribute name: title
Function name: title?: string;|@ohos.uitest.d.ts| +|Added||Method or attribute name: focused
Function name: focused?: boolean;|@ohos.uitest.d.ts| +|Added||Method or attribute name: actived
Function name: actived?: boolean;|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: text|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: id|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: type|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: clickable|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: longClickable|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: scrollable|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: enabled|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: focused|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: selected|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: checked|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: checkable|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: isBefore|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: On
Method or attribute name: isAfter|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: click|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: doubleClick|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: longClick|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: getId|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: getText|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: getType|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: isClickable|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: isLongClickable|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: isScrollable|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: isEnabled|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: isFocused|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: isSelected|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: isChecked|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: isCheckable|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: inputText|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: clearText|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: scrollToTop|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: scrollToBottom|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: scrollSearch|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: getBounds|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: getBoundsCenter|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: dragTo|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: pinchOut|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Component
Method or attribute name: pinchIn|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: create|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: delayMs|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: findComponent|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: findWindow|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: waitForComponent|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: findComponents|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: assertComponentExist|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: pressBack|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: triggerKey|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: triggerCombineKeys|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: click|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: doubleClick|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: longClick|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: swipe|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: drag|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: screenCap|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: setDisplayRotation|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: getDisplayRotation|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: setDisplayRotationEnabled|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: getDisplaySize|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: getDisplayDensity|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: wakeUpDisplay|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: pressHome|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: waitForIdle|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: fling|@ohos.uitest.d.ts| +|Added||Module name: ohos.uitest
Class name: Driver
Method or attribute name: injectMultiPointerAction|@ohos.uitest.d.ts| +|Added||Method or attribute name: focus
Function name: focus(): Promise;|@ohos.uitest.d.ts| +|Added||Method or attribute name: moveTo
Function name: moveTo(x: number, y: number): Promise;|@ohos.uitest.d.ts| +|Added||Method or attribute name: resize
Function name: resize(wide: number, height: number, direction: ResizeDirection): Promise;|@ohos.uitest.d.ts| +|Added||Method or attribute name: split
Function name: split(): Promise;|@ohos.uitest.d.ts| +|Added||Method or attribute name: maximize
Function name: maximize(): Promise;|@ohos.uitest.d.ts| +|Added||Method or attribute name: minimize
Function name: minimize(): Promise;|@ohos.uitest.d.ts| +|Added||Method or attribute name: resume
Function name: resume(): Promise;|@ohos.uitest.d.ts| +|Added||Method or attribute name: close
Function name: close(): Promise;|@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: By
Method or attribute name: longClickable||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: By
Method or attribute name: checked||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: By
Method or attribute name: checkable||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: isLongClickable||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: isChecked||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: isCheckable||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: clearText||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: scrollToTop||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: scrollToBottom||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: getBounds||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: getBoundsCenter||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: dragTo||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: pinchOut||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiComponent
Method or attribute name: pinchIn||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: findWindow||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: waitForComponent||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: triggerCombineKeys||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: drag||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: setDisplayRotation||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: getDisplayRotation||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: setDisplayRotationEnabled||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: getDisplaySize||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: getDisplayDensity||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: wakeUpDisplay||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: pressHome||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: waitForIdle||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: fling||@ohos.uitest.d.ts| +|Deleted||Module name: ohos.uitest
Class name: UiDriver
Method or attribute name: injectMultiPointerAction||@ohos.uitest.d.ts| +|Deprecated version changed|Class name: By
Deprecated version: N/A|Class name: By
Deprecated version: 9
New API: ohos.uitest.On |@ohos.uitest.d.ts| +|Deprecated version changed|Class name: UiComponent
Deprecated version: N/A|Class name: UiComponent
Deprecated version: 9
New API: ohos.uitest.Component |@ohos.uitest.d.ts| +|Deprecated version changed|Class name: UiDriver
Deprecated version: N/A|Class name: UiDriver
Deprecated version: 9
New API: ohos.uitest.Driver |@ohos.uitest.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-update.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-update.md new file mode 100644 index 0000000000000000000000000000000000000000..50bde3f3f511684b6dd85fade864276210913fb3 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-update.md @@ -0,0 +1,26 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Error code added||Method or attribute name: getOnlineUpdater
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: getRestorer
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: getLocalUpdater
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: checkNewVersion
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: getNewVersionInfo
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: getNewVersionDescription
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: getCurrentVersionInfo
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: getCurrentVersionDescription
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: getTaskInfo
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: download
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: resumeDownload
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: pauseDownload
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: upgrade
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: clearError
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: getUpgradePolicy
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: setUpgradePolicy
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: terminateUpgrade
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: on
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: off
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: factoryReset
Error code: 201, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: verifyUpgradePackage
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: applyNewVersion
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: on
Error code: 201, 401, 11500104|@ohos.update.d.ts| +|Error code added||Method or attribute name: off
Error code: 201, 401, 11500104|@ohos.update.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-usb.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-usb.md new file mode 100644 index 0000000000000000000000000000000000000000..5d8fb9ba049cc8f2db7e885f776ecf785ecd104f --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-usb.md @@ -0,0 +1,121 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Method or attribute name: controlTransfer
Function name: function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise;|@ohos.usb.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: getDevices|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: connectDevice|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: hasRight|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: requestRight|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: removeRight|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: addRight|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: usbFunctionsFromString|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: usbFunctionsToString|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: setCurrentFunctions|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: getCurrentFunctions|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: getPorts|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: getSupportedModes|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: setPortRoles|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: claimInterface|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: releaseInterface|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: setConfiguration|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: setInterface|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: getRawDescriptor|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: getFileDescriptor|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: controlTransfer|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: bulkTransfer|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: usbV9
Method or attribute name: closePipe|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBEndpoint|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBEndpoint
Method or attribute name: address|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBEndpoint
Method or attribute name: attributes|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBEndpoint
Method or attribute name: interval|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBEndpoint
Method or attribute name: maxPacketSize|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBEndpoint
Method or attribute name: direction|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBEndpoint
Method or attribute name: number|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBEndpoint
Method or attribute name: type|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBEndpoint
Method or attribute name: interfaceId|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBInterface|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBInterface
Method or attribute name: id|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBInterface
Method or attribute name: protocol|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBInterface
Method or attribute name: clazz|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBInterface
Method or attribute name: subClass|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBInterface
Method or attribute name: alternateSetting|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBInterface
Method or attribute name: name|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBInterface
Method or attribute name: endpoints|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBConfig|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBConfig
Method or attribute name: id|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBConfig
Method or attribute name: attributes|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBConfig
Method or attribute name: maxPower|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBConfig
Method or attribute name: name|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBConfig
Method or attribute name: isRemoteWakeup|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBConfig
Method or attribute name: isSelfPowered|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBConfig
Method or attribute name: interfaces|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: busNum|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: devAddress|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: serial|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: name|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: manufacturerName|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: productName|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: version|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: vendorId|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: productId|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: clazz|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: subClass|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: protocol|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevice
Method or attribute name: configs|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevicePipe|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevicePipe
Method or attribute name: busNum|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBDevicePipe
Method or attribute name: devAddress|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PowerRoleType|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PowerRoleType
Method or attribute name: NONE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PowerRoleType
Method or attribute name: SOURCE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PowerRoleType
Method or attribute name: SINK|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: DataRoleType|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: DataRoleType
Method or attribute name: NONE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: DataRoleType
Method or attribute name: HOST|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: DataRoleType
Method or attribute name: DEVICE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PortModeType|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PortModeType
Method or attribute name: NONE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PortModeType
Method or attribute name: UFP|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PortModeType
Method or attribute name: DFP|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PortModeType
Method or attribute name: DRP|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: PortModeType
Method or attribute name: NUM_MODES|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBPortStatus|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBPortStatus
Method or attribute name: currentMode|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBPortStatus
Method or attribute name: currentPowerRole|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBPortStatus
Method or attribute name: currentDataRole|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBPort|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBPort
Method or attribute name: id|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBPort
Method or attribute name: supportedModes|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBPort
Method or attribute name: status|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlParams|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlParams
Method or attribute name: request|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlParams
Method or attribute name: target|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlParams
Method or attribute name: reqType|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlParams
Method or attribute name: value|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlParams
Method or attribute name: index|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlParams
Method or attribute name: data|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBRequestTargetType|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBRequestTargetType
Method or attribute name: USB_REQUEST_TARGET_DEVICE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBRequestTargetType
Method or attribute name: USB_REQUEST_TARGET_INTERFACE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBRequestTargetType
Method or attribute name: USB_REQUEST_TARGET_ENDPOINT|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBRequestTargetType
Method or attribute name: USB_REQUEST_TARGET_OTHER|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlRequestType|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlRequestType
Method or attribute name: USB_REQUEST_TYPE_STANDARD|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlRequestType
Method or attribute name: USB_REQUEST_TYPE_CLASS|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBControlRequestType
Method or attribute name: USB_REQUEST_TYPE_VENDOR|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBRequestDirection|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBRequestDirection
Method or attribute name: USB_REQUEST_DIR_TO_DEVICE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: USBRequestDirection
Method or attribute name: USB_REQUEST_DIR_FROM_DEVICE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: NONE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: ACM|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: ECM|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: HDC|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: MTP|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: PTP|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: RNDIS|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: MIDI|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: AUDIO_SOURCE|@ohos.usbV9.d.ts| +|Added||Module name: ohos.usbV9
Class name: FunctionType
Method or attribute name: NCM|@ohos.usbV9.d.ts| +|Deprecated version changed|Class name: usb
Deprecated version: N/A|Class name: usb
Deprecated version: 9
New API: ohos.usbV9 |@ohos.usb.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-user-iam.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-user-iam.md new file mode 100644 index 0000000000000000000000000000000000000000..a87850d731d5651de3a149668146a0c4405ed0a7 --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-user-iam.md @@ -0,0 +1,59 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Method or attribute name: setSurfaceId
Function name: setSurfaceId(surfaceId: string): void;|@ohos.userIAM.faceAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthEvent|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthEvent
Method or attribute name: callback|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthResultInfo|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthResultInfo
Method or attribute name: result|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthResultInfo
Method or attribute name: token|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthResultInfo
Method or attribute name: remainAttempts|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthResultInfo
Method or attribute name: lockoutDuration|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: TipInfo|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: TipInfo
Method or attribute name: module|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: TipInfo
Method or attribute name: tip|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthInstance|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthInstance
Method or attribute name: on|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthInstance
Method or attribute name: off|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthInstance
Method or attribute name: start|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: AuthInstance
Method or attribute name: cancel|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: userAuth
Method or attribute name: getVersion|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: userAuth
Method or attribute name: getAvailableStatus|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: userAuth
Method or attribute name: getAuthInstance|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: SUCCESS|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: FAIL|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: GENERAL_ERROR|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: CANCELED|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: TIMEOUT|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: TYPE_NOT_SUPPORT|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: TRUST_LEVEL_NOT_SUPPORT|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: BUSY|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: LOCKED|@ohos.userIAM.userAuth.d.ts| +|Added||Module name: ohos.userIAM.userAuth
Class name: ResultCodeV9
Method or attribute name: NOT_ENROLLED|@ohos.userIAM.userAuth.d.ts| +|Deleted|Module name: ohos.userIAM.faceAuth
Class name: ResultCode||@ohos.userIAM.faceAuth.d.ts| +|Deleted|Module name: ohos.userIAM.faceAuth
Class name: ResultCode
Method or attribute name: SUCCESS||@ohos.userIAM.faceAuth.d.ts| +|Deleted|Module name: ohos.userIAM.faceAuth
Class name: ResultCode
Method or attribute name: FAIL||@ohos.userIAM.faceAuth.d.ts| +|Deprecated version changed|Class name: AuthenticationResult
Deprecated version: N/A|Class name: AuthenticationResult
Deprecated version: 8
New API: ohos.userIAM.userAuth.ResultCode |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Class name: Authenticator
Deprecated version: N/A|Class name: Authenticator
Deprecated version: 8|@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Class name: UserAuth
Deprecated version: N/A|Class name: UserAuth
Deprecated version: 9
New API: ohos.userIAM.userAuth.AuthInstance |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: getVersion
Deprecated version: N/A|Method or attribute name: getVersion
Deprecated version: 9
New API: ohos.userIAM.userAuth.getVersion |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: getAvailableStatus
Deprecated version: N/A|Method or attribute name: getAvailableStatus
Deprecated version: 9
New API: ohos.userIAM.userAuth.getAvailableStatus |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: auth
Deprecated version: N/A|Method or attribute name: auth
Deprecated version: 9
New API: ohos.userIAM.userAuth.AuthInstance.start |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: cancelAuth
Deprecated version: N/A|Method or attribute name: cancelAuth
Deprecated version: 9
New API: ohos.userIAM.userAuth.AuthInstance.cancel |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Class name: IUserAuthCallback
Deprecated version: N/A|Class name: IUserAuthCallback
Deprecated version: 9
New API: ohos.userIAM.userAuth.AuthEvent |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: onResult
Deprecated version: N/A|Method or attribute name: onResult
Deprecated version: 9
New API: ohos.userIAM.userAuth.AuthEvent.callback |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: onAcquireInfo
Deprecated version: N/A|Method or attribute name: onAcquireInfo
Deprecated version: 9
New API: ohos.userIAM.userAuth.AuthEvent.callback |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Class name: AuthResult
Deprecated version: N/A|Class name: AuthResult
Deprecated version: 9
New API: ohos.userIAM.userAuth.AuthResultInfo |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Class name: ResultCode
Deprecated version: N/A|Class name: ResultCode
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: SUCCESS
Deprecated version: N/A|Method or attribute name: SUCCESS
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: FAIL
Deprecated version: N/A|Method or attribute name: FAIL
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: GENERAL_ERROR
Deprecated version: N/A|Method or attribute name: GENERAL_ERROR
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: CANCELED
Deprecated version: N/A|Method or attribute name: CANCELED
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: TIMEOUT
Deprecated version: N/A|Method or attribute name: TIMEOUT
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: TYPE_NOT_SUPPORT
Deprecated version: N/A|Method or attribute name: TYPE_NOT_SUPPORT
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: TRUST_LEVEL_NOT_SUPPORT
Deprecated version: N/A|Method or attribute name: TRUST_LEVEL_NOT_SUPPORT
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: BUSY
Deprecated version: N/A|Method or attribute name: BUSY
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: INVALID_PARAMETERS
Deprecated version: N/A|Method or attribute name: INVALID_PARAMETERS
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: LOCKED
Deprecated version: N/A|Method or attribute name: LOCKED
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Deprecated version changed|Method or attribute name: NOT_ENROLLED
Deprecated version: N/A|Method or attribute name: NOT_ENROLLED
Deprecated version: 9
New API: ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|Initial version changed|Class name: IUserAuthCallback
Initial version: 6|Class name: IUserAuthCallback
Initial version: 8|@ohos.userIAM.userAuth.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-web.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-web.md new file mode 100644 index 0000000000000000000000000000000000000000..06ef6496c1ed35a91506cec5db8d2e9651ffe64d --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-web.md @@ -0,0 +1,76 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.web.webview
Class name: HeaderV9|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HeaderV9
Method or attribute name: headerKey|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HeaderV9
Method or attribute name: headerValue|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestTypeV9|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestTypeV9
Method or attribute name: EditText|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestTypeV9
Method or attribute name: Email|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestTypeV9
Method or attribute name: HttpAnchor|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestTypeV9
Method or attribute name: HttpAnchorImg|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestTypeV9
Method or attribute name: Img|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestTypeV9
Method or attribute name: Map|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestTypeV9
Method or attribute name: Phone|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestTypeV9
Method or attribute name: Unknown|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestValue|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestValue
Method or attribute name: type|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: HitTestValue
Method or attribute name: extra|@ohos.web.webview.d.ts| +|Added||Method or attribute name: setCookie
Function name: static setCookie(url: string, value: string): void;|@ohos.web.webview.d.ts| +|Added||Method or attribute name: saveCookieAsync
Function name: static saveCookieAsync(): Promise;|@ohos.web.webview.d.ts| +|Added||Method or attribute name: saveCookieAsync
Function name: static saveCookieAsync(callback: AsyncCallback): void;|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebMessagePort|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebMessagePort
Method or attribute name: close|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebMessagePort
Method or attribute name: postMessageEvent|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebMessagePort
Method or attribute name: onMessageEvent|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: accessForward|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: accessBackward|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: accessStep|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: forward|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: backward|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: clearHistory|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: onActive|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: onInactive|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: refresh|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: loadData|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: loadUrl|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: getHitTest|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: storeWebArchive|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: storeWebArchive|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: zoom|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: zoomIn|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: zoomOut|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: getHitTestValue|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: getWebId|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: getUserAgent|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: getTitle|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: getPageHeight|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: backOrForward|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: requestFocus|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: createWebMessagePorts|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: postMessage|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: stop|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: registerJavaScriptProxy|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: deleteJavaScriptRegister|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: searchAllAsync|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: clearMatches|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: searchNext|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: clearSslCache|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: clearClientAuthenticationCache|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: runJavaScript|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: runJavaScript|@ohos.web.webview.d.ts| +|Added||Module name: ohos.web.webview
Class name: WebviewController
Method or attribute name: getUrl|@ohos.web.webview.d.ts| +|Deleted||Module name: ohos.web.webview
Class name: WebCookieManager
Method or attribute name: saveCookieSync||@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: deleteOrigin
Error code: 401, 17100011|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: getOrigins
Error code: 401,17100012|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: getOriginQuota
Error code: 401, 17100011|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: getOriginUsage
Error code: 401, 17100011|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: getHttpAuthCredentials
Error code: 401|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: saveHttpAuthCredentials
Error code: 401|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: allowGeolocation
Error code: 401, 17100011|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: deleteGeolocation
Error code: 401, 17100011|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: getAccessibleGeolocation
Error code: 401, 17100011|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: getStoredGeolocation
Error code: 401|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: getCookie
Error code: 401,17100002|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: putAcceptCookieEnabled
Error code: 401|@ohos.web.webview.d.ts| +|Error code added||Method or attribute name: putAcceptThirdPartyCookieEnabled
Error code: 401|@ohos.web.webview.d.ts| diff --git a/en/release-notes/api-diff/v3.2-beta4/js-apidiff-window.md b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-window.md new file mode 100644 index 0000000000000000000000000000000000000000..301dd144469f27e0e92dcf59ade07ce26734b2db --- /dev/null +++ b/en/release-notes/api-diff/v3.2-beta4/js-apidiff-window.md @@ -0,0 +1,111 @@ +| Change Type | New Version | Old Version | d.ts File | +| ---- | ------ | ------ | -------- | +|Added||Module name: ohos.display
Class name: display
Method or attribute name: getAllDisplays|@ohos.display.d.ts| +|Added||Module name: ohos.display
Class name: display
Method or attribute name: getAllDisplays|@ohos.display.d.ts| +|Added||Module name: ohos.window
Class name: Configuration|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Configuration
Method or attribute name: name|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Configuration
Method or attribute name: windowType|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Configuration
Method or attribute name: ctx|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Configuration
Method or attribute name: displayId|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Configuration
Method or attribute name: parentId|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: window
Method or attribute name: createWindow|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: window
Method or attribute name: createWindow|@ohos.window.d.ts| +|Added||Method or attribute name: create
Function name: function create(ctx: BaseContext, id: string, type: WindowType): Promise;|@ohos.window.d.ts| +|Added||Method or attribute name: create
Function name: function create(ctx: BaseContext, id: string, type: WindowType, callback: AsyncCallback): void;|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: window
Method or attribute name: findWindow|@ohos.window.d.ts| +|Added||Method or attribute name: getTopWindow
Function name: function getTopWindow(ctx: BaseContext): Promise;|@ohos.window.d.ts| +|Added||Method or attribute name: getTopWindow
Function name: function getTopWindow(ctx: BaseContext, callback: AsyncCallback): void;|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: window
Method or attribute name: getLastWindow|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: window
Method or attribute name: getLastWindow|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: showWindow|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: showWindow|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: destroyWindow|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: destroyWindow|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: moveWindowTo|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: moveWindowTo|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: resize|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: resize|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowMode|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowMode|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: getWindowProperties|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: getWindowAvoidArea|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowLayoutFullScreen|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowLayoutFullScreen|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowSystemBarEnable|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowSystemBarEnable|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowSystemBarProperties|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowSystemBarProperties|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setUIContent|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setUIContent|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: isWindowShowing|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: isWindowSupportWideGamut|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: isWindowSupportWideGamut|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowColorSpace|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowColorSpace|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: getWindowColorSpace|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowBackgroundColor|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowBrightness|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowBrightness|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowFocusable|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowFocusable|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowKeepScreenOn|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowKeepScreenOn|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowPrivacyMode|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowPrivacyMode|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowTouchable|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: Window
Method or attribute name: setWindowTouchable|@ohos.window.d.ts| +|Added||Module name: ohos.window
Class name: WindowStage
Method or attribute name: getMainWindowSync|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: getDefaultDisplay
Deprecated version: N/A|Method or attribute name: getDefaultDisplay
Deprecated version: 9
New API: ohos.display|@ohos.display.d.ts| +|Deprecated version changed|Method or attribute name: getDefaultDisplay
Deprecated version: N/A|Method or attribute name: getDefaultDisplay
Deprecated version: 9
New API: ohos.display|@ohos.display.d.ts| +|Deprecated version changed|Method or attribute name: getAllDisplay
Deprecated version: N/A|Method or attribute name: getAllDisplay
Deprecated version: 9
New API: ohos.display|@ohos.display.d.ts| +|Deprecated version changed|Method or attribute name: getAllDisplay
Deprecated version: N/A|Method or attribute name: getAllDisplay
Deprecated version: 9
New API: ohos.display|@ohos.display.d.ts| +|Deprecated version changed|Method or attribute name: create
Deprecated version: N/A|Method or attribute name: create
Deprecated version: 9
New API: ohos.window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: create
Deprecated version: N/A|Method or attribute name: create
Deprecated version: 9
New API: ohos.window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: find
Deprecated version: N/A|Method or attribute name: find
Deprecated version: 9
New API: ohos.window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: find
Deprecated version: N/A|Method or attribute name: find
Deprecated version: 9
New API: ohos.window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: getTopWindow
Deprecated version: N/A|Method or attribute name: getTopWindow
Deprecated version: 9
New API: ohos.window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: getTopWindow
Deprecated version: N/A|Method or attribute name: getTopWindow
Deprecated version: 9
New API: ohos.window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: show
Deprecated version: N/A|Method or attribute name: show
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: show
Deprecated version: N/A|Method or attribute name: show
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: destroy
Deprecated version: N/A|Method or attribute name: destroy
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: destroy
Deprecated version: N/A|Method or attribute name: destroy
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: moveTo
Deprecated version: N/A|Method or attribute name: moveTo
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: moveTo
Deprecated version: N/A|Method or attribute name: moveTo
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: resetSize
Deprecated version: N/A|Method or attribute name: resetSize
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: resetSize
Deprecated version: N/A|Method or attribute name: resetSize
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: getProperties
Deprecated version: N/A|Method or attribute name: getProperties
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: getProperties
Deprecated version: N/A|Method or attribute name: getProperties
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: getAvoidArea
Deprecated version: N/A|Method or attribute name: getAvoidArea
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: getAvoidArea
Deprecated version: N/A|Method or attribute name: getAvoidArea
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setFullScreen
Deprecated version: N/A|Method or attribute name: setFullScreen
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setFullScreen
Deprecated version: N/A|Method or attribute name: setFullScreen
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setLayoutFullScreen
Deprecated version: N/A|Method or attribute name: setLayoutFullScreen
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setLayoutFullScreen
Deprecated version: N/A|Method or attribute name: setLayoutFullScreen
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setSystemBarEnable
Deprecated version: N/A|Method or attribute name: setSystemBarEnable
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setSystemBarEnable
Deprecated version: N/A|Method or attribute name: setSystemBarEnable
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setSystemBarProperties
Deprecated version: N/A|Method or attribute name: setSystemBarProperties
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setSystemBarProperties
Deprecated version: N/A|Method or attribute name: setSystemBarProperties
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: loadContent
Deprecated version: N/A|Method or attribute name: loadContent
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: loadContent
Deprecated version: N/A|Method or attribute name: loadContent
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: isShowing
Deprecated version: N/A|Method or attribute name: isShowing
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: isShowing
Deprecated version: N/A|Method or attribute name: isShowing
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: isSupportWideGamut
Deprecated version: N/A|Method or attribute name: isSupportWideGamut
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: isSupportWideGamut
Deprecated version: N/A|Method or attribute name: isSupportWideGamut
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setColorSpace
Deprecated version: N/A|Method or attribute name: setColorSpace
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setColorSpace
Deprecated version: N/A|Method or attribute name: setColorSpace
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: getColorSpace
Deprecated version: N/A|Method or attribute name: getColorSpace
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: getColorSpace
Deprecated version: N/A|Method or attribute name: getColorSpace
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setBackgroundColor
Deprecated version: N/A|Method or attribute name: setBackgroundColor
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setBackgroundColor
Deprecated version: N/A|Method or attribute name: setBackgroundColor
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setBrightness
Deprecated version: N/A|Method or attribute name: setBrightness
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setBrightness
Deprecated version: N/A|Method or attribute name: setBrightness
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setFocusable
Deprecated version: N/A|Method or attribute name: setFocusable
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setFocusable
Deprecated version: N/A|Method or attribute name: setFocusable
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setKeepScreenOn
Deprecated version: N/A|Method or attribute name: setKeepScreenOn
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setKeepScreenOn
Deprecated version: N/A|Method or attribute name: setKeepScreenOn
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setPrivacyMode
Deprecated version: N/A|Method or attribute name: setPrivacyMode
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setPrivacyMode
Deprecated version: N/A|Method or attribute name: setPrivacyMode
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setTouchable
Deprecated version: N/A|Method or attribute name: setTouchable
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Deprecated version changed|Method or attribute name: setTouchable
Deprecated version: N/A|Method or attribute name: setTouchable
Deprecated version: 9
New API: ohos.window.Window|@ohos.window.d.ts| +|Permission changed|Method or attribute name: createVirtualScreen
Permission: ohos.permission.CAPTURE_SCREEN. if VirtualScreenOption.surfaceId is valid|Method or attribute name: createVirtualScreen
Permission: ohos.permission.CAPTURE_SCREEN|@ohos.screen.d.ts| +|Permission changed|Method or attribute name: createVirtualScreen
Permission: ohos.permission.CAPTURE_SCREEN. if VirtualScreenOption.surfaceId is valid|Method or attribute name: createVirtualScreen
Permission: ohos.permission.CAPTURE_SCREEN|@ohos.screen.d.ts| diff --git a/en/release-notes/api-change/v3.1-Release/changelog-v3.1-release.md b/en/release-notes/changelogs/v3.1-Release/changelog-v3.1-release.md similarity index 100% rename from en/release-notes/api-change/v3.1-Release/changelog-v3.1-release.md rename to en/release-notes/changelogs/v3.1-Release/changelog-v3.1-release.md diff --git a/en/release-notes/api-change/v3.2-beta2/application-sandbox-adaptation-guide.md b/en/release-notes/changelogs/v3.2-beta2/application-sandbox-adaptation-guide.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/application-sandbox-adaptation-guide.md rename to en/release-notes/changelogs/v3.2-beta2/application-sandbox-adaptation-guide.md diff --git a/en/release-notes/api-change/v3.2-beta2/changelog-v3.2-beta2.md b/en/release-notes/changelogs/v3.2-beta2/changelog-v3.2-beta2.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/changelog-v3.2-beta2.md rename to en/release-notes/changelogs/v3.2-beta2/changelog-v3.2-beta2.md diff --git a/en/release-notes/api-change/v3.2-beta2/figures/adaptation-process.png b/en/release-notes/changelogs/v3.2-beta2/figures/adaptation-process.png similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/figures/adaptation-process.png rename to en/release-notes/changelogs/v3.2-beta2/figures/adaptation-process.png diff --git a/en/release-notes/api-change/v3.2-beta2/figures/compile-change1-1.png b/en/release-notes/changelogs/v3.2-beta2/figures/compile-change1-1.png similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/figures/compile-change1-1.png rename to en/release-notes/changelogs/v3.2-beta2/figures/compile-change1-1.png diff --git a/en/release-notes/api-change/v3.2-beta2/figures/compile-change1-2.png b/en/release-notes/changelogs/v3.2-beta2/figures/compile-change1-2.png similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/figures/compile-change1-2.png rename to en/release-notes/changelogs/v3.2-beta2/figures/compile-change1-2.png diff --git a/en/release-notes/api-change/v3.2-beta2/figures/compile-change2-1.png b/en/release-notes/changelogs/v3.2-beta2/figures/compile-change2-1.png similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/figures/compile-change2-1.png rename to en/release-notes/changelogs/v3.2-beta2/figures/compile-change2-1.png diff --git a/en/release-notes/api-change/v3.2-beta2/figures/compile-change2-2.png b/en/release-notes/changelogs/v3.2-beta2/figures/compile-change2-2.png similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/figures/compile-change2-2.png rename to en/release-notes/changelogs/v3.2-beta2/figures/compile-change2-2.png diff --git a/en/release-notes/api-change/v3.2-beta2/figures/example1.png b/en/release-notes/changelogs/v3.2-beta2/figures/example1.png similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/figures/example1.png rename to en/release-notes/changelogs/v3.2-beta2/figures/example1.png diff --git a/en/release-notes/api-change/v3.2-beta2/figures/example2.png b/en/release-notes/changelogs/v3.2-beta2/figures/example2.png similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/figures/example2.png rename to en/release-notes/changelogs/v3.2-beta2/figures/example2.png diff --git a/en/release-notes/api-change/v3.2-beta2/figures/example3.png b/en/release-notes/changelogs/v3.2-beta2/figures/example3.png similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/figures/example3.png rename to en/release-notes/changelogs/v3.2-beta2/figures/example3.png diff --git a/en/release-notes/api-change/v3.2-beta2/figures/verification-process.png b/en/release-notes/changelogs/v3.2-beta2/figures/verification-process.png similarity index 100% rename from en/release-notes/api-change/v3.2-beta2/figures/verification-process.png rename to en/release-notes/changelogs/v3.2-beta2/figures/verification-process.png diff --git a/en/release-notes/api-change/v3.2-beta3/changelog-v3.2-beta3.md b/en/release-notes/changelogs/v3.2-beta3/changelog-v3.2-beta3.md similarity index 100% rename from en/release-notes/api-change/v3.2-beta3/changelog-v3.2-beta3.md rename to en/release-notes/changelogs/v3.2-beta3/changelog-v3.2-beta3.md diff --git a/en/release-notes/api-change/template/changelog-x-x.md b/en/release-notes/template/changelog-x-x.md similarity index 100% rename from en/release-notes/api-change/template/changelog-x-x.md rename to en/release-notes/template/changelog-x-x.md diff --git a/en/release-notes/api-change/template/js-apidiff-x-x.md b/en/release-notes/template/js-apidiff-x-x.md similarity index 100% rename from en/release-notes/api-change/template/js-apidiff-x-x.md rename to en/release-notes/template/js-apidiff-x-x.md diff --git a/en/release-notes/api-change/template/native-apidiff-x-x.md b/en/release-notes/template/native-apidiff-x-x.md similarity index 100% rename from en/release-notes/api-change/template/native-apidiff-x-x.md rename to en/release-notes/template/native-apidiff-x-x.md diff --git a/en/website.md b/en/website.md index de3b7ad81739170af2395abac6a78fbb7940fc20..276ac39580c0a32c118e6c1e37b32b5d9d65628f 100644 --- a/en/website.md +++ b/en/website.md @@ -2,8 +2,9 @@ - [OpenHarmony Project](OpenHarmony-Overview.md) - [Glossary](glossary.md) -- OpenHarmony Release Notes +- elease Notes - OpenHarmony 3.x Releases + - [OpenHarmony v3.2 Beta4 (2022-11-30)](release-notes/OpenHarmony-v3.2-beta4.md) - [OpenHarmony v3.2 Beta3 (2022-09-30)](release-notes/OpenHarmony-v3.2-beta3.md) - [OpenHarmony v3.2 Beta2 (2022-07-30)](release-notes/OpenHarmony-v3.2-beta2.md) - [OpenHarmony v3.2 Beta1 (2022-05-31)](release-notes/OpenHarmony-v3.2-beta1.md) @@ -18,13 +19,11 @@ - [OpenHarmony v3.0.3 LTS (2022-04-08)](release-notes/OpenHarmony-v3.0.3-LTS.md) - [OpenHarmony v3.0.2 LTS (2022-03-18)](release-notes/OpenHarmony-v3.0.2-LTS.md) - [OpenHarmony v3.0.1 LTS (2022-01-12)](release-notes/OpenHarmony-v3.0.1-LTS.md) - - OpenHarmony 2.x Releases - [OpenHarmony v2.2 beta2 (2021-08-04)](release-notes/OpenHarmony-v2.2-beta2.md) - [OpenHarmony 2.0 Canary (2021-06-01)](release-notes/OpenHarmony-2-0-Canary.md) - - OpenHarmony 1.x Releases - + - [OpenHarmony 1.0 (2020-09-10)](release-notes/OpenHarmony-1-0.md) - [OpenHarmony v1.1.5 LTS (2022-08-24)](release-notes/OpenHarmony-v1.1.5-LTS.md) - [OpenHarmony v1.1.4 LTS (2022-02-11)](release-notes/OpenHarmony-v1-1-4-LTS.md) @@ -32,133 +31,166 @@ - [OpenHarmony v1.1.2 LTS (2021-08-04)](release-notes/OpenHarmony-v1.1.2-LTS.md) - [OpenHarmony v1.1.1 LTS (2021-06-22)](release-notes/OpenHarmony-1-1-1-LTS.md) - [OpenHarmony v1.1.0 LTS (2021-04-01)](release-notes/OpenHarmony-1-1-0-LTS.md) - -- API Differences + - API Differences + - OpenHarmony 3.2 Beta4 + - JS API Differences + - [Ability framework](release-notes/api-diff/v3.2-beta4/js-apidiff-ability.md) + - [Accessibility subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-accessibility.md) + - [Account subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-account.md) + - [Application subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-application.md) + - [ArkUI development framework](release-notes/api-diff/v3.2-beta4/js-apidiff-arkui.md) + - [Power management subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-battery.md) + - [Bundle management framework](release-notes/api-diff/v3.2-beta4/js-apidiff-bundle.md) + - [Communication subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-communication.md) + - [Utils subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-compiler-and-runtime.md) + - [Communication subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-customization.md) + - [DFX subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-dfx.md) + - [Distributed data management subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-distributed-data.md) + - [Distributed hardware subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-distributed-hardware.md) + - [File management subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-file-management.md) + - [Location subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-geolocation.md) + - [Globalization subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-global.md) + - [Misc services subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-misc.md) + - [MSDP subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-msdp.md) + - [Multimodal input subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-multi-modal-input.md) + - [Multimedia subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-multimedia.md) + - [Common event and notification subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-notification.md) + - [Resource scheduler subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-resource-scheduler.md) + - [Security subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-security.md) + - [Pan-sensor subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-sensor.md) + - [Startup subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-start-up.md) + - [Telephony subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-telephony.md) + - [Test subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-unitest.md) + - [Update subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-update.md) + - [USB subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-usb.md) + - [User IAM subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-user-iam.md) + - [Web subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-web.md) + - [Window manager subsystem](release-notes/api-diff/v3.2-beta4/js-apidiff-window.md) - OpenHarmony 3.2 Beta3 - JS API Differences - - [Ability framework](release-notes/api-change/v3.2-beta3/js-apidiff-ability.md) - - [Accessibility subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-accessibility.md) - - [Account subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-account.md) - - [ArkUI development framework](release-notes/api-change/v3.2-beta3/js-apidiff-arkui.md) - - [Power management subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-battery.md) - - [Bundle management framework](release-notes/api-change/v3.2-beta3/js-apidiff-bundle.md) - - [Communication subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-communicate.md) - - [Utils subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-compiler-and-runtime.md) - - [DFX subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-dfx.md) - - [Distributed data management subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-distributed-data.md) - - [Distributed hardware subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-distributed-hardware.md) - - [Common event and notification subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-event-and-notification.md) - - [File management subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-file-management.md) - - [Globalization subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-global.md) - - [Graphics subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-graphic.md) - - [Misc services subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-misc.md) - - [Multimodal input subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-multi-modal-input.md) - - [Multimedia subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-multimedia.md) - - [Resource scheduler subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-resource-scheduler.md) - - [Security subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-security.md) - - [Pan-sensor subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-sensor.md) - - [DSoftBus subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-soft-bus.md) - - [Telephony subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-telephony.md) - - [Test subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-unitest.md) - - [Update subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-update.md) - - [Web subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-web.md) - - [Window manager subsystem](release-notes/api-change/v3.2-beta3/js-apidiff-window.md) - - [Updates (OpenHarmony 3.2 Beta2 -> OpenHarmony 3.2 Beta3)](release-notes/api-change/v3.2-beta3/changelog-v3.2-beta3.md) + - [Ability framework](release-notes/api-diff/v3.2-beta3/js-apidiff-ability.md) + - [Accessibility subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-accessibility.md) + - [Account subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-account.md) + - [ArkUI development framework](release-notes/api-diff/v3.2-beta3/js-apidiff-arkui.md) + - [Power management subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-battery.md) + - [Bundle management framework](release-notes/api-diff/v3.2-beta3/js-apidiff-bundle.md) + - [Communication subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-communicate.md) + - [Utils subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-compiler-and-runtime.md) + - [DFX subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-dfx.md) + - [Distributed data management subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-distributed-data.md) + - [Distributed hardware subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-distributed-hardware.md) + - [Common event and notification subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-event-and-notification.md) + - [File management subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-file-management.md) + - [Globalization subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-global.md) + - [Graphics subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-graphic.md) + - [Misc services subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-misc.md) + - [Multimodal input subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-multi-modal-input.md) + - [Multimedia subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-multimedia.md) + - [Resource scheduler subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-resource-scheduler.md) + - [Security subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-security.md) + - [Pan-sensor subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-sensor.md) + - [DSoftBus subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-soft-bus.md) + - [Telephony subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-telephony.md) + - [Test subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-unitest.md) + - [Update subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-update.md) + - [Web subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-web.md) + - [Window manager subsystem](release-notes/api-diff/v3.2-beta3/js-apidiff-window.md) + - [Updates (OpenHarmony 3.2 Beta2 -> OpenHarmony 3.2 Beta3)](release-notes/changelogs/v3.2-beta3/changelog-v3.2-beta3.md) - OpenHarmony 3.2 Beta2 - JS API Differences - - [Ability framework](release-notes/api-change/v3.2-beta2/js-apidiff-ability.md) - - [Accessibility subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-accessibility.md) - - [Account subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-account.md) - - [ArkUI development framework](release-notes/api-change/v3.2-beta2/js-apidiff-arkui.md) - - [Bundle management framework](release-notes/api-change/v3.2-beta2/js-apidiff-bundle.md) - - [Communication subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-communicate.md) - - [Utils subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-compiler-and-runtime.md) - - [DFX subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-dfx.md) - - [Distributed data management subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-distributed-data.md) - - [Common event and notification subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-event-and-notification.md) - - [File management subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-file-management.md) - - [Location subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-geolocation.md) - - [Globalization subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-global.md) - - [Graphics subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-graphic.md) - - [Misc services subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-misc.md) - - [Multimodal input subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-multi-modal-input.md) - - [Multimedia subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-multimedia.md) - - [Resource scheduler subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-resource-scheduler.md) - - [Security subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-security.md) - - [Pan-sensor subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-sensor.md) - - [DSoftBus subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-soft-bus.md) - - [Test subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-unitest.md) - - [Update subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-update.md) - - [USB subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-usb.md) - - [User IAM subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-user-authentication.md) - - [Web subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-web.md) - - [Window manager subsystem](release-notes/api-change/v3.2-beta2/js-apidiff-window.md) + - [Ability framework](release-notes/api-diff/v3.2-beta2/js-apidiff-ability.md) + - [Accessibility subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-accessibility.md) + - [Account subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-account.md) + - [ArkUI development framework](release-notes/api-diff/v3.2-beta2/js-apidiff-arkui.md) + - [Bundle management framework](release-notes/api-diff/v3.2-beta2/js-apidiff-bundle.md) + - [Communication subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-communicate.md) + - [Utils subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-compiler-and-runtime.md) + - [DFX subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-dfx.md) + - [Distributed data management subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-distributed-data.md) + - [Common event and notification subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-event-and-notification.md) + - [File management subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-file-management.md) + - [Location subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-geolocation.md) + - [Globalization subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-global.md) + - [Graphics subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-graphic.md) + - [Misc services subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-misc.md) + - [Multimodal input subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-multi-modal-input.md) + - [Multimedia subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-multimedia.md) + - [Resource scheduler subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-resource-scheduler.md) + - [Security subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-security.md) + - [Pan-sensor subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-sensor.md) + - [DSoftBus subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-soft-bus.md) + - [Test subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-unitest.md) + - [Update subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-update.md) + - [USB subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-usb.md) + - [User IAM subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-user-authentication.md) + - [Web subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-web.md) + - [Window manager subsystem](release-notes/api-diff/v3.2-beta2/js-apidiff-window.md) - ChangeLog - - [Updates (OpenHarmony 3.2 Beta1 -> OpenHarmony 3.2 Beta2)](release-notes/api-change/v3.2-beta2/changelog-v3.2-beta2.md) - - [Adaptation Guide for the Application Sandbox](release-notes/api-change/v3.2-beta2/application-sandbox-adaptation-guide.md) + - [Updates (OpenHarmony 3.2 Beta1 -> OpenHarmony 3.2 Beta2)](release-notes/changelogs/v3.2-beta2/changelog-v3.2-beta2.md) + - [Adaptation Guide for the Application Sandbox](release-notes/changelogs/v3.2-beta2/application-sandbox-adaptation-guide.md) - OpenHarmony 3.2 Beta1 - JS API Differences - - [Ability framework](release-notes/api-change/v3.2-beta1/js-apidiff-ability.md) - - [ArkUI development framework](release-notes/api-change/v3.2-beta1/js-apidiff-arkui.md) - - [Power management subsystem](release-notes/api-change/v3.2-beta1/js-apidiff-battery.md) - - [Bundle management framework](release-notes/api-change/v3.2-beta1/js-apidiff-bundle.md) - - [Communication subsystem](release-notes/api-change/v3.2-beta1/js-apidiff-communicate.md) - - [DFX subsystem](release-notes/api-change/v3.2-beta1/js-apidiff-dfx.md) - - [Distributed data management subsystem](release-notes/api-change/v3.2-beta1/js-apidiff-distributed-data.md) - - [Common event and notification subsystem](release-notes/api-change/v3.2-beta1/js-apidiff-event-and-notification.md) - - [File management subsystem](release-notes/api-change/v3.2-beta1/js-apidiff-file-management.md) - - [Globalization subsystem](release-notes/api-change/v3.2-beta1/js-apidiff-global.md) - - [Startup subsystem](release-notes/api-change/v3.2-beta1/js-apidiff-init.md) - - [Misc services subsystem](release-notes/api-change/v3.2-beta1/js-apidiff-misc.md) - - [Multimodal input subsystem](release-notes/api-change/v3.2-beta1/js-apidiff-multi-modal-input.md) - - [Multimedia subsystem](release-notes/api-change/v3.2-beta1/js-apidiff-multimedia.md) - - [Distributed scheduler subsystem](release-notes/api-change/v3.2-beta1/js-apidiff-resource-scheduler.md) - - [Test subsystem](release-notes/api-change/v3.2-beta1/js-apidiff-unitest.md) - - [Web subsystem](release-notes/api-change/v3.2-beta1/js-apidiff-web.md) - - [Window manager subsystem](release-notes/api-change/v3.2-beta1/js-apidiff-window.md) - - [Native API Differences](release-notes/api-change/v3.2-beta1/native-apidiff-v3.2-beta.md) + - [Ability framework](release-notes/api-diff/v3.2-beta1/js-apidiff-ability.md) + - [ArkUI development framework](release-notes/api-diff/v3.2-beta1/js-apidiff-arkui.md) + - [Power management subsystem](release-notes/api-diff/v3.2-beta1/js-apidiff-battery.md) + - [Bundle management framework](release-notes/api-diff/v3.2-beta1/js-apidiff-bundle.md) + - [Communication subsystem](release-notes/api-diff/v3.2-beta1/js-apidiff-communicate.md) + - [DFX subsystem](release-notes/api-diff/v3.2-beta1/js-apidiff-dfx.md) + - [Distributed data management subsystem](release-notes/api-diff/v3.2-beta1/js-apidiff-distributed-data.md) + - [Common event and notification subsystem](release-notes/api-diff/v3.2-beta1/js-apidiff-event-and-notification.md) + - [File management subsystem](release-notes/api-diff/v3.2-beta1/js-apidiff-file-management.md) + - [Globalization subsystem](release-notes/api-diff/v3.2-beta1/js-apidiff-global.md) + - [Startup subsystem](release-notes/api-diff/v3.2-beta1/js-apidiff-init.md) + - [Misc services subsystem](release-notes/api-diff/v3.2-beta1/js-apidiff-misc.md) + - [Multimodal input subsystem](release-notes/api-diff/v3.2-beta1/js-apidiff-multi-modal-input.md) + - [Multimedia subsystem](release-notes/api-diff/v3.2-beta1/js-apidiff-multimedia.md) + - [Distributed scheduler subsystem](release-notes/api-diff/v3.2-beta1/js-apidiff-resource-scheduler.md) + - [Test subsystem](release-notes/api-diff/v3.2-beta1/js-apidiff-unitest.md) + - [Web subsystem](release-notes/api-diff/v3.2-beta1/js-apidiff-web.md) + - [Window manager subsystem](release-notes/api-diff/v3.2-beta1/js-apidiff-window.md) + - [Native API Differences](release-notes/api-diff/v3.2-beta1/native-apidiff-v3.2-beta.md) - OpenHarmony 3.1 Release - JS API Differences (API Version 8) - - [Ability framework](release-notes/api-change/v3.1-Release/js-apidiff-ability.md) - - [Accessibility subsystem](release-notes/api-change/v3.1-Release/js-apidiff-accessibility.md) - - [Account subsystem](release-notes/api-change/v3.1-Release/js-apidiff-account.md) - - [ArkUI development framework](release-notes/api-change/v3.1-Release/js-apidiff-ace.md) - - [Power management subsystem](release-notes/api-change/v3.1-Release/js-apidiff-battery.md) - - [Bundle management subsystem](release-notes/api-change/v3.1-Release/js-apidiff-bundle.md) - - [Communication subsystem](release-notes/api-change/v3.1-Release/js-apidiff-communicate.md) - - [Multi-language Runtime subsystem](release-notes/api-change/v3.1-Release/js-apidiff-compiler-and-runtime.md) - - [DFX subsystem](release-notes/api-change/v3.1-Release/js-apidiff-dfx.md) - - [Distributed data management subsystem](release-notes/api-change/v3.1-Release/js-apidiff-distributed-data.md) - - [Distributed hardware subsystem](release-notes/api-change/v3.1-Release/js-apidiff-distributed-hardware.md) - - [Common event and notification subsystem](release-notes/api-change/v3.1-Release/js-apidiff-event-and-notification.md) - - [File management subsystem](release-notes/api-change/v3.1-Release/js-apidiff-file-management.md) - - [Location subsystem](release-notes/api-change/v3.1-Release/js-apidiff-geolocation.md) - - [Globalization subsystem](release-notes/api-change/v3.1-Release/js-apidiff-global.md) - - [Graphics subsystem](release-notes/api-change/v3.1-Release/js-apidiff-graphic.md) - - [Misc services subsystem](release-notes/api-change/v3.1-Release/js-apidiff-misc.md) - - [Multimodal input subsystem](release-notes/api-change/v3.1-Release/js-apidiff-multi-modal-input.md) - - [Multimedia subsystem](release-notes/api-change/v3.1-Release/js-apidiff-multimedia.md) - - [Network management subsystem](release-notes/api-change/v3.1-Release/js-apidiff-network.md) - - [Distributed scheduler subsystem](release-notes/api-change/v3.1-Release/js-apidiff-resource-scheduler.md) - - [Security subsystem](release-notes/api-change/v3.1-Release/js-apidiff-security.md) - - [Pan-sensor subsystem](release-notes/api-change/v3.1-Release/js-apidiff-sensor.md) - - [Application framework subsystem](release-notes/api-change/v3.1-Release/js-apidiff-settings.md) - - [DSoftBus subsystem](release-notes/api-change/v3.1-Release/js-apidiff-soft-bus.md) - - [Telephony subsystem](release-notes/api-change/v3.1-Release/js-apidiff-telephony.md) - - [USB subsystem](release-notes/api-change/v3.1-Release/js-apidiff-usb.md) - - [User IAM subsystem](release-notes/api-change/v3.1-Release/js-apidiff-user-authentication.md) - - [Window manager subsystem](release-notes/api-change/v3.1-Release/js-apidiff-window.md) - - [Native API Differences](release-notes/api-change/v3.1-Release/native-apidiff-v3.1-release.md) - - [Updates (OpenHarmony 3.1 Beta -> OpenHarmony 3.1 Release)](release-notes/api-change/v3.1-Release/changelog-v3.1-release.md) + - [Ability framework](release-notes/api-diff/v3.1-Release/js-apidiff-ability.md) + - [Accessibility subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-accessibility.md) + - [Account subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-account.md) + - [ArkUI development framework](release-notes/api-diff/v3.1-Release/js-apidiff-ace.md) + - [Power management subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-battery.md) + - [Bundle management subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-bundle.md) + - [Communication subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-communicate.md) + - [Multi-language Runtime subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-compiler-and-runtime.md) + - [DFX subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-dfx.md) + - [Distributed data management subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-distributed-data.md) + - [Distributed hardware subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-distributed-hardware.md) + - [Common event and notification subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-event-and-notification.md) + - [File management subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-file-management.md) + - [Location subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-geolocation.md) + - [Globalization subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-global.md) + - [Graphics subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-graphic.md) + - [Misc services subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-misc.md) + - [Multimodal input subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-multi-modal-input.md) + - [Multimedia subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-multimedia.md) + - [Network management subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-network.md) + - [Distributed scheduler subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-resource-scheduler.md) + - [Security subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-security.md) + - [Pan-sensor subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-sensor.md) + - [Application framework subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-settings.md) + - [DSoftBus subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-soft-bus.md) + - [Telephony subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-telephony.md) + - [USB subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-usb.md) + - [User IAM subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-user-authentication.md) + - [Window manager subsystem](release-notes/api-diff/v3.1-Release/js-apidiff-window.md) + - [Native API Differences](release-notes/api-diff/v3.1-Release/native-apidiff-v3.1-release.md) + - [Updates (OpenHarmony 3.1 Beta -> OpenHarmony 3.1 Release)](release-notes/changelogs/v3.1-Release/changelog-v3.1-release.md) - OpenHarmony 3.1 Beta - - [JS API Differences](release-notes/api-change/v3.1-beta/js-apidiff-v3.1-beta.md) - - [Native API Differences](release-notes/api-change/v3.1-beta/native-apidiff-v3.1-beta.md) - - [Updates (OpenHarmony 3.0 -> OpenHarmony 3.1 Beta)](release-notes/api-change/v3.1-beta/changelog-v3.1-beta.md) + - [JS API Differences](release-notes/api-diff/v3.1-beta/js-apidiff-v3.1-beta.md) + - [Native API Differences](release-notes/api-diff/v3.1-beta/native-apidiff-v3.1-beta.md) + - [Updates (OpenHarmony 3.0 -> OpenHarmony 3.1 Beta)](release-notes/api-diff/v3.1-beta/changelog-v3.1-beta.md) - OpenHarmony 3.0 LTS - - [JS API Differences](release-notes/api-change/v3.0-LTS/js-apidiff-v3.0-lts.md) + - [JS API Differences](release-notes/api-diff/v3.0-LTS/js-apidiff-v3.0-lts.md) - OpenHarmony v2.2 Beta2 - - [JS API Differences](release-notes/api-change/v2.2-beta2/js-apidiff-v2.2-beta2.md) - - [Native API Differences](release-notes/api-change/v2.2-beta2/native-apidiff-v2.2-beta2.md) + - [JS API Differences](release-notes/api-diff/v2.2-beta2/js-apidiff-v2.2-beta2.md) + - [Native API Differences](release-notes/api-diff/v2.2-beta2/native-apidiff-v2.2-beta2.md) - OpenHarmony Third-Party Components - [OpenHarmony Third-Party Components](third-party-components/third-party-components-introduction.md) diff --git a/zh-cn/application-dev/ability-deprecated/ability-brief.md b/zh-cn/application-dev/ability-deprecated/ability-brief.md index e889c585c2c147c911334f92c266d1fa55364be0..926465629e11a788a32ae1a28a22c0bb21098902 100644 --- a/zh-cn/application-dev/ability-deprecated/ability-brief.md +++ b/zh-cn/application-dev/ability-deprecated/ability-brief.md @@ -18,7 +18,7 @@ Stage模型的设计,主要是为了开发者更加方便地开发出分布式 | 应用组件开发方式 | 类Web的开发方式。 | 面向对象的开发方式。 | | 引擎实例 | 每个Ability实例独占一个虚拟机实例。 | 多个Ability实例可以共享同一个虚拟机实例。 | | 进程内对象共享 | 不支持。 | 支持。 | -| 包描述文件 | 使用`config.json`描述HAP包和组件信息,组件必须使用固定的文件名。 | 使用`module.json5`描述HAP包和组件信息,可以指定入口文件名。 | +| 包描述文件 | 使用`config.json`描述HAP和组件信息,组件必须使用固定的文件名。 | 使用`module.json5`描述HAP和组件信息,可以指定入口文件名。 | | 组件 | 提供PageAbility(页面展示),ServiceAbility(服务),DataAbility(数据分享)以及FormAbility(卡片)。 | 提供UIAbility(页面展示)、Extension(基于场景的服务扩展)。 | 除了上述设计上的差异外,对于开发者而言,两种模型的主要区别在于: diff --git a/zh-cn/application-dev/ability-deprecated/ability-delegator.md b/zh-cn/application-dev/ability-deprecated/ability-delegator.md index 1a6dc8e016b98eda0fc6633e55d46d0b51491b33..d96a2db2a8c0b7c859f3cf964b4762c4af766299 100644 --- a/zh-cn/application-dev/ability-deprecated/ability-delegator.md +++ b/zh-cn/application-dev/ability-deprecated/ability-delegator.md @@ -5,7 +5,7 @@ Delegator测试框架是OpenHarmony提供的一套开发者应用自测试框架 ## 约束与限制 -测试框架相关接口只能在测试hap包中使用,只有通过`aa test`命令或者DevEco Studio启动测试环境后相关接口才能生效。 +测试框架相关接口只能在测试HAP中使用,只有通过`aa test`命令或者DevEco Studio启动测试环境后相关接口才能生效。 ## 测试框架启动 @@ -17,7 +17,7 @@ Delegator测试框架是OpenHarmony提供的一套开发者应用自测试框架 ### aa test启动 -开发者可通过 `aa test` 命令启动测试框架,开发者可以自行指定使用的TestRunner以及TestRunner所在hap包的package name或module name,具体命令示例如下: +开发者可通过 `aa test` 命令启动测试框架,开发者可以自行指定使用的TestRunner以及TestRunner所在HAP的package name或module name,具体命令示例如下: **FA模型:** @@ -31,9 +31,9 @@ aa test -b BundleName -m com.example.myapplicationfaets -s unittest OpenHarmonyT ``` | 参数 | 是否必选 | 参数说明 | | --------------- | -------- | ------------------------------------------------------------ | -| -b | 是 | TestRunner所在hap包的bundle name。 | -| -p | 是 | TestRunner所在hap包的package name,FA模型使用。 | -| -m | 是 | TestRunner所在hap包的module name,Stage模型使用。 | +| -b | 是 | TestRunner所在HAP的bundle name。 | +| -p | 是 | TestRunner所在HAP的package name,FA模型使用。 | +| -m | 是 | TestRunner所在HAP的module name,Stage模型使用。 | | -s unittest | 是 | 启用的TestRunner名称,TestRunner名称和文件名需要保持一致。 | | -w | 否 | 测试用例超时时间,单位为秒,如果未指定或指定小于等于0的整数,测试框架会一直等待测试代码调用finishTest才退出。 | | -s \\ | 否 | 支持以key-value的方式输入任何参数,输入的参数可通过AbilityDelegatorArgs.parameters以key-value的方式获取。示例:-s classname myTest,key为"-s classname",value为"myTest"。 | @@ -58,7 +58,7 @@ AbilityDelegatorArgs是测试框架提供的测试参数类。开发者可以使 ## AbilityMonitor介绍 -AbilityMonitor是测试框架提供用来绑定并监听Ability类。开发者可以使用AbilityMonitor绑定Ability,并将AbilityMonitor添加到监听列表。绑定后Ability的创建、生命周期变化等会触发AbilityMonitor内相关回调函数,开发者可以在对应回调函数内进行测试验证。具体详细内容请参考AbilityMonitor API接口说明[AbilityMonitor](../reference/apis/js-apis-application-abilityMonitor.md)。 +AbilityMonitor是测试框架提供用来绑定并监听Ability类。开发者可以使用AbilityMonitor绑定Ability,并将AbilityMonitor添加到监听列表。绑定后Ability的创建、生命周期变化等会触发AbilityMonitor内相关回调函数,开发者可以在对应回调函数内进行测试验证。具体详细内容请参考AbilityMonitor API接口说明[AbilityMonitor](../reference/apis/js-apis-inner-application-abilityMonitor.md)。 **示例** diff --git a/zh-cn/application-dev/ability-deprecated/continuationmanager.md b/zh-cn/application-dev/ability-deprecated/continuationmanager.md index 68a3db4c0c7b470990f719e58f423ffd4f4024fd..0e61264ea0eae71d45d209e4ed172a9ebf4a0082 100644 --- a/zh-cn/application-dev/ability-deprecated/continuationmanager.md +++ b/zh-cn/application-dev/ability-deprecated/continuationmanager.md @@ -124,7 +124,7 @@ continuationManager作为流转能力的入口,主要用于拉起系统中的 if (needGrantPermission) { try { // globalThis.context即Ability.context,需提前在MainAbility.ts文件中赋值 - await globalThis.context.requestPermissionsFromUser(permissions); + await atManger.requestPermissionsFromUser(globalThis.context, permissions); } catch (err) { console.error('app permission request permissions error' + JSON.stringify(err)); } diff --git a/zh-cn/application-dev/ability-deprecated/fa-formability.md b/zh-cn/application-dev/ability-deprecated/fa-formability.md index 52291799c8c9010af281d8ed45c8493b8340c8ef..379e504eee64a09fb2a950f7d832203fb8113eae 100644 --- a/zh-cn/application-dev/ability-deprecated/fa-formability.md +++ b/zh-cn/application-dev/ability-deprecated/fa-formability.md @@ -264,7 +264,7 @@ onUpdate(formId) { 开发者可以使用hml+css+json开发JS卡片页面: -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 当前仅支持JS扩展的类Web开发范式来实现卡片的UI页面。 - hml: diff --git a/zh-cn/application-dev/ability-deprecated/fa-serviceability.md b/zh-cn/application-dev/ability-deprecated/fa-serviceability.md index a83d5d636f89554c77d74b72982ac3751d25d4d9..30748a3a20b06416e094705e7387ef4f6b608a2f 100644 --- a/zh-cn/application-dev/ability-deprecated/fa-serviceability.md +++ b/zh-cn/application-dev/ability-deprecated/fa-serviceability.md @@ -77,7 +77,7 @@ Ability为开发者提供了startAbility()方法来启动另外一个Ability。 开发者可以通过构造包含bundleName与abilityName的Want对象来设置目标Service信息。参数的含义如下: -- bundleName:表示对端应用的包名称。 +- bundleName:表示对端应用的Bundle名称。 - abilityName:表示待启动的Ability名称。 启动本地设备Service的代码示例如下: @@ -157,7 +157,7 @@ featureAbility.startAbility( ```ts import prompt from '@system.prompt' - + var option = { onConnect: function onConnectCallback(element, proxy) { console.log(`onConnectLocalService onConnectDone`); @@ -196,7 +196,7 @@ featureAbility.startAbility( ```ts import featureAbility from '@ohos.ability.featureAbility' - + let want = { bundleName: "com.jstest.service", abilityName: "com.jstest.service.ServiceAbility" @@ -210,7 +210,7 @@ featureAbility.startAbility( ```ts import rpc from "@ohos.rpc" - + class ServiceAbilityStub extends rpc.RemoteObject { constructor(des: any) { if (typeof des === 'string') { @@ -220,7 +220,7 @@ featureAbility.startAbility( return; } } - + onRemoteRequest(code: number, data: any, reply: any, option: any) { console.log("onRemoteRequest called"); // 可根据code执行不同的业务逻辑 @@ -237,7 +237,7 @@ featureAbility.startAbility( return true; } } - + export default { onStart() { console.log('ServiceAbility onStart'); diff --git a/zh-cn/application-dev/ability-deprecated/stage-ability-continuation.md b/zh-cn/application-dev/ability-deprecated/stage-ability-continuation.md index e4585f3f5c4f77c438aeb276faff59b27f49db3f..d11004835e70789bb491e9ddb734acd6b120d310 100644 --- a/zh-cn/application-dev/ability-deprecated/stage-ability-continuation.md +++ b/zh-cn/application-dev/ability-deprecated/stage-ability-continuation.md @@ -127,7 +127,7 @@ if (needGrantPermission) { Logger.info("app permission needGrantPermission") try { - await this.context.requestPermissionsFromUser(permissions) + await accessManger.requestPermissionsFromUser(this.context, permissions) } catch (err) { Logger.error(`app permission ${JSON.stringify(err)}`) } diff --git a/zh-cn/application-dev/ability-deprecated/stage-ability.md b/zh-cn/application-dev/ability-deprecated/stage-ability.md index 1e2fa12c636756c8b33a40d9cbae6adf24ccdd9c..c9e85aa3ddc7643d6e566e5fdf2f8eaec462691e 100644 --- a/zh-cn/application-dev/ability-deprecated/stage-ability.md +++ b/zh-cn/application-dev/ability-deprecated/stage-ability.md @@ -79,29 +79,29 @@ Ability功能如下(Ability类,具体的API详见[接口文档](../reference onCreate(want, launchParam) { console.log("MainAbility onCreate") } - + onDestroy() { console.log("MainAbility onDestroy") } - + onWindowStageCreate(windowStage) { console.log("MainAbility onWindowStageCreate") - + windowStage.loadContent("pages/index").then(() => { console.log("MainAbility load content succeed") }).catch((error) => { console.error("MainAbility load content failed with error: " + JSON.stringify(error)) }) } - + onWindowStageDestroy() { console.log("MainAbility onWindowStageDestroy") } - + onForeground() { console.log("MainAbility onForeground") } - + onBackground() { console.log("MainAbility onBackground") } @@ -110,7 +110,7 @@ Ability功能如下(Ability类,具体的API详见[接口文档](../reference ### 获取AbilityStage及Ability的配置信息 AbilityStage类及Ability类均拥有context属性,应用可以通过`this.context`获取Ability实例的上下文,进而获取详细的配置信息。 -如下示例展示了AbilityStage通过context属性获取包代码路径、hap包名、Ability名以及系统语言的方法。具体示例代码如下: +如下示例展示了AbilityStage通过context属性获取包代码路径、HAP名称、Ability名称以及系统语言的方法。具体示例代码如下: ```ts import AbilityStage from "@ohos.application.AbilityStage" @@ -130,7 +130,7 @@ export default class MyAbilityStage extends AbilityStage { } ``` -如下示例展示了Ability通过context属性获取包代码路径、hap包名、Ability名以及系统语言的方法。具体示例代码如下: +如下示例展示了Ability通过context属性获取包代码路径、HAP名称、Ability名称以及系统语言的方法。具体示例代码如下: ```ts import Ability from '@ohos.application.Ability' export default class MainAbility extends Ability { @@ -148,29 +148,8 @@ export default class MainAbility extends Ability { } } ``` -### 应用向用户申请授权 -应用需要获取用户的隐私信息或使用系统能力时,比如获取位置信息、使用相机拍摄照片或录制视频等,需要向用户申请授权。在开发过程中,首先需要明确涉及的敏感权限并在module.json5中声明需要的权限,同时通过接口`requestPermissionsFromUser`以动态弹窗的方式向用户申请授权。以访问日历为例,具体示例代码如下: - -在module.json5声明需要的权限: -```json -"requestPermissions": [ - { - "name": "ohos.permission.READ_CALENDAR" - } -] -``` -通过动态弹窗向用户申请授权: -```ts -let context = this.context -let permissions: Array = ['ohos.permission.READ_CALENDAR'] -context.requestPermissionsFromUser(permissions).then((data) => { - console.log("Succeed to request permission from user with data: " + JSON.stringify(data)) -}).catch((error) => { - console.log("Failed to request permission from user with error: " + JSON.stringify(error)) -}) -``` ### 系统环境变化通知 -环境变化,包括全局配置的变化和Ability配置的变化。全局配置指全局的、系统的配置,目前包括“语言”和“颜色模式”,全局配置的变化一般由“设置”中的配置项或“控制中心”中的图标触发。Ability配置指与单个Ability实例相关的配置,目前包括“displayId”(物理屏幕Id)、“屏幕分辨率”,“横竖屏”,这些配置与Ability所在的Display有关,Ability配置的变化一般由窗口触发。配置项目前均定义在[Configuration](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-configuration.md)类中。 +环境变化,包括全局配置的变化和Ability配置的变化。全局配置指全局的、系统的配置,目前包括“语言”和“颜色模式”,全局配置的变化一般由“设置”中的配置项或“控制中心”中的图标触发。Ability配置指与单个Ability实例相关的配置,目前包括“displayId”(物理屏幕Id)、“屏幕分辨率”,“横竖屏”,这些配置与Ability所在的Display有关,Ability配置的变化一般由窗口触发。配置项目前均定义在[Configuration](../reference/apis/js-apis-application-configuration.md)类中。 对于Stage模型的应用,配置发生变化时,不会重启Ability,会触发应用的`onConfigurationUpdated(config: Configuration)`回调,若应用希望根据配置变化做相应处理,可以重写`onConfigurationUpdated`回调,若无需处理配置变化,则可以不必实现`onConfigurationUpdated`回调。应该注意的是,回调中的Configuration对象包括当前Ability所有的配置,不仅是发生变化的配置。 @@ -271,7 +250,7 @@ function getRemoteDeviceId() { } } ``` -向用户申请数据同步'ohos.permission.DISTRIBUTED_DATASYNC'的权限。申请授权示例代码见[应用向用户申请授权](#应用向用户申请授权)。 +向用户申请数据同步'ohos.permission.DISTRIBUTED_DATASYNC'的权限。申请授权示例代码见[abilityAccessCtrl.requestPermissionsFromUse](../reference/apis/js-apis-abilityAccessCtrl.md#requestpermissionsfromuser9)。 ### 指定页面启动Ability 当Ability的启动模式设置为单例时,若Ability已被拉起,再次启动Ability会触发onNewWant回调。应用开发者可以通过want传递启动参数,比如希望指定页面启动Ability,可以通过want中的uri参数或parameters参数传递pages信息。目前,Stage模型中Ability暂时无法直接使用router的能力,可以将启动参数传递给自定义组件,在自定义组件的生命周期中调用router接口显示指定页面。具体示例代码如下: diff --git a/zh-cn/application-dev/ability-deprecated/stage-brief.md b/zh-cn/application-dev/ability-deprecated/stage-brief.md index 4f024f13b779ae478eb276396a608dd261b6b584..c709016430e055c274b4738b0c875dbb9ac55678 100644 --- a/zh-cn/application-dev/ability-deprecated/stage-brief.md +++ b/zh-cn/application-dev/ability-deprecated/stage-brief.md @@ -2,13 +2,13 @@ ## 设计思想 -​Stage模型的设计,是为了提供给开发者一个更好的开发方式,更好的适用于多设备、分布式场景。 +Stage模型的设计,是为了提供给开发者一个更好的开发方式,更好的适用于多设备、分布式场景。 -​Stage模型的设计思想如下图所示。 +Stage模型的设计思想如下图所示。 ![stagedesign](figures/stagedesign.png) -​Stage模型的设计基于如下三个出发点: +Stage模型的设计基于如下三个出发点: - **应用进程的有序管理** @@ -32,7 +32,7 @@ Stage模型重新定义了Ability的生命周期。系统在架构上,将应 - **Bundle**:通过appid标识的OpenHarmony应用,Bundle可以包含多个HAP,每个应用都有一个bundleName,但是bundleName并不能唯一标识一个应用,appid中包含bundleName以及其他的更多信息,能够唯一标识一个应用; - **AbilityStage**:对应HAP的运行期对象,在HAP首次加载到进程中时创建,运行期开发者可见; - **Application**:对应Bundle的运行期对象,运行期开发者不可见; -- **Context**:提供运行期开发者可以调用的各种能力,Ability组件和各种ExtensionAbility都有各自不同的Context类,他们都继承自基类Context,基类提供包名、moduleName、路径等信息; +- **Context**:提供运行期开发者可以调用的各种能力,Ability组件和各种ExtensionAbility都有各自不同的Context类,他们都继承自基类Context,基类提供Bundle名称、moduleName、路径等信息; - **Ability**:提供生命周期回调,持有AbilityContext,支持组件的跨端迁移和多端协同; - **ExtensionAbility**:基于场景的扩展能力统称,系统定义了多种场景的ExtensionAbility类,它们持有各自的ExtensionContext; - **WindowStage**:本地窗口管理器; diff --git a/zh-cn/application-dev/ability-deprecated/stage-call.md b/zh-cn/application-dev/ability-deprecated/stage-call.md index a1f9a5d5d54e54dfec706dcd4823d8384a5b8641..336b9099786be229104202119d3f84a38e5aac97 100644 --- a/zh-cn/application-dev/ability-deprecated/stage-call.md +++ b/zh-cn/application-dev/ability-deprecated/stage-call.md @@ -24,7 +24,7 @@ Call调用流程示意图如下: - CalleeAbility持有一个Callee对象,通过Callee的on方法注册回调函数,当接收到Caller发送的数据时将会调用对应的回调函数 ![stage-call](figures/stage-call.png) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > CalleeAbility的启动模式需要为单实例。 > 当前仅支持系统应用使用Call调用。 @@ -221,10 +221,13 @@ function getRemoteDeviceId() { ``` 在跨设备场景下,需要向用户申请数据同步的权限。具体示例代码如下: ```ts +import abilityAccessCtrl from '@ohos.abilityAccessCtrl.d.ts'; + requestPermission() { let context = this.context let permissions: Array = ['ohos.permission.DISTRIBUTED_DATASYNC'] - context.requestPermissionsFromUser(permissions).then((data) => { + let atManager = abilityAccessCtrl.createAtManager(); + atManager.requestPermissionsFromUser(context, permissions).then((data) => { console.log("Succeed to request permission from user with data: "+ JSON.stringify(data)) }).catch((error) => { console.log("Failed to request permission from user with error: "+ JSON.stringify(error)) diff --git a/zh-cn/application-dev/ability-deprecated/stage-formextension.md b/zh-cn/application-dev/ability-deprecated/stage-formextension.md index 39f00e24180d83dc3f58c6f868f6ed133fad6c72..cd08291627c8b09aeb6d47db1e6b36a968ac4fa1 100644 --- a/zh-cn/application-dev/ability-deprecated/stage-formextension.md +++ b/zh-cn/application-dev/ability-deprecated/stage-formextension.md @@ -12,7 +12,7 @@ - 卡片使用方:显示卡片内容的宿主应用,控制卡片在宿主中展示的位置。 - 卡片管理服务:用于管理系统中所添加卡片的常驻代理服务,包括卡片对象的管理与使用,以及卡片周期性刷新等。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 卡片使用方和提供方不要求常驻运行,在需要添加/删除/请求更新卡片时,卡片管理服务会拉起卡片提供方获取卡片信息。 开发者仅需作为卡片提供方进行卡片内容的开发,卡片使用方和卡片管理服务由系统自动处理。 @@ -275,7 +275,7 @@ onUpdate(formId) { 开发者可以使用hml+css+json开发JS卡片页面: -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 当前仅支持JS扩展的类Web开发范式来实现卡片的UI页面。 - hml: diff --git a/zh-cn/application-dev/ability-deprecated/wantagent.md b/zh-cn/application-dev/ability-deprecated/wantagent.md index 5ce8f9a049819f126c8e5b57dc5aa3865ed98432..9e293023a2ac8f8dbfb233fea3a227abcada41f8 100644 --- a/zh-cn/application-dev/ability-deprecated/wantagent.md +++ b/zh-cn/application-dev/ability-deprecated/wantagent.md @@ -14,13 +14,13 @@ WantAgent封装了一个行为意图信息,可以通过WantAgent.trigger接口 ## 开发步骤 1. 导入WantAgent模块。 - ``` + ```ts import wantAgent from '@ohos.wantAgent'; ``` 2. 创建拉起Ability的WantAgentInfo信息。详细的WantAgentInfo信息数据类型及包含的参数请见[WantAgentInfo文档](../reference/apis/js-apis-wantAgent.md#wantagentinfo)介绍。 - ``` + ```ts private wantAgentObj = null // 用于保存创建成功的wantAgent对象,后续使用其完成触发的动作。 // wantAgentInfo @@ -44,7 +44,7 @@ WantAgent封装了一个行为意图信息,可以通过WantAgent.trigger接口 3. 创建发布公共事件的WantAgentInfo信息。 - ``` + ```ts private wantAgentObj = null // 用于保存创建成功的WantAgent对象,后续使用其完成触发的动作。 // wantAgentInfo @@ -63,7 +63,7 @@ WantAgent封装了一个行为意图信息,可以通过WantAgent.trigger接口 4. 创建WantAgent,保存返回的WantAgent对象wantAgentObj,用于执行后续触发操作。 - ``` + ```ts // 创建WantAgent wantAgent.getWantAgent(wantAgentInfo, (err, wantAgentObj) => { if (err.code) { @@ -77,7 +77,7 @@ WantAgent封装了一个行为意图信息,可以通过WantAgent.trigger接口 5. 触发WantAgent。 - ``` + ```ts // 触发WantAgent。 var triggerInfo = { code:0 diff --git a/zh-cn/application-dev/application-models/ability-startup-with-implicit-want.md b/zh-cn/application-dev/application-models/ability-startup-with-implicit-want.md index f2c0bb04b0d1454a2d8a02d4f53a08e13a9ff2c7..8b120b81e72168a6c01576ea5a9b8e638e9febba 100644 --- a/zh-cn/application-dev/application-models/ability-startup-with-implicit-want.md +++ b/zh-cn/application-dev/application-models/ability-startup-with-implicit-want.md @@ -78,4 +78,5 @@ 4. want内type不为空,且被skills内type包含,匹配成功。 -2. 当有多个匹配应用时,会被应用选择器展示给用户进行选择。stage-want1 +2. 当有多个匹配应用时,会被应用选择器展示给用户进行选择。 + stage-want1 diff --git a/zh-cn/application-dev/application-models/app-deviceconfig-switch.md b/zh-cn/application-dev/application-models/app-deviceconfig-switch.md index d2385781ad11bc7cde09d9fad25feb2809e7ee72..5360e745e14e81f9f27e3abe3daea6c23d56668d 100644 --- a/zh-cn/application-dev/application-models/app-deviceconfig-switch.md +++ b/zh-cn/application-dev/application-models/app-deviceconfig-switch.md @@ -21,11 +21,11 @@ app.json5中对原先config.json中的[deviceConfig](../quick-start/deviceconfig **表2** 配置文件deviceConfig标签差异对比 -| FA中deviceConfig标签 | 描述 | stage模型中 | 差异比对 | +| FA中deviceConfig标签 | 描述 | stage模型中 | 差异比对 | | -------- | -------- | -------- | -------- | -| deviceConfig标签 | deviceConfig标签配置了设备信息 | / | Stage模型中没有该标签,直接在app标签下配置设备信息 | -| process | 标识应用或者Ability的进程名。如果在deviceConfig标签下配置了process标签,则该应用的所有Ability都运行在这个进程中。如果在abilities标签下也为某个Ability配置了process标签,则该Ability就运行在这个进程中。 | / | Stage模型不支持配置进程名称 | -| keepAlive | 标识应用是否始终保持运行状态,仅支持系统应用配置,三方应用配置不生效。 | / | Stage模型不支持系统应用模型管控方式变更 | -| supportBackup | 标识应用是否支持备份和恢复。 | / | Stage模型不支持 | -| compressNativeLibs | 标识libs库是否以压缩存储的方式打包到HAP包。 | / | Stage模型不支持 | -| network | 标识网络安全性配置。 | / | Stage模型不支持 | +| deviceConfig标签 | deviceConfig标签配置了设备信息 | / | Stage模型中没有该标签,直接在app标签下配置设备信息 | +| process | 标识应用或者Ability的进程名。如果在deviceConfig标签下配置了process标签,则该应用的所有Ability都运行在这个进程中。如果在abilities标签下也为某个Ability配置了process标签,则该Ability就运行在这个进程中。 | / | Stage模型不支持配置进程名称 | +| keepAlive | 标识应用是否始终保持运行状态,仅支持系统应用配置,三方应用配置不生效。 | / | Stage模型不支持系统应用模型管控方式变更 | +| supportBackup | 标识应用是否支持备份和恢复。 | / | Stage模型不支持 | +| compressNativeLibs | 标识libs库是否以压缩存储的方式打包到HAP。 | / | Stage模型不支持 | +| network | 标识网络安全性配置。 | / | Stage模型不支持 | diff --git a/zh-cn/application-dev/application-models/application-component-configuration-fa.md b/zh-cn/application-dev/application-models/application-component-configuration-fa.md index d4c3c1bc4624ff9ce140a4e9cf4145658c810820..d9b9818c96c022086762392b33cfbd08414a5f13 100644 --- a/zh-cn/application-dev/application-models/application-component-configuration-fa.md +++ b/zh-cn/application-dev/application-models/application-component-configuration-fa.md @@ -1,7 +1,7 @@ # 应用/组件级配置 -开发者在开发应用时,需要配置应用的一些标签,例如应用的包名、图标等标识特征的属性。这一章节描述了开发者在开发应用时需要配置的一些关键标签。 +开发者在开发应用时,需要配置应用的一些标签,例如应用的Bundle名称、图标等标识特征的属性。这一章节描述了开发者在开发应用时需要配置的一些关键标签。 - **应用包名配置** diff --git a/zh-cn/application-dev/application-models/application-context-stage.md b/zh-cn/application-dev/application-models/application-context-stage.md index c854cf9ebc0a0959d4b85628399ce38dbc0d0b4f..55b88aef53c787a078af37e39146dd68e620e4b8 100644 --- a/zh-cn/application-dev/application-models/application-context-stage.md +++ b/zh-cn/application-dev/application-models/application-context-stage.md @@ -93,7 +93,7 @@ 获取路径的能力是基类Context中提供的能力,因此在ApplicationContext、AbilityStageContext、UIAbilityContext和ExtensionContext中均可以获取,在各类Context中获取到的路径会有一些差别,具体差别如下图所示。 - **图1** Context中获取的应用开发路径 +**图1** Context中获取的应用开发路径 context-dir - 通过ApplicationContext获取的应用级别路径。应用全局信息建议存放的路径,存放在此路径的文件内容仅在应用卸载时会被删除。 @@ -173,7 +173,7 @@ export default class EntryAbility extends UIAbility { 基类Context提供创建其他应用或其他Module的Context的方法有[createBundleContext(bundleName:string)](../reference/apis/js-apis-inner-application-context.md#contextcreatebundlecontext)、[createModuleContext(moduleName:string)](../reference/apis/js-apis-inner-application-context.md#contextcreatemodulecontext)和[createModuleContext(bundleName:string, moduleName:string)](../reference/apis/js-apis-inner-application-context.md#contextcreatemodulecontext-1)接口,创建其他应用或者其他Module的Context,从而通过该Context获取相应的资源信息(例如获取其他Module的[获取应用开发路径](#获取应用开发路径)信息)。 - 调用createBundleContext(bundleName:string)方法,创建其他应用的Context信息。 - > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** + > **说明:** > 当获取的是其他应用的Context时: > > - 申请`ohos.permission.GET_BUNDLE_INFO_PRIVILEGED`权限,配置方式请参阅[访问控制授权申请指导](../security/accesstoken-guidelines.md#stage模型)。 @@ -196,7 +196,7 @@ export default class EntryAbility extends UIAbility { ``` - 调用createModuleContext(bundleName:string, moduleName:string)方法,获取指定应用指定Module的上下文信息。获取到指定应用指定Module的Context之后,即可获取到相应应用Module的资源信息。 - > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** + > **说明:** > 当获取的是其他应用的指定Module的Context时: > > - 申请`ohos.permission.GET_BUNDLE_INFO_PRIVILEGED`权限,配置方式请参阅[访问控制授权申请指导](../security/accesstoken-guidelines.md#stage模型)。 @@ -305,5 +305,5 @@ export default class EntryAbility extends UIAbility { 应用需要获取用户的隐私信息或使用系统能力时,例如获取位置信息、访问日历、使用相机拍摄照片或录制视频等,需要向用户申请授权,示意效果如下图所示。具体使用请参见[访问控制授权申请指导](../security/accesstoken-guidelines.md)。 - **图2** 向用户申请日历访问授权 +**图2** 向用户申请日历访问授权 application-context-stage \ No newline at end of file diff --git a/zh-cn/application-dev/application-models/common-event-publish.md b/zh-cn/application-dev/application-models/common-event-publish.md index 5265575821ca3a6884f070248cba4f668cd1562f..57007759a77fdab403d3c16fe60fef53487440f5 100644 --- a/zh-cn/application-dev/application-models/common-event-publish.md +++ b/zh-cn/application-dev/application-models/common-event-publish.md @@ -3,7 +3,7 @@ ## 场景介绍 -当需要发布某个自定义公共事件时,可以通过[publish()](../reference/apis/js-apis-commonEvent.md#commoneventpublish)方法发布事件。发布的公共事件可以携带数据,供订阅者解析并进行下一步处理。 +当需要发布某个自定义公共事件时,可以通过[publish()](../reference/apis/js-apis-commonEventManager.md#commoneventmanagerpublish)方法发布事件。发布的公共事件可以携带数据,供订阅者解析并进行下一步处理。 > **须知:** > 已发出的粘性公共事件后来订阅者也可以接收到,其他公共事件都需要先订阅再接收,订阅参考[公共事件订阅章节](common-event-subscription.md)。 @@ -11,7 +11,7 @@ ## 接口说明 -详细接口见[接口文档](../reference/apis/js-apis-commonEvent.md#commoneventpublish)。 +详细接口见[接口文档](../reference/apis/js-apis-commonEventManager.md#commoneventmanagerpublish)。 | 接口名 | 接口描述 | | -------- | -------- | diff --git a/zh-cn/application-dev/application-models/common-event-subscription.md b/zh-cn/application-dev/application-models/common-event-subscription.md index 459c91a26765f7de64344da8db2742e4289eb086..785ea8d3a19fbeee57d938a07955370f0f3ca2b3 100644 --- a/zh-cn/application-dev/application-models/common-event-subscription.md +++ b/zh-cn/application-dev/application-models/common-event-subscription.md @@ -8,7 +8,7 @@ ## 接口说明 -详细接口见[接口文档](../reference/apis/js-apis-commonEvent.md#commoneventcreatesubscriber)。 +详细接口见[接口文档](../reference/apis/js-apis-commonEventManager.md#commoneventmanagersubscribe)。 | 接口名 | 接口描述 | | -------- | -------- | diff --git a/zh-cn/application-dev/application-models/common-event-unsubscription.md b/zh-cn/application-dev/application-models/common-event-unsubscription.md index 1ba9296f83b7f5d1716ba4698aba5f20d982fbe1..1f7a23db104b8a8725b5d7711bd5a0dcb223b55f 100644 --- a/zh-cn/application-dev/application-models/common-event-unsubscription.md +++ b/zh-cn/application-dev/application-models/common-event-unsubscription.md @@ -3,7 +3,7 @@ ## 场景介绍 -订阅者完成业务需要时,需要主动取消订阅,订阅者通过调用[unsubscribe()](../reference/apis/js-apis-commonEvent.md#commoneventunsubscribe)方法取消订阅事件。 +订阅者完成业务需要时,需要主动取消订阅,订阅者通过调用[unsubscribe()](../reference/apis/js-apis-commonEventManager.md#commoneventmanagerunsubscribe)方法取消订阅事件。 ## 接口说明 diff --git a/zh-cn/application-dev/application-models/component-startup-rules-fa.md b/zh-cn/application-dev/application-models/component-startup-rules-fa.md index 825dffece76a429fea1591616f4b8c8b6083d7ed..e5d4cb541b39af727c7721b9469cae606d9f56b2 100644 --- a/zh-cn/application-dev/application-models/component-startup-rules-fa.md +++ b/zh-cn/application-dev/application-models/component-startup-rules-fa.md @@ -38,7 +38,7 @@ - 只有系统预置应用才允许配置AssociateWakeUp字段,其余应用AssociateWakeUp默认为**false** -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 1. 组件启动管控自OpenHarmony v3.2 Release版本开始落地。 > > 2. 与原本的启动规则不同,新的组件启动规则较为严格,开发者需熟知启动规则,避免业务功能异常。 diff --git a/zh-cn/application-dev/application-models/component-startup-rules.md b/zh-cn/application-dev/application-models/component-startup-rules.md index 0994ebeec37440350e42c02685520d4394e0de03..259d40cde69a888200f9998244c9b057bfbf05a1 100644 --- a/zh-cn/application-dev/application-models/component-startup-rules.md +++ b/zh-cn/application-dev/application-models/component-startup-rules.md @@ -34,7 +34,7 @@ - 需校验`ohos.permission.ABILITY_BACKGROUND_COMMUNICATION`权限 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 1. 组件启动管控自OpenHarmony v3.2 Release版本开始落地。 > > 2. 与原本的启动规则不同,新的组件启动规则较为严格,开发者需熟知启动规则,避免业务功能异常。 diff --git a/zh-cn/application-dev/application-models/dataability-configuration.md b/zh-cn/application-dev/application-models/dataability-configuration.md index ef1f8583d77238414c0185d080bdfd9dce15d92a..88b57ca8f5b8b9f999adcdfc5b4eabe795eaa7f8 100644 --- a/zh-cn/application-dev/application-models/dataability-configuration.md +++ b/zh-cn/application-dev/application-models/dataability-configuration.md @@ -23,7 +23,7 @@ URI示例: - 本地设备:dataability:///_com.domainname.dataability.persondata_/_person_/_1_ -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本地设备的"device_id"字段为空,因此在"dataability:"后面有三个"/"。 diff --git a/zh-cn/application-dev/application-models/explicit-implicit-want-mappings.md b/zh-cn/application-dev/application-models/explicit-implicit-want-mappings.md index ab6878dc57b170c1eac98c6482a497189a0b7765..2fcecb63c094190c71db81d3b703c888539a0e66 100644 --- a/zh-cn/application-dev/application-models/explicit-implicit-want-mappings.md +++ b/zh-cn/application-dev/application-models/explicit-implicit-want-mappings.md @@ -130,7 +130,7 @@ - 如果s_uri的pathRegex不为空,当w_uri满足s_uri**正则表达式**时匹配成功,否则匹配失败; -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 待匹配Ability的skills配置的uris中scheme、host、port、path、pathStartWith和pathRegex属性拼接,如果依次声明了path、pathStartWith和pathRegex属性时,uris将分别拼接为如下三种表达式: > > - **全路径表达式**:scheme://host:port/path @@ -142,7 +142,7 @@ ### type匹配规则 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 此小节所述的type匹配规则的适用性需建立在want参数内type不为空的基础上。当want参数内type为空时请参考[want参数的uri和type匹配规则](#want参数的uri和type匹配规则)。 这里为了简化描述,称want中传入的uri为w_type,待匹配Ability的skills数组中uris的type数据为s_type,具体的匹配规则如下: diff --git a/zh-cn/application-dev/application-models/extensionability-overview.md b/zh-cn/application-dev/application-models/extensionability-overview.md index 942341093d87fd1ef66c137c68e079d695eaafe2..db3de0998a110e639aee815e384cc964763cc8fa 100644 --- a/zh-cn/application-dev/application-models/extensionability-overview.md +++ b/zh-cn/application-dev/application-models/extensionability-overview.md @@ -44,7 +44,7 @@ ExtensionAbility组件是基于特定场景(例如服务卡片、输入法等 ![form_extension](figures/form_extension.png) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 同一应用内的所有同类型的ExtensionAbility运行在同一独立进程(除ServiceExtensionAbility、DataShareExtensionAbility外),跟UIAbility组件不在同一进程,Stage模型的进程模型请参见[进程模型](process-model-stage.md)。 > > 例如一个应用有1个UIAbility组件、1个ServiceExtensionAbility、1个DataShareExtensionAbility、2个FormExtensionAbility、1个ImeExtensionAbility。则该应用在运行时,有三个进程: diff --git a/zh-cn/application-dev/application-models/hop-multi-device-collaboration.md b/zh-cn/application-dev/application-models/hop-multi-device-collaboration.md index a4cafc5b9fe090ec94dc8386d1dcfbc1240449bc..8a2d2bc692d05e3c010b1d4a70c5d4d72168edcd 100644 --- a/zh-cn/application-dev/application-models/hop-multi-device-collaboration.md +++ b/zh-cn/application-dev/application-models/hop-multi-device-collaboration.md @@ -53,13 +53,13 @@ ```ts requestPermission() { - let context = this.context - let permissions: Array = ['ohos.permission.DISTRIBUTED_DATASYNC'] - context.requestPermissionsFromUser(permissions).then((data) => { - console.info("Succeed to request permission from user with data: "+ JSON.stringify(data)) - }).catch((error) => { - console.info("Failed to request permission from user with error: "+ JSON.stringify(error)) - }) + let context = this.context; + let permissions: Array = ['ohos.permission.DISTRIBUTED_DATASYNC']; + context.requestPermissionsFromUser(permissions).then((data) => { + console.info("Succeed to request permission from user with data: "+ JSON.stringify(data)); + }).catch((error) => { + console.info("Failed to request permission from user with error: "+ JSON.stringify(error)); + }) } ``` @@ -135,13 +135,13 @@ ```ts requestPermission() { - let context = this.context - let permissions: Array = ['ohos.permission.DISTRIBUTED_DATASYNC'] - context.requestPermissionsFromUser(permissions).then((data) => { - console.info("Succeed to request permission from user with data: "+ JSON.stringify(data)) - }).catch((error) => { - console.info("Failed to request permission from user with error: "+ JSON.stringify(error)) - }) + let context = this.context; + let permissions: Array = ['ohos.permission.DISTRIBUTED_DATASYNC']; + context.requestPermissionsFromUser(permissions).then((data) => { + console.info("Succeed to request permission from user with data: "+ JSON.stringify(data)); + }).catch((error) => { + console.info("Failed to request permission from user with error: "+ JSON.stringify(error)); + }) } ``` @@ -218,31 +218,19 @@ ### 开发步骤 -1. 在module.json5配置数据同步权限,示例代码如下。 +1. 申请`ohos.permission.DISTRIBUTED_DATASYNC`权限,配置方式请参阅[访问控制授权申请指导](../security/accesstoken-guidelines.md#stage模型)。 - ```json - { - "module": { - "requestPermissions":[ - { - "name" : "ohos.permission.DISTRIBUTED_DATASYNC", - } - ] - } - } - ``` - 2. 申请数据同步权限,弹框示例代码。 ```ts requestPermission() { - let context = this.context - let permissions: Array = ['ohos.permission.DISTRIBUTED_DATASYNC'] - context.requestPermissionsFromUser(permissions).then((data) => { - console.info("Succeed to request permission from user with data: "+ JSON.stringify(data)) - }).catch((error) => { - console.info("Failed to request permission from user with error: "+ JSON.stringify(error)) - }) + let context = this.context; + let permissions: Array = ['ohos.permission.DISTRIBUTED_DATASYNC']; + context.requestPermissionsFromUser(permissions).then((data) => { + console.info("Succeed to request permission from user with data: "+ JSON.stringify(data)); + }).catch((error) => { + console.info("Failed to request permission from user with error: "+ JSON.stringify(error)); + }) } ``` @@ -250,7 +238,7 @@ 4. 连接一个后台服务。 - 实现IAbilityConnection接口。IAbilityConnection提供了以下方法供开发者实现:onConnect()是用来处理连接Service成功的回调,onDisconnect()是用来处理Service异常终止的回调,onFailed()是用来处理连接Service失败的回调。 - - 设置目标组件参数,包括目标设备ID、包名、ability名。 + - 设置目标组件参数,包括目标设备ID、Bundle名称、Ability名称。 - 调用connectServiceExtensionAbility发起连接。 - 连接成功,收到目标设备返回的服务句柄。 - 进行跨设备调用,获得目标端服务返回的结果。 @@ -291,10 +279,10 @@ }); }, onDisconnect(elementName) { - console.info('onDisconnect callback') + console.info('onDisconnect callback'); }, onFailed(code) { - console.info('onFailed callback') + console.info('onFailed callback'); } } // 建立连接后返回的Id需要保存下来,在解绑服务时需要作为参数传入 @@ -339,31 +327,19 @@ ### 开发步骤 -1. 在module.json5配置数据同步权限,示例代码如下。 +1. 申请`ohos.permission.DISTRIBUTED_DATASYNC`权限,配置方式请参阅[访问控制授权申请指导](../security/accesstoken-guidelines.md#stage模型)。 - ```json - { - "module": { - "requestPermissions":[ - { - "name" : "ohos.permission.DISTRIBUTED_DATASYNC", - } - ] - } - } - ``` - 2. 申请数据同步权限,弹框示例代码。 ```ts requestPermission() { - let context = this.context - let permissions: Array = ['ohos.permission.DISTRIBUTED_DATASYNC'] - context.requestPermissionsFromUser(permissions).then((data) => { - console.info("Succeed to request permission from user with data: "+ JSON.stringify(data)) - }).catch((error) => { - console.info("Failed to request permission from user with error: "+ JSON.stringify(error)) - }) + let context = this.context; + let permissions: Array = ['ohos.permission.DISTRIBUTED_DATASYNC']; + context.requestPermissionsFromUser(permissions).then((data) => { + console.info("Succeed to request permission from user with data: "+ JSON.stringify(data)); + }).catch((error) => { + console.info("Failed to request permission from user with error: "+ JSON.stringify(error)); + }) } ``` @@ -394,7 +370,7 @@ 2. 导入UIAbility模块。 ```ts - import Ability from '@ohos.app.ability.UIAbility' + import Ability from '@ohos.app.ability.UIAbility'; ``` 3. 定义约定的序列化数据。 调用端及被调用端发送接收的数据格式需协商一致,如下示例约定数据由number和string组成。 @@ -402,24 +378,24 @@ ```ts export default class MySequenceable { - num: number = 0 - str: string = "" + num: number = 0; + str: string = ""; constructor(num, string) { - this.num = num - this.str = string + this.num = num; + this.str = string; } marshalling(messageParcel) { - messageParcel.writeInt(this.num) - messageParcel.writeString(this.str) - return true + messageParcel.writeInt(this.num); + messageParcel.writeString(this.str); + return true; } unmarshalling(messageParcel) { - this.num = messageParcel.readInt() - this.str = messageParcel.readString() - return true + this.num = messageParcel.readInt(); + this.str = messageParcel.readString(); + return true; } } ``` @@ -427,36 +403,36 @@ 如下示例在Ability的onCreate注册MSG_SEND_METHOD监听,在onDestroy取消监听,收到序列化数据后作相应处理并返回。应用开发者根据实际业务需要做相应处理。 ```ts - const TAG: string = '[CalleeAbility]' - const MSG_SEND_METHOD: string = 'CallSendMsg' + const TAG: string = '[CalleeAbility]'; + const MSG_SEND_METHOD: string = 'CallSendMsg'; function sendMsgCallback(data) { - console.info('CalleeSortFunc called') + console.info('CalleeSortFunc called'); // 获取Caller发送的序列化数据 - let receivedData = new MySequenceable(0, '') - data.readSequenceable(receivedData) - console.info(`receiveData[${receivedData.num}, ${receivedData.str}]`) + let receivedData = new MySequenceable(0, ''); + data.readSequenceable(receivedData); + console.info(`receiveData[${receivedData.num}, ${receivedData.str}]`); // 作相应处理 // 返回序列化数据result给Caller - return new MySequenceable(receivedData.num + 1, `send ${receivedData.str} succeed`) + return new MySequenceable(receivedData.num + 1, `send ${receivedData.str} succeed`); } export default class CalleeAbility extends Ability { onCreate(want, launchParam) { try { - this.callee.on(MSG_SEND_METHOD, sendMsgCallback) + this.callee.on(MSG_SEND_METHOD, sendMsgCallback); } catch (error) { - console.info(`${MSG_SEND_METHOD} register failed with error ${JSON.stringify(error)}`) + console.info(`${MSG_SEND_METHOD} register failed with error ${JSON.stringify(error)}`); } } onDestroy() { try { - this.callee.off(MSG_SEND_METHOD) + this.callee.off(MSG_SEND_METHOD); } catch (error) { - console.error(TAG, `${MSG_SEND_METHOD} unregister failed with error ${JSON.stringify(error)}`) + console.error(TAG, `${MSG_SEND_METHOD} unregister failed with error ${JSON.stringify(error)}`); } } } @@ -466,7 +442,7 @@ 1. 导入UIAbility模块。 ```ts - import Ability from '@ohos.app.ability.UIAbility' + import Ability from '@ohos.app.ability.UIAbility'; ``` 2. 获取Caller通信接口。 Ability的context属性实现了startAbilityByCall方法,用于获取指定通用组件的Caller通信接口。如下示例通过this.context获取Ability实例的context属性,使用startAbilityByCall拉起Callee被调用端并获取Caller通信接口,注册Caller的onRelease监听。应用开发者根据实际业务需要做相应处理。 @@ -474,8 +450,8 @@ ```ts async onButtonGetRemoteCaller() { - var caller = undefined - var context = this.context + var caller = undefined; + var context = this.context; context.startAbilityByCall({ deviceId: getRemoteDeviceId(), @@ -483,16 +459,16 @@ abilityName: 'CalleeAbility' }).then((data) => { if (data != null) { - caller = data - console.info('get remote caller success') + caller = data; + console.info('get remote caller success'); // 注册caller的release监听 caller.onRelease((msg) => { - console.info(`remote caller onRelease is called ${msg}`) + console.info(`remote caller onRelease is called ${msg}`); }) - console.info('remote caller register OnRelease succeed') + console.info('remote caller register OnRelease succeed'); } }).catch((error) => { - console.error(`get remote caller failed with ${error}`) + console.error(`get remote caller failed with ${error}`); }) } ``` @@ -503,34 +479,34 @@ 1. 向被调用端发送Sequenceable数据有两种方式,一种是不带返回值,一种是获取被调用端返回的数据,method以及序列化数据需要与被调用端协商一致。如下示例调用Call接口,向Callee被调用端发送数据。 ```ts - const MSG_SEND_METHOD: string = 'CallSendMsg' + const MSG_SEND_METHOD: string = 'CallSendMsg'; async onButtonCall() { try { - let msg = new MySequenceable(1, 'origin_Msg') - await this.caller.call(MSG_SEND_METHOD, msg) + let msg = new MySequenceable(1, 'origin_Msg'); + await this.caller.call(MSG_SEND_METHOD, msg); } catch (error) { - console.info(`caller call failed with ${error}`) + console.info(`caller call failed with ${error}`); } } ``` 2. 如下示例调用CallWithResult接口,向Callee被调用端发送待处理的数据originMsg,并将’CallSendMsg’方法处理完毕的数据赋值给backMsg。 ```ts - const MSG_SEND_METHOD: string = 'CallSendMsg' - originMsg: string = '' - backMsg: string = '' + const MSG_SEND_METHOD: string = 'CallSendMsg'; + originMsg: string = ''; + backMsg: string = ''; async onButtonCallWithResult(originMsg, backMsg) { try { - let msg = new MySequenceable(1, originMsg) - const data = await this.caller.callWithResult(MSG_SEND_METHOD, msg) - console.info('caller callWithResult succeed') + let msg = new MySequenceable(1, originMsg); + const data = await this.caller.callWithResult(MSG_SEND_METHOD, msg); + console.info('caller callWithResult succeed'); - let result = new MySequenceable(0, '') - data.readSequenceable(result) - backMsg(result.str) - console.info(`caller result is [${result.num}, ${result.str}]`) + let result = new MySequenceable(0, ''); + data.readSequenceable(result); + backMsg(result.str); + console.info(`caller result is [${result.num}, ${result.str}]`); } catch (error) { - console.info(`caller callWithResult failed with ${error}`) + console.info(`caller callWithResult failed with ${error}`); } } ``` @@ -541,11 +517,11 @@ ```ts releaseCall() { try { - this.caller.release() + this.caller.release(); this.caller = undefined - console.info('caller release succeed') + console.info('caller release succeed'); } catch (error) { - console.info(`caller release failed with ${error}`) + console.info(`caller release failed with ${error}`); } } ``` diff --git a/zh-cn/application-dev/application-models/mission-management-launch-type.md b/zh-cn/application-dev/application-models/mission-management-launch-type.md index dec6697adb287c09cf28b7f024ad3c7270a965ca..713e62c3dfccc25ca1d9df56ab986c74ba30590d 100644 --- a/zh-cn/application-dev/application-models/mission-management-launch-type.md +++ b/zh-cn/application-dev/application-models/mission-management-launch-type.md @@ -8,12 +8,12 @@ - singleton:单实例模式,应用在运行时只存在一个该UIAbility实例。 **图1** 任务与singleton模式 -![mission-and-singleton](figures/mission-and-singleton.png) + ![mission-and-singleton](figures/mission-and-singleton.png) - standard:多实例模式,每次调用startAbility()方法,都会在应用进程中创建一个该Ability的实例。 **图2** 任务与standard模式 -![mission-and-standard](figures/mission-and-standard.png) + ![mission-and-standard](figures/mission-and-standard.png) - specified:指定实例模式,由[AbilityStage](abilitystage.md)的([onAcceptWant](../reference/apis/js-apis-app-ability-abilityStage.md#abilitystageonacceptwant))决定是否创建新的实例。 @@ -27,5 +27,5 @@ 每个UIAbility实例对应的Mission都保留有该UIAbility实例的快照(Snapshot),UIAbility实例销毁后,Mission信息(包括Ability信息和任务快照)依然会保留,直到用户删除该任务。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > specified模式只在Stage模型上支持,FA模型不支持。 diff --git a/zh-cn/application-dev/application-models/pageability-lifecycle.md b/zh-cn/application-dev/application-models/pageability-lifecycle.md index 5eca9285797be7d8c3791cf0ce0546c466962385..843b8824de6afe508cfc8e8e89301fbe5089a850 100644 --- a/zh-cn/application-dev/application-models/pageability-lifecycle.md +++ b/zh-cn/application-dev/application-models/pageability-lifecycle.md @@ -41,7 +41,7 @@ PageAbility生命周期回调与生命周期状态的关系如下图所示。 ![fa-pageAbility-lifecycle](figures/fa-pageAbility-lifecycle.png) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** -> 1、PageAbility的生命周期回调均为同步接口。 -> -> 2、目前app.js环境中仅支持onCreate和onDestroy回调,app.ets环境支持全量生命周期回调。 +> **说明:** +> +> 1. PageAbility的生命周期回调均为同步接口。 +> 2. 目前app.js环境中仅支持onCreate和onDestroy回调,app.ets环境支持全量生命周期回调。 diff --git a/zh-cn/application-dev/application-models/process-model-stage.md b/zh-cn/application-dev/application-models/process-model-stage.md index 152d9b6cf9cb1479e4ef21818dd4836d975a9bc8..88b9af254cfa2be9baaa03cd3d88a62785c8f74b 100644 --- a/zh-cn/application-dev/application-models/process-model-stage.md +++ b/zh-cn/application-dev/application-models/process-model-stage.md @@ -4,9 +4,9 @@ OpenHarmony的进程模型如下图所示: -- 应用中(同一包名)的所有UIAbility、ServiceExtensionAbility、DataShareExtensionAbility运行在同一个独立进程中,即图中绿色部分的“Main Process”。 +- 应用中(同一Bundle名称)的所有UIAbility、ServiceExtensionAbility、DataShareExtensionAbility运行在同一个独立进程中,即图中绿色部分的“Main Process”。 -- 应用中(同一包名)的同一类型ExtensionAbility(除ServiceExtensionAbility和DataShareExtensionAbility外)运行在一个独立进程中,即图中蓝色部分的“FormExtensionAbility Process”、“InputMethodExtensionAbility Process”、其他ExtensionAbility Process。 +- 应用中(同一Bundle名称)的同一类型ExtensionAbility(除ServiceExtensionAbility和DataShareExtensionAbility外)运行在一个独立进程中,即图中蓝色部分的“FormExtensionAbility Process”、“InputMethodExtensionAbility Process”、其他ExtensionAbility Process。 - WebView拥有独立的渲染进程,即图中黄色部分的“Render Process”。 diff --git a/zh-cn/application-dev/application-models/serviceextensionability.md b/zh-cn/application-dev/application-models/serviceextensionability.md index 163ec6b69b3fe1c308ae68e2648e75f04b6e5097..77b67d880ca46844cf274f6b1b4f2995cf617f0c 100644 --- a/zh-cn/application-dev/application-models/serviceextensionability.md +++ b/zh-cn/application-dev/application-models/serviceextensionability.md @@ -25,7 +25,7 @@ - [连接一个后台服务](#连接一个后台服务) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 1. OpenHarmony当前不支持三方应用实现ServiceExtensionAbility。如果三方开发者想要实现后台处理相关事务的功能,可以使用后台任务,具体请参见[后台任务](../task-management/background-task-overview.md)。 > > 2. 三方应用的UIAbility组件可以通过Context连接系统提供的ServiceExtensionAbility。 @@ -43,7 +43,7 @@ - **onCreate** 服务被首次创建时触发该回调,开发者可以在此进行一些初始化的操作,例如注册公共事件监听等。 - > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** + > **说明:** > 如果服务已创建,再次启动该ServiceExtensionAbility不会触发onCreate()回调。 - **onRequest** @@ -162,7 +162,7 @@ 系统应用通过[startServiceExtensionAbility()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#abilitycontextstartserviceextensionability)方法启动一个后台服务,服务的[onRequest()](../reference/apis/js-apis-app-ability-serviceExtensionAbility.md#serviceextensionabilityonrequest)回调就会被调用,并在该回调方法中接收到调用者传递过来的want对象。后台服务启动后,其生命周期独立于客户端,即使客户端已经销毁,该后台服务仍可继续运行。因此,后台服务需要在其工作完成时通过调用ServiceExtensionContext的[terminateSelf()](../reference/apis/js-apis-inner-application-serviceExtensionContext.md#serviceextensioncontextterminateself)来自行停止,或者由另一个组件调用[stopServiceExtensionAbility()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#abilitycontextstopserviceextensionability)来将其停止。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > ServiceExtensionContext的[startServiceExtensionAbility()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#abilitycontextstartserviceextensionability)、[stopServiceExtensionAbility()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#abilitycontextstopserviceextensionability)和[terminateSelf()](../reference/apis/js-apis-inner-application-serviceExtensionContext.md#serviceextensioncontextterminateself)为系统接口,三方应用不支持调用。 1. 在系统应用中启动一个新的ServiceExtensionAbility。示例中的context的获取方式参见[获取UIAbility的Context属性](uiability-usage.md#获取uiability的上下文信息)。 @@ -207,7 +207,7 @@ ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 后台服务可以在后台长期运行,为了避免资源浪费,需要对后台服务的生命周期进行管理。即一个后台服务完成了请求方的任务,需要及时销毁。销毁已启动的后台服务有两种方式: > > - 后台服务自身调用[terminateSelf()](../reference/apis/js-apis-inner-application-serviceExtensionContext.md#serviceextensioncontextterminateself)方法来自行停止。 diff --git a/zh-cn/application-dev/application-models/thread-model-fa.md b/zh-cn/application-dev/application-models/thread-model-fa.md index 17efc76b93c69c2d4794fcad58ed80b0bb1015e2..fb97b7cd0b9969583a4b3256a8f72791ca823e0f 100644 --- a/zh-cn/application-dev/application-models/thread-model-fa.md +++ b/zh-cn/application-dev/application-models/thread-model-fa.md @@ -21,5 +21,5 @@ FA模型下的线程主要有如下三类: 基于OpenHarmony的线程模型,不同的业务功能运行在不同的线程上,业务功能的交互就需要线程间通信。线程间通信目前主要有Emitter和Worker两种方式,其中Emitter主要适用于线程间的事件同步, Worker主要用于新开一个线程执行耗时任务。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > FA模型每个ability都有一个独立的线程,Emiter可用于Ability线程内、Ability线程间、Ability线程与Worker线程的事件同步。 diff --git a/zh-cn/application-dev/application-models/thread-model-stage.md b/zh-cn/application-dev/application-models/thread-model-stage.md index 715a2c2551f8f6f50e7c401c55d1ecd65492b0f7..9c238e1b8c404d47754ccd361b34cb6a112cbd5c 100644 --- a/zh-cn/application-dev/application-models/thread-model-stage.md +++ b/zh-cn/application-dev/application-models/thread-model-stage.md @@ -18,7 +18,7 @@ OpenHarmony应用中每个进程都会有一个主线程,主线程有如下职 ![thread-model-stage](figures/thread-model-stage.png) -基于OpenHarmony的线程模型,不同的业务功能运行在不同的线程上,业务功能的交互就需要线程间通信。线程间通信目前主要有Emitter和Worker两种方式,其中Emitter主要适用于线程间的事件同步, Worker主要用于新开一个线程执行耗时任务。 +基于OpenHarmony的线程模型,不同的业务功能运行在不同的线程上,业务功能的交互就需要线程间通信。同一个进程内,线程间通信目前主要有Emitter和Worker两种方式,其中Emitter主要适用于线程间的事件同步, Worker主要用于新开一个线程执行耗时任务。 **说明:** diff --git a/zh-cn/application-dev/application-models/uiability-intra-device-interaction.md b/zh-cn/application-dev/application-models/uiability-intra-device-interaction.md index b1269e79b7b90a9da7d6782ad405ff51182caa76..66922f71b0e27e43205a7d0da555379d16e92828 100644 --- a/zh-cn/application-dev/application-models/uiability-intra-device-interaction.md +++ b/zh-cn/application-dev/application-models/uiability-intra-device-interaction.md @@ -26,7 +26,7 @@ UIAbility是系统调度的最小单元。在设备内的功能模块之间跳 假设应用中有两个UIAbility:EntryAbility和FuncAbility(可以在应用的一个Module中,也可以在的不同Module中),需要从EntryAbility的页面中启动FuncAbility。 -1. 在EntryAbility中,通过调用startAbility()方法启动UIAbility,[want](../reference/apis/js-apis-app-ability-want.md)为UIAbility实例启动的入口参数,其中bundleName为待启动应用的Bundle名称,abilityName为待启动的UIAbility名称,moduleName在待启动的UIAbility属于不同的Module时添加,parameters为自定义信息参数。示例中的context的获取方式参见[获取UIAbility的Context属性](uiability-usage.md#获取uiability的上下文信息)。 +1. 在EntryAbility中,通过调用startAbility()方法启动UIAbility,[want](../reference/apis/js-apis-app-ability-want.md)为UIAbility实例启动的入口参数,其中bundleName为待启动应用的Bundle名称,abilityName为待启动的Ability名称,moduleName在待启动的UIAbility属于不同的Module时添加,parameters为自定义信息参数。示例中的context的获取方式参见[获取UIAbility的Context属性](uiability-usage.md#获取uiability的上下文信息)。 ```ts let wantInfo = { @@ -410,7 +410,7 @@ export default class FuncAbility extends UIAbility { } ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 当被调用方[Ability的启动模式](uiability-launch-type.md)设置为standard启动模式时,每次启动都会创建一个新的实例,那么[onNewWant()](../reference/apis/js-apis-app-ability-uiAbility.md#abilityonnewwant)回调就不会被用到。 @@ -448,7 +448,7 @@ Call调用示意图如下所示。 - CalleeAbility持有一个Callee对象,通过Callee的on方法注册回调函数,当接收到Caller发送的数据时将会调用对应的回调函数。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 1. 当前仅支持系统应用使用Call调用。 > > 2. CalleeAbility的启动模式需要为单实例。 diff --git a/zh-cn/application-dev/application-models/uiability-launch-type.md b/zh-cn/application-dev/application-models/uiability-launch-type.md index 6a9e4627f021908373eab8cd394bc558f9fb61f6..05b111d4b480122c4829a5897adbe1c806f27b0d 100644 --- a/zh-cn/application-dev/application-models/uiability-launch-type.md +++ b/zh-cn/application-dev/application-models/uiability-launch-type.md @@ -20,7 +20,7 @@ singleton启动模式为单实例模式,也是默认情况下的启动模式 **图1** 单实例模式演示效果 uiability-launch-type1 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 应用的UIAbility实例已创建,该UIAbility配置为单实例模式,再次调用startAbility()方法启动该UIAbility实例,此时只会进入该UIAbility的[onNewWant()](../reference/apis/js-apis-app-ability-uiAbility.md#abilityonnewwant)回调,不会进入其onCreate()和onWindowStageCreate()生命周期回调。 如果需要使用singleton启动模式,在[module.json5配置文件](../quick-start/module-configuration-file.md)中的"launchType"字段配置为"singleton"即可。 @@ -75,7 +75,7 @@ specified启动模式为指定实例模式,针对一些特殊场景使用( **图3** 指定实例模式演示效果 uiability-launch-type2 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 应用的UIAbility实例已创建,该UIAbility配置为指定实例模式,再次调用startAbility()方法启动该UIAbility实例,且[AbilityStage](abilitystage.md)的[onAcceptWant()](../reference/apis/js-apis-app-ability-abilityStage.md#abilitystageonacceptwant)回调匹配到一个已创建的UIAbility实例。此时,再次启动该UIAbility时,只会进入该UIAbility的[onNewWant()](../reference/apis/js-apis-app-ability-uiAbility.md#abilityonnewwant)回调,不会进入其onCreate()和onWindowStageCreate()生命周期回调。 例如有两个UIAbility:EntryAbility和FuncAbility,FuncAbility配置为specified启动模式,需要从EntryAbility的页面中启动FuncAbility。 diff --git a/zh-cn/application-dev/application-models/uiability-lifecycle.md b/zh-cn/application-dev/application-models/uiability-lifecycle.md index 068b56748aef275ea1b3438911bf75f4a50eabdf..c246043a81d555acef9b36c3a67a9500f7a25dea 100644 --- a/zh-cn/application-dev/application-models/uiability-lifecycle.md +++ b/zh-cn/application-dev/application-models/uiability-lifecycle.md @@ -39,15 +39,26 @@ UIAbility实例创建完成之后,在进入Foreground之前,系统会创建 **图2** WindowStageCreate和WindowStageDestory状态 Ability-Life-Cycle-WindowStage - 在onWindowStageCreate()回调中通过loadContent()方法设置应用要加载的页面并根据需要订阅WindowStage的[事件](../reference/apis/js-apis-window.md#windowstageeventtype9)(获焦/失焦、可见/不可见)。 +在onWindowStageCreate()回调中通过[loadContent()](../reference/apis/js-apis-window.md#loadcontent9-2)方法设置应用要加载的页面,并根据需要调用[on('windowStageEvent')](../reference/apis/js-apis-window.md#onwindowstageevent9)方法订阅WindowStage的[事件](../reference/apis/js-apis-window.md#windowstageeventtype9)(获焦/失焦、可见/不可见)。 ```ts import UIAbility from '@ohos.app.ability.UIAbility'; import Window from '@ohos.window'; export default class EntryAbility extends UIAbility { + // ... + onWindowStageCreate(windowStage: Window.WindowStage) { // 设置WindowStage的事件订阅(获焦/失焦、可见/不可见) + try { + windowStage.on('windowStageEvent', (data) => { + console.info('Succeeded in enabling the listener for window stage event changes. Data: ' + + JSON.stringify(data)); + }); + } catch (exception) { + console.error('Failed to enable the listener for window stage event changes. Cause:' + + JSON.stringify(exception)); + }; // 设置UI界面加载 windowStage.loadContent('pages/Index', (err, data) => { @@ -57,7 +68,7 @@ export default class EntryAbility extends UIAbility { } ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > WindowStage的相关使用请参见[窗口开发指导](../windowmanager/application-window-stage.md)。 对应于onWindowStageCreate()回调。在UIAbility实例销毁之前,则会先进入onWindowStageDestroy()回调,可以在该回调中释放UI界面资源。例如在onWindowStageDestroy()中注销获焦/失焦等WindowStage事件。 @@ -72,6 +83,13 @@ export default class EntryAbility extends UIAbility { onWindowStageDestroy() { // 释放UI界面资源 + // 例如在onWindowStageDestroy()中注销获焦/失焦等WindowStage事件 + try { + windowStage.off('windowStageEvent'); + } catch (exception) { + console.error('Failed to disable the listener for window stage event changes. Cause:' + + JSON.stringify(exception)); + }; } } ``` @@ -94,6 +112,8 @@ onBackground()回调,在UIAbility的UI界面完全不可见之后,如UIAbili import UIAbility from '@ohos.app.ability.UIAbility'; export default class EntryAbility extends UIAbility { + // ... + onForeground() { // 申请系统需要的资源,或者重新申请在onBackground中释放的资源 } @@ -117,6 +137,8 @@ import UIAbility from '@ohos.app.ability.UIAbility'; import Window from '@ohos.window'; export default class EntryAbility extends UIAbility { + // ... + onDestroy() { // 系统资源的释放、数据的保存等 } diff --git a/zh-cn/application-dev/application-models/uiability-overview.md b/zh-cn/application-dev/application-models/uiability-overview.md index c14f0dc4c4a00e45c54a85a8082f607ee58201de..1ffe36134096e12816d10c14b2c476c5a3e7dae5 100644 --- a/zh-cn/application-dev/application-models/uiability-overview.md +++ b/zh-cn/application-dev/application-models/uiability-overview.md @@ -33,5 +33,5 @@ UIAbility组件是系统调度的基本单元,为应用提供绘制界面的 } ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > Ability的组成请参见在[模块中添加Ability](https://developer.harmonyos.com/cn/docs/documentation/doc-guides-V3/ohos-adding-ability-0000001218280664-V3)。 diff --git a/zh-cn/application-dev/application-models/uiability-usage.md b/zh-cn/application-dev/application-models/uiability-usage.md index 457bb45f3ba2b0dee5224585b38e818d09faa134..15fbffbb0997f0197ea38266b591ba9476e95cea 100644 --- a/zh-cn/application-dev/application-models/uiability-usage.md +++ b/zh-cn/application-dev/application-models/uiability-usage.md @@ -25,7 +25,7 @@ export default class EntryAbility extends UIAbility { } ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 在DevEco Studio中创建的UIAbility中,该UIAbility实例默认会加载Index页面,根据需要将Index页面路径替换为需要的页面路径即可。 diff --git a/zh-cn/application-dev/application-models/want-overview.md b/zh-cn/application-dev/application-models/want-overview.md index 6fae778dd8951cb648d0f4cb00612d3a136941d8..b02617e6192c92214808fdb0d7d1c6d9c63db37d 100644 --- a/zh-cn/application-dev/application-models/want-overview.md +++ b/zh-cn/application-dev/application-models/want-overview.md @@ -3,7 +3,7 @@ ## Want的定义与用途 -[Want](../reference/apis/js-apis-app-ability-want.md)是对象间信息传递的载体,可以用于应用组件间的信息传递。其使用场景之一是作为startAbility()的参数,包含了指定的启动目标以及启动时需携带的相关数据,如bundleName和abilityName字段分别指明目标Ability所在应用的包名以及对应包内的Ability名称。当UIAbilityA启动UIAbilityB并需要传入一些数据给UIAbilityB时,Want可以作为一个载体将数据传给UIAbilityB。 +[Want](../reference/apis/js-apis-app-ability-want.md)是对象间信息传递的载体,可以用于应用组件间的信息传递。其使用场景之一是作为startAbility()的参数,包含了指定的启动目标以及启动时需携带的相关数据,如bundleName和abilityName字段分别指明目标Ability所在应用的Bundle名称以及对应包内的Ability名称。当UIAbilityA启动UIAbilityB并需要传入一些数据给UIAbilityB时,Want可以作为一个载体将数据传给UIAbilityB。 **图1** Want用法示意 usage-of-want @@ -12,7 +12,7 @@ ## Want的类型 - **显式Want**:在启动Ability时指定了abilityName和bundleName的Want称为显式Want。 - 当有明确处理请求的对象时,通过提供目标Ability所在应用的包名信息(bundleName),并在Want内指定abilityName便可启动目标Ability。显式Want通常用于在当前应用开发中启动某个已知的Ability。参数说明参见[Want参数说明](want-overview.md#Want参数说明)。 + 当有明确处理请求的对象时,通过提供目标Ability所在应用的Bundle名称信息(bundleName),并在Want内指定abilityName便可启动目标Ability。显式Want通常用于在当前应用开发中启动某个已知的Ability。参数说明参见[Want参数说明](want-overview.md#Want参数说明)。 ```ts let wantInfo = { @@ -38,7 +38,7 @@ }; ``` - > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** + > **说明:** > - 根据系统中待匹配Ability的匹配情况不同,使用隐式Want启动Ability时会出现以下三种情况。 > - 未匹配到满足条件的Ability:启动失败。 > - 匹配到一个满足条件的Ability:直接启动该Ability。 diff --git a/zh-cn/application-dev/application-models/widget-development-fa.md b/zh-cn/application-dev/application-models/widget-development-fa.md index 9f1594fa80ba3d3ffad962d1c9515f1fb5aee8dc..d07ae553e7c22972e5decf194786205d4683ee4c 100644 --- a/zh-cn/application-dev/application-models/widget-development-fa.md +++ b/zh-cn/application-dev/application-models/widget-development-fa.md @@ -49,7 +49,7 @@ - 通信适配层:由OpenHarmony SDK提供,负责与卡片管理服务通信,用于将卡片的更新数据主动推送到卡片管理服务。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 实际开发时只需要作为卡片提供方进行卡片内容的开发,卡片使用方和卡片管理服务由系统自动处理。 @@ -166,7 +166,7 @@ FA卡片开发,即基于[FA模型](fa-model-development-overview.md)的卡片 } ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > FormAbility不能常驻后台,即在卡片生命周期回调函数中无法处理长时间的任务。 ### 配置卡片配置文件 @@ -360,7 +360,7 @@ onUpdate(formId) { ![widget-development-fa](figures/widget-development-fa.png) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 当前仅支持JS扩展的类Web开发范式来实现卡片的UI界面。 - HML:使用类Web范式的组件描述卡片的页面信息。 diff --git a/zh-cn/application-dev/application-models/widget-development-stage.md b/zh-cn/application-dev/application-models/widget-development-stage.md index 52c7082a309b24975a7e55fd97381a500605b553..2064bf7b7175cf87f7777103686f41f46395ad58 100644 --- a/zh-cn/application-dev/application-models/widget-development-stage.md +++ b/zh-cn/application-dev/application-models/widget-development-stage.md @@ -49,7 +49,7 @@ FormExtensionAbility就是服务卡片扩展组件(以下简称“卡片”) - 通信适配层:由OpenHarmony SDK提供,负责与卡片管理服务通信,用于将卡片的更新数据主动推送到卡片管理服务。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 实际开发时只需要作为卡片提供方进行卡片内容的开发,卡片使用方和卡片管理服务由系统自动处理。 @@ -173,7 +173,7 @@ Stage卡片开发,即基于[Stage模型](stage-model-development-overview.md) } ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > FormExtensionAbility不能常驻后台,即在卡片生命周期回调函数中无法处理长时间的任务。 ### 配置卡片配置文件 @@ -369,7 +369,7 @@ onUpdateForm(formId) { ![widget-development-stage](figures/widget-development-stage.png) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 当前仅支持JS扩展的类Web开发范式来实现卡片的UI界面。 - HML:使用类Web范式的组件描述卡片的页面信息。 diff --git a/zh-cn/application-dev/application-test/arkxtest-guidelines.md b/zh-cn/application-dev/application-test/arkxtest-guidelines.md index d2b7e43813c29481c5e31973396d5958b0d4cf96..f68c9bf5743ec6e5687c372963e2864d653ee4bb 100644 --- a/zh-cn/application-dev/application-test/arkxtest-guidelines.md +++ b/zh-cn/application-dev/application-test/arkxtest-guidelines.md @@ -154,7 +154,9 @@ export default function abilityTest() { ## 执行测试脚本 -执行测试脚本可以直接在DevEco Studio中通过点击按钮执行,当前支持以下执行方式: +### DevEco Studio执行 + +通过点击按钮执行,当前支持以下执行方式: 1、测试包级别执行即执行测试包内的全部用例。 @@ -164,12 +166,161 @@ export default function abilityTest() { ![](figures/Execute.PNG) -## 查看测试结果 +**查看测试结果** 测试执行完毕后可直接在DevEco Studio中查看测试结果,如下图示例所示: ![](figures/TestResult.PNG) +### CMD执行 + +通过在cmd窗口中输入aa命令执行触发用例执行,并通过设置执行参数触发不同功能。 + +**aa test命令执行配置参数** + +| 执行参数全写 | 执行参数缩写 | 执行参数含义 | 执行参数示例 | +| ------------- | ------------ | -------------------------------------- | ---------------------------------- | +| --bundleName | -b | 应用Bundle名称 | - b com.test.example | +| --packageName | -p | 应用模块名,适用于FA模型应用 | - p com.test.example.entry | +| --moduleName | -m | 应用模块名,适用于STAGE模型应用 | -m entry | +| NA | -s | 特定参数,以键值对方式传入 | - s unittest OpenHarmonyTestRunner | + +框架当前支持多种用例执行方式,通过上表中的-s参数后的配置键值对参数传入触发,如下表所示。 + +| 配置参数值 | 配置参数含义 | 配置参数有值 | 配置参数示例 | +| ------------ | ----------------------------------------------------------------------------- | ------------------------------------------------------------ | ----------------------------------------- | +| unittest | 用例执行所使用OpenHarmonyTestRunner对象 | OpenHarmonyTestRunner或用户自定义runner名称 | - s unittest OpenHarmonyTestRunner | +| class | 指定要执行的测试套或测试用例 | {describeName}#{itName},{describeName} | -s class attributeTest#testAttributeIt | +| notClass | 指定不需要执行的测试套或测试用例 | {describeName}#{itName},{describeName} | -s notClass attributeTest#testAttributeIt | +| itName | 指定要执行的测试用例 | {itName} | -s itName testAttributeIt | +| timeout | 测试用例执行的超时时间 | 正整数(单位ms),如不设置默认为 5000 | -s timeout 15000 | +| breakOnError | 遇错即停模式,当执行用例断言失败或者发生错误时,退出测试执行流程 | true/false(默认值) | -s breakOnError true | +| testType | 指定要执行用例的用例类型 | function,performance,power,reliability, security,global,compatibility,user,standard,safety,resilience' | -s testType function | +| level | 指定要执行用例的用例级别 | 0,1,2,3,4 | -s level 0 | +| size | 指定要执行用例的用例规模 | small,medium,large | -s size small | + +**通过在cmd窗口直接执行命令。** + +> 使用cmd的方式,需要配置好hdc相关的环境变量 + +- 打开cmd窗口 +- 执行 aa test 命令 + +**示例代码1**:执行所有测试用例。 + +```shell + hdc shell aa test -b xxx -p xxx -s unittest OpenHarmonyTestRunner +``` + +**示例代码2**:执行指定的describe测试套用例,指定多个需用逗号隔开。 + +```shell + hdc shell aa test -b xxx -p xxx -s unittest OpenHarmonyTestRunner -s class s1,s2 +``` + +**示例代码3**:执行指定测试套中指定的用例,指定多个需用逗号隔开。 + +```shell + hdc shell aa test -b xxx -p xxx -s unittest OpenHarmonyTestRunner -s class testStop#stop_1,testStop1#stop_0 +``` + +**示例代码4**:执行指定除配置以外的所有的用例,设置不执行多个测试套需用逗号隔开。 + +```shell + hdc shell aa test -b xxx -p xxx -s unittest OpenHarmonyTestRunner -s notClass testStop +``` + +**示例代码5**:执行指定it名称的所有用例,指定多个需用逗号隔开。 + +```shell + hdc shell aa test -b xxx -p xxx -s unittest OpenHarmonyTestRunner -s itName stop_0 +``` + +**示例代码6**:用例执行超时时长配置。 + +```shell + hdc shell aa test -b xxx -p xxx -s unittest OpenHarmonyTestRunner -s timeout 15000 +``` + +**示例代码7**:用例以breakOnError模式执行用例。 + +```shell + hdc shell aa test -b xxx -p xxx -s unittest OpenHarmonyTestRunner -s breakOnError true +``` + +**示例代码8**:执行测试类型匹配的测试用例。 + +```shell + hdc shell aa test -b xxx -p xxx -s unittest OpenHarmonyTestRunner -s testType function +``` + +**示例代码9**:执行测试级别匹配的测试用例。 + +```shell + hdc shell aa test -b xxx -p xxx -s unittest OpenHarmonyTestRunner -s level 0 +``` + +**示例代码10**:执行测试规模匹配的测试用例。 + +```shell + hdc shell aa test -b xxx -p xxx -s unittest OpenHarmonyTestRunner -s size small +``` + +**查看测试结果** + +- cmd模式执行过程,会打印如下相关日志信息。 + +``` +OHOS_REPORT_STATUS: class=testStop +OHOS_REPORT_STATUS: current=1 +OHOS_REPORT_STATUS: id=JS +OHOS_REPORT_STATUS: numtests=447 +OHOS_REPORT_STATUS: stream= +OHOS_REPORT_STATUS: test=stop_0 +OHOS_REPORT_STATUS_CODE: 1 + +OHOS_REPORT_STATUS: class=testStop +OHOS_REPORT_STATUS: current=1 +OHOS_REPORT_STATUS: id=JS +OHOS_REPORT_STATUS: numtests=447 +OHOS_REPORT_STATUS: stream= +OHOS_REPORT_STATUS: test=stop_0 +OHOS_REPORT_STATUS_CODE: 0 +OHOS_REPORT_STATUS: consuming=4 +``` + +| 日志输出字段 | 日志输出字段含义 | +| ------- | -------------------------| +| OHOS_REPORT_SUM | 当前测试套用例总数 | +| OHOS_REPORT_STATUS: class | 当前执行用例测试套名称| +| OHOS_REPORT_STATUS: id | 用例执行语言,默认JS | +| OHOS_REPORT_STATUS: numtests | 测试包中测试用例总数 | +| OHOS_REPORT_STATUS: stream | 当前用例发生错误时,记录错误信息 | +| OHOS_REPORT_STATUS: test| 当前用例执行的it name | +| OHOS_REPORT_STATUS_CODE | 当前用例执行结果状态 0 (pass) 1(error) 2(fail) | +| OHOS_REPORT_STATUS: consuming | 当前用例执行消耗的时长 | + +- cmd执行完成后,会打印如下相关日志信息。 + +``` +OHOS_REPORT_RESULT: stream=Tests run: 447, Failure: 0, Error: 1, Pass: 201, Ignore: 245 +OHOS_REPORT_CODE: 0 + +OHOS_REPORT_RESULT: breakOnError model, Stopping whole test suite if one specific test case failed or error +OHOS_REPORT_STATUS: taskconsuming=16029 + +``` +| 日志输出字段 | 日志输出字段含义 | +| ------------------| -------------------------| +| run | 当前测试包用例总数 | +| Failure | 当前测试失败用例个数 | +| Error | 当前执行用例发生错误用例个数 | +| Pass | 当前执行用例通过用例个数 | +| Ignore | 当前未执行用例个数 | +| taskconsuming| 执行当前测试用例总耗时 | + +> 当处于breakOnError模式,用例发生错误时,注意查看Ignore以及中断说明 + ## 常见问题 ### 单元测试用例常见问题 @@ -180,11 +331,11 @@ export default function abilityTest() { 用例中增加的日志打印信息,没有在用例执行过程中出现,而是在用例执行结束之后才出现。 - **可能原因** +**可能原因** 此类情况只会存在于用例中有调用异步接口的情况,原则上用例中所有的日志信息均在用例执行结束之前打印。 - **解决方法** +**解决方法** 当被调用的异步接口多于一个时,建议将接口调用封装成Promise方式调用。 @@ -214,12 +365,15 @@ export default function abilityTest() { 2.用例调用函数耗时过长,超过用例执行设置的超时时间。 +3.用例调用函数中断言失败,抛出失败异常,导致用例执行一直没有结束,直到超时结束。 + **解决方法** 1.检查用例代码逻辑,确保即使断言失败场景认可走到done函数,保证用例执行结束。 -2.可在IDE中Run/Debug Configurations中修改用例执行超时配置参数,避免用例执行超时。 +2.可在IDE中Run/Debug Configurations中修改用例执行超时配置参数,避免用例执行超时。 +3.检查用例代码逻辑,断言结果,确保断言Pass。 ### UI测试用例常见问题 **1、失败日志有“Get windows failed/GetRootByWindow failed”错误信息** diff --git a/zh-cn/application-dev/connectivity/figures/075sd302-aeb9-481a-bb8f-e552sdb61ead.PNG b/zh-cn/application-dev/connectivity/figures/075sd302-aeb9-481a-bb8f-e552sdb61ead.PNG new file mode 100644 index 0000000000000000000000000000000000000000..1f3ad71eecf43df9dbb1779be5940bf7152aa57a Binary files /dev/null and b/zh-cn/application-dev/connectivity/figures/075sd302-aeb9-481a-bb8f-e552sdb61ead.PNG differ diff --git a/zh-cn/application-dev/connectivity/ipc-rpc-development-guideline.md b/zh-cn/application-dev/connectivity/ipc-rpc-development-guideline.md index 5f6376ab378a99210efe64af24a200e2f72d04af..47366f9ed55ec3798ea2b465a74ca3e4b18050f0 100755 --- a/zh-cn/application-dev/connectivity/ipc-rpc-development-guideline.md +++ b/zh-cn/application-dev/connectivity/ipc-rpc-development-guideline.md @@ -9,43 +9,76 @@ IPC/RPC的主要工作是让运行在不同进程的Proxy和Stub互相通信, **表1** Native侧IPC接口 -| 类/接口 | 方法 | 功能说明 | +| 类/接口 | 方法 | 功能说明 | | -------- | -------- | -------- | -| [IRemoteBroker](../reference/apis/js-apis-rpc.md#iremotebroker) | sptr<IRemoteObject> AsObject() | 返回通信对象。派生类需要实现,Stub端返回RemoteObject对象本身,Proxy端返回代理对象。 | -| IRemoteStub | virtual int OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) | 请求处理方法,派生类需要重写该方法用来处理Proxy的请求并返回结果。 | -| IRemoteProxy | | 业务Proxy类,派生自IRemoteProxy类。 | +| [IRemoteBroker](../reference/apis/js-apis-rpc.md#iremotebroker) | sptr<IRemoteObject> AsObject() | 返回通信对象。Stub端返回RemoteObject对象本身,Proxy端返回代理对象。 | +| IRemoteStub | virtual int OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) | 请求处理方法,派生类需要重写该方法用来处理Proxy的请求并返回结果。 | +| IRemoteProxy | | 业务的Pory类需要从IRemoteProxy类派生。 | ## 开发步骤 -**Native侧开发步骤** +### **Native侧开发步骤** -1. 定义IPC接口ITestAbility +1. 添加依赖 - SA接口继承IPC基类接口IRemoteBroker,接口里定义描述符、业务函数和消息码,其中业务函数在Proxy端和Stub端都需要实现。 + SDK依赖: ``` + #ipc场景 + external_deps = [ + "ipc:ipc_single", + ] + + #rpc场景 + external_deps = [ + "ipc:ipc_core", + ] + ``` + + 此外, IPC/RPC依赖的refbase实现在公共基础库下,请增加对utils的依赖: + + ``` + external_deps = [ + "c_utils:utils", + ] + ``` + +2. 定义IPC接口ITestAbility + + SA接口继承IPC基类接口IRemoteBroker,接口里定义描述符、业务函数和消息码,其中业务函数在Proxy端和Stub端都需要实现。 + + ```c++ + #include "iremote_broker.h" + + //定义消息码 + const int TRANS_ID_PING_ABILITY = 5 + + const std::string DESCRIPTOR = "test.ITestAbility"; + class ITestAbility : public IRemoteBroker { public: // DECLARE_INTERFACE_DESCRIPTOR是必需的,入参需使用std::u16string; - DECLARE_INTERFACE_DESCRIPTOR("test.ITestAbility"); - int TRANS_ID_PING_ABILITY = 1; // 定义消息码 + DECLARE_INTERFACE_DESCRIPTOR(to_utf16(DESCRIPTOR)); virtual int TestPingAbility(const std::u16string &dummy) = 0; // 定义业务函数 }; ``` -2. 定义和实现服务端TestAbilityStub +3. 定义和实现服务端TestAbilityStub 该类是和IPC框架相关的实现,需要继承 IRemoteStub<ITestAbility>。Stub端作为接收请求的一端,需重写OnRemoteRequest方法用于接收客户端调用。 - ``` + ```c++ + #include "iability_test.h" + #include "iremote_stub.h" + class TestAbilityStub : public IRemoteStub { - public: + public: virtual int OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) override; int TestPingAbility(const std::u16string &dummy) override; }; - int TestServiceStub::OnRemoteRequest(uint32_t code, + int TestAbilityStub::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) { switch (code) { @@ -61,8 +94,11 @@ IPC/RPC的主要工作是让运行在不同进程的Proxy和Stub互相通信, } ``` -3. 定义服务端业务函数具体实现类TestAbility - ``` +4. 定义服务端业务函数具体实现类TestAbility + + ```c++ + #include "iability_server_test.h" + class TestAbility : public TestAbilityStub { public: int TestPingAbility(const std::u16string &dummy); @@ -73,15 +109,19 @@ IPC/RPC的主要工作是让运行在不同进程的Proxy和Stub互相通信, } ``` -4. 定义和实现客户端 TestAbilityProxy +5. 定义和实现客户端 TestAbilityProxy 该类是Proxy端实现,继承IRemoteProxy<ITestAbility>,调用SendRequest接口向Stub端发送请求,对外暴露服务端提供的能力。 - ``` + ```c++ + #include "iability_test.h" + #include "iremote_proxy.h" + #include "iremote_object.h" + class TestAbilityProxy : public IRemoteProxy { public: explicit TestAbilityProxy(const sptr &impl); - int TestPingService(const std::u16string &dummy) override; + int TestPingAbility(const std::u16string &dummy) override; private: static inline BrokerDelegator delegator_; // 方便后续使用iface_cast宏 } @@ -91,21 +131,21 @@ IPC/RPC的主要工作是让运行在不同进程的Proxy和Stub互相通信, { } - int TestAbilityProxy::TestPingService(const std::u16string &dummy){ + int TestAbilityProxy::TestPingAbility(const std::u16string &dummy){ MessageOption option; MessageParcel dataParcel, replyParcel; dataParcel.WriteString16(dummy); int error = Remote()->SendRequest(TRANS_ID_PING_ABILITY, dataParcel, replyParcel, option); int result = (error == ERR_NONE) ? replyParcel.ReadInt32() : -1; return result; - } + } ``` -5. SA注册与启动 +6. SA注册与启动 SA需要将自己的TestAbilityStub实例通过AddSystemAbility接口注册到SystemAbilityManager,设备内与分布式的注册参数不同。 - ``` + ```c++ // 注册到本设备内 auto samgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); samgr->AddSystemAbility(saId, new TestAbility()); @@ -117,11 +157,11 @@ IPC/RPC的主要工作是让运行在不同进程的Proxy和Stub互相通信, int result = samgr->AddSystemAbility(saId, new TestAbility(), saExtra); ``` -6. SA获取与调用 +7. SA获取与调用 通过SystemAbilityManager的GetSystemAbility方法可获取到对应SA的代理IRemoteObject,然后构造TestAbilityProxy即可。 - ``` + ```c++ // 获取本设备内注册的SA的proxy sptr samgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); sptr remoteObject = samgr->GetSystemAbility(saId); @@ -129,7 +169,149 @@ IPC/RPC的主要工作是让运行在不同进程的Proxy和Stub互相通信, // 获取其他设备注册的SA的proxy sptr samgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); - sptr remoteObject = samgr->GetSystemAbility(saId, deviceId); // deviceId是指定设备的标识符 + + // networkId是组网场景下对应设备的标识符,可以通过GetLocalNodeDeviceInfo获取 + sptr remoteObject = samgr->GetSystemAbility(saId, networkId); sptr proxy(new TestAbilityProxy(remoteObject)); // 直接构造具体Proxy ``` +### **JS侧开发步骤** + +1. 添加依赖 + + ```ts + import rpc from "@ohos.rpc" + import featureAbility from "@ohos.ability.featureAbility" + ``` + + + +2. 绑定Ability + + 首先,构造变量want,指定要绑定的Ability所在应用的包名、组件名,如果是跨设备的场景,还需要绑定目标设备NetworkId(组网场景下对应设备的标识符,可以使用deviceManager获取目标设备的NetworkId);然后,构造变量connect,指定绑定成功、绑定失败、断开连接时的回调函数;最后,使用featureAbility提供的接口绑定Ability。 + + ```ts + import rpc from "@ohos.rpc" + import featureAbility from "@ohos.ability.featureAbility" + + let proxy = null + let connectId = null + + // 单个设备绑定Ability + let want = { + // 包名和组件名写实际的值 + "bundleName": "ohos.rpc.test.server", + "abilityName": "ohos.rpc.test.server.ServiceAbility", + } + let connect = { + onConnect:function(elementName, remote) { + proxy = remote + }, + onDisconnect:function(elementName) { + }, + onFailed:function() { + proxy = null + } + } + connectId = featureAbility.connectAbility(want, connect) + + // 如果是跨设备绑定,可以使用deviceManager获取目标设备NetworkId + import deviceManager from '@ohos.distributedHardware.deviceManager' + function deviceManagerCallback(deviceManager) { + let deviceList = deviceManager.getTrustedDeviceListSync() + let networkId = deviceList[0].networkId + let want = { + "bundleName": "ohos.rpc.test.server", + "abilityName": "ohos.rpc.test.service.ServiceAbility", + "networkId": networkId, + "flags": 256 + } + connectId = featureAbility.connectAbility(want, connect) + } + // 第一个参数是本应用的包名,第二个参数是接收deviceManager的回调函数 + deviceManager.createDeviceManager("ohos.rpc.test", deviceManagerCallback) + ``` + + + +3. 服务端处理客户端请求 + + 服务端被绑定的Ability在onConnect方法里返回继承自rpc.RemoteObject的对象,该对象需要实现onRemoteMessageRequest方法,处理客户端的请求。 + + ```ts + onConnect(want: Want) { + var robj:rpc.RemoteObject = new Stub("rpcTestAbility") + return robj + } + class Stub extends rpc.RemoteObject { + constructor(descriptor) { + super(descriptor) + } + onRemoteMessageRequest(code, data, reply, option) { + // 根据code处理客户端的请求 + return true + } + } + ``` + + + +4. 客户端处理服务端响应 + + 客户端在onConnect回调里接收到代理对象,调用sendRequestAsync方法发起请求,在期约(JavaScript期约:用于表示一个异步操作的最终完成或失败及其结果值)或者回调函数里接收结果。 + + ```ts + // 使用期约 + let option = new rpc.MessageOption() + let data = rpc.MessageParcel.create() + let reply = rpc.MessageParcel.create() + // 往data里写入参数 + proxy.sendRequestAsync(1, data, reply, option) + .then(function(result) { + if (result.errCode != 0) { + console.error("send request failed, errCode: " + result.errCode) + return + } + // 从result.reply里读取结果 + }) + .catch(function(e) { + console.error("send request got exception: " + e) + } + .finally(() => { + data.reclaim() + reply.reclaim() + }) + + // 使用回调函数 + function sendRequestCallback(result) { + try { + if (result.errCode != 0) { + console.error("send request failed, errCode: " + result.errCode) + return + } + // 从result.reply里读取结果 + } finally { + result.data.reclaim() + result.reply.reclaim() + } + } + let option = new rpc.MessageOption() + let data = rpc.MessageParcel.create() + let reply = rpc.MessageParcel.create() + // 往data里写入参数 + proxy.sendRequest(1, data, reply, option, sendRequestCallback) + ``` + +5. 断开连接 + + IPC通信结束后,使用featureAbility的接口断开连接。 + + ```ts + import rpc from "@ohos.rpc" + import featureAbility from "@ohos.ability.featureAbility" + function disconnectCallback() { + console.info("disconnect ability done") + } + featureAbility.disconnectAbility(connectId, disconnectCallback) + ``` + diff --git a/zh-cn/application-dev/connectivity/ipc-rpc-overview.md b/zh-cn/application-dev/connectivity/ipc-rpc-overview.md index ff1261dc0a27b968ba19d86f7bddc5fb401131a7..5dbf04f2d32e2ee7bca088cbd8f0a434d0e277a3 100755 --- a/zh-cn/application-dev/connectivity/ipc-rpc-overview.md +++ b/zh-cn/application-dev/connectivity/ipc-rpc-overview.md @@ -3,13 +3,33 @@ ## 基本概念 -IPC(Inter-Process Communication)与RPC(Remote Procedure Call)机制用于实现跨进程通信,不同的是前者使用Binder驱动,用于设备内的跨进程通信,而后者使用软总线驱动,用于跨设备跨进程通信。IPC和RPC通常采用客户端-服务器(Client-Server)模型,服务请求方(Client)可获取提供服务提供方(Server)的代理 (Proxy),并通过此代理读写数据来实现进程间的数据通信。通常,Server会先注册系统能力(System Ability)到系统能力管理者(System Ability Manager,缩写SAMgr)中,SAMgr负责管理这些SA并向Client提供相关的接口。Client要和某个具体的SA通信,必须先从SAMgr中获取该SA的代理,然后使用代理和SA通信。下文使用Proxy表示服务请求方,Stub表示服务提供方。 +IPC(Inter-Process Communication)与RPC(Remote Procedure Call)用于实现跨进程通信,不同的是前者使用Binder驱动,用于设备内的跨进程通信,后者使用软总线驱动,用于跨设备跨进程通信。需要跨进程通信的原因是因为每个进程都有自己独立的资源和内存空间,其他进程不能随意访问不同进程的内存和资源,IPC/RPC便是为了突破这一点。IPC和RPC通常采用客户端-服务器(Client-Server)模型,在使用时,请求服务的(Client)一端进程可获取提供服务(Server)一端所在进程的代理(Proxy),并通过此代理读写数据来实现进程间的数据通信,更具体的讲,首先请求服务的(Client)一端会建立一个服务提供端(Server)的代理对象,这个代理对象具备和服务提供端(Server)一样的功能,若想访问服务提供端(Server)中的某一个方法,只需访问代理对象中对应的方法即可,代理对象会将请求发送给服务提供端(Server);然后服务提供端(Server)处理接受到的请求,处理完之后通过驱动返回处理结果给代理对象;最后代理对象将请求结果进一步返回给请求服务端(Client)。通常,Server会先注册系统能力(System Ability)到系统能力管理者(System Ability Manager,缩写SAMgr)中,SAMgr负责管理这些SA并向Client提供相关的接口。Client要和某个具体的SA通信,必须先从SAMgr中获取该SA的代理,然后使用代理和SA通信。下文直接使用Proxy表示服务请求方,Stub表示服务提供方。 + +![IPC&RPC通信机制](figures/075sd302-aeb9-481a-bb8f-e552sdb61ead.PNG) ## 约束与限制 -单个设备上跨进程通信时,传输的数据量最大约为1MB,过大的数据量请使用匿名共享内存。 -不支持把跨设备的Proxy对象传递回该Proxy对象所指向的Stub对象所在的设备。 +- 单个设备上跨进程通信时,传输的数据量最大约为1MB,过大的数据量请使用[匿名共享内存](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-rpc.md#ashmem8) + +- 不支持在RPC中订阅匿名Stub对象(没有向SAMgr注册Stub对象)的死亡通知。 +- 不支持把跨设备的Proxy对象传递回该Proxy对象所指向的Stub对象所在的设备,即指向远端设备Stub的Proxy对象不能在本设备内进行二次跨进程传递。 + +## 使用建议 + +首先,需要编写接口类,接口类中必须定义消息码,供通信双方标识操作,可以有未实现的的方法,因为通信双方均需继承该接口类且双方不能是抽象类,所以此时定义的未实现的方法必须在双方继承时给出实现,这保证了继承双方不是抽象类。然后,需要编写Stub端相关类及其接口,并且实现AsObject方法及OnRemoteRequest方法。同时,也需要编写Proxy端,实现接口类中的方法和AsObject方法,也可以封装一些额外的方法用于调用SendRequest向对端发送数据。以上三者都具备后,便可以向SAMgr注册SA了,此时的注册应该在Stub所在进程完成。最后,在需要的地方从SAMgr中获取Proxy,便可通过Proxy实现与Stub的跨进程通信了。 + +相关步骤: + +- 实现接口类:需继承IRemoteBroker,需定义消息码,可声明不在此类实现的方法。 + +- 实现服务提供端(Stub):需继承IRemoteStub或者RemoteObject,需重写AsObject方法及OnRemoteRequest方法。 + +- 实现服务请求端(Proxy):需继承IRemoteProxy或RemoteProxy,需重写AsObject方法,封装所需方法调用SendRequest。 + +- 注册SA:申请SA的唯一ID,向SAMgr注册SA。 + +- 获取SA:通过SA的ID和设备ID获取Proxy,使用Proxy与远端通信 ## 相关模块 diff --git a/zh-cn/application-dev/connectivity/subscribe-remote-state.md b/zh-cn/application-dev/connectivity/subscribe-remote-state.md index 2dee9fc483feb421aebd011d7d5d6495202baf65..7ce385d8e16ec68f5eaaef0bad7ca81770f2595f 100755 --- a/zh-cn/application-dev/connectivity/subscribe-remote-state.md +++ b/zh-cn/application-dev/connectivity/subscribe-remote-state.md @@ -1,28 +1,173 @@ # 远端状态订阅开发实例 -IPC/RPC提供对远端Stub对象状态的订阅机制, 在远端Stub对象死亡时,可触发死亡通知告诉本地Proxy对象。这种状态通知订阅需要调用特定接口完成,当不再需要订阅时也需要调用特定接口取消。使用这种订阅机制的用户,需要实现死亡通知接口DeathRecipient并实现onRemoteDied方法清理资源。该方法会在远端Stub对象所在进程死亡或所在设备离开组网时被回调。值得注意的是,调用这些接口有一定的顺序。首先,需要Proxy订阅Stub死亡通知,若在订阅期间Stub状态正常,则在不再需要时取消订阅;若在订阅期间Stub所在进程退出或者所在设备退出组网,则会自动触发Proxy自定义的后续操作。 +IPC/RPC提供对远端Stub对象状态的订阅机制, 在远端Stub对象消亡时,可触发消亡通知告诉本地Proxy对象。这种状态通知订阅需要调用特定接口完成,当不再需要订阅时也需要调用特定接口取消。使用这种订阅机制的用户,需要实现消亡通知接口DeathRecipient并实现onRemoteDied方法清理资源。该方法会在远端Stub对象所在进程消亡或所在设备离开组网时被回调。值得注意的是,调用这些接口有一定的顺序。首先,需要Proxy订阅Stub消亡通知,若在订阅期间Stub状态正常,则在不再需要时取消订阅;若在订阅期间Stub所在进程退出或者所在设备退出组网,则会自动触发Proxy自定义的后续操作。 +## 使用场景 +这种订阅机制适用于本地Proxy对象需要感知远端Stub对象所在进程消亡,或所在设备离开组网的场景。当Proxy感知到Stub端消亡后,可适当清理本地资源。此外,RPC目前不提供匿名Stub对象的消亡通知,即只有向SAMgr注册过的服务才能被订阅消亡通知,IPC则支持匿名对象的消亡通知。 ## Native侧接口 -| 接口名 | 功能描述 | -| -------- | -------- | -| AddDeathRecipient(const sptr\ &recipient); | 订阅远端Stub对象状态。 | -| RemoveDeathRecipient(const sptr\ &recipient); | 取消订阅远端Stub对象状态。 | -| OnRemoteDied(const wptr\ &object); | 当远端Stub对象死亡时回调。 | +| 接口名 | 返回值类型 | 功能描述 | +| -------- | -------- | -------- | +| AddDeathRecipient(const sptr\ &recipient); | bool | 订阅远端Stub对象状态。 | +| RemoveDeathRecipient(const sptr\ &recipient); | bool | 取消订阅远端Stub对象状态。 | +| OnRemoteDied(const wptr\ &object); | void | 当远端Stub对象死亡时回调。 | +### 参考代码 -## 参考代码 +```C++ +#include "iremote_broker.h" +#include "iremote_stub.h" +//定义消息码 +enum { + TRANS_ID_PING_ABILITY = 5, + TRANS_ID_REVERSED_MONITOR +}; + +const std::string DESCRIPTOR = "test.ITestAbility"; + +class ITestService : public IRemoteBroker { +public: + // DECLARE_INTERFACE_DESCRIPTOR是必需的,入参需使用std::u16string; + DECLARE_INTERFACE_DESCRIPTOR(to_utf16(DESCRIPTOR)); + virtual int TestPingAbility(const std::u16string &dummy) = 0; // 定义业务函数 +}; + +class TestServiceProxy : public IRemoteProxy { +public: + explicit TestAbilityProxy(const sptr &impl); + virtual int TestPingAbility(const std::u16string &dummy) override; + int TestAnonymousStub(); +private: + static inline BrokerDelegator delegator_; // 方便后续使用iface_cast宏 +}; + +TestServiceProxy::TestServiceProxy(const sptr &impl) + : IRemoteProxy(impl) +{ +} + +int TestServiceProxy::TestPingAbility(const std::u16string &dummy){ + MessageOption option; + MessageParcel dataParcel, replyParcel; + dataParcel.WriteString16(dummy); + int error = PeerHolder::Remote()->SendRequest(TRANS_ID_PING_ABILITY, dataParcel, replyParcel, option); + int result = (error == ERR_NONE) ? replyParcel.ReadInt32() : -1; + return result; +} ``` + + + + +```c++ +#include "iremote_object.h" + class TestDeathRecipient : public IRemoteObject::DeathRecipient { public: virtual void OnRemoteDied(const wptr& remoteObject); } -sptr deathRecipient (new TestDeathRecipient());// 构造一个死亡通知对象 -bool result = proxy->AddDeathRecipient(deathRecipient); // 注册死亡通知 -result = proxy->RemoveDeathRecipient(deathRecipient); // 移除死亡通知 + +void TestDeathRecipient::OnRemoteDied(const wptr& remoteObject) +{ +} +``` + +```c++ +sptr object = new IPCObjectProxy(1, to_utf16(DESCRIPTOR)); +sptr deathRecipient (new TestDeathRecipient());// 构造一个消亡通知对象 +bool result = object->AddDeathRecipient(deathRecipient); // 注册消亡通知 +result = object->RemoveDeathRecipient(deathRecipient); // 移除消亡通知 ``` + +## JS侧接口 + +| 接口名 | 返回值类型 | 功能描述 | +| -------------------- | ---------- | ------------------------------------------------------------ | +| addDeathRecippient | boolean | 注册用于接收远程对象消亡通知的回调,增加proxy对象上的消亡通知。 | +| removeDeathRecipient | boolean | 注销用于接收远程对象消亡通知的回调。 | +| onRemoteDied | void | 在成功添加死亡通知订阅后,当远端对象死亡时,将自动调用本方法。 | + +### 参考代码 + +```ts +import FA from "@ohos.ability.featureAbility"; +let proxy; +let connect = { + onConnect: function(elementName, remoteProxy) { + console.log("RpcClient: js onConnect called."); + proxy = remoteProxy; + }, + onDisconnect: function(elementName) { + console.log("RpcClient: onDisconnect"); + }, + onFailed: function() { + console.log("RpcClient: onFailed"); + } +}; +let want = { + "bundleName": "com.ohos.server", + "abilityName": "com.ohos.server.MainAbility", +}; +FA.connectAbility(want, connect); +class MyDeathRecipient { + onRemoteDied() { + console.log("server died"); + } +} +let deathRecipient = new MyDeathRecipient(); +proxy.addDeathRecippient(deathRecipient, 0); +proxy.removeDeathRecipient(deathRecipient, 0); +``` + +## Stub感知Proxy消亡(匿名Stub的使用) + +正向的消亡通知是Proxy感知Stub的状态,若想达到反向的死消亡通知,即Stub感知Proxy的状态,可以巧妙的利用正向消亡通知。如两个进程A(原Stub所在进程)和B(原Proxy所在进程),进程B在获取到进程A的Proxy对象后,在B进程新建一个匿名Stub对象(匿名指未向SAMgr注册),可称之为回调Stub,再通过SendRequest接口将回调Stub传给进程A的原Stub。这样一来,进程A便获取到了进程B的回调Proxy。当进程B消亡或B所在设备离开组网时,回调Stub会消亡,回调Proxy会感知,进而通知给原Stub,便实现了反向消亡通知。 + +注意: + +> 反向死亡通知仅限设备内跨进程通信使用,不可用于跨设备。 + +> 当匿名Stub对象没有被任何一个Proxy指向的时候,内核会自动回收。 + +### 参考代码 + +```c++ +//Proxy +int TestAbilityProxy::TestAnonymousStub() +{ + MessageOption option; + MessageParcel dataParcel, replyParcel; + dataParcel.UpdateDataVersion(Remote()); + dataParcel.WriteRemoteObject(new TestAbilityStub()); + int error = Remote()->SendRequest(TRANS_ID_REVERSED_MONITOR,dataParcel, replyParcel, option); + int result = (error == ERR_NONE) ? replyParcel.ReadInt32() : -1; + return result; +} + +//Stub + +int TestAbilityStub::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) +{ + switch (code) { + case TRANS_ID_REVERSED_MONITOR: { + sptr obj = data.ReadRemoteObject(); + if (obj == nullptr) { + reply.WriteInt32(ERR_NULL_OBJECT); + return ERR_NULL_OBJECT; + } + bool result = obj->AddDeathRecipient(new TestDeathRecipient()); + result ? reply.WriteInt32(ERR_NONE) : reply.WriteInt32(-1); + break; + } + default: + break; + } + return ERR_NONE; +} +``` + diff --git a/zh-cn/application-dev/database/database-distributedobject-guidelines.md b/zh-cn/application-dev/database/database-distributedobject-guidelines.md index b18ca1730cce8cb3c8f89d63f4cfb3b140a7d763..d17f68d9f8e04e6984eafd04577f397e42a79c99 100644 --- a/zh-cn/application-dev/database/database-distributedobject-guidelines.md +++ b/zh-cn/application-dev/database/database-distributedobject-guidelines.md @@ -17,7 +17,7 @@ **表1** 分布式数据对象实例创建接口 -| 包名 | 接口名 | 描述 | +| Bundle名称 | 接口名 | 描述 | | -------- | -------- | -------- | | ohos.data.distributedDataObject| createDistributedObject(source: object): DistributedObject | 创建一个分布式数据对象实例,用于数据操作。
- source:设置分布式数据对象的属性。
- DistributedObject:返回值是创建好的分布式数据对象。 | @@ -27,7 +27,7 @@ **表2** 分布式数据对象sessionId创建接口 -| 包名 | 接口名 | 描述 | +| Bundle名称 | 接口名 | 描述 | | -------- | -------- | -------- | | ohos.data.distributedDataObject| genSessionId(): string | 创建一个sessionId,可作为分布式数据对象的sessionId。 | @@ -125,7 +125,7 @@ grantPermission(); ``` - + 3. 获取分布式数据对象实例。 ```js @@ -176,7 +176,7 @@ }); } } - + // 发起方要在changeCallback里刷新界面,则需要将正确的this绑定给changeCallback localObject.on("change", this.changeCallback.bind(this)); ``` diff --git a/zh-cn/application-dev/database/database-preference-guidelines.md b/zh-cn/application-dev/database/database-preference-guidelines.md index 6094421564b42b230011e98f1f66a55e0f239b0c..005155f3ef55643f3fddc9f4b5e7d9921742755f 100644 --- a/zh-cn/application-dev/database/database-preference-guidelines.md +++ b/zh-cn/application-dev/database/database-preference-guidelines.md @@ -24,7 +24,7 @@ **表1** 首选项实例创建接口 -| 包名 | 接口名 | 描述 | +| Bundle名称 | 接口名 | 描述 | | --------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | | ohos.data.preferences | getPreferences(context: Context, name: string): Promise\ | 读取指定首选项持久化文件,将数据加载到Preferences实例,用于数据操作。 | @@ -75,7 +75,7 @@ **表6** 首选项删除接口 -| 包名 | 接口名 | 描述 | +| Bundle名称 | 接口名 | 描述 | | --------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | | ohos.data.preferences | deletePreferences(context: Context, name: string): Promise\ | 从缓存中移除已加载的Preferences对象,同时从设备上删除对应的文件。 | | ohos.data.preferences | removePreferencesFromCache(context: Context, name: string): Promise\ | 仅从缓存中移除已加载的Preferences对象,主要用于释放内存。 | diff --git a/zh-cn/application-dev/device/device-location-geocoding.md b/zh-cn/application-dev/device/device-location-geocoding.md index ac7f6ebc509ade083fa2f99d773b1d49598a8b0d..32892d089c9c587b1efcfd6aafcb62fa98e96d74 100644 --- a/zh-cn/application-dev/device/device-location-geocoding.md +++ b/zh-cn/application-dev/device/device-location-geocoding.md @@ -29,18 +29,18 @@ ## 开发步骤 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > GeoConvert需要访问后端服务,请确保设备联网,以进行信息获取。 1. 导入geoLocationManager模块,所有与(逆)地理编码转化能力相关的功能API,都是通过该模块提供的。 - + ```ts import geoLocationManager from '@ohos.geoLocationManager'; ``` 2. 查询geoCoder服务是否可用。 - 调用isGeoServiceAvailable查询geoCoder服务是否可用,如果服务可用再继续进行步骤3。 - + ```ts import geoLocationManager from '@ohos.geoLocationManager'; try { @@ -52,7 +52,7 @@ 3. 获取转化结果。 - 调用getAddressesFromLocation,坐标转化地理位置信息。 - + ```ts var reverseGeocodeRequest = {"latitude": 31.12, "longitude": 121.11, "maxItems": 1}; try { @@ -70,7 +70,7 @@ 参考接口API说明[位置服务](../reference/apis/js-apis-geoLocationManager.md),应用可以获得与此坐标匹配的GeoAddress列表,应用可以根据实际使用需求,读取相应的参数数据。 - 调用getAddressesFromLocationName位置描述转化坐标。 - + ```ts var geocodeRequest = {"description": "上海市浦东新区xx路xx号", "maxItems": 1}; try { diff --git a/zh-cn/application-dev/device/inputdevice-guidelines.md b/zh-cn/application-dev/device/inputdevice-guidelines.md index 30ec8073cb7e6d552b53afcc43b38f8aa6593f1f..d08fbacfef9c363dfb8b4c206008b05793e5434e 100644 --- a/zh-cn/application-dev/device/inputdevice-guidelines.md +++ b/zh-cn/application-dev/device/inputdevice-guidelines.md @@ -40,8 +40,8 @@ try { // 1.获取设备列表,判断是否有物理键盘连接 inputDevice.getDeviceList().then(data => { for (let i = 0; i < data.length; ++i) { - inputDevice.getKeyboardType(data[i]).then(res => { - if (type == inputDevice.KeyboardType.ALPHABETIC_KEYBOARD) { + inputDevice.getKeyboardType(data[i]).then(type => { + if (type === inputDevice.KeyboardType.ALPHABETIC_KEYBOARD) { // 物理键盘已连接 isPhysicalKeyboardExist = true; } @@ -53,7 +53,7 @@ try { console.log(`Device event info: ${JSON.stringify(data)}`); inputDevice.getKeyboardType(data.deviceId, (error, type) => { console.log("The keyboard type is: " + type); - if (type == inputDevice.KeyboardType.ALPHABETIC_KEYBOARD && data.type == 'add') { + if (type === inputDevice.KeyboardType.ALPHABETIC_KEYBOARD && data.type == 'add') { // 物理键盘已插入 isPhysicalKeyboardExist = true; } else if (type == inputDevice.KeyboardType.ALPHABETIC_KEYBOARD && data.type == 'remove') { diff --git a/zh-cn/application-dev/device/pointerstyle-guidelines.md b/zh-cn/application-dev/device/pointerstyle-guidelines.md index b15e2b58e42993d0baa5bd0876e2255d22e2f0c0..cc5f3fd52ed14efacfad961345635e7588f9f8ac 100644 --- a/zh-cn/application-dev/device/pointerstyle-guidelines.md +++ b/zh-cn/application-dev/device/pointerstyle-guidelines.md @@ -7,7 +7,7 @@ ## 导入模块 ```js -import inputDevice from '@ohos.multimodalInput.pointer'; +import pointer from '@ohos.multimodalInput.pointer'; ``` ## 接口说明 diff --git a/zh-cn/application-dev/device/usb-guidelines.md b/zh-cn/application-dev/device/usb-guidelines.md index 5ae59b9f4e1b5dda5ede796fa32e93616ed76999..e21409b651e8f1dea036dbd1a18fa58f744a59f2 100644 --- a/zh-cn/application-dev/device/usb-guidelines.md +++ b/zh-cn/application-dev/device/usb-guidelines.md @@ -17,17 +17,17 @@ USB类开放能力如下,具体请查阅[API参考文档](../reference/apis/js | 接口名 | 描述 | | ------------------------------------------------------------ | ------------------------------------------------------------ | -| hasRight(deviceName: string): boolean | 如果“使用者”(如各种App或系统)有权访问设备则返回true;无权访问设备则返回false。 | -| requestRight(deviceName: string): Promise<boolean> | 请求给定软件包的临时权限以访问设备。 | +| hasRight(deviceName: string): boolean | 判断是否有权访问该设备 | +| requestRight(deviceName: string): Promise<boolean> | 请求软件包的临时权限以访问设备。使用Promise异步回调。 | | removeRight(deviceName: string): boolean | 移除软件包对设备的访问权限。| | connectDevice(device: USBDevice): Readonly<USBDevicePipe> | 根据`getDevices()`返回的设备信息打开USB设备。 | -| getDevices(): Array<Readonly<USBDevice>> | 返回USB设备列表。 | +| getDevices(): Array<Readonly<USBDevice>> | 获取接入主设备的USB设备列表。如果没有设备接入,那么将会返回一个空的列表。 | | setConfiguration(pipe: USBDevicePipe, config: USBConfig): number | 设置设备的配置。 | | setInterface(pipe: USBDevicePipe, iface: USBInterface): number | 设置设备的接口。 | -| claimInterface(pipe: USBDevicePipe, iface: USBInterface,force?: boolean): number | 获取接口。 | +| claimInterface(pipe: USBDevicePipe, iface: USBInterface,force?: boolean): number | 注册通信接口。 | | bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array, timeout?: number): Promise<number> | 批量传输。 | | closePipe(pipe: USBDevicePipe): number | 关闭设备消息控制通道。 | -| releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number | 释放接口。 | +| releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number | 释放注册过的通信接口。 | | getFileDescriptor(pipe: USBDevicePipe): number | 获取文件描述符。 | | getRawDescriptor(pipe: USBDevicePipe): Uint8Array | 获取原始的USB描述符。 | | controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: number): Promise<number> | 控制传输。 | @@ -42,7 +42,7 @@ USB设备可作为Host设备连接Device设备进行数据传输。开发示例 ```js // 导入USB接口api包。 - import usb from '@ohos.usb'; + import usb from '@ohos.usbV9'; // 获取设备列表。 let deviceList = usb.getDevices(); /* diff --git a/zh-cn/application-dev/faqs/faqs-ability.md b/zh-cn/application-dev/faqs/faqs-ability.md index c79f76f2a40628bf027c28a6f1ed765fb87bb282..1fff0339c34e982898a3e85236e47c085170a3aa 100644 --- a/zh-cn/application-dev/faqs/faqs-ability.md +++ b/zh-cn/application-dev/faqs/faqs-ability.md @@ -91,11 +91,11 @@ Ability配置中缺少startWindowIcon属性配置,需要在module.json5中abil 推荐使用方式参考:[Stage模型的Context详细介绍](../application-models/application-context-stage.md)。 -## 如何在应用A中去获取应用B的Hap包的安装路径 +## 如何在应用A中去获取应用B的HAP的安装路径 适用于:OpenHarmony SDK 3.0以上版本, API9 Stage模型 -首先需要申请系统权限,具体参看文档:[自动化签名](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-auto-configuring-signature-information-0000001271659465)。导入bundle模块,通过调用bundle.getApplicationInfo()接口,通过包名获取应用信息。然后通过application.moduleSourceDirs获取应用存储路径。 +首先需要申请系统权限,具体参看文档:[自动化签名](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-auto-configuring-signature-information-0000001271659465)。导入bundle模块,通过调用bundle.getApplicationInfo()接口,通过Bundle名称获取应用信息。然后通过application.moduleSourceDirs获取应用存储路径。 ## 调用方使用startAbilityForResult,被调用方如何返回数据 diff --git a/zh-cn/application-dev/faqs/faqs-event-notification.md b/zh-cn/application-dev/faqs/faqs-event-notification.md index a035a5890812c27cd910dd44cea913b3f7abc0c2..8fb2332c1856b23489045e0b087afd1d1708b693 100644 --- a/zh-cn/application-dev/faqs/faqs-event-notification.md +++ b/zh-cn/application-dev/faqs/faqs-event-notification.md @@ -12,7 +12,7 @@ emitter数据大小限制不超过10240。 通过配置Notification.publish发布通知接口的参数NotificationRequest中wantAgent属性实现 -参考文档:[Notification](../reference/apis/js-apis-notification.md#notificationpublish)、[WantAgent](../reference/apis/js-apis-wantAgent.md) +参考文档:[Notification](../reference/apis/js-apis-notification.md#notificationpublish)、[WantAgent](../reference/apis/js-apis-app-ability-wantAgent.md) 示例: diff --git a/zh-cn/application-dev/faqs/faqs-file-management.md b/zh-cn/application-dev/faqs/faqs-file-management.md index 128e71acffc92761735ca69af0cc165feb9b5799..25c84da0e21e29965837eb1b287f1dce35cfb274 100644 --- a/zh-cn/application-dev/faqs/faqs-file-management.md +++ b/zh-cn/application-dev/faqs/faqs-file-management.md @@ -77,11 +77,14 @@ getAlbums方法需要权限:ohos.permission.READ_MEDIA,从[OpenHarmony权限 2. 在MainAbility.ts -> onWindowStageCreate页面加载前需要增加用户授权代码: ``` + import abilityAccessCtrl from '@ohos.abilityAccessCtrl.d.ts'; + private requestPermissions() { let permissionList: Array = [ "ohos.permission.READ_MEDIA" ]; - this.context.requestPermissionsFromUser(permissionList) + let atManager = abilityAccessCtrl.createAtManager(); + atManager.requestPermissionsFromUser(this.context, permissionList) .then(data => { console.info(`request permission data result = ${data.authResults}`) }) @@ -99,7 +102,7 @@ getAlbums方法需要权限:ohos.permission.READ_MEDIA,从[OpenHarmony权限 ## 在Stage模型下调用mediaLibrary.getMediaLibrary()接口,IDE报错 -适用于:OpenHarmonySDK 3.25.5版本,API9 Stage模型 +适用于:OpenHarmonySDK 3.2.5.5版本,API9 Stage模型 Stage模型下,获取媒体库实例应该调用mediaLibrary.getMediaLibrary(context: Context)。 diff --git a/zh-cn/application-dev/faqs/faqs-hdc-std.md b/zh-cn/application-dev/faqs/faqs-hdc-std.md index 3690a4d9c69c27514f233c00d8bd62640241d563..20cdb7205dd9fca003b2b3b2ea0d6bc152d60e62 100644 --- a/zh-cn/application-dev/faqs/faqs-hdc-std.md +++ b/zh-cn/application-dev/faqs/faqs-hdc-std.md @@ -24,7 +24,7 @@ 执行完命令后重启DevEco Studio。 -## 用IDE安装HAP包到开发板上无法打开 +## 用IDE安装HAP到开发板上无法打开 适用于:OpenHarmony SDK 3.2.5.3版本,API9 Stage模型 diff --git a/zh-cn/application-dev/faqs/faqs-media.md b/zh-cn/application-dev/faqs/faqs-media.md index df0d20f24017763056f434ddc81d9ab8e372d3fd..353120e6c8e7b69a58668262e0c4fa93e39f630f 100644 --- a/zh-cn/application-dev/faqs/faqs-media.md +++ b/zh-cn/application-dev/faqs/faqs-media.md @@ -106,8 +106,12 @@ cameraInput = await this.cameraManager.createCameraInput(cameraId) 2. 这两个权限的授权方式均为user_grant,因此需要调用requestPermissionsFromUser接口,以动态弹窗的方式向用户申请授权。 ``` + import abilityAccessCtrl from '@ohos.abilityAccessCtrl.d.ts'; + let permissions: Array = ['ohos.permission.READ_MEDIA','ohos.permission.WRITE_MEDIA'] - context.requestPermissionsFromUser(permissions).then((data) => { + let atManager = abilityAccessCtrl.createAtManager(); + // context为调用方UIAbility的AbilityContext + atManager.requestPermissionsFromUser(context, permissions).then((data) => { console.log("Succeed to request permission from user with data: " + JSON.stringify(data)) }).catch((error) => { console.log("Failed to request permission from user with error: " + JSON.stringify(error)) diff --git a/zh-cn/application-dev/file-management/medialibrary-overview.md b/zh-cn/application-dev/file-management/medialibrary-overview.md index cde6847318650e674b34d24916fc5d2077ff4619..8bcd3a6a026de2694ee9d62aa64c785c9d299c08 100644 --- a/zh-cn/application-dev/file-management/medialibrary-overview.md +++ b/zh-cn/application-dev/file-management/medialibrary-overview.md @@ -55,7 +55,7 @@ var media = mediaLibrary.getMediaLibrary(context); | ohos.permission.WRITE_MEDIA | 允许应用读写用户外部存储中的媒体文件信息。 | user_grant | | ohos.permission.MEDIA_LOCATION | 允许应用访问用户媒体文件中的地理位置信息。 | user_grant | -以上权限的授权方式均为user_grant(用户授权),即开发者在module.json5文件中配置对应的权限后,需要使用接口[Context.requestPermissionsFromUser](../reference/apis/js-apis-ability-context.md#abilitycontextrequestpermissionsfromuser)去校验当前用户是否已授权。如果是,应用可以直接访问/操作目标对象;否则需要弹框向用户申请授权。 +以上权限的授权方式均为user_grant(用户授权),即开发者在module.json5文件中配置对应的权限后,需要使用接口[abilityAccessCtrl.requestPermissionsFromUser](../reference/apis/js-apis-abilityAccessCtrl.md#requestpermissionsfromuser9)去校验当前用户是否已授权。如果是,应用可以直接访问/操作目标对象;否则需要弹框向用户申请授权。 > **说明:**
即使用户曾经授予权限,应用在调用受此权限保护的接口前,也应该先检查是否有权限。不能把之前授予的状态持久化,因为用户在动态授予后还可以通过“设置”取消应用的权限。 @@ -105,13 +105,15 @@ var media = mediaLibrary.getMediaLibrary(context); 2. 调用requestPermissionsFromUser进行权限校验,可以选择需要动态申请获取的权限。 ```ts - import Ability from '@ohos.application.Ability' + import Ability from '@ohos.application.Ability'; + import abilityAccessCtrl from '@ohos.abilityAccessCtrl.d.ts'; export default class MainAbility extends Ability { onWindowStageCreate(windowStage) { var permissions=['ohos.permission.READ_MEDIA','ohos.permission.WRITE_MEDIA'] var permissionRequestResult; - this.context.requestPermissionsFromUser(permissions,(err,result) => { + let atManager = abilityAccessCtrl.createAtManager(); + atManager.requestPermissionsFromUser(this.context, permissions, (err,result) => { if(err){ console.log('requestPermissionsFromUserError: ' + JSON.stringify(err)); }else{ diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/adaptive-layout.md b/zh-cn/application-dev/key-features/multi-device-app-dev/adaptive-layout.md index a2469187c0cdab7b5640c9c67e3858f6cf59c797..460af3ee3593efe15f04bf76cac98cd17e797539 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/adaptive-layout.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/adaptive-layout.md @@ -34,7 +34,7 @@ | flexBasis | 'auto' \| [Length](../../reference/arkui-ts/ts-types.md#length) | 'auto' | 设置组件在Flex容器中主轴方向上基准尺寸。'auto'意味着使用组件原始的尺寸,不做修改。
flexBasis属性不是必须的,通过width或height也可以达到同样的效果。当flexBasis属性与width或height发生冲突时,以flexBasis属性为准。 | -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 开发者期望将父容器的剩余空间全部分配给某空白区域时,也可以通过[Blank组件](../../reference/arkui-ts/ts-basic-components-blank.md)实现。注意仅当父组件为Row\Column\Flex组件时,Blank组件才会生效。 > > - 类Web开发范式也是通过flex-grow和flex-shrink实现拉伸能力,同时也支持配置flex-basis,详见[通用样式](../../reference/arkui-js/js-components-common-styles.md)。 @@ -170,7 +170,7 @@ struct FlexibleCapabilitySample2 { 均分能力可以通过将[Row组件](../../reference/arkui-ts/ts-container-row.md)、[Column组件](../../reference/arkui-ts/ts-container-column.md)或[Flex组件](../../reference/arkui-ts/ts-container-flex.md)的justifyContent属性设置为FlexAlign.SpaceEvenly实现,即子元素在父容器主轴方向等间距布局,相邻元素之间的间距、第一个元素与行首的间距、最后一个元素到行尾的间距都完全一样。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 均分能力还可以通过其它方式实现,如使用[Grid网格组件](../../reference/arkui-ts/ts-container-grid.md)或在每个组件间添加Blank组件等。 > > - 类Web开发范式中,通过将[div组件](../../reference/arkui-js/js-components-container-div.md)的justify-content属性设置为space-evenly来实现均分布局。 @@ -276,7 +276,7 @@ struct EquipartitionCapabilitySample { layoutWeight存在使用限制,所以实际使用过程中大多通过将子组件宽高设置为父组件的百分比来实现占比能力。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 占比能力在实际开发中使用的非常广泛,可以通过很多不同的方式实现占比能力,如还可以通过[Grid组件](../../reference/arkui-ts/ts-container-grid.md)的columnsTemplate属性设置网格容器中列的数量及其宽度比例,或通过配置子组件在栅格(本章后文将详细介绍栅格系统)中占据不同的列数来实现占比能力。本小节仅介绍最基础和常用的实现方式,局限性较大或比非常小众的实现方式,本文不做展开介绍。 > > - 类Web开发范式同样支持以百分比的形式设置组件的宽高,详见[通用样式](../../reference/arkui-js/js-components-common-styles.md)中关于width和height的介绍以及[长度类型介绍](../../reference/arkui-js/js-appendix-types.md#长度类型)。 @@ -373,7 +373,7 @@ struct ProportionCapabilitySample { 可以访问[布局约束](../../reference/arkui-ts/ts-universal-attributes-layout-constraints.md),了解aspectRatio属性的详细信息。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 类Web开发范式同样提供了[aspect-ratio样式](../../reference/arkui-js/js-components-common-atomic-layout.md#固定比例),用于固定组件的宽高比。 @@ -450,7 +450,7 @@ struct ScaleCapabilitySample { - 通过[Scroll组件](../../reference/arkui-ts/ts-container-scroll.md)配合[Row组件](../../reference/arkui-ts/ts-container-row.md)或[Column组件](../../reference/arkui-ts/ts-container-column.md)实现。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - List、Row或Column组件中子节点的在页面显示时就已经全部完成了布局计算及渲染,只不过受限于父容器尺寸,用户只能看到一部分。随着父容器尺寸增大,用户可以看到的子节点数目也相应的增加。用户还可以通过手指滑动触发列表滑动,查看被隐藏的子节点。 > > - 类Web开发范式同样可以使用[list组件](../../reference/arkui-js/js-components-container-list.md)实现延伸能力。 @@ -603,7 +603,7 @@ struct ExtensionCapabilitySample2 { 可以访问[布局约束](../../reference/arkui-ts/ts-universal-attributes-layout-constraints.md),了解displayPriority属性的详细信息。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 类Web开发范式同样支持[display-index样式](../../reference/arkui-js/js-components-common-atomic-layout.md#隐藏能力),用于设置布局优先级。 **示例:** @@ -694,7 +694,7 @@ struct HiddenCapabilitySample { 可以访问[Flex组件](../../reference/arkui-ts/ts-container-flex.md),了解Flex组件的详细用法。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 类Web开发范式通过将[div组件](../../reference/arkui-js/js-components-container-div.md)的flex-warp样式设置为wrap来使用折行能力。 **示例:** diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/case.md b/zh-cn/application-dev/key-features/multi-device-app-dev/case.md index d269597fcfdc618b5adfb619d03295594cb82272..f1dc34b9e0514708dca74b4e1f67889d730d57f7 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/case.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/case.md @@ -6,7 +6,7 @@ ## 概览 -[短信](https://gitee.com/openharmony/applications_mms/tree/master)是OpenHarmony中预置的系统应用,主要包含信息查看、发送短信、接收短信、短信送达报告、删除短信等功能。在不同类型设备上,短信应用的功能完全相同,故短信应用适合使用[部署模型A](introduction.md#部署模型)(即:不同类型的设备上安装运行相同的HAP包或HAP包组合)。 +[短信](https://gitee.com/openharmony/applications_mms/tree/master)是OpenHarmony中预置的系统应用,主要包含信息查看、发送短信、接收短信、短信送达报告、删除短信等功能。在不同类型设备上,短信应用的功能完全相同,故短信应用适合使用[部署模型A](introduction.md#部署模型)(即:不同类型的设备上安装运行相同的HAP或HAP组合)。 本案例中,在会话详情页面利用[方舟开发框架](introduction.md#方舟开发框架)提供的“一多”能力,用一套代码同时适配默认设备和平板。 @@ -59,7 +59,7 @@ 短信应用在开发阶段,采用了一层工程结构。由于功能较为简单,所以并没有规划共用的feature和common目录,仅采用了一层product目录。 - 业务形态层(product) - 该目录采用IDE工程默认创建的entry目录,开发者可根据需要在创建Module时自行更改该目录名。不同产品形态,编译出相同的短信HAP包。 + 该目录采用IDE工程默认创建的entry目录,开发者可根据需要在创建Module时自行更改该目录名。不同产品形态,编译出相同的短信HAP。 @@ -82,7 +82,7 @@ 接下来我们详细介绍各部分的实现。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 为了方便理解,我们对会话详情页面做了一定的精简,本小节仅介绍会话详情页面最基础的实现。 diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/design-delivery.md b/zh-cn/application-dev/key-features/multi-device-app-dev/design-delivery.md index 863233e230a40323ea6ad9fcb5b9f0650a6c4337..658db5e5e1a18a8a49be9f990a4badbddeb6f6d2 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/design-delivery.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/design-delivery.md @@ -43,7 +43,7 @@ ![4.8-效果示意图](figures/4.8-效果示意图.png) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 画板尺寸为不同宽度断点下的典型设备屏幕尺寸,可根据业务具体针对的设备选择其他画板尺寸。 > > - 画板尺寸以vp为单位提供,根据实际设计所需精度,可统一把设计文档中所有画板设置为1倍或多倍的px尺寸。 @@ -65,7 +65,7 @@ ![4.8-标注图](figures/4.8-标注图.png) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 如遇到分层参数覆盖不到的属性值,可按照具体设计效果标注。此时必须详细考虑不同场景下该元素的效果。 diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/design-resources.md b/zh-cn/application-dev/key-features/multi-device-app-dev/design-resources.md index 3a83dbeade1e5161f4c353bf7305fd0eeca27521..672ea89fa456f30e8da8c63255f44b44ee489595 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/design-resources.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/design-resources.md @@ -22,7 +22,7 @@ | 不透明度数值速查表 | 用于将不透明度在**百分比表示形式**和**十六进制表示形式**之间快速转换的速查表。 | -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 推荐应用相关系统参数仅在应用开发场景中使用,卡片相关系统参数仅在卡片开发场景中使用。 > > - 同一系统参数在不同类型的设备上有不同的取值,当前仅提供了系统参数在默认设备上的取值,后续会针对不同设备类型做补充。 diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/development-intro.md b/zh-cn/application-dev/key-features/multi-device-app-dev/development-intro.md index 4b67d2d5e3a66be2e0ac18f05ccf52ff2b9fd754..acd20884d964ed47da68e1fbd3d2336d4fdfc8df 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/development-intro.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/development-intro.md @@ -25,7 +25,7 @@ 2. 在安装阶段,核心安装逻辑:安装的应用调用的系统能力是设备系统能力的子集。满足这个条件,用户才能安装该应用。 3. If/Else的动态逻辑判断。伪代码简单示例如下: - + ``` if (该设备有系统能力1) { 运行系统能力1相关的代码; @@ -64,7 +64,7 @@ IDE中提供了API的联想功能,方便开发者使用系统能力。当开 开发者可以通过canIUse接口,判断目标设备是否支持某系统能力,进而执行不同的业务逻辑。 - + ``` import geolocation from'@ohos.geolocation'; @@ -93,5 +93,5 @@ struct Index { } ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 开发者通过 import 方式导入的模块,若当前设备不支持该模块,import 的结果为 undefined。故开发者在使用 API 时,需要判断其是否存在。 diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/faq.md b/zh-cn/application-dev/key-features/multi-device-app-dev/faq.md index b05ae7ef0c5a4618ec4ffd0f0a868fcf7640d7a2..68a8b425f18f6c362bb3d264b52ed9e1d7d4981e 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/faq.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/faq.md @@ -81,7 +81,7 @@ 默认设备屏幕尺寸较小,采用standard启动模式不仅无法给用户提供便利,反而可能消耗更多系统资源,故通常采用singleton启动模式。平板屏幕尺寸较大且可能支持自由窗口,对于文档编辑、网页浏览等场景,使用standard启动模式可以提升用户体验。 -本文中将默认设备和平板等归为同一泛类,推荐同一泛类的设备共用HAP包,同时本文也介绍了如何通过自适应布局能力和响应式布局能力开发出适配不同设备的页面。这里将补充介绍,如何实现Ability在不同设备上以不同的模式启动。 +本文中将默认设备和平板等归为同一泛类,推荐同一泛类的设备共用HAP,同时本文也介绍了如何通过自适应布局能力和响应式布局能力开发出适配不同设备的页面。这里将补充介绍,如何实现Ability在不同设备上以不同的模式启动。 launchType字段配置为specified时,系统会根据AbilityStage的onAcceptWant的返回值确定是否创建新的实例。对于同一个应用,如果key已经存在,则复用该key对应的Ability,如果key不存在则新创建Ability。 diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/ide-using.md b/zh-cn/application-dev/key-features/multi-device-app-dev/ide-using.md index d433f8398b05754a555b61fd92c351f875299bda..2574e81c459765fa5a5a2b43df0d8f56665984bb 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/ide-using.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/ide-using.md @@ -4,7 +4,7 @@ DevEco Studio的基本使用,请参考[DevEco Studio使用指南](../../quick-start/deveco-studio-user-guide-for-openharmony.md)。本章主要介绍如何使用DevEco Studio进行多设备应用开发。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本章的内容基于[DevEco Studio 3.0 Beta3](https://developer.harmonyos.com/cn/develop/deveco-studio#download_beta_openharmony)版本进行介绍,如您使用DevEco Studio其它版本,可能存在文档与产品功能界面、操作不一致的情况,请以实际功能界面为准。 @@ -55,7 +55,7 @@ DevEco Studio的基本使用,请参考[DevEco Studio使用指南](../../quick- ![zh-cn_image_0000001315434285](figures/zh-cn_image_0000001315434285.png) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 在一个工程中同一个设备类型只支持一个Entry类型的模块。 > > - 当前的DevEco Studio(3.0 Beta3版本)在创建工程时,设备类型仅能选择dafault和tablet,默认该模块已经选择了entry类型,那么在创建wearable这个模块,只能选择feature类型。 @@ -78,12 +78,12 @@ DevEco Studio的基本使用,请参考[DevEco Studio使用指南](../../quick- 通过修改每个模块中的配置文件(module.json5)对模块进行配置,配置文件中各字段含义详见[配置文件说明](../../quick-start/module-configuration-file.md)。 - 将default模块的deviceTypes配置为["default", "tablet"],同时将其type字段配置为entry。 - 即default模块编译出的hap包在默认设备和平板上安装和运行。 + 即default模块编译出的HAP在默认设备和平板上安装和运行。 ![zh-cn_image_0000001267914116](figures/zh-cn_image_0000001267914116.png) - 将wearable模块的deviceTypes配置为["wearable"],同时将其type字段配置为entry。 - 即wearable模块编译出的hap包仅在智能穿戴设备上安装和运行。 + 即wearable模块编译出的HAP仅在智能穿戴设备上安装和运行。 ![zh-cn_image_0000001267514192](figures/zh-cn_image_0000001267514192.png) @@ -139,7 +139,7 @@ DevEco Studio的基本使用,请参考[DevEco Studio使用指南](../../quick- 3. 在default模块中import和使用这些类和函数。注意提前在default模块的package.json文件中配置对common模块的依赖关系。 ![zh-cn_image_0000001267914120](figures/zh-cn_image_0000001267914120.png) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 如果需要将npm包发布供其他开发者使用,当前npm包可发布到npm官方中心仓和OpenHarmony npm专用仓,具体可参考[发布OpenHarmony npm包](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-development-npm-package-0000001222578434#section663116411397)。 diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/interaction-event-normalization.md b/zh-cn/application-dev/key-features/multi-device-app-dev/interaction-event-normalization.md index e57dccf4a80051478ba9a8368f5580cda71a47ba..d6dfbe141b2eda726e828874f167adfcab56cb47 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/interaction-event-normalization.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/interaction-event-normalization.md @@ -22,7 +22,7 @@ | 缩放 | [PinchGesture](../../reference/arkui-ts/ts-basic-gestures-pinchgesture.md) | √ | √ | √ | | 旋转 | [RotationGesture](../../reference/arkui-ts/ts-basic-gestures-rotationgesture.md) | √ | NA | √ | -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 点击事件(onClick)其实是点击手势(TapGesture)的一个特殊场景(单指单次点击)。该场景使用的非常广泛,为了方便开发者使用及符合传统开发习惯,所以专门提供了开发接口。 > > - 触控板支持长按输入的功能正在开发中。 diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/introduction.md b/zh-cn/application-dev/key-features/multi-device-app-dev/introduction.md index 368c27cf69aa158ddf7c0c61794a4c90f4d2d038..bebdaf58854ad5114941a569cf6c8c4d3d9ebdb2 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/introduction.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/introduction.md @@ -24,7 +24,7 @@ 从第4章开始将从UX设计、系统能力等角度,详尽的解答上述问题。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 应用开发不仅包含应用页面开发,还包括应用后端功能开发以及服务器端开发等。 > > - 本文旨在指导开发者如何在OpenHarmony系统中开发“一多”应用,服务器端开发不在本文探讨范围内。 @@ -37,9 +37,9 @@ ### 应用程序包结构 -OpenHarmony 的应用以APP Pack (Application Package) 形式发布,它是由一个或多个HAP包以及描述每个HAP包属性的pack.info文件组成。 +OpenHarmony 的应用以APP Pack (Application Package) 形式发布,它是由一个或多个HAP以及描述每个HAP属性的pack.info文件组成。 -HAP包是OpenHarmony的安装包,一个HAP在工程目录中对应一个Module,由Module编译而来,可分为entry和feature两种类型的HAP。 +HAP是OpenHarmony的安装包,一个HAP在工程目录中对应一个Module,由Module编译而来,可分为entry和feature两种类型的HAP。 - **entry**:应用的主模块包。一个APP中,对于同一设备类型,可以有一个或多个entry类型的HAP,来支持该设备类型中不同规格(如API版本、屏幕规格等)的具体设备。 @@ -47,8 +47,8 @@ HAP包是OpenHarmony的安装包,一个HAP在工程目录中对应一个Module ![zh-cn_image_0000001266965046](figures/zh-cn_image_0000001266965046.png) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** -> - Module是开发者开发的相对独立的功能模块,由代码、资源、第三方库及应用配置文件组成,属于IDE开发视图的概念。Module分为entry、feature及har三种类型,相应的可以编译生成entry类型的HAP包、feature类型的HAP包,以及har包。 +> **说明:** +> - Module是开发者开发的相对独立的功能模块,由代码、资源、第三方库及应用配置文件组成,属于IDE开发视图的概念。Module分为entry、feature及har三种类型,相应的可以编译生成entry类型的HAP、feature类型的HAP,以及har包。 > > - 如果需要了解应用程序包结构更多详情,可以查看[包结构说明](../../quick-start/application-package-structure-stage.md)。 @@ -71,7 +71,7 @@ OpenHarmony提供了方舟开发框架(简称:ArkUI),提供开发者进 | 声明式开发范式 | ArkTS语言 | 数据驱动更新 | 复杂度较大、团队合作度较高的程序 | 移动系统应用开发人员、系统应用开发人员 | | 类Web开发范式 | JS语言 | 数据驱动更新 | 界面较为简单的中小型应用和卡片 | Web前端开发人员 | -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 声明式开发范式占用内存更少,**更推荐开发者选用声明式开发范式来搭建应用UI界面**。 > > - 可以查看[方舟开发框架概述](../../ui/arkui-overview.md),了解方舟开发框架更多详情。 @@ -81,9 +81,9 @@ OpenHarmony提供了方舟开发框架(简称:ArkUI),提供开发者进 “一多”有两种部署模型: -- **部署模型A**:不同类型的设备上按照一定的工程结构组织方式,通过一次编译生成**相同**的HAP包(或HAP包组合)。 +- **部署模型A**:不同类型的设备上按照一定的工程结构组织方式,通过一次编译生成**相同**的HAP(或HAP组合)。 -- **部署模型B**:不同类型的设备上按照一定的工程结构组织方式,通过一次编译生成**不同**的HAP包(或HAP包组合)。 +- **部署模型B**:不同类型的设备上按照一定的工程结构组织方式,通过一次编译生成**不同**的HAP(或HAP组合)。 建议开发者从设备类型及应用功能两个维度,结合具体的业务场景,考虑选择哪种部署模型。但不管采用哪种部署模型,都应该采用一次编译。 @@ -108,7 +108,7 @@ OpenHarmony提供了方舟开发框架(简称:ArkUI),提供开发者进 ![zh-cn_image_0000001400300617](figures/zh-cn_image_0000001400300617.png) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 页面导航逻辑是指应用内页面之间的跳转关系。假设默认设备上页面A跳转到页面B,平板设备上也是页面A跳转到页面B。因为两种设备屏幕大小不同,默认设备上页面B是覆盖显示在页面A上的,平板设备上页面B是在页面A的右边并且同时显示,但因为都是页面A跳转到页面B,那么我们认为它们的页面导航逻辑相同。 **工程结构** @@ -121,7 +121,7 @@ OpenHarmony提供了方舟开发框架(简称:ArkUI),提供开发者进 - product:产品层目录,通过引用common和feature目录中代码的方式做功能和特性的集成,同时也作为主入口。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > features层可横向调用和依赖common层能力;product层不可横向调用,可依赖features层和common层,且不能有反向依赖。 部署模型不同,相应的代码工程结构也有差异。部署模型A和部署模型B的主要差异点集中在product层: @@ -132,7 +132,7 @@ OpenHarmony提供了方舟开发框架(简称:ArkUI),提供开发者进 部署模型A对应的代码工程结构抽象后一般如下所示: - + ``` /application ├── common # 可选。公共特性目录, har类型的module @@ -140,12 +140,12 @@ OpenHarmony提供了方舟开发框架(简称:ArkUI),提供开发者进 │ ├── feature1 # 子功能1, har类型的module │ ├── feature2 # 子功能2, har类型的module │ └── ... -└── product # 必选。产品层目录, entry类型的module,编译后为hap包 +└── product # 必选。产品层目录, entry类型的module,编译后为HAP ``` 部署模型B对应的代码工程结构抽象后一般如下所示: - + ``` /application ├── common # 可选。公共特性目录, har类型的module @@ -154,10 +154,10 @@ OpenHarmony提供了方舟开发框架(简称:ArkUI),提供开发者进 │ ├── feature2 # 子功能2, har类型的module │ └── ... └── product # 必选。产品层目录 - ├── wearable # 智能穿戴泛类目录, entry类型的module,编译后为hap包 - ├── default # 默认设备泛类目录, entry类型的module,编译后为hap包 + ├── wearable # 智能穿戴泛类目录, entry类型的module,编译后为HAP + ├── default # 默认设备泛类目录, entry类型的module,编译后为HAP └── ... ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 无论是用部署模型A还是部署模型B,在开发阶段,都应考虑**不同类型设备间最大程度的复用代码**,以减少开发及后续维护的工作量。 diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/page-development-intro.md b/zh-cn/application-dev/key-features/multi-device-app-dev/page-development-intro.md index 5c54f556c809c56c2e85cae96bf602f03d421d96..0ea9287e72cb57e3213fe37976c53337b77cc65c 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/page-development-intro.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/page-development-intro.md @@ -18,7 +18,7 @@ - [资源使用](resource-usage.md) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 开发多设备上同一页面时,建议开发者多使用自定义组件,既可以增加代码的可读性和可维护性,同时也可以尽可能的实现代码复用。 @@ -36,4 +36,3 @@ | [蔬菜百科首页](https://gitee.com/openharmony/applications_app_samples/tree/master/MultiDeviceAppDev/Vegetable) | 声明式开发范式 | 一多示例页面,以蔬菜百科首页为例,演示如何使用一多能力适配多设备(或多窗口尺寸)。 | | [天气](https://gitee.com/openharmony/applications_app_samples/tree/master/MultiDeviceAppDev/Weather) | 声明式开发范式 | 一多示例应用,以天气应用为例,演示如何使用一多能力实现包含多个页面的应用。 | - diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/polymorphic-controls.md b/zh-cn/application-dev/key-features/multi-device-app-dev/polymorphic-controls.md index 8367fdae021a1178e636f0fabf664657082534d6..df85095968ece3cafa6eb5e76f3e756e8214b999 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/polymorphic-controls.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/polymorphic-controls.md @@ -4,5 +4,5 @@ 方舟开发框架不仅提供了多种基础组件(如文本显示、图片显示、按键交互等),并且针对不同类型设备分别进行了适配。同一组件在不同的设备上会呈现出不同的形态(即视觉、交互、动效等可能有差异),称为“多态组件”。开发者在使用多态组件时,无需考虑设备差异,只需关注功能实现即可。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > OpenHarmony上的多态组件能力正在逐步补齐中。 diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/resource-usage.md b/zh-cn/application-dev/key-features/multi-device-app-dev/resource-usage.md index 00087b4de01593b4eb1e519c5e8b7f5d5c0fc765..621a5911bce8eb99dc181ca3a83af57411b56efe 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/resource-usage.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/resource-usage.md @@ -16,7 +16,7 @@ 应用开发中使用的各类自定义资源文件,需要统一存放于应用的resources目录下,便于使用和维护。resources目录包括两大类目录,一类为base目录与限定词目录,另一类为rawfile目录,其基础目录结构如下所示。 - + ``` resources |---base // 默认存在的目录 @@ -34,7 +34,7 @@ resources base目录默认存在,而限定词目录需要开发者自行创建,其名称可以由一个或多个表征应用场景或设备特征的限定词组合而成。应用使用某资源时,系统会根据当前设备状态优先从相匹配的限定词目录中寻找该资源。只有当resources目录中没有与设备状态匹配的限定词目录,或者在限定词目录中找不到该资源时,才会去base目录中查找。rawfile是原始文件目录,它不会根据设备状态去匹配不同的资源,故不在本文的讨论范文内。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 请访问[声明式开发范式资源文件分类](../../quick-start/resource-categories-and-access.md#资源分类),了解限定词目录的命名规则、创建流程、匹配规则等,本文不展开介绍。 > > - 没有设备状态匹配的限定词目录,或者在限定词目录中找不到目标资源时,会继续在base目录中查找。**强烈建议对于所有应用自定义资源都在base目录中定义默认值**,防止出现找不到资源值的异常场景。 @@ -50,7 +50,7 @@ base目录与限定词目录下面可以创建资源组目录(包括element、 在element目录的各个资源文件中,以“name-value”的形式定义资源,如下所示。而在media目录中,直接以文件名作为name,故开发者将文件放入media目录即可,无需再额外定义name。 - + ``` // color.json { @@ -72,7 +72,7 @@ base目录与限定词目录下面可以创建资源组目录(包括element、 在工程中,通过 "$r('app.type.name')" 的形式引用应用资源。app代表是应用内resources目录中定义的资源;type 代表资源类型(或资源的存放位置),可以取 color、float、string、plural和media,name代表资源命名,由开发者添加资源时确定。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 可以查看[声明式范式访问应用资源](../../quick-start/resource-categories-and-access.md#应用资源),了解资源访问的更多细节。 @@ -91,7 +91,7 @@ base目录与限定词目录下面可以创建资源组目录(包括element、 ![zh-cn_image_0000001325731389](figures/zh-cn_image_0000001325731389.png) - + ``` @Entry @Component @@ -120,7 +120,7 @@ struct Index { 可以查看本文[应用UX设计中关于资源的介绍](design-resources.md),获取OpenHarmony支持的系统资源ID及其在不同配置下的取值。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 仅声明式开发范式支持使用分层参数,类Web开发范式不支持。 > > - 系统资源可以保证不同团队开发出的应用有较为一致的视觉风格。对于系统预置应用,强烈建议使用系统资源;对于三方应用,可以根据需要选择使用系统资源或自定义应用资源。 diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/responsive-layout.md b/zh-cn/application-dev/key-features/multi-device-app-dev/responsive-layout.md index 2bd77dc689cee0587755f72176153fe8e99023b6..9f7df6a329a9c265a255b9bbdd0256b6a5a8e14b 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/responsive-layout.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/responsive-layout.md @@ -28,7 +28,7 @@ | md | [520, 840) | | lg | [840, +∞) | -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 以设备屏幕宽度作为参照物,也可以实现类似的效果。考虑到应用可能以非全屏窗口的形式显示,以应用窗口宽度为参照物更为通用。 > > - 开发者可以根据实际使用场景决定适配哪些断点。如xs断点对应的一般是智能穿戴类设备,如果确定某页面不会在智能穿戴设备上显示,则可以不适配xs断点。 @@ -129,7 +129,7 @@ OpenHarmony提供了多种方法,判断应用当前处于何种断点,进而 本小节仅介绍**媒体查询跟断点的结合**,即如何借助媒体查询能力,监听断点的变化,读者可以自行查阅官网中关于[媒体查询](../../ui/ui-ts-layout-mediaquery.md)的相关介绍了解更详细的用法。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 类Web开发范式,支持在js文件和css文件中使用媒体查询,请查看[js媒体查询](../../reference/apis/js-apis-mediaquery.md)和[css媒体查询](../../reference/arkui-js/js-components-common-mediaquery.md)了解详细用法。 @@ -275,7 +275,7 @@ struct MediaQuerySample { | -------- | -------- | | ![zh-cn_image_0000001336486244](figures/zh-cn_image_0000001336486244.jpg) | ![zh-cn_image_0000001386646685](figures/zh-cn_image_0000001386646685.jpg) | -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - ArkUI在API 9对栅格组件做了重构,推出了新的栅格组件[GridRow](../../reference/arkui-ts/ts-container-gridrow.md)和[GridCol](../../reference/arkui-ts/ts-container-gridcol.md),同时原有的[GridContainer组件](../../reference/arkui-ts/ts-container-gridcontainer.md)及[栅格设置](../../reference/arkui-ts/ts-universal-attributes-grid.md)已经废弃。 > > - 本文中提到的栅格组件,如无特别说明,都是指GridRow和GridCol组件。 @@ -291,7 +291,7 @@ struct MediaQuerySample { - 栅格组件支持开发者修改断点的取值范围,除了默认的四个断点,还支持开发者启用xl和xxl两个额外的断点。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 断点并非越多越好,通常每个断点都需要开发者“精心适配”以达到最佳显示效果。 **示例1:** diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/start-with-a-example.md b/zh-cn/application-dev/key-features/multi-device-app-dev/start-with-a-example.md index d218d9e0c3242c0862105d4cab33dab7e5d8c1bc..d9598a6b386ee0c938877affe56b5ddd0653a451 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/start-with-a-example.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/start-with-a-example.md @@ -19,7 +19,7 @@ | 中设备 | [520, 840) | | 大设备 | [840, +∞) | -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - vp是virtual pixel(虚拟像素)的缩写,是OpenHarmony中常用的长度单位,详见本文[视觉基础](visual-basics.md)小节中的介绍。 > > - 此处基于设备屏幕宽度划分不同设备是为了读者方便理解。通常智能设备上的应用都是以全屏的形式运行,但随着移动技术的发展,当前部分智能设备支持应用以自由窗口模式运行(即用户可以通过拖拽等操作自由调整应用运行窗口的尺寸),故以应用窗口尺寸为基准进行划分更为合适,本文后续的响应式布局章节中将详细介绍相关内容。 @@ -114,7 +114,7 @@ 延伸能力是指容器组件内的子组件,按照其在列表中的先后顺序,随容器组件尺寸变化显示或隐藏。随着可用显示区域的增加,用户可以看到的“每小时天气”信息也不断增加,故“每小时天气”可以通过延伸能力实现,其核心代码如下所示。 - + ``` @Component export default struct HoursWeather { @@ -149,10 +149,10 @@ export default struct HoursWeather { | -------- | -------- | -------- | | ![zh-cn_image_0000001395631821](figures/zh-cn_image_0000001395631821.png) | ![zh-cn_image_0000001345312038](figures/zh-cn_image_0000001345312038.png) | ![zh-cn_image_0000001349454550](figures/zh-cn_image_0000001349454550.png) | -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 为提升用户体验,大设备侧边栏隐藏状态下,每日天气与空气质量的相对顺序发生了改变。可以调整通过GridCol栅格子组件的order属性,实现目标效果。 - + ``` @Component export default struct HomeContent { diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/typical-layout-scenario.md b/zh-cn/application-dev/key-features/multi-device-app-dev/typical-layout-scenario.md index 49b1ad68ec4699fa5c3a817210e443815af5da8b..21080e5e0227ed97d60beacf4bd47390e04e3ec0 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/typical-layout-scenario.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/typical-layout-scenario.md @@ -18,7 +18,7 @@ | [重复布局](#重复布局) | 栅格组件 | -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 在本文[媒体查询](responsive-layout.md#媒体查询)小节中已经介绍了如何通过媒体查询监听断点变化,后续的示例中不再重复介绍此部分代码。 diff --git a/zh-cn/application-dev/media/avsession-guidelines.md b/zh-cn/application-dev/media/avsession-guidelines.md index 267802f1a4b43042857bdc292a6c36f75a6b159d..41ab8c7dd444713cfa0f5459cf8064a2cf57bd46 100644 --- a/zh-cn/application-dev/media/avsession-guidelines.md +++ b/zh-cn/application-dev/media/avsession-guidelines.md @@ -50,7 +50,7 @@ avSession.createAVSession(context, "AudioAppSample", 'audio').then((session) => 3.设置AVSession会话信息,包括: - 设置会话元数据,除了媒体ID必选外,可选设置媒体标题、专辑信息、媒体作者、媒体时长、上一首/下一首媒体ID等。详细的会话元数据信息可参考API文档中的`AVMetadata`。 -- 设置启动Ability,通过`WantAgent`的接口实现。WantAgent一般用于封装行为意图信息,如果想要了解更多信息,可以查阅[WantAgent开发指导](../reference/apis/js-apis-wantAgent.md)。 +- 设置启动Ability,通过[WantAgent](../reference/apis/js-apis-app-ability-wantAgent.md)的接口实现。WantAgent一般用于封装行为意图信息。 - 设置播放状态。 ```js // 设置会话元数据 diff --git a/zh-cn/application-dev/notification/notification-with-wantagent.md b/zh-cn/application-dev/notification/notification-with-wantagent.md index f3c5d56e3d68e137fdf23add81feff70233967ec..c137a122f9a0c1a9f879b90ee52344bf2febbf3c 100644 --- a/zh-cn/application-dev/notification/notification-with-wantagent.md +++ b/zh-cn/application-dev/notification/notification-with-wantagent.md @@ -1,11 +1,8 @@ # 为通知添加行为意图 +[WantAgent](../reference/apis/js-apis-app-ability-wantAgent.md)提供了封装行为意图的能力,该行为意图是指拉起指定的应用组件及发布公共事件等能力。OpenHarmony支持以通知的形式,将[WantAgent](../reference/apis/js-apis-app-ability-wantAgent.md)从发布方传递至接收方,从而在接收方触发[WantAgent](../reference/apis/js-apis-app-ability-wantAgent.md)中指定的意图。例如在通知消息的发布者发布通知时,通常期望用户可以通过通知栏点击拉起目标应用组件。为了达成这一目标,开发者可以将[WantAgent](../reference/apis/js-apis-app-ability-wantAgent.md)封装至通知消息中,当系统接收到[WantAgent](../reference/apis/js-apis-app-ability-wantAgent.md)后,在用户点击通知栏时触发[WantAgent](../reference/apis/js-apis-app-ability-wantAgent.md)的意图,从而拉起目标应用组件。 -WantAgent提供了封装行为意图的能力,这里所说的行为意图主要是指拉起指定的应用组件及发布公共事件等能力。OpenHarmony支持以通知的形式,将WantAgent从发布方传递至接收方,从而在接收方触发WantAgent中指定的意图。例如,在通知消息的发布者发布通知时,通常期望用户可以通过通知栏点击拉起目标应用组件。为了达成这一目标,开发者可以将WantAgent封装至通知消息中,当系统接收到WantAgent后,在用户点击通知栏时触发WantAgent的意图,从而拉起目标应用组件。 - - -为通知添加行为意图的实现方式如下图所示:发布通知的应用向应用组件管理服务AMS(Ability Manager Service)申请WantAgent,然后随其他通知信息一起发送给桌面,当用户在桌面通知栏上点击通知时,触发WantAgent动作。 - +为通知添加行为意图的实现方式如下图所示:发布通知的应用向应用组件管理服务AMS(Ability Manager Service)申请[WantAgent](../reference/apis/js-apis-app-ability-wantAgent.md),然后随其他通知信息一起发送给桌面,当用户在桌面通知栏上点击通知时,触发[WantAgent](../reference/apis/js-apis-app-ability-wantAgent.md)动作。 **图1** 携带行为意图的通知运行机制 ![notification-with-wantagent](figures/notification-with-wantagent.png) @@ -13,7 +10,7 @@ WantAgent提供了封装行为意图的能力,这里所说的行为意图主 ## 接口说明 -具体接口描述,详见[WantAgent接口文档](../reference/apis/js-apis-wantAgent.md#wantagent%E6%A8%A1%E5%9D%97)。 +具体接口描述,详见[WantAgent接口文档](../reference/apis/js-apis-app-ability-wantAgent.md)。 | | | | -------- | -------- | @@ -27,26 +24,29 @@ WantAgent提供了封装行为意图的能力,这里所说的行为意图主 ## 开发步骤 -1. 导入模块。 - - ```ts +1. [使能通知开关](notification-enable.md),获得用户授权后,才能使用通知功能。 + +2. 导入模块。 + + ```typescript import NotificationManager from '@ohos.notificationManager'; import wantAgent from '@ohos.app.ability.wantAgent'; ``` -2. 创建WantAgentInfo信息。 - 场景一:创建拉起Ability的WantAgent的WantAgentInfo信息。 - - ```ts +3. 创建WantAgentInfo信息。 + + 场景一:创建拉起UIAbility的WantAgent的WantAgentInfo信息。 + + ```typescript let wantAgentObj = null; // 用于保存创建成功的wantAgent对象,后续使用其完成触发的动作。 - // 通过WantAgentInfo的operationType设置动作类型。 + // 通过WantAgentInfo的operationType设置动作类型 let wantAgentInfo = { wants: [ { deviceId: '', - bundleName: 'com.example.test', - abilityName: 'com.example.test.MainAbility', + bundleName: 'com.example.myapplication', + abilityName: 'EntryAbility', action: '', entities: [], uri: '', @@ -56,19 +56,19 @@ WantAgent提供了封装行为意图的能力,这里所说的行为意图主 operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, wantAgentFlags:[wantAgent.WantAgentFlags.CONSTANT_FLAG] - } + }; ``` - 场景二:创建发布公共事件的WantAgent的WantAgentInfo信息。 - - ```ts + 场景二:创建发布[公共事件](../application-models/common-event-overview.md)的WantAgent的WantAgentInfo信息。 + + ```typescript let wantAgentObj = null; // 用于保存创建成功的WantAgent对象,后续使用其完成触发的动作。 - // wantAgentInfo + // 通过WantAgentInfo的operationType设置动作类型 let wantAgentInfo = { wants: [ { - action: 'event_name', // 设置事件名。 + action: 'event_name', // 设置事件名 parameters: {}, } ], @@ -78,12 +78,12 @@ WantAgent提供了封装行为意图的能力,这里所说的行为意图主 } ``` -3. 创建WantAgent。 - - ```ts +4. 调用[getWantAgent()](../reference/apis/js-apis-app-ability-wantAgent.md#wantagentgetwantagent)方法进行创建WantAgent。 + + ```typescript // 创建WantAgent wantAgent.getWantAgent(wantAgentInfo, (err, data) => { - if (err) { + if (err.code === 0) { console.error('[WantAgent]getWantAgent err=' + JSON.stringify(err)); } else { console.info('[WantAgent]getWantAgent success'); @@ -92,9 +92,9 @@ WantAgent提供了封装行为意图的能力,这里所说的行为意图主 }); ``` -4. 构造NotificationRequest对象。 - - ```ts +5. 构造NotificationRequest对象,并发布WantAgent通知。 + + ```typescript // 构造NotificationRequest对象 let notificationRequest = { content: { @@ -109,29 +109,14 @@ WantAgent提供了封装行为意图的能力,这里所说的行为意图主 label: 'TEST', wantAgent: wantAgentObj, } - ``` - -5. 发布WantAgent通知。 - ```ts - // 通知发送 NotificationManager.publish(notificationRequest, (err) => { if (err) { console.error(`[ANS] failed to publish, error[${err}]`); return; } - console.info(`[ANS] publish success `); + console.info(`[ANS] publish success`); }); ``` -6. 用户通过点击通知栏上的通知,触发WantAgent的动作。 - - ```ts - // 触发WantAgent - let triggerInfo = { - code: 0 - } - wantAgent.trigger(wantAgentObj, triggerInfo, (completeData) => { - console.info('[WantAgent]getWantAgent success, completeData: ', + JSON.stringify(completeData)); - }); - ``` +6. 用户通过点击通知栏上的通知,系统会自动触发WantAgent的动作。 diff --git a/zh-cn/application-dev/notification/progress-bar-notification.md b/zh-cn/application-dev/notification/progress-bar-notification.md index 732cafe7b72298248236f59ab1c43b9006dfd812..099f260185aa04fd4c8604427243450a3776359a 100644 --- a/zh-cn/application-dev/notification/progress-bar-notification.md +++ b/zh-cn/application-dev/notification/progress-bar-notification.md @@ -40,7 +40,7 @@ }); ``` - > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** + > **说明:** > 查询系统支持进度条模板后,再进行后续的步骤操作。 4. 构造进度条模板对象,并发布通知。 diff --git a/zh-cn/application-dev/quick-start/app-configuration-file.md b/zh-cn/application-dev/quick-start/app-configuration-file.md index 8c7195d724e22f55af15ba2e6d906f64f1f5ac6e..1f8d24a694a3117e71810ba1a0b7c3b5c947c5fa 100644 --- a/zh-cn/application-dev/quick-start/app-configuration-file.md +++ b/zh-cn/application-dev/quick-start/app-configuration-file.md @@ -34,7 +34,7 @@ app.json5配置文件包含以下标签。 | 属性名称 | 含义 | 数据类型 | 是否可缺省 | | -------- | -------- | -------- | -------- | -| bundleName | 标识应用的包名,用于标识应用的唯一性。该标签不可缺省。标签的值命名规则 :
- 字符串以字母、数字、下划线和符号“.”组成。
- 以字母开头。
- 最小长度7个字节,最大长度127个字节。
推荐采用反域名形式命名(如com.example.demo,建议第一级为域名后缀com,第二级为厂商/个人名,第三级为应用名,也可以多级)。
其中,随系统源码编译的应用建议命名为“com.ohos.demo”形式, ohos标识OpenHarmony系统应用。 | 字符串 | 该标签不可缺省。 | +| bundleName | 标识应用的Bundle名称,用于标识应用的唯一性。该标签不可缺省。标签的值命名规则 :
- 字符串以字母、数字、下划线和符号“.”组成。
- 以字母开头。
- 最小长度7个字节,最大长度127个字节。
推荐采用反域名形式命名(如com.example.demo,建议第一级为域名后缀com,第二级为厂商/个人名,第三级为应用名,也可以多级)。
其中,随系统源码编译的应用建议命名为“com.ohos.demo”形式, ohos标识OpenHarmony系统应用。 | 字符串 | 该标签不可缺省。 | | debug | 标识应用是否可调试,该标签由IDE编译构建时生成。
- true:可调试。
- false:不可调式。 | 布尔值 | 该标签可以缺省,缺省为false。 | | icon | 标识[应用的图标](../application-models/application-component-configuration-stage.md),标签值为图标资源文件的索引。 | 字符串 | 该标签不可缺省。 | | label | 标识[应用的名称](../application-models/application-component-configuration-stage.md),标签值为字符串资源的索引。 | 字符串 | 该标签不可缺省。 | diff --git a/zh-cn/application-dev/quick-start/app-structure.md b/zh-cn/application-dev/quick-start/app-structure.md index 6cbaa6665dfe4b6966acd7b309d1d939f490f75a..b865b4bb2e485ca84117a61496c44ef49d447d81 100644 --- a/zh-cn/application-dev/quick-start/app-structure.md +++ b/zh-cn/application-dev/quick-start/app-structure.md @@ -7,7 +7,7 @@ app对象包含应用全局配置信息,内部结构如下: | 属性名称 | 含义 | 数据类型 | 是否可缺省 | | -------- | -------- | -------- | -------- | -| bundleName | 标识应用的包名,用于标识应用的唯一性。包名是由字母、数字、下划线(_)和点号(.)组成的字符串,必须以字母开头。支持的字符串长度为7~127字节。包名通常采用反向域名形式表示(例如,"com.example.myapplication")。建议第一级为域名后缀"com",第二级为厂商/个人名,也可以采用多级。 | 字符串 | 不可缺省。 | +| bundleName | 标识应用的Bundle名称,用于标识应用的唯一性。Bundle名称是由字母、数字、下划线(_)和点号(.)组成的字符串,必须以字母开头。支持的字符串长度为7~127字节。Bundle名称通常采用反向域名形式表示(例如,"com.example.myapplication")。建议第一级为域名后缀"com",第二级为厂商/个人名,也可以采用多级。 | 字符串 | 不可缺省。 | | vendor | 标识对应用开发厂商的描述。字符串长度不超过255字节。 | 字符串 | 可缺省,缺省值为空。 | |version | 标识应用的版本信息。 | 对象 | 不可缺省。 | | apiVersion | 标识应用程序所依赖的OpenHarmony API版本。 | 对象 | 可缺省,缺省值为空。 | diff --git a/zh-cn/application-dev/quick-start/application-configuration-file-overview-fa.md b/zh-cn/application-dev/quick-start/application-configuration-file-overview-fa.md index c7e0627fba1d5a7f2197d12cf5393854bc4cda3d..7db321a4cfce86759db2e2fca0218fa735c5aefc 100644 --- a/zh-cn/application-dev/quick-start/application-configuration-file-overview-fa.md +++ b/zh-cn/application-dev/quick-start/application-configuration-file-overview-fa.md @@ -7,7 +7,7 @@ 应用配置文件需申明以下内容: -- 应用的软件包名称,应用的开发厂商,版本号等应用的基本配置信息,这些信息被要求设置在app这个字段下。 +- 应用的软件Bundle名称,应用的开发厂商,版本号等应用的基本配置信息,这些信息被要求设置在app这个字段下。 - 应用的组件的基本信息,包括所有的Ability,设备类型,组件的类型以及当前组件所使用的语法类型。 diff --git a/zh-cn/application-dev/quick-start/application-configuration-file-overview-stage.md b/zh-cn/application-dev/quick-start/application-configuration-file-overview-stage.md index c55b1e8efe9775472a5615002bc4116dd5078da9..6fe06ff209f927a182deb971d1195c3ce373cbba 100644 --- a/zh-cn/application-dev/quick-start/application-configuration-file-overview-stage.md +++ b/zh-cn/application-dev/quick-start/application-configuration-file-overview-stage.md @@ -10,7 +10,7 @@ [app.json5](app-configuration-file.md)主要包含以下内容: -- 应用的全局配置信息,包含应用的包名、开发厂商、版本号等基本信息。 +- 应用的全局配置信息,包含应用的Bundle名称、开发厂商、版本号等基本信息。 - 特定设备类型的配置信息。 diff --git a/zh-cn/application-dev/quick-start/application-package-structure-stage.md b/zh-cn/application-dev/quick-start/application-package-structure-stage.md index 72ce314905f21d403c7986d61ba7e4ac650e5230..b484f0ab579c178fd2e1dd0a62452ee54c0e2157 100644 --- a/zh-cn/application-dev/quick-start/application-package-structure-stage.md +++ b/zh-cn/application-dev/quick-start/application-package-structure-stage.md @@ -18,9 +18,9 @@ - 每个OpenHarmony应用可以包含多个.hap文件,一个应用中的.hap文件合在一起称为一个Bundle,而bundleName就是应用的唯一标识(请参见[app.json5配置文件](app-configuration-file.md)中的bundleName标签)。需要特别说明的是:在应用上架到应用市场时,需要把应用包含的所有.hap文件(即Bundle)打包为一个.app后缀的文件用于上架,这个.app文件称为App Pack(Application Package),其中同时包含了描述App Pack属性的pack.info文件;在云端分发和端侧安装时,都是以HAP为单位进行分发和安装的。 -- 打包后的HAP包结构包括ets、libs、resources等文件夹和resources.index、module.json、pack.info等文件。 +- 打包后的HAP结构包括ets、libs、resources等文件夹和resources.index、module.json、pack.info等文件。 - ets目录用于存放应用代码编译后的字节码文件。 - - libs目录用于存放库文件。库文件是OpenHarmony应用依赖的第三方代码(例如.so、.jar、.bin、.har等二进制文件)。 + - libs目录用于存放库文件。库文件是OpenHarmony应用依赖的第三方代码(.so二进制文件)。 - resources目录用于存放应用的资源文件(字符串、图片等),便于开发者使用和维护,详见[资源文件的使用](../key-features/multi-device-app-dev/resource-usage.md)。 - resources.index是资源索引表,由IDE编译工程时生成。 - module.json是HAP的配置文件,内容由工程配置中的module.json5和app.json5组成,该文件是HAP中必不可少的文件。IDE会自动生成一部分默认配置,开发者按需修改其中的配置。详细字段请参见[应用配置文件](application-configuration-file-overview-stage.md)。 diff --git a/zh-cn/application-dev/quick-start/arkts-basic-ui-description.md b/zh-cn/application-dev/quick-start/arkts-basic-ui-description.md index c705d35f5cca6c34cd7d52986153663246946f67..bf975b96765f0b4b0ab94ac3c80dda0aa320eb73 100644 --- a/zh-cn/application-dev/quick-start/arkts-basic-ui-description.md +++ b/zh-cn/application-dev/quick-start/arkts-basic-ui-description.md @@ -121,7 +121,7 @@ Text(`count: ${this.count}`) ```ts Button('add counter') .onClick(() => { - this.counter += 2 + this.counter += 2; }) ``` @@ -130,7 +130,7 @@ Text(`count: ${this.count}`) ```ts Button('add counter') .onClick(function () { - this.counter += 2 + this.counter += 2; }.bind(this)) ``` @@ -138,11 +138,11 @@ Text(`count: ${this.count}`) ```ts myClickHandler(): void { - this.counter += 2 + this.counter += 2; } ... - + Button('add counter') .onClick(this.myClickHandler.bind(this)) ``` @@ -174,10 +174,10 @@ Text(`count: ${this.count}`) .height(100) Button('click +1') .onClick(() => { - console.info('+1 clicked!') + console.info('+1 clicked!'); }) } - + Divider() Row() { Image('test2.jpg') @@ -185,10 +185,10 @@ Text(`count: ${this.count}`) .height(100) Button('click +2') .onClick(() => { - console.info('+2 clicked!') + console.info('+2 clicked!'); }) } - + Divider() Row() { Image('test3.jpg') @@ -196,7 +196,7 @@ Text(`count: ${this.count}`) .height(100) Button('click +3') .onClick(() => { - console.info('+3 clicked!') + console.info('+3 clicked!'); }) } } diff --git a/zh-cn/application-dev/quick-start/arkts-state-mgmt-page-level.md b/zh-cn/application-dev/quick-start/arkts-state-mgmt-page-level.md index 0f67972ef260d3e515a5d9a9d4b35694d8e35d1b..16408cd682801e6fe41c4c48871dd6250887c1c0 100644 --- a/zh-cn/application-dev/quick-start/arkts-state-mgmt-page-level.md +++ b/zh-cn/application-dev/quick-start/arkts-state-mgmt-page-level.md @@ -91,6 +91,8 @@ struct MyComponent { - 支持多个实例:一个组件中可以定义多个标有@Prop的属性; - 创建自定义组件时将值传递给@Prop变量进行初始化:在创建组件的新实例时,必须初始化所有@Prop变量,不支持在组件内部进行初始化。 +> **说明:** @Prop修饰的变量不能在组件内部进行初始化。 + **示例:** 在下面的示例中,当按“+1”或“-1”按钮时,父组件状态发生变化,重新执行build方法,此时将创建一个新的CountDownComponent组件实例。父组件的countDownStartValue状态变量被用于初始化子组件的@Prop变量,当按下子组件的“count - costOfOneAttempt”按钮时,其@Prop变量count将被更改,CountDownComponent重新渲染,但是count值的更改不会影响父组件的countDownStartValue值。 @@ -156,7 +158,7 @@ struct CountDownComponent { - 双向通信:子组件对@Link变量的更改将同步修改父组件中的@State变量; - 创建自定义组件时需要将变量的引用传递给@Link变量,在创建组件的新实例时,必须使用命名参数初始化所有@Link变量。@Link变量可以使用@State变量或@Link变量的引用进行初始化,@State变量可以通过`'$'`操作符创建引用。 -> **说明:** @Link变量不能在组件内部进行初始化。 +> **说明:** @Link修饰的变量不能在组件内部进行初始化。 **简单类型示例:** diff --git a/zh-cn/application-dev/quick-start/figures/arkts-get-started.png b/zh-cn/application-dev/quick-start/figures/arkts-get-started.png index b2a0cb91637601846855c0eaa30e0610a5a11ed6..21de3f9615767dfb3e50fc5a0e1707eb87dfb73d 100644 Binary files a/zh-cn/application-dev/quick-start/figures/arkts-get-started.png and b/zh-cn/application-dev/quick-start/figures/arkts-get-started.png differ diff --git a/zh-cn/application-dev/quick-start/module-configuration-file.md b/zh-cn/application-dev/quick-start/module-configuration-file.md index b87c63a5b12c92f357813e47db6af53efbc3f981..589b09c9a522c192528963712d4c439634b2f51d 100644 --- a/zh-cn/application-dev/quick-start/module-configuration-file.md +++ b/zh-cn/application-dev/quick-start/module-configuration-file.md @@ -441,7 +441,7 @@ metadata中指定shortcut信息,其中: | shortcutId | 标识快捷方式的ID。字符串的最大长度为63字节。 | 字符串 | 该标签不可缺省。 | | label | 标识快捷方式的标签信息,即快捷方式对外显示的文字描述信息。取值可以是描述性内容,也可以是标识label的资源索引。字符串最大长度为255字节。 | 字符串 | 该标签可缺省,缺省值为空。 | | icon | 标识快捷方式的图标,标签值为资源文件的索引。 | 字符串 | 该标签可缺省,缺省值为空。 | -| [wants](../application-models/want-overview.md) | 标识快捷方式内定义的目标wants信息集合,每个wants可配置bundleName和abilityName两个子标签。
bundleName:表示快捷方式的目标包名,字符串类型。
abilityName:表示快捷方式的目标组件名,字符串类型。 | 对象 | 该标签可缺省,缺省为空。 | +| [wants](../application-models/want-overview.md) | 标识快捷方式内定义的目标wants信息集合,每个wants可配置bundleName和abilityName两个子标签。
bundleName:表示快捷方式的目标Bundle名称,字符串类型。
abilityName:表示快捷方式的目标组件名,字符串类型。 | 对象 | 该标签可缺省,缺省为空。 | 1. 在/resource/base/profile/目录下配置shortcuts_config.json配置文件。 diff --git a/zh-cn/application-dev/quick-start/multi-hap-build-view.md b/zh-cn/application-dev/quick-start/multi-hap-build-view.md index a1c7dfe5bc1f0b48e09f9bce5289aba340282fbe..9989efb8ca74673aef45a9548632d72e3694df08 100644 --- a/zh-cn/application-dev/quick-start/multi-hap-build-view.md +++ b/zh-cn/application-dev/quick-start/multi-hap-build-view.md @@ -10,7 +10,7 @@ IDE支持在一个应用工程中进行多个HAP的开发与构建,如下图 1. IDE开发态视图 - AppScope目录 - - [app.json5](app-configuration-file.md):配置应用全局描述信息,例如应用包名、版本号、应用图标、应用名称和依赖的SDK版本号等。 + - [app.json5](app-configuration-file.md):配置应用全局描述信息,例如应用Bundle名称、版本号、应用图标、应用名称和依赖的SDK版本号等。 - resources目录:放置应用的图标资源和应用名称字符串资源。 **说明:** diff --git a/zh-cn/application-dev/quick-start/multi-hap-principles.md b/zh-cn/application-dev/quick-start/multi-hap-principles.md index 0587c5bd8e324a668940bbeba98deb12b4611b6f..78e9b228052f0ee54ec7217388bfc199bbba8cf0 100644 --- a/zh-cn/application-dev/quick-start/multi-hap-principles.md +++ b/zh-cn/application-dev/quick-start/multi-hap-principles.md @@ -4,7 +4,7 @@ 多HAP机制主要是为方便开发者进行模块化管理。HAP和应用运行时的进程并不是一一对应的,具体运行机制如下: -- 默认情况下,应用中(同一包名)的所有UIAbility、ServiceExtensionAbility、DataShareExtensionAbility运行在同一个独立进程中,其他同类型ExtensionAbility分别运行在单独的进程。 +- 默认情况下,应用中(同一Bundle名称)的所有UIAbility、ServiceExtensionAbility、DataShareExtensionAbility运行在同一个独立进程中,其他同类型ExtensionAbility分别运行在单独的进程。 - HAP支持在module.json5(Stage模型)或者config.json(FA模型)中通过process标签配置单独的进程(仅系统应用支持,三方应用不支持)。配置了process的HAP,其组件运行在单独的process进程中,多个HAP可以配置相同的process,则这些HAP运行在相同进程中,process配置的详细说明请参见[module.json5配置文件](module-configuration-file.md)。 diff --git a/zh-cn/application-dev/quick-start/multi-hap-release-deployment.md b/zh-cn/application-dev/quick-start/multi-hap-release-deployment.md index 755009c273442c1579296bce884bb88cb3e63e6b..eb7cfba1fceaa9fbc36f81b30f1a0652d7aafb6c 100644 --- a/zh-cn/application-dev/quick-start/multi-hap-release-deployment.md +++ b/zh-cn/application-dev/quick-start/multi-hap-release-deployment.md @@ -5,7 +5,7 @@ 开发者通过[DevEco Studio](https://developer.harmonyos.com/cn/develop/deveco-studio)工具按照业务的需要创建多个Module,在相应的Module中完成自身业务的开发。 ## 2. 调试 -通过DevEco Studio编译打包,生成单个或者多个HAP包。真机基于HAP包进行安装、卸载调试,调试指南可参考[应用程序包调试方法](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-debugging-and-running-0000001263040487#section10491183521520),其中包括了单HAP与多HAP通过DevEco Studio工具的安装调试方法。 +通过DevEco Studio编译打包,生成单个或者多个HAP。真机基于HAP进行安装、卸载调试,调试指南可参考[应用程序包调试方法](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-debugging-and-running-0000001263040487#section10491183521520),其中包括了单HAP与多HAP通过DevEco Studio工具的安装调试方法。 应用程序包也可以通过[hdc_std工具](../../device-dev/subsystems/subsys-toolchain-hdc-guide.md)(可通过OpenHarmony SDK获取,在SDK的toolchains目录下)进行安装、更新与卸载,通过hdc_std安装HAP时,HAP的路径为开发平台上的文件路径,以Windows开发平台为例,命令参考如下: ``` diff --git a/zh-cn/application-dev/quick-start/start-with-ets-fa.md b/zh-cn/application-dev/quick-start/start-with-ets-fa.md index c7248ea8c98565038505a58391d26ab9353c7fc9..6e2818d8f7a3065560aa033caeff44f41f17aeeb 100644 --- a/zh-cn/application-dev/quick-start/start-with-ets-fa.md +++ b/zh-cn/application-dev/quick-start/start-with-ets-fa.md @@ -40,7 +40,7 @@ - **src > main > ets > MainAbility > pages > index.ets**:pages列表中的第一个页面,即应用的首页入口。 - **src > main > ets > MainAbility > app.ets**:承载Ability生命周期。 - **src > main > resources**:用于存放应用/服务所用到的资源文件,如图形、多媒体、字符串、布局文件等。关于资源文件,详见[资源文件的分类](resource-categories-and-access.md#资源分类)。 - - **src > main > config.json**:模块配置文件。主要包含HAP包的配置信息、应用/服务在具体设备上的配置信息以及应用/服务的全局配置信息。具体的配置文件说明,详见[应用配置文件(FA模型)](application-configuration-file-overview-fa.md)。 + - **src > main > config.json**:模块配置文件。主要包含HAP的配置信息、应用/服务在具体设备上的配置信息以及应用/服务的全局配置信息。具体的配置文件说明,详见[应用配置文件(FA模型)](application-configuration-file-overview-fa.md)。 - **build-profile.json5**:当前的模块信息 、编译信息配置项,包括buildOption、targets配置等。 - **hvigorfile.ts**:模块级编译构建任务脚本,开发者可以自定义相关任务和代码实现。 diff --git a/zh-cn/application-dev/quick-start/start-with-ets-stage.md b/zh-cn/application-dev/quick-start/start-with-ets-stage.md index 344a02a8034ca201db21f7207006c939a8d4bbc6..e4e5190da97ca8b0ffc8cb1f78b019cd4924e3ac 100644 --- a/zh-cn/application-dev/quick-start/start-with-ets-stage.md +++ b/zh-cn/application-dev/quick-start/start-with-ets-stage.md @@ -38,7 +38,7 @@ - **src > main > ets > entryability**:应用/服务的入口。 - **src > main > ets > pages**:应用/服务包含的页面。 - **src > main > resources**:用于存放应用/服务所用到的资源文件,如图形、多媒体、字符串、布局文件等。关于资源文件,详见[资源文件的分类](resource-categories-and-access.md#资源分类)。 - - **src > main > module.json5**:模块配置文件。主要包含HAP包的配置信息、应用/服务在具体设备上的配置信息以及应用/服务的全局配置信息。具体的配置文件说明,详见[module.json5配置文件](module-configuration-file.md)。 + - **src > main > module.json5**:模块配置文件。主要包含HAP的配置信息、应用/服务在具体设备上的配置信息以及应用/服务的全局配置信息。具体的配置文件说明,详见[module.json5配置文件](module-configuration-file.md)。 - **build-profile.json5**:当前的模块信息 、编译信息配置项,包括buildOption、targets配置等。 - **hvigorfile.ts**:模块级编译构建任务脚本,开发者可以自定义相关任务和代码实现。 diff --git a/zh-cn/application-dev/quick-start/start-with-js-fa.md b/zh-cn/application-dev/quick-start/start-with-js-fa.md index 8dc0d1b5f542dda575ef77925d3b265d21b2cfe9..1cf6350ac7ab98dd7e4ece38e4c517d571507d85 100644 --- a/zh-cn/application-dev/quick-start/start-with-js-fa.md +++ b/zh-cn/application-dev/quick-start/start-with-js-fa.md @@ -39,7 +39,7 @@ - **src > main > js > MainAbility > app.js**:承载Ability生命周期。 - **src > main > resources**:用于存放应用/服务所用到的资源文件,如图形、多媒体、字符串、布局文件等。关于资源文件,详见[资源限定与访问](../ui/js-framework-resource-restriction.md)。 - - **src > main > config.json**:模块配置文件。主要包含HAP包的配置信息、应用/服务在具体设备上的配置信息以及应用/服务的全局配置信息。具体的配置文件说明,详见[应用配置文件(FA模型)](application-configuration-file-overview-fa.md)。 + - **src > main > config.json**:模块配置文件。主要包含HAP的配置信息、应用/服务在具体设备上的配置信息以及应用/服务的全局配置信息。具体的配置文件说明,详见[应用配置文件(FA模型)](application-configuration-file-overview-fa.md)。 - **build-profile.json5**:当前的模块信息 、编译信息配置项,包括buildOption、targets配置等。 - **hvigorfile.ts**:模块级编译构建任务脚本,开发者可以自定义相关任务和代码实现。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-Bundle-BundleStatusCallback.md b/zh-cn/application-dev/reference/apis/js-apis-Bundle-BundleStatusCallback.md index bc19287abd6bf80a3f78211e937207df1ab4c58f..1d578d24c253adc3913460f3e9008f4b66430cb6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-Bundle-BundleStatusCallback.md +++ b/zh-cn/application-dev/reference/apis/js-apis-Bundle-BundleStatusCallback.md @@ -1,6 +1,6 @@ # BundleStatusCallback -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 从API version 9开始不再支持。建议使用[bundleMonitor](js-apis-bundleMonitor.md)替代。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-Bundle-InnerBundleManager.md b/zh-cn/application-dev/reference/apis/js-apis-Bundle-InnerBundleManager.md index 69a1083779c9f4cef700bf5e78bbf33e198b60f4..e2a66d7d3e301aa1234e5230b292e1a42a4b858f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-Bundle-InnerBundleManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-Bundle-InnerBundleManager.md @@ -21,7 +21,7 @@ SystemCapability.BundleManager.BundleFramework getLauncherAbilityInfos(bundleName: string, userId: number, callback: AsyncCallback<Array<LauncherAbilityInfo>>) : void; -以异步方法根据给定的包名获取LauncherAbilityInfos,使用callback形式返回结果。 +以异步方法根据给定的Bundle名称获取LauncherAbilityInfos,使用callback形式返回结果。 > 从API version 9开始不再支持。建议使用[launcherBundleManager#getLauncherAbilityInfo](js-apis-launcherBundleManager.md)替代。 **需要权限:** @@ -38,18 +38,18 @@ SystemCapability.BundleManager.BundleFramework **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ---------- | ------------------------------------------------------------ | ---- | ----------------------------------------------------- | -| bundleName | string | 是 | 要查询的应用程序包名称。 | -| userId | number | 是 | 用户ID。取值范围:大于等于0。 | -| callback | AsyncCallback\> | 是 | 程序启动作为入参的回调函数,返回程序信息。 | +| 参数名 | 类型 | 必填 | 说明 | +| ---------- | ------------------------------------------------------------ | ---- | ------------------------------------------ | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | +| userId | number | 是 | 用户ID。取值范围:大于等于0。 | +| callback | AsyncCallback\> | 是 | 程序启动作为入参的回调函数,返回程序信息。 | ## innerBundleManager.getLauncherAbilityInfos(deprecated) getLauncherAbilityInfos(bundleName: string, userId: number) : Promise<Array<LauncherAbilityInfo>> -以异步方法根据给定的包名获取LauncherAbilityInfos,使用Promise形式返回结果。 +以异步方法根据给定的Bundle名称获取LauncherAbilityInfos,使用Promise形式返回结果。 > 从API version 9开始不再支持。建议使用[launcherBundleManager#getLauncherAbilityInfo](js-apis-launcherBundleManager.md)替代。 **需要权限:** @@ -66,9 +66,9 @@ SystemCapability.BundleManager.BundleFramework **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ---------- | ------ | ---- | ----------------------------------------------------- | -| bundleName | string | 是 | 要查询的应用程序包名称。 | +| 参数名 | 类型 | 必填 | 说明 | +| ---------- | ------ | ---- | ----------------------------- | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | | userId | number | 是 | 用户ID。取值范围:大于等于0。 | **返回值:** @@ -254,7 +254,7 @@ SystemCapability.BundleManager.BundleFramework getShortcutInfos(bundleName :string, callback: AsyncCallback<Array<ShortcutInfo>>) : void; -以异步方法根据给定的包名获取快捷方式信息,使用callback形式返回结果。 +以异步方法根据给定的Bundle名称获取快捷方式信息,使用callback形式返回结果。 > 从API version 9开始不再支持。建议使用[launcherBundleManager#getShortcutInfo](js-apis-launcherBundleManager.md)替代。 **需要权限:** @@ -273,14 +273,14 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------------------------------------------------------------ | ---- | ---------------------------------------------- | -| bundleName | string | 是 | 要查询的应用程序包名称。 | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | | callback | AsyncCallback\> | 是 | 程序启动作为入参的回调函数,返回快捷方式信息。 | ## innerBundleManager.getShortcutInfos(deprecated) getShortcutInfos(bundleName : string) : Promise<Array<ShortcutInfo>> -以异步方法根据给定的包名获取快捷方式信息,使用Promise形式返回结果。 +以异步方法根据给定的Bundle名称获取快捷方式信息,使用Promise形式返回结果。 > 从API version 9开始不再支持。建议使用[launcherBundleManager#getShortcutInfo](js-apis-launcherBundleManager.md)替代。 **需要权限:** @@ -299,7 +299,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------ | ---- | ------------------------ | -| bundleName | string | 是 | 要查询的应用程序包名称。 | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | **返回值:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-Bundle.md b/zh-cn/application-dev/reference/apis/js-apis-Bundle.md index 79013f348dd8f0c38000c4e84e5a080ecfa838cc..250302245b41ad7c8dd07de9979a919565d2e5cd 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-Bundle.md +++ b/zh-cn/application-dev/reference/apis/js-apis-Bundle.md @@ -15,10 +15,11 @@ import bundle from '@ohos.bundle'; | 权限 | 权限等级 | 描述 | |--------------------------------------------|--------------|---------------| -| ohos.permission.GET_BUNDLE_INFO | normal | 查询指定应用信息。 | +| ohos.permission.CHANGE_ABILITY_ENABLED_STATE | system_basic | 设置禁用使能所需的权限。 | +| ohos.permission.GET_BUNDLE_INFO | normal | 查询指定应用信息。 | | ohos.permission.GET_BUNDLE_INFO_PRIVILEGED | system_basic | 可查询所有应用信息。 | | ohos.permission.INSTALL_BUNDLE | system_core | 可安装、卸载应用。 | -| ohos.permission.MANAGE_DISPOSED_APP_STATUS | system_core | 可设置和查询应用的处置状态。 | +| ohos.permission.REMOVE_CACHE_FILES | system_basic | 清理应用缓存。 | 权限等级参考[权限等级说明](../../security/accesstoken-overview.md#权限等级说明)。 @@ -28,7 +29,7 @@ import bundle from '@ohos.bundle'; getApplicationInfo(bundleName: string, bundleFlags: number, userId?: number): Promise\ -以异步方法根据给定的包名获取ApplicationInfo。使用Promise异步回调。 +以异步方法根据给定的Bundle名称获取ApplicationInfo。使用Promise异步回调。 获取调用方自己的信息时不需要权限。 @@ -44,7 +45,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------ | ---- | ------------------------------------------------------------ | -| bundleName | string | 是 | 要查询的应用程序包名称。 | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | | bundleFlags | number | 是 | 用于指定返回的应用信息对象中包含信息的标记。取值范围请参考[BundleFlag说明](#bundleflagdeprecated)中应用信息相关flag。 | | userId | number | 否 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 | @@ -74,7 +75,7 @@ bundle.getApplicationInfo(bundleName, bundleFlags, userId) getApplicationInfo(bundleName: string, bundleFlags: number, userId: number, callback: AsyncCallback\): void -以异步方法根据给定的包名获取指定用户下的ApplicationInfo,使用callback形式返回结果。 +以异步方法根据给定的Bundle名称获取指定用户下的ApplicationInfo,使用callback形式返回结果。 获取调用方自己的信息时不需要权限。 @@ -90,9 +91,9 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| bundleName | string | 是 | 要查询的应用程序包名称。 | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | | bundleFlags | number | 是 | 用于指定返回的应用信息对象中包含信息的标记。取值范围:参考[BundleFlag说明](#bundleflag)中应用信息相关flag。 | -| userId | number | 是 | 用户ID。取值范围:大于等于0。 | +| userId | number | 是 | 用户ID。取值范围:大于等于0。 | | callback | AsyncCallback\<[ApplicationInfo](js-apis-bundle-ApplicationInfo.md)> | 是 | 程序启动作为入参的回调函数,返回应用程序信息。 | **示例:** @@ -117,7 +118,7 @@ bundle.getApplicationInfo(bundleName, bundleFlags, userId, (err, data) => { getApplicationInfo(bundleName: string, bundleFlags: number, callback: AsyncCallback\): void -以异步方法根据给定的包名获取ApplicationInfo,使用callback形式返回结果。 +以异步方法根据给定的Bundle名称获取ApplicationInfo,使用callback形式返回结果。 获取调用方自己的信息时不需要权限。 @@ -133,7 +134,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| bundleName | string | 是 | 要查询的应用程序包名称。 | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | | bundleFlags | number | 是 | 用于指定返回的应用信息对象中包含信息的标记。取值范围:参考[BundleFlag说明](#bundleflag)中应用信息相关flag。 | | callback | AsyncCallback\<[ApplicationInfo](js-apis-bundle-ApplicationInfo.md)> | 是 | 程序启动作为入参的回调函数,返回应用程序信息。 | @@ -186,6 +187,7 @@ SystemCapability.BundleManager.BundleFramework ```ts let bundleFlag = 0; let userId = 100; + bundle.getAllBundleInfo(bundleFlag, userId) .then((data) => { console.info('Operation successful. Data: ' + JSON.stringify(data)); @@ -278,7 +280,7 @@ bundle.getAllBundleInfo(bundleFlag, userId, (err, data) => { getBundleInfo(bundleName: string, bundleFlags: number, options?: BundleOptions): Promise\ -以异步方法根据给定的包名获取BundleInfo,使用Promise异步回调。 +以异步方法根据给定的Bundle名称获取BundleInfo,使用Promise异步回调。 获取调用方自己的信息时不需要权限。 @@ -294,7 +296,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------------- | ---- |---------------------------------------------------------------------| -| bundleName | string | 是 | 要查询的应用程序包名称。 | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | | bundleFlags | number | 是 | 用于指定返回的应用信息对象中包含信息的标记。取值范围:参考[BundleFlag说明](#bundleflag)中包信息相关flag。 | | options | [BundleOptions](#bundleoptions) | 否 | 包含userid的查询选项。 | @@ -326,7 +328,7 @@ bundle.getBundleInfo(bundleName, bundleFlags, options) getBundleInfo(bundleName: string, bundleFlags: number, callback: AsyncCallback\): void -以异步方法根据给定的包名获取BundleInfo,使用callback异步回调。 +以异步方法根据给定的Bundle名称获取BundleInfo,使用callback异步回调。 获取调用方自己的信息时不需要权限。 @@ -340,11 +342,11 @@ SystemCapability.BundleManager.BundleFramework **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ----------- | ---------------------------------------------------------- | ---- |---------------------------------------------------------------------| -| bundleName | string | 是 | 需要查询的应用程序包名称。 | +| 参数名 | 类型 | 必填 | 说明 | +| ----------- | ---------------------------------------------------------- | ---- | ------------------------------------------------------------ | +| bundleName | string | 是 | 需要查询的应用Bundle名称。 | | bundleFlags | number | 是 | 用于指定返回的应用信息对象中包含信息的标记。取值范围:参考[BundleFlag说明](#bundleflag)中包信息相关flag。 | -| callback | AsyncCallback\<[BundleInfo](js-apis-bundle-BundleInfo.md)> | 是 | 程序启动作为入参的回调函数,返回包信息。 | +| callback | AsyncCallback\<[BundleInfo](js-apis-bundle-BundleInfo.md)> | 是 | 程序启动作为入参的回调函数,返回包信息。 | **示例:** @@ -360,14 +362,13 @@ bundle.getBundleInfo(bundleName, bundleFlags, (err, data) => { }) ``` - ## bundle.getBundleInfodeprecated > 从API version 9开始不再维护,建议使用[bundleManager.getBundleInfo](js-apis-bundleManager.md#bundlemanagergetbundleinfo)替代。 getBundleInfo(bundleName: string, bundleFlags: number, options: BundleOptions, callback: AsyncCallback\): void -以异步方法根据给定的包名获取BundleInfo,使用callback异步回调。 +以异步方法根据给定的Bundle名称获取BundleInfo,使用callback异步回调。 获取调用方自己的信息时不需要权限。 @@ -383,7 +384,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ----------- | ---------------------------------------------------------- | ---- | ------------------------------------------------------------ | -| bundleName | string | 是 | 要查询的应用包名。 | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | | bundleFlags | number | 是 | 用于指定返回的应用信息对象中包含信息的标记。取值范围:参考[BundleFlag说明](#bundleflag)中包信息相关flag。 | | options | [BundleOptions](#bundleoptions) | 是 | 包含userid。 | | callback | AsyncCallback\<[BundleInfo](js-apis-bundle-BundleInfo.md)> | 是 | 程序启动作为入参的回调函数,返回包信息。 | @@ -504,7 +505,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------------------- | ---- | ------------------------------------- | -| bundleName | string | 是 | 指示要清除其缓存数据的应用程序包名称。 | +| bundleName | string | 是 | 指示要清除其缓存数据的应用Bundle名称。 | | callback | AsyncCallback\ | 是 | 回调函数。 | **示例:** @@ -545,7 +546,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------ | ---- | ------------------------------------- | -| bundleName | string | 是 | 指示要清除其缓存数据的应用程序包名称。 | +| bundleName | string | 是 | 指示要清除其缓存数据的应用Bundle名称。 | **返回值:** @@ -589,7 +590,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------------------- | ---- |--------------------------------| -| bundleName | string | 是 | 指示需要启用或禁用的应用程序包名称。 | +| bundleName | string | 是 | 指示需要启用或禁用的应用Bundle名称。 | | isEnable | boolean | 是 | 指定是否启用应用程序。true表示启用,false表示禁用。 | | callback | AsyncCallback\ | 是 | 回调函数。 | @@ -629,9 +630,9 @@ SystemCapability.BundleManager.BundleFramework **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ---------- | ------- | ---- |------------------------------| -| bundleName | string | 是 | 指示需要启用或禁用的应用程序包名称。 | +| 参数名 | 类型 | 必填 | 说明 | +| ---------- | ------- | ---- | ----------------------------------------------- | +| bundleName | string | 是 | 指示需要启用或禁用的应用Bundle名称。 | | isEnable | boolean | 是 | 指定是否启用应用程序。true表示启用,false禁用。 | **返回值:** @@ -941,7 +942,7 @@ bundle.getAllApplicationInfo(bundleFlags, (err, data) => { getBundleArchiveInfo(hapFilePath: string, bundleFlags: number) : Promise\ -获取有关HAP包中包含的应用程序包的信息,使用Promise形式返回结果。 +获取有关HAP中包含的应用程序包的信息,使用Promise形式返回结果。 **系统能力:** @@ -955,9 +956,9 @@ SystemCapability.BundleManager.BundleFramework | bundleFlags | number | 是 | 用于指定要返回的BundleInfo对象中包含信息的标记。取值范围:参考[BundleFlag说明](#bundleflag)中包信息相关flag。 | **返回值:** -| 类型 | 说明 | -| -------------- | -------------------------------------- | -| Promise\<[BundleInfo](js-apis-bundle-BundleInfo.md)> | 返回值为Promise对象,Promise中包含有关hap包中包含的应用程序的信息。 | +| 类型 | 说明 | +| ---------------------------------------------------- | ------------------------------------------------------------ | +| Promise\<[BundleInfo](js-apis-bundle-BundleInfo.md)> | 返回值为Promise对象,Promise中包含有关HAP中包含的应用程序的信息。 | **示例:** @@ -978,7 +979,7 @@ bundle.getBundleArchiveInfo(hapFilePath, bundleFlags) getBundleArchiveInfo(hapFilePath: string, bundleFlags: number, callback: AsyncCallback\) : void -以异步方法获取有关HAP包中包含的应用程序包的信息,使用callback形式返回结果。 +以异步方法获取有关HAP中包含的应用程序包的信息,使用callback形式返回结果。 **系统能力:** @@ -990,7 +991,7 @@ SystemCapability.BundleManager.BundleFramework | ---------- | ------ | ---- | ------------ | | hapFilePath | string | 是 | HAP存放路径,支持当前应用程序的绝对路径和数据目录沙箱路径。 | | bundleFlags | number | 是 | 用于指定要返回的BundleInfo对象中包含信息的标记。取值范围:参考[BundleFlag说明](#bundleflag)中包信息相关flag。 | -| callback| AsyncCallback\<[BundleInfo](js-apis-bundle-BundleInfo.md)> | 是 | 程序启动作为入参的回调函数,返回HAP包中包含的应用程序包的信息。| +| callback| AsyncCallback\<[BundleInfo](js-apis-bundle-BundleInfo.md)> | 是 | 程序启动作为入参的回调函数,返回HAP中包含的应用程序包的信息。 | **示例:** @@ -1006,14 +1007,13 @@ bundle.getBundleArchiveInfo(hapFilePath, bundleFlags, (err, data) => { }) ``` - ## bundle.getAbilityInfodeprecated > 从API version 9开始不再维护,建议使用[bundleManager.queryAbilityInfo](js-apis-bundleManager.md#bundlemanagerqueryabilityinfo)替代。 getAbilityInfo(bundleName: string, abilityName: string): Promise\ -通过包名称和组件名获取Ability组件信息,使用Promise形式异步回调。 +通过Bundle名称和组件名获取Ability组件信息,使用Promise形式异步回调。 获取调用方自己的信息时不需要权限。 @@ -1029,7 +1029,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------ | ---- |------------| -| bundleName | string | 是 | 应用程序包名称。 | +| bundleName | string | 是 | 应用Bundle名称。 | | abilityName | string | 是 | Ability组件名称。 | **返回值:** @@ -1057,7 +1057,7 @@ bundle.getAbilityInfo(bundleName, abilityName) getAbilityInfo(bundleName: string, abilityName: string, callback: AsyncCallback\): void; -通过包名称和组件名获取Ability组件信息,使用callback形式返回结果。 +通过Bundle名称和组件名获取Ability组件信息,使用callback形式返回结果。 获取调用方自己的信息时不需要权限。 @@ -1073,7 +1073,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------------ | ---- |----------------------------| -| bundleName | string | 是 | 应用程序包名称。 | +| bundleName | string | 是 | 应用Bundle名称。 | | abilityName | string | 是 | Ability名称。 | | callback | AsyncCallback\<[AbilityInfo](js-apis-bundle-AbilityInfo.md)> | 是 | 程序启动作为入参的回调函数,返回Ability信息。 | @@ -1097,7 +1097,7 @@ bundle.getAbilityInfo(bundleName, abilityName, (err, data) => { getAbilityLabel(bundleName: string, abilityName: string): Promise\ -通过包名称和ability名称获取应用名称,使用Promise形式返回结果。 +通过Bundle名称和ability名称获取应用名称,使用Promise形式返回结果。 获取调用方自己的信息时不需要权限。 @@ -1111,10 +1111,10 @@ SystemCapability.BundleManager.BundleFramework **参数:** -| 参数名 | 类型 | 必填 | 说明 | -|-------------|--------|-----|------------| -| bundleName | string | 是 | 应用程序包名称。 | -| abilityName | string | 是 | Ability名称。 | +| 参数名 | 类型 | 必填 | 说明 | +| ----------- | ------ | ---- | ---------------- | +| bundleName | string | 是 | 应用Bundle名称。 | +| abilityName | string | 是 | Ability名称。 | **返回值:** @@ -1141,7 +1141,7 @@ bundle.getAbilityLabel(bundleName, abilityName) getAbilityLabel(bundleName: string, abilityName: string, callback : AsyncCallback\): void -通过包名称和Ability组件名获取应用名称,使用callback形式返回结果。 +通过Bundle名称和Ability组件名获取应用名称,使用callback形式返回结果。 获取调用方自己的信息时不需要权限。 @@ -1155,10 +1155,10 @@ SystemCapability.BundleManager.BundleFramework **参数:** -| 参数名 | 类型 | 必填 | 说明 | -|-------------|------------------------|-----|-------------------------| -| bundleName | string | 是 | 应用程序包名称。 | -| abilityName | string | 是 | Ability名称。 | +| 参数名 | 类型 | 必填 | 说明 | +| ----------- | ---------------------- | ---- | ---------------------------------------------- | +| bundleName | string | 是 | 应用Bundle名称。 | +| abilityName | string | 是 | Ability名称。 | | callback | AsyncCallback\ | 是 | 程序启动作为入参的回调函数,返回应用名称信息。 | **示例:** @@ -1230,7 +1230,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | -------- | -------------------------------------------- | ---- | ----------------------- | | info | [AbilityInfo](js-apis-bundle-AbilityInfo.md) | 是 | Ability的配置信息。 | -| callback | AsyncCallback\ | 是 | 返回boolean代表是否启用。 | +| callback | AsyncCallback\ | 是 | 回调函数,返回boolean代表是否启用。 | **示例:** @@ -1264,7 +1264,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------ | ---- | ------------------------ | -| bundleName | string | 是 | 要查询的应用程序包名称。 | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | **返回值:** @@ -1300,8 +1300,8 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ---------- | ----------------------- | ---- | ------------------------ | -| bundleName | string | 是 | 要查询的应用程序包名称。 | -| callback | AsyncCallback\ | 是 | 返回boolean代表是否启用。 | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | +| callback | AsyncCallback\ | 是 | 回调函数,返回boolean代表是否启用。 | **示例:** @@ -1338,7 +1338,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------ | ---- | ------------------------------------- | -| want | [Want](js-apis-application-want.md) | 是 | 包含要查询的应用程序包名称的意图。 | +| want | [Want](js-apis-application-want.md) | 是 | 包含要查询的应用Bundle名称的意图。 | | bundleFlags | number | 是 | 用于指定返回abilityInfo信息。取值范围:参考[BundleFlag说明](#bundleflag)中Ability信息相关flag。 | | userId | number | 否 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 | @@ -1387,12 +1387,12 @@ SystemCapability.BundleManager.BundleFramework **参数:** -| 参数名 | 类型 | 必填 | 说明 | -|-------------|---------------------------------------------------------------------|-----|-------------------------------------------------------------------------| -| want | [Want](js-apis-application-want.md) | 是 | 指示包含要查询的应用程序包名称的意图。 | -| bundleFlags | number | 是 | 用于指定返回abilityInfo信息。取值范围:参考[BundleFlag说明](#bundleflag)中Ability信息相关flag。 | -| userId | number | 是 | 用户ID。取值范围:大于等于0。 | -| callback | AsyncCallback> | 是 | 程序启动作为入参的回调函数,返回Ability信息。 | +| 参数名 | 类型 | 必填 | 说明 | +| ----------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | +| want | [Want](js-apis-application-want.md) | 是 | 指示包含要查询的应用Bundle名称的意图。 | +| bundleFlags | number | 是 | 用于指定返回abilityInfo信息。取值范围:参考[BundleFlag说明](#bundleflag)中Ability信息相关flag。 | +| userId | number | 是 | 用户ID。取值范围:大于等于0。 | +| callback | AsyncCallback> | 是 | 程序启动作为入参的回调函数,返回Ability信息。 | **示例:** @@ -1432,11 +1432,11 @@ SystemCapability.BundleManager.BundleFramework **参数:** -| 参数名 | 类型 | 必填 | 说明 | -|-------------|---------------------------------------------------------------------|-----|-------------------------------------------------------------------------| -| want | [Want](js-apis-application-want.md) | 是 | 指示包含要查询的应用程序包名称的意图。 | -| bundleFlags | number | 是 | 用于指定返回abilityInfo信息。取值范围:参考[BundleFlag说明](#bundleflag)中Ability信息相关flag。 | -| callback | AsyncCallback> | 是 | 程序启动作为入参的回调函数,返回Ability信息。 | +| 参数名 | 类型 | 必填 | 说明 | +| ----------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | +| want | [Want](js-apis-application-want.md) | 是 | 指示包含要查询的应用Bundle名称的意图。 | +| bundleFlags | number | 是 | 用于指定返回abilityInfo信息。取值范围:参考[BundleFlag说明](#bundleflag)中Ability信息相关flag。 | +| callback | AsyncCallback> | 是 | 程序启动作为入参的回调函数,返回Ability信息。 | **示例:** @@ -1477,7 +1477,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------ | ---- | ------------------------ | -| bundleName | string | 是 | 要查询的应用程序包名称。 | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | **返回值:** | 类型 | 说明 | @@ -1516,7 +1516,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ---------- | --------------------------------------------------- | ---- | -------------------------------------------------------- | -| bundleName | string | 是 | 要查询的应用程序包名称。 | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | | callback | AsyncCallback\<[Want](js-apis-application-want.md)> | 是 | 程序启动作为入参的回调函数,返回拉起指定应用的want对象。 | **示例:** @@ -1539,7 +1539,7 @@ bundle.getLaunchWantForBundle(bundleName, (err, data) => { getNameForUid(uid: number): Promise\ -以异步方法通过uid获取对应的包名,使用Promise形式返回结果。 +以异步方法通过uid获取对应的Bundle名称,使用Promise形式返回结果。 **系统能力:** @@ -1554,7 +1554,7 @@ SystemCapability.BundleManager.BundleFramework **返回值:** | 类型 | 说明 | | ---------------- | --------------------------------- | -| Promise\ | 返回值为Promise对象,Promise中包含指定uid的包名称。 | +| Promise\ | 返回值为Promise对象,Promise中包含指定uid的Bundle名称。 | **示例:** @@ -1574,7 +1574,7 @@ bundle.getNameForUid(uid) getNameForUid(uid: number, callback: AsyncCallback\) : void -以异步方法通过uid获取对应的包名,使用callback形式返回结果。 +以异步方法通过uid获取对应的Bundle名称,使用callback形式返回结果。 **系统能力:** @@ -1582,10 +1582,10 @@ SystemCapability.BundleManager.BundleFramework **参数:** -| 参数名 | 类型 | 必填 | 说明 | -|----------|------------------------|-----|----------------------------| -| uid | number | 是 | 要查询的uid。 | -| callback | AsyncCallback\ | 是 | 程序启动作为入参的回调函数,返回指定uid的包名称。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ---------------------- | ---- | ----------------------------------------------------- | +| uid | number | 是 | 要查询的uid。 | +| callback | AsyncCallback\ | 是 | 程序启动作为入参的回调函数,返回指定uid的Bundle名称。 | **示例:** @@ -1621,10 +1621,10 @@ SystemCapability.BundleManager.BundleFramework **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ----------- | ------ | ---- |-----------------| -| bundleName | string | 是 | 要查询的应用包名。 | -| abilityName | string | 是 | 要查询的Ability组件名。 | +| 参数名 | 类型 | 必填 | 说明 | +| ----------- | ------ | ---- | ------------------------ | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | +| abilityName | string | 是 | 要查询的Ability组件名。 | **返回值:** | 类型 | 说明 | @@ -1667,7 +1667,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ----------- | ---------------------------------------- | ---- |-------------------------------------------------| -| bundleName | string | 是 | 要查询的应用包名称。 | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | | abilityName | string | 是 | 要查询的Ability组件名。 | | callback | AsyncCallback\ | 是 | 程序启动作为入参的回调函数,返回指定[PixelMap](js-apis-image.md)。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-EnterpriseAdminExtensionAbility.md b/zh-cn/application-dev/reference/apis/js-apis-EnterpriseAdminExtensionAbility.md index fde9e837463a5245961b1b29a0c039aa0edafb3b..4b52a7987bec96def8c77a4e8c149822b02662ed 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-EnterpriseAdminExtensionAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-EnterpriseAdminExtensionAbility.md @@ -68,7 +68,7 @@ onBundleAdded(bundleName: string): void | 参数名 | 类型 | 必填 | 说明 | | ----- | ----------------------------------- | ---- | ------- | -| bundleName | string | 是 | 安装应用包名。 | +| bundleName | string | 是 | 安装应用Bundle名称。 | **示例:** @@ -94,7 +94,7 @@ onBundleRemoved(bundleName: string): void | 参数名 | 类型 | 必填 | 说明 | | ----- | ----------------------------------- | ---- | ------- | -| bundleName | string | 是 | 卸载应用包名。 | +| bundleName | string | 是 | 卸载应用Bundle名称。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-ability-context.md b/zh-cn/application-dev/reference/apis/js-apis-ability-context.md index c9412207bf3a6d742051aa70ee05cc1b1d457f19..4a5c542de2a604c1242478d599848e137560c41a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-ability-context.md +++ b/zh-cn/application-dev/reference/apis/js-apis-ability-context.md @@ -31,7 +31,7 @@ class MainAbility extends Ability { | 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | | abilityInfo | AbilityInfo | 是 | 否 | Abilityinfo相关信息 | -| currentHapModuleInfo | HapModuleInfo | 是 | 否 | 当前hap包的信息 | +| currentHapModuleInfo | HapModuleInfo | 是 | 否 | 当前HAP的信息 | | config | [Configuration](js-apis-application-configuration.md) | 是 | 否 | 表示配置信息。 | ## AbilityContext.startAbility @@ -1642,65 +1642,6 @@ startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): } ``` -## AbilityContext.requestPermissionsFromUser - -requestPermissionsFromUser(permissions: Array<string>, requestCallback: AsyncCallback<PermissionRequestResult>) : void; - -拉起弹窗请求用户授权(callback形式)。 - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| permissions | Array<string> | 是 | 权限列表。 | -| callback | AsyncCallback<[PermissionRequestResult](js-apis-inner-application-permissionRequestResult.md)> | 是 | 回调函数,返回接口调用是否成功的结果。 | - -**示例:** - - ```ts - var permissions=['com.example.permission'] - this.context.requestPermissionsFromUser(permissions,(result) => { - console.log('requestPermissionsFromUserresult:' + JSON.stringify(result)); - }); - - ``` - - -## AbilityContext.requestPermissionsFromUser - -requestPermissionsFromUser(permissions: Array<string>) : Promise<PermissionRequestResult>; - -拉起弹窗请求用户授权(promise形式)。 - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| permissions | Array<string> | 是 | 权限列表。 | - -**返回值:** - -| 类型 | 说明 | -| -------- | -------- | -| Promise<[PermissionRequestResult](js-apis-inner-application-permissionRequestResult.md)> | 返回一个Promise,包含接口的结果。 | - -**示例:** - - ```ts - var permissions=['com.example.permission'] - this.context.requestPermissionsFromUser(permissions).then((data) => { - console.log('success:' + JSON.stringify(data)); - }).catch((error) => { - console.log('failed:' + JSON.stringify(error)); - }); - - ``` - - ## AbilityContext.setMissionLabel setMissionLabel(label: string, callback:AsyncCallback<void>): void; @@ -1720,7 +1661,7 @@ setMissionLabel(label: string, callback:AsyncCallback<void>): void; ```ts this.context.setMissionLabel("test",(result) => { - console.log('requestPermissionsFromUserresult:' + JSON.stringify(result)); + console.log('setMissionLabel result:' + JSON.stringify(result)); }); ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-ability-wantConstant.md b/zh-cn/application-dev/reference/apis/js-apis-ability-wantConstant.md index 0b0770c266c89840477e4242b85972395a52dd90..dd2ecaa22d0fb1bf6541edc3abc9800290982954 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-ability-wantConstant.md +++ b/zh-cn/application-dev/reference/apis/js-apis-ability-wantConstant.md @@ -50,7 +50,7 @@ want操作的常数。 | ACTION_MARKET_DOWNLOAD 9+ | ohos.want.action.marketDownload | 表示从应用程序市场下载应用程序的的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | | ACTION_MARKET_CROWDTEST 9+ | ohos.want.action.marketCrowdTest | 指示从应用程序市场众测应用程序的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | | DLP_PARAMS_SANDBOX9+ |ohos.dlp.params.sandbox | 指示沙盒标志的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | -| DLP_PARAMS_BUNDLE_NAME9+ |ohos.dlp.params.bundleName |指示DLP包名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | +| DLP_PARAMS_BUNDLE_NAME9+ |ohos.dlp.params.bundleName |指示DLP Bundle名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | | DLP_PARAMS_MODULE_NAME9+ |ohos.dlp.params.moduleName |指示DLP模块名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | | DLP_PARAMS_ABILITY_NAME9+ |ohos.dlp.params.abilityName |指示DLP能力名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | | DLP_PARAMS_INDEX9+ |ohos.dlp.params.index |指示DLP索引参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-abilityAccessCtrl.md b/zh-cn/application-dev/reference/apis/js-apis-abilityAccessCtrl.md index 4feacadfedbc3739b82d00343c03b9ed88577595..2fcfbe0d08224e054fc382449beadc316a56f342 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-abilityAccessCtrl.md +++ b/zh-cn/application-dev/reference/apis/js-apis-abilityAccessCtrl.md @@ -556,6 +556,95 @@ promise.then(data => { }); ``` +### requestPermissionsFromUser9+ + +requestPermissionsFromUser(context: Context, permissions: Array<Permissions>, requestCallback: AsyncCallback<PermissionRequestResult>) : void; + +用于拉起弹框请求用户授权。使用callback异步回调。 + +**模型约束**:此接口仅可在Stage模型下使用。 + +**系统能力**: SystemCapability.Security.AccessToken + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| context | Context | 是 | 请求权限的应用ability上下文context。 | +| permissions | Array<Permissions> | 是 | 权限列表。 | +| callback | AsyncCallback<[PermissionRequestResult](js-apis-permissionrequestresult.md)> | 是 | 回调函数,返回接口调用是否成功的结果。 | + +**错误码:** + +以下错误码的详细介绍请参见[程序访问控制错误码](../errorcodes/errorcode-access-token.md)。 +| 错误码ID | 错误信息 | +| -------- | -------- | +| 12100001 | Parameter invalid. | + +**示例:** + + ```js +import abilityAccessCtrl from '@ohos.abilityAccessCtrl'; +let atManager = abilityAccessCtrl.createAtManager(); +try { + atManager.requestPermissionsFromUser(this.context, ["ohos.permission.MANAGE_DISPOSED_APP_STATUS"], (err, data)=>{ + console.info("data:" + JSON.stringify(data)); + console.info("data permissions:" + data.permissions); + console.info("data authResults:" + data.authResults); + }); +} catch(err) { + console.log(`catch err->${JSON.stringify(err)}`); +} + ``` + +### requestPermissionsFromUser9+ + +requestPermissionsFromUser(context: Context, permissions: Array<Permissions>) : Promise<PermissionRequestResult>; + +用于拉起弹框请求用户授权。使用promise异步回调。 + +**模型约束**:此接口仅可在Stage模型下使用。 + +**系统能力**: SystemCapability.Security.AccessToken + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| context | Context | 是 | 请求权限的应用ability上下文context。 | +| permissions | Array<Permissions> | 是 | 权限列表。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| Promise<[PermissionRequestResult](js-apis-permissionrequestresult.md)> | 返回一个Promise,包含接口的结果。 | + +**错误码:** + +以下错误码的详细介绍请参见[程序访问控制错误码](../errorcodes/errorcode-access-token.md)。 +| 错误码ID | 错误信息 | +| -------- | -------- | +| 12100001 | Parameter invalid. | + +**示例:** + + ```js +import abilityAccessCtrl from '@ohos.abilityAccessCtrl'; +let atManager = abilityAccessCtrl.createAtManager(); +try { + atManager.requestPermissionsFromUser(this.context, ["ohos.permission.MANAGE_DISPOSED_APP_STATUS"]).then((data) => { + console.info("data:" + JSON.stringify(data)); + console.info("data permissions:" + data.permissions); + console.info("data authResults:" + data.authResults); + }).catch((err) => { + console.info("data:" + JSON.stringify(err)); + }) +} catch(err) { + console.log(`catch err->${JSON.stringify(err)}`); +} + ``` + ### verifyAccessToken(deprecated) verifyAccessToken(tokenID: number, permissionName: string): Promise<GrantStatus> diff --git a/zh-cn/application-dev/reference/apis/js-apis-accessibility.md b/zh-cn/application-dev/reference/apis/js-apis-accessibility.md index 50128354f890d189389d269fbb347b012bee51ff..16b2e9bef518ae6fe58c830c4373a9deaf34b81a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-accessibility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-accessibility.md @@ -51,8 +51,8 @@ import accessibility from '@ohos.accessibility'; | -------- | -------- | -------- | -------- | -------- | | id | string | 是 | 否 | ability id。 | | name | string | 是 | 否 | ability 名。 | -| bundleName | string | 是 | 否 | 包名。 | -| targetBundleNames9+ | Array<string> | 是 | 否 | 关注的目标包名。 | +| bundleName | string | 是 | 否 | Bundle名称。 | +| targetBundleNames9+ | Array<string> | 是 | 否 | 关注的目标Bundle名称。 | | abilityTypes | Array<[AbilityType](#abilitytype)> | 是 | 否 | 辅助应用类型。 | | capabilities | Array<[Capability](#capability)> | 是 | 否 | 辅助应用能力列表。 | | description | string | 是 | 否 | 辅助应用描述。 | @@ -209,7 +209,7 @@ try { console.error('failed to subscribe caption manager style state change, because ' + JSON.stringify(exception)); } ``` - + ### off('enableChange') off(type: 'enableChange', callback?: Callback<boolean>): void; @@ -773,7 +773,7 @@ accessibility.isOpenTouchGuide((err, data) => { } console.info('success data:isOpenTouchGuide : ' + JSON.stringify(data)) }); - ``` +``` ## accessibility.sendEvent(deprecated) diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-ability.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-ability.md index f507dbeb818ec3b7800d31e0083af40c7beb96fc..66610c4d955a7037cc957b2602b791bde8ef72aa 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-ability.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-ability.md @@ -1,18 +1,12 @@ # @ohos.app.ability.Ability (Ability基类) -[UIAbility](js-apis-app-ability-uiAbility.md)和[ExtensionAbility](js-apis-app-ability-extensionAbility.md)的基类,提供系统配置更新回调和系统内存调整回调。 +[UIAbility](js-apis-app-ability-uiAbility.md)和[ExtensionAbility](js-apis-app-ability-extensionAbility.md)的基类,提供系统配置更新回调和系统内存调整回调。不支持开发者直接继承该基类。 > **说明:** > > 本模块首批接口从API version 9 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > 本模块接口仅可在Stage模型下使用。 -## 导入模块 - -```ts -import Ability from '@ohos.app.ability.Ability'; -``` - ## Ability.onConfigurationUpdate onConfigurationUpdate(newConfig: Configuration): void; @@ -29,7 +23,10 @@ onConfigurationUpdate(newConfig: Configuration): void; **示例:** ```ts -class MyAbility extends Ability { +// Ability是顶层基类,不支持开发者直接继承。故以派生类UIAbility举例说明。 +import UIAbility from '@ohos.app.ability.UIAbility'; + +class MyUIAbility extends UIAbility { onConfigurationUpdate(config) { console.log('onConfigurationUpdate, config:' + JSON.stringify(config)); } @@ -40,7 +37,7 @@ class MyAbility extends Ability { onMemoryLevel(level: AbilityConstant.MemoryLevel): void; -当系统已决定调整内存时调用。例如,当该功能在后台运行时,没有足够的内存来运行尽可能多的后台进程时可以使用。 +当内存到达不同级别时系统回调该方法。 **系统能力**:SystemCapability.Ability.AbilityRuntime.AbilityCore @@ -48,12 +45,15 @@ onMemoryLevel(level: AbilityConstant.MemoryLevel): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| level | [AbilityConstant.MemoryLevel](js-apis-app-ability-abilityConstant.md#abilityconstantmemorylevel) | 是 | 回调返回内存微调级别,显示当前内存使用状态。| +| level | [AbilityConstant.MemoryLevel](js-apis-app-ability-abilityConstant.md#abilityconstantmemorylevel) | 是 | 当前内存使用级别。| **示例:** ```ts -class MyAbility extends Ability { +// Ability是顶层基类,不支持开发者直接继承。故以派生类UIAbility举例说明。 +import UIAbility from '@ohos.app.ability.UIAbility'; + +class MyUIAbility extends UIAbility { onMemoryLevel(level) { console.log('onMemoryLevel, level:' + JSON.stringify(level)); } diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-abilityStage.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-abilityStage.md index 8c0eb01de9817dc093e7daf90437d5ffbe03253b..3e7c61deccf4f51a7232bd60d405f0cf6690041b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-abilityStage.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-abilityStage.md @@ -1,6 +1,6 @@ # @ohos.app.ability.AbilityStage (AbilityStage) -AbilityStage是HAP包的运行时类。 +AbilityStage是HAP的运行时类。 AbilityStage类提供在HAP加载的时候,通知开发者,可以在此进行该HAP的初始化(如资源预加载,线程创建等)能力。 @@ -44,9 +44,9 @@ onAcceptWant(want: [Want](js-apis-app-ability-want.md)): string; **参数:** - | 参数名 | 类型 | 必填 | 说明 | - | -------- | -------- | -------- | -------- | - | want | [Want](js-apis-app-ability-want.md) | 是 | Want类型参数,传入需要启动的ability的信息,如ability名称,包名等。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| want | [Want](js-apis-app-ability-want.md) | 是 | Want类型参数,传入需要启动的ability的信息,如Ability名称,Bundle名称等。 | **返回值:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-appManager.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-appManager.md index 7ebefaa0e95f93f1aba05ec7b24a0aae020460fb..5b0b8d8815ad08341ae4382e8ca4949f25fc2dff 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-appManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-appManager.md @@ -343,7 +343,7 @@ off(type: "applicationState", observerId: number, callback: AsyncCallback\ **参数:** - | 参数名 | 类型 | 必填 | 说明 | - | -------- | -------- | -------- | -------- | - | bundleName | string | 是 | 应用包名。 | - | accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| bundleName | string | 是 | 应用Bundle名称。 | +| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | **示例:** @@ -560,7 +560,7 @@ killProcessWithAccount(bundleName: string, accountId: number, callback: AsyncCal | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | bundleName | string | 是 | 应用包名。 | + | bundleName | string | 是 | 应用Bundle名称。 | | accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | | callback | AsyncCallback\ | 是 | 以回调方式返回接口运行结果,可进行错误处理或其他自定义处理。 | @@ -583,7 +583,7 @@ appManager.killProcessWithAccount(bundleName, accountId, killProcessWithAccountC killProcessesByBundleName(bundleName: string, callback: AsyncCallback\); -通过包名终止进程。 +通过Bundle名称终止进程。 **需要权限**:ohos.permission.CLEAN_BACKGROUND_PROCESSES @@ -595,7 +595,7 @@ killProcessesByBundleName(bundleName: string, callback: AsyncCallback\); | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| bundleName | string | 是 | 表示包名。 | +| bundleName | string | 是 | 表示Bundle名称。 | | callback | AsyncCallback\ | 是 | 以回调方式返回接口运行结果,可进行错误处理或其他自定义处理。 | **示例:** @@ -620,7 +620,7 @@ try { killProcessesByBundleName(bundleName: string): Promise\; -通过包名终止进程。 +通过Bundle名称终止进程。 **需要权限**:ohos.permission.CLEAN_BACKGROUND_PROCESSES @@ -632,7 +632,7 @@ killProcessesByBundleName(bundleName: string): Promise\; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| bundleName | string | 是 | 表示应用包名。 | +| bundleName | string | 是 | 表示Bundle名称。 | **返回值:** @@ -659,7 +659,7 @@ try { clearUpApplicationData(bundleName: string, callback: AsyncCallback\); -通过包名清除应用数据。 +通过Bundle名称清除应用数据。 **需要权限**:ohos.permission.CLEAN_APPLICATION_DATA @@ -671,7 +671,7 @@ clearUpApplicationData(bundleName: string, callback: AsyncCallback\); | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| bundleName | string | 是 | 表示包名。 | +| bundleName | string | 是 | 表示Bundle名称。 | | callback | AsyncCallback\ | 是 | 以回调方式返回接口运行结果,可进行错误处理或其他自定义处理。 | **示例:** @@ -696,7 +696,7 @@ try { clearUpApplicationData(bundleName: string): Promise\; -通过包名清除应用数据。 +通过Bundle名称清除应用数据。 **需要权限**:ohos.permission.CLEAN_APPLICATION_DATA @@ -708,7 +708,7 @@ clearUpApplicationData(bundleName: string): Promise\; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| bundleName | string | 是 | 表示包名。 | +| bundleName | string | 是 | 表示Bundle名称。 | **返回值:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-common.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-common.md index 7b39d012c9ff117b63d14f3f8f4ebbbe411a0172..a4f459ec1c423e310c375f900f8f26e1620c3cdf 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-common.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-common.md @@ -52,11 +52,11 @@ let connectOptions: common.ConnectOptions; ## AreaMode -访问的文件分区,每个文件分区有对应自己的内容。 +数据加密等级的枚举。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core | 名称 | 值 | 说明 | | --------------- | ---- | --------------- | -| EL1 | 0 | 设备级加密区。 | -| EL2 | 1 | 用户凭据加密区。默认为EL2。 | \ No newline at end of file +| EL1 | 0 | 设备级加密区,设备开机后可访问的数据区。 | +| EL2 | 1 | 用户级加密区,设备开机,首次输入密码后才能够访问的数据区。 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-errorManager.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-errorManager.md index 78d2c5cec485c81805f227814aafb501974aef54..9b6bec6cf26ff0f7b8539c6a17b1c6755de4efd8 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-errorManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-errorManager.md @@ -23,7 +23,7 @@ on(type: "error", observer: ErrorObserver): number; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| type | string | 是 | 调用接口类型 | +| type | string | 是 | 填写"error",表示错误观察器。 | | observer | [ErrorObserver](./js-apis-inner-application-errorObserver.md) | 是 | 返回观察者的数字代码。 | **示例:** @@ -53,7 +53,7 @@ off(type: "error", observerId: number, callback: AsyncCallback\): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| type | string | 是 | 调用接口类型 | +| type | string | 是 | 填写"error",表示错误观察器。 | | observerId | number | 是 | 返回观察者的数字代码。 | | callback | AsyncCallback\ | 是 | 表示指定的回调方法。 | @@ -86,7 +86,7 @@ off(type: "error", observerId: number): Promise\; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| type | string | 是 | 调用接口类型 | +| type | string | 是 | 填写"error",表示错误观察器。 | | observerId | number | 是 | 返回观察者的数字代码。 | **返回值:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-extensionAbility.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-extensionAbility.md index 00f29740f754294aba76d816eb465a01c873f8a5..87c394fc1db9e2a8bcebcc34d5628ebee23da840 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-extensionAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-extensionAbility.md @@ -1,31 +1,10 @@ # @ohos.app.ability.ExtensionAbility (扩展能力基类) -ExtensionAbility是特定场景扩展能力的基类,提供系统配置更新回调和系统内存调整回调。。 +ExtensionAbility是特定场景扩展能力的基类,继承自[Ability](js-apis-app-ability-ability.md),未新增属性和方法。不支持开发者直接继承该基类。 > **说明:** > > 本模块首批接口从API version 9 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > 本模块接口仅可在Stage模型下使用。 -## 导入模块 - -```ts -import ExtensionAbility from '@ohos.app.ability.ExtensionAbility'; -``` - -**系统能力**:SystemCapability.Ability.AbilityRuntime.AbilityCore - -**示例:** - - ```ts - class MyExtensionAbility extends ExtensionAbility { - onConfigurationUpdated(config) { - console.log('onConfigurationUpdated, config:' + JSON.stringify(config)); - } - - onMemoryLevel(level) { - console.log('onMemoryLevel, level:' + JSON.stringify(level)); - } - } - ``` - +**系统能力**:SystemCapability.Ability.AbilityRuntime.AbilityCore \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-missionManager.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-missionManager.md index fad982da3616da3355b5f28538cc36663db829ce..bcb46120dba1dc2ab2414246106d1dadddf70f0c 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-missionManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-missionManager.md @@ -20,7 +20,7 @@ ohos.permission.MANAGE_MISSIONS on(type:"mission", listener: MissionListener): number; -注册系统任务状态监听。 +注册系统任务状态监听器。 **需要权限**:ohos.permission.MANAGE_MISSIONS @@ -32,13 +32,13 @@ on(type:"mission", listener: MissionListener): number; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | listener | MissionListener | 是 | 系统任务监听方法。 | + | listener | MissionListener | 是 | 系统任务监听器。 | **返回值:** | 类型 | 说明 | | -------- | -------- | - | number | 监听方法的index值,由系统创建,在注册系统任务状态监听时分配,和监听方法一一对应 。 | + | number | 监听器的index值,由系统创建,在注册系统任务状态监听时分配,和监听器一一对应 。 | **示例:** @@ -51,7 +51,8 @@ var listener = { onMissionSnapshotChanged: function (mission) {console.log("--------onMissionSnapshotChanged-------")}, onMissionMovedToFront: function (mission) {console.log("--------onMissionMovedToFront-------")}, onMissionIconUpdated: function (mission, icon) {console.log("--------onMissionIconUpdated-------")}, - onMissionClosed: function (mission) {console.log("--------onMissionClosed-------")} + onMissionClosed: function (mission) {console.log("--------onMissionClosed-------")}, + onMissionLabelUpdated: function (mission) {console.log("--------onMissionLabelUpdated-------")} }; var listenerId = -1; @@ -105,7 +106,7 @@ export default class MainAbility extends UIAbility { off(type: "mission", listenerId: number, callback: AsyncCallback<void>): void; -取消任务状态监听。 +解注册任务状态监听器。 **需要权限**:ohos.permission.MANAGE_MISSIONS @@ -117,7 +118,7 @@ off(type: "mission", listenerId: number, callback: AsyncCallback<void>): v | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | listenerId | number | 是 | 系统任务状态监听方法的index值,和监听方法一一对应,由registerMissionListener方法返回。 | + | listenerId | number | 是 | 系统任务状态监器法的index值,和监听器一一对应,由on方法返回。 | | callback | AsyncCallback<void> | 是 | 执行结果回调函数。 | **示例:** @@ -131,7 +132,8 @@ var listener = { onMissionSnapshotChanged: function (mission) {console.log("--------onMissionSnapshotChanged-------")}, onMissionMovedToFront: function (mission) {console.log("--------onMissionMovedToFront-------")}, onMissionIconUpdated: function (mission, icon) {console.log("--------onMissionIconUpdated-------")}, - onMissionClosed: function (mission) {console.log("--------onMissionClosed-------")} + onMissionClosed: function (mission) {console.log("--------onMissionClosed-------")}, + onMissionLabelUpdated: function (mission) {console.log("--------onMissionLabelUpdated-------")} }; var listenerId = -1; @@ -185,7 +187,7 @@ export default class MainAbility extends UIAbility { off(type: "mission", listenerId: number): Promise<void>; -取消任务状态监听,以promise方式返回执行结果。 +解注册任务状态监听,以promise方式返回执行结果。 **需要权限**:ohos.permission.MANAGE_MISSIONS @@ -197,7 +199,7 @@ off(type: "mission", listenerId: number): Promise<void>; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | listenerId | number | 是 | 系统任务状态监听方法的index值,和监听方法一一对应,由registerMissionListener方法返回。 | + | listenerId | number | 是 | 系统任务状态监听器的index值,和监听器一一对应,由on方法返回。 | **返回值:** @@ -216,7 +218,8 @@ var listener = { onMissionSnapshotChanged: function (mission) {console.log("--------onMissionSnapshotChanged-------")}, onMissionMovedToFront: function (mission) {console.log("--------onMissionMovedToFront-------")}, onMissionIconUpdated: function (mission, icon) {console.log("--------onMissionIconUpdated-------")}, - onMissionClosed: function (mission) {console.log("--------onMissionClosed-------")} + onMissionClosed: function (mission) {console.log("--------onMissionClosed-------")}, + onMissionLabelUpdated: function (mission) {console.log("--------onMissionLabelUpdated-------")} }; var listenerId = -1; @@ -292,7 +295,12 @@ getMissionInfo(deviceId: string, missionId: number, callback: AsyncCallback<M try { var allMissions=missionManager.getMissionInfos("",10).catch(function(err){console.log(err);}); missionManager.getMissionInfo("", allMissions[0].missionId, (error, mission) => { - console.log("getMissionInfo is called, error.code = " + error.code) + if (error.code) { + console.log("getMissionInfo failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } + console.log("mission.missionId = " + mission.missionId); console.log("mission.runningState = " + mission.runningState); console.log("mission.lockedState = " + mission.lockedState); @@ -369,7 +377,11 @@ getMissionInfos(deviceId: string, numMax: number, callback: AsyncCallback<Arr ```ts try { missionManager.getMissionInfos("", 10, (error, missions) => { - console.log("getMissionInfos is called, error.code = " + error.code); + if (error.code) { + console.log("getMissionInfo failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); }) @@ -442,14 +454,22 @@ getMissionSnapShot(deviceId: string, missionId: number, callback: AsyncCallback& ```ts try { missionManager.getMissionInfos("", 10, (error, missions) => { - console.log("getMissionInfos is called, error.code = " + error.code); + if (error.code) { + console.log("getMissionInfos failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); var id = missions[0].missionId; - missionManager.getMissionSnapShot("", id, (error, snapshot) => { - console.log("getMissionSnapShot is called, error.code = " + error.code); - console.log("bundleName = " + snapshot.ability.bundleName); + missionManager.getMissionSnapShot("", id, (err, snapshot) => { + if (err.code) { + console.log("getMissionInfos failed, err.code:" + JSON.stringify(err.code) + + "err.message:" + JSON.stringify(err.message)); + return; + } + console.log("bundleName = " + snapshot.ability.bundleName); }) }) } catch (paramError) { @@ -507,7 +527,7 @@ getMissionSnapShot(deviceId: string, missionId: number): Promise<MissionSnaps getLowResolutionMissionSnapShot(deviceId: string, missionId: number, callback: AsyncCallback\): void; -使用给定的任务ID获取任务低分辨率快照。 +获取任务低分辨率快照。 **需要权限**:ohos.permission.MANAGE_MISSIONS @@ -528,13 +548,21 @@ getLowResolutionMissionSnapShot(deviceId: string, missionId: number, callback: A ```ts try { missionManager.getMissionInfos("", 10, (error, missions) => { - console.log("getMissionInfos is called, error.code = " + error.code); + if (error.code) { + console.log("getMissionInfos failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); var id = missions[0].missionId; missionManager.getLowResolutionMissionSnapShot("", id, (error, snapshot) => { - console.log("getLowResolutionMissionSnapShot is called, error.code = " + error.code); + if (error.code) { + console.log("getLowResolutionMissionSnapShot failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } console.log("bundleName = " + snapshot.ability.bundleName); }) }) @@ -548,7 +576,7 @@ getLowResolutionMissionSnapShot(deviceId: string, missionId: number, callback: A getLowResolutionMissionSnapShot(deviceId: string, missionId: number): Promise\; -使用给定的任务ID获取任务低分辨率快照。 +获取任务低分辨率快照。 **需要权限**:ohos.permission.MANAGE_MISSIONS @@ -614,7 +642,12 @@ lockMission(missionId: number, callback: AsyncCallback<void>): void; ```ts try { missionManager.getMissionInfos("", 10, (error, missions) => { - console.log("getMissionInfos is called, error.code = " + error.code); + if (error.code) { + console.log("getMissionInfos failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } + console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); var id = missions[0].missionId; @@ -698,7 +731,11 @@ unlockMission(missionId: number, callback: AsyncCallback<void>): void; ```ts try { missionManager.getMissionInfos("", 10, (error, missions) => { - console.log("getMissionInfos is called, error.code = " + error.code); + if (error.code) { + console.log("getMissionInfos failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); var id = missions[0].missionId; @@ -785,7 +822,11 @@ clearMission(missionId: number, callback: AsyncCallback<void>): void; ```ts try { missionManager.getMissionInfos("", 10, (error, missions) => { - console.log("getMissionInfos is called, error.code = " + error.code); + if (error.code) { + console.log("getMissionInfos failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); var id = missions[0].missionId; @@ -917,7 +958,11 @@ moveMissionToFront(missionId: number, callback: AsyncCallback<void>): void ```ts try { missionManager.getMissionInfos("", 10, (error, missions) => { - console.log("getMissionInfos is called, error.code = " + error.code); + if (error.code) { + console.log("getMissionInfos failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); var id = missions[0].missionId; @@ -957,7 +1002,11 @@ moveMissionToFront(missionId: number, options: StartOptions, callback: AsyncCall ```ts try { missionManager.getMissionInfos("", 10, (error, missions) => { - console.log("getMissionInfos is called, error.code = " + error.code); + if (error.code) { + console.log("getMissionInfos failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); var id = missions[0].missionId; diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-quickFixManager.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-quickFixManager.md index a7a78fa0134de40aaaf00b086b7a36bfd79c00a7..e506298900dd3804470993b0c3dcc7b1817035cd 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-quickFixManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-quickFixManager.md @@ -22,7 +22,7 @@ hap级别的快速修复信息。 | 名称 | 类型 | 必填 | 说明 | | ----------- | -------------------- | ---- | ------------------------------------------------------------ | -| moduleName | string | 是 | hap包的名称。 | +| moduleName | string | 是 | HAP的名称。 | | originHapHash | string | 是 | 指示hap的哈希值。 | | quickFixFilePath | string | 是 | 指示快速修复文件的安装路径。 | @@ -36,7 +36,7 @@ hap级别的快速修复信息。 | 名称 | 类型 | 必填 | 说明 | | ----------- | -------------------- | ---- | ------------------------------------------------------------ | -| bundleName | string | 是 | 应用的包名。 | +| bundleName | string | 是 | 应用Bundle名称。 | | bundleVersionCode | number | 是 | 应用的版本号。 | | bundleVersionName | string | 是 | 应用版本号的文字描述。 | | quickFixVersionCode | number | 是 | 快速修复补丁包的版本号。 | @@ -132,10 +132,10 @@ getApplicationQuickFixInfo(bundleName: string, callback: AsyncCallback\ | 是 | 应用的快速修复信息。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| bundleName | string | 是 |应用Bundle名称。 | +| callback | AsyncCallback\<[ApplicationQuickFixInfo](#applicationquickfixinfo)> | 是 | 应用的快速修复信息。 | **示例:** @@ -168,9 +168,9 @@ getApplicationQuickFixInfo(bundleName: string): Promise\ **说明:** > @@ -21,4 +21,4 @@ import StartOptions from '@ohos.app.ability.StartOptions'; | 名称 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | [windowMode](js-apis-application-abilityConstant.md#abilityconstantwindowmode) | number | 否 | 窗口模式。 | -| displayId | number | 否 | 显示ID。 | +| displayId | number | 否 | 屏幕ID。默认是0,表示当前屏幕。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-uiAbility.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-uiAbility.md index bc9c8806d8b71b5fc04b42978c563d28c53f7678..010aaeba1c0f57b1ffa1ad3f7686a7ac1ecc1bd3 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-uiAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-uiAbility.md @@ -225,7 +225,7 @@ onNewWant(want: Want, launchParams: UIAbilityConstant.LaunchParam): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| want | [Want](js-apis-app-ability-want.md) | 是 | Want类型参数,如ability名称,包名等。 | +| want | [Want](js-apis-app-ability-want.md) | 是 | Want类型参数,如Ability名称,Bundle名称等。 | | launchParams | UIAbilityConstant.LaunchParam | 是 | UIAbility启动的原因、上次异常退出的原因信息。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-wantAgent.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-wantAgent.md index 0e69980a5d583c65ed3331dbad63acbc7ba329e5..eb15383d747331ef85ae792d834d27580d53eb3a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-wantAgent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-wantAgent.md @@ -1,6 +1,6 @@ # @ohos.app.ability.wantAgent (WantAgent模块) -app.ability.WantAgent模块提供了触发、取消、比较WantAgent实例和获取bundle名称的能力,包括创建WantAgent实例、获取实例的用户ID、获取want信息等。该模块将会取代[@ohos.wantAgent](js-apis-wantAgent.md)模块,建议优先使用本模块。 +app.ability.WantAgent模块提供了创建WantAgent实例、获取实例的用户ID、获取want信息、比较WantAgent实例和获取bundle名称等能力。该模块将会取代[@ohos.wantAgent](js-apis-wantAgent.md)模块,建议优先使用本模块。 > **说明:** > @@ -1042,10 +1042,6 @@ try{ } ``` - -//TODO WantAgent.trigger Callback - - ## WantAgent.trigger trigger(agent: WantAgent, triggerInfo: TriggerInfo, callback?: AsyncCallback\): void @@ -1059,7 +1055,7 @@ trigger(agent: WantAgent, triggerInfo: TriggerInfo, callback?: AsyncCallback\ | 否 | 主动激发WantAgent实例的回调方法。 | **错误码:** @@ -1096,7 +1092,7 @@ trigger(agent: WantAgent, triggerInfo: TriggerInfo, callback?: AsyncCallback\**系统API**:该接口为系统接口,三方应用不支持调用。 | | ACTION_MARKET_CROWDTEST | ohos.want.action.marketCrowdTest | 指示从应用程序市场众测应用程序的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | | DLP_PARAMS_SANDBOX |ohos.dlp.params.sandbox | 指示沙盒标志的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | -| DLP_PARAMS_BUNDLE_NAME |ohos.dlp.params.bundleName |指示DLP包名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | +| DLP_PARAMS_BUNDLE_NAME |ohos.dlp.params.bundleName |指示DLP Bundle名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | | DLP_PARAMS_MODULE_NAME |ohos.dlp.params.moduleName |指示DLP模块名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | | DLP_PARAMS_ABILITY_NAME |ohos.dlp.params.abilityName |指示DLP能力名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | | DLP_PARAMS_INDEX |ohos.dlp.params.index |指示DLP索引参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-form-formExtensionAbility.md b/zh-cn/application-dev/reference/apis/js-apis-app-form-formExtensionAbility.md index 6acbe99c6ea59a3ffe9e23622721af1230d5ff06..4175a69a6016cecd855876af5ebbd0c7111c3fb6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-form-formExtensionAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-form-formExtensionAbility.md @@ -231,7 +231,7 @@ onAcquireFormState?(want: Want): formInfo.FormState; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| want | [Want](js-apis-application-want.md) | 是 | want表示获取卡片状态的描述。描述包括包名称、能力名称、模块名称、卡片名和卡片维度。 | +| want | [Want](js-apis-application-want.md) | 是 | want表示获取卡片状态的描述。描述包括Bundle名称、能力名称、模块名称、卡片名和卡片维度。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-form-formHost.md b/zh-cn/application-dev/reference/apis/js-apis-app-form-formHost.md index f7e0324ca30d9fc23fb7eeda1bb7d12731c1f9ad..d903617a76e09a06aac287347d8ba863860a101c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-form-formHost.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-form-formHost.md @@ -857,7 +857,7 @@ getFormsInfo(bundleName: string, callback: AsyncCallback<Array<formInfo.Fo | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------- | -| bundleName | string | 是 | 要查询的应用程序包名称。 | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | | callback | AsyncCallback<Array<[FormInfo](js-apis-app-form-formInfo.md)>> | 是 | 回调函数。当获取设备上指定应用程序提供的卡片信息成功,err为undefined,data为查询到的卡片信息;否则为错误对象。 | **错误码:** @@ -897,7 +897,7 @@ getFormsInfo(bundleName: string, moduleName: string, callback: AsyncCallback< | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------- | -| bundleName | string | 是 | 要查询的应用程序包名称。 | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | | moduleName | string | 是 | 要查询的模块名称。 | | callback | AsyncCallback<Array<[FormInfo](js-apis-app-form-formInfo.md)>> | 是 | 回调函数。当获取设备上指定应用程序提供的卡片信息成功,err为undefined,data为查询到的卡片信息;否则为错误对象。 | @@ -938,7 +938,7 @@ getFormsInfo(bundleName: string, moduleName?: string): Promise<Array<formI | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------- | -| bundleName | string | 是 | 要查询的应用程序包名称。 | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | | moduleName | string | 否 | 要查询的模块名称。 | **返回值:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-form-formInfo.md b/zh-cn/application-dev/reference/apis/js-apis-app-form-formInfo.md index 40a7493130806351bd0ff2c242e4b1a5687eaae1..5cc2bab3d9de476e4e07cf84f351a61283f946d8 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-form-formInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-form-formInfo.md @@ -20,8 +20,8 @@ import formInfo from '@ohos.app.form.formInfo'; | 名称 | 类型 | 可读 | 可写 | 说明 | | ----------- | -------- | -------- | -------------------- | ------------------------------------------------------------ | -| bundleName | string | 是 | 否 | 卡片所属包的包名。 | -| moduleName | string | 是 | 否 | 卡片所属模块的模块名。 | +| bundleName | string | 是 | 否 | 卡片所属包的Bundle名称。 | +| moduleName | string | 是 | 否 | 卡片所属模块的模块名称。 | | abilityName | string | 是 | 否 | 卡片所属的Ability名称。 | | name | string | 是 | 否 | 卡片名称。 | | description | string | 是 | 否 | 卡片描述。 | @@ -31,7 +31,7 @@ import formInfo from '@ohos.app.form.formInfo'; | isDefault | boolean | 是 | 否 | 卡片是否是默认卡片。 | | updateEnabled | boolean | 是 | 否 | 卡片是否使能更新。 | | formVisibleNotify | string | 是 | 否 | 卡片是否使能可见通知。 | -| relatedBundleName | string | 是 | 否 | 卡片所属的相关联包名。 | +| relatedBundleName | string | 是 | 否 | 卡片所属的相关联Bundle名称。 | | scheduledUpdateTime | string | 是 | 否 | 卡片更新时间。 | | formConfigAbility | string | 是 | 否 | 卡片配置ability。指定长按卡片弹出的选择框内,编辑选项所对应的ability。 | | updateDuration | string | 是 | 否 | 卡片更新周期。 | @@ -102,7 +102,7 @@ import formInfo from '@ohos.app.form.formInfo'; | TEMPORARY_KEY | "ohos.extra.param.key.form_temporary" | 临时卡片。 | | ABILITY_NAME_KEY | "ohos.extra.param.key.ability_name" | ability名称 | | DEVICE_ID_KEY | "ohos.extra.param.key.device_id" | 设备标识。
**系统接口**: 此接口为系统接口。 | -| BUNDLE_NAME_KEY | "ohos.extra.param.key.bundle_name" | 指示指定要获取的捆绑包名称的键。| +| BUNDLE_NAME_KEY | "ohos.extra.param.key.bundle_name" | 指示指定要获取的捆绑Bundle名称的键。 | ## FormDimension diff --git a/zh-cn/application-dev/reference/apis/js-apis-appControl.md b/zh-cn/application-dev/reference/apis/js-apis-appControl.md index c8a6d76f550bfae81c21c6a35eafbe03d01c256b..9828a6572aca1404994332613f241686102babeb 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-appControl.md +++ b/zh-cn/application-dev/reference/apis/js-apis-appControl.md @@ -30,7 +30,7 @@ setDisposedStatus(appId: string, disposedWant: Want): Promise\ | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------ | ---- | --------------------------------------- | -| appId | string | 是 | 需要设置处置状态的应用的appId。
appId是应用的唯一标识,由应用的包名和签名信息决定,获取方法参见[获取应用的appId](#获取应用的appid)。 | +| appId | string | 是 | 需要设置处置状态的应用的appId。
appId是应用的唯一标识,由应用Bundle名称和签名信息决定,获取方法参见[获取应用的appId](#获取应用的appid)。 | | disposedWant | Want | 是 | 对应用的处置意图。 | **返回值:** @@ -81,7 +81,7 @@ setDisposedStatus(appId: string, disposedWant: Want, callback: AsyncCallback\ appId是应用的唯一标识,由应用的包名和签名信息决定,获取方法参见[获取应用的appId](#获取应用的appid)。 | +| appId | string | 是 | 需要设置处置的应用的appId
appId是应用的唯一标识,由应用Bundle名称和签名信息决定,获取方法参见[获取应用的appId](#获取应用的appid)。 | | disposedWant | Want | 是 | 对应用的处置意图。 | | callback | AsyncCallback\ | 是 | 回调函数,当设置处置状态成功,err为undefined,否则为错误对象。 | @@ -128,7 +128,7 @@ getDisposedStatus(appId: string): Promise\; | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------ | ---- | --------------------------------------- | -| appId | string | 是 | 要查询的应用的appId
appId是应用的唯一标识,由应用的包名和签名信息决定,获取方法参见[获取应用的appId](#获取应用的appid)。 | +| appId | string | 是 | 要查询的应用的appId
appId是应用的唯一标识,由应用Bundle名称和签名信息决定,获取方法参见[获取应用的appId](#获取应用的appid)。 | **返回值:** @@ -177,7 +177,7 @@ getDisposedStatus(appId: string, callback: AsyncCallback\): void; | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------ | ---- | --------------------------------------- | -| appId | string | 是 | 要查询的应用的appId
appId是应用的唯一标识,由应用的包名和签名信息决定,获取方法参见[获取应用的appId](#获取应用的appid)。 | +| appId | string | 是 | 要查询的应用的appId
appId是应用的唯一标识,由应用Bundle名称和签名信息决定,获取方法参见[获取应用的appId](#获取应用的appid)。 | | callback | AsyncCallback\ | 是 | 回调函数。当获取应用的处置状态成功时,err为undefined,data为获取到的处置状态;否则为错误对象。 | **错误码:** @@ -222,7 +222,7 @@ deleteDisposedStatus(appId: string): Promise\ | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------ | ---- | --------------------------------------- | -| appId | string | 是 | 要删除处置状态的应用的appId
appId是应用的唯一标识,由应用的包名和签名信息决定,获取方法参见[获取应用的appId](#获取应用的appid)。 | +| appId | string | 是 | 要删除处置状态的应用的appId
appId是应用的唯一标识,由应用Bundle名称和签名信息决定,获取方法参见[获取应用的appId](#获取应用的appid)。 | **返回值:** @@ -271,7 +271,7 @@ deleteDisposedStatus(appId: string, callback: AsyncCallback\) : void | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------ | ---- | --------------------------------------- | -| appId | string | 是 | 要查询的应用的appId。
appId是应用的唯一标识,由应用的包名和签名信息决定,获取方法参见[获取应用的appId](#获取应用的appid)。 | +| appId | string | 是 | 要查询的应用的appId。
appId是应用的唯一标识,由应用Bundle名称和签名信息决定,获取方法参见[获取应用的appId](#获取应用的appid)。 | | callback | AsyncCallback\ | 是 | 回调函数,当设置处置状态成功时,err返回undefined。否则回调函数返回具体错误对象。 | **错误码:** @@ -301,7 +301,7 @@ try { ## 获取应用的appId -appId是应用的唯一标识,由应用的包名和签名信息决定,可以通过[getBundleInfo](js-apis-bundleManager.md#bundlemanagergetbundleinfo)接口获取。 +appId是应用的唯一标识,由应用Bundle名称和签名信息决定,可以通过[getBundleInfo](js-apis-bundleManager.md#bundlemanagergetbundleinfo)接口获取。 **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-ability.md b/zh-cn/application-dev/reference/apis/js-apis-application-ability.md index 892e1d64dc7e9db9ac953f7178e8d3c0d8e41ab8..2792db893d92bd478e8fbdc649b4d42d0a2a26cb 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-ability.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-ability.md @@ -225,10 +225,10 @@ onNewWant(want: Want, launchParams: AbilityConstant.LaunchParam): void; **参数:** - | 参数名 | 类型 | 必填 | 说明 | - | -------- | -------- | -------- | -------- | - | want | [Want](js-apis-application-want.md) | 是 | Want类型参数,如ability名称,包名等。 | - | launchParams | AbilityConstant.LaunchParam | 是 | Ability启动的原因、上次异常退出的原因信息。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| want | [Want](js-apis-application-want.md) | 是 | Want类型参数,如Ability名称,Bundle名称等。 | +| launchParams | AbilityConstant.LaunchParam | 是 | Ability启动的原因、上次异常退出的原因信息。 | **示例:** @@ -724,7 +724,7 @@ off(method: string): void; } } ``` - + ## OnReleaseCallBack (msg: string): void; diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-abilityStage.md b/zh-cn/application-dev/reference/apis/js-apis-application-abilityStage.md index 1fe541aa5524c3c340276b00940a2dcf5cfc81ff..4717cc9388c56c7d4eeede9bbf0cdb2fdcf4fc7c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-abilityStage.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-abilityStage.md @@ -1,6 +1,6 @@ # @ohos.application.AbilityStage (AbilityStage) -AbilityStage是HAP包的运行时类。 +AbilityStage是HAP的运行时类。 AbilityStage模块提供在HAP加载的时候,通知开发者,可以在此进行该HAP的初始化(如资源预加载,线程创建等)能力。 @@ -46,13 +46,13 @@ onAcceptWant(want: Want): string; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| want | [Want](js-apis-application-want.md) | 是 | Want类型参数,传入需要启动的ability的信息,如ability名称,包名等。 | +| want | [Want](js-apis-application-want.md) | 是 | Want类型参数,传入需要启动的UIAbility的信息,如Ability名称,Bundle名称等。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| string | 用户返回一个ability标识,如果之前启动过标识的ability,不创建新的实例并拉回栈顶,否则创建新的实例并启动。 | +| string | 用户返回一个UIAbility标识,如果之前启动过标识的UIAbility实例,不创建新的实例并拉回栈顶,否则创建新的实例并启动。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-appManager.md b/zh-cn/application-dev/reference/apis/js-apis-application-appManager.md index 1dbb0f1e39cb370ef535f3e7628e1a1cbf869f9f..07ee7f8be1734a7e3f0371a8bed705ba85e3d695 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-appManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-appManager.md @@ -358,7 +358,7 @@ unregisterApplicationStateObserver(observerId: number, callback: AsyncCallback\ **系统API**:该接口为系统接口,三方应用不支持调用。 **参数:** - + | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | observerId | number | 是 | 表示观察者的编号代码。 | @@ -490,10 +490,10 @@ killProcessWithAccount(bundleName: string, accountId: number): Promise\ **参数:** - | 参数名 | 类型 | 必填 | 说明 | - | -------- | -------- | -------- | -------- | - | bundleName | string | 是 | 应用包名。 | - | accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| bundleName | string | 是 | 应用Bundle名称。 | +| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | **示例:** @@ -524,11 +524,11 @@ killProcessWithAccount(bundleName: string, accountId: number, callback: AsyncCal **参数:** - | 参数名 | 类型 | 必填 | 说明 | - | -------- | -------- | -------- | -------- | - | bundleName | string | 是 | 应用包名。 | - | accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | - | callback | AsyncCallback\ | 是 | 切断account进程的回调函数。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| bundleName | string | 是 | 应用Bundle名称。 | +| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | +| callback | AsyncCallback\ | 是 | 切断account进程的回调函数。 | **示例:** @@ -549,7 +549,7 @@ appManager.killProcessWithAccount(bundleName, accountId, killProcessWithAccountC killProcessesByBundleName(bundleName: string, callback: AsyncCallback\); -通过包名终止进程。 +通过Bundle名称终止进程。 **需要权限**:ohos.permission.CLEAN_BACKGROUND_PROCESSES @@ -561,7 +561,7 @@ killProcessesByBundleName(bundleName: string, callback: AsyncCallback\); | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| bundleName | string | 是 | 表示包名。 | +| bundleName | string | 是 | 表示Bundle名称。 | | callback | AsyncCallback\ | 是 | 表示指定的回调方法。 | **示例:** @@ -582,7 +582,7 @@ killProcessesByBundleName(bundleName: string, callback: AsyncCallback\); killProcessesByBundleName(bundleName: string): Promise\; -通过包名终止进程。 +通过Bundle名称终止进程。 **需要权限**:ohos.permission.CLEAN_BACKGROUND_PROCESSES @@ -594,7 +594,7 @@ killProcessesByBundleName(bundleName: string): Promise\; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| bundleName | string | 是 | 表示包名。 | +| bundleName | string | 是 | 表示Bundle名称。 | **返回值:** @@ -603,9 +603,9 @@ killProcessesByBundleName(bundleName: string): Promise\; | Promise\ | 返回执行结果。 | **示例:** - + ```ts - var bundleName = 'bundleName'; + var bundleName = 'com.example.myapplication'; appManager.killProcessesByBundleName(bundleName) .then((data) => { console.log('------------ killProcessesByBundleName success ------------', data); @@ -619,7 +619,7 @@ killProcessesByBundleName(bundleName: string): Promise\; clearUpApplicationData(bundleName: string, callback: AsyncCallback\); -通过包名清除应用数据。 +通过Bundle名称清除应用数据。 **需要权限**:ohos.permission.CLEAN_APPLICATION_DATA @@ -631,7 +631,7 @@ clearUpApplicationData(bundleName: string, callback: AsyncCallback\); | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| bundleName | string | 是 | 表示包名。 | +| bundleName | string | 是 | 表示Bundle名称。 | | callback | AsyncCallback\ | 是 | 表示指定的回调方法。 | **示例:** @@ -652,7 +652,7 @@ clearUpApplicationData(bundleName: string, callback: AsyncCallback\); clearUpApplicationData(bundleName: string): Promise\; -通过包名清除应用数据。 +通过Bundle名称清除应用数据。 **需要权限**:ohos.permission.CLEAN_APPLICATION_DATA @@ -664,7 +664,7 @@ clearUpApplicationData(bundleName: string): Promise\; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| bundleName | string | 是 | 表示包名。 | +| bundleName | string | 是 | 表示Bundle名称。 | **返回值:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-dataShareExtensionAbility.md b/zh-cn/application-dev/reference/apis/js-apis-application-dataShareExtensionAbility.md index 49e2ec26612ff745fb16d42a6e87aeb719ab6c43..5aca9fc590489d7aa3d7030b1cfcaa98c50e8afb 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-dataShareExtensionAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-dataShareExtensionAbility.md @@ -37,7 +37,7 @@ DataShare客户端连接DataShareExtensionAbility服务端时,服务端回调 | 参数名 | 类型 | 必填 | 说明 | | ----- | ------ | ------ | ------ | -| want | [Want](js-apis-application-want.md#want) | 是 | Want类型信息,包括ability名称、bundle名称等。 | +| want | [Want](js-apis-application-want.md#want) | 是 | Want类型信息,包括Ability名称、Bundle名称等。 | | callback | AsyncCallback<void> | 是 | 回调函数。无返回值。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-formExtension.md b/zh-cn/application-dev/reference/apis/js-apis-application-formExtension.md index 7ddbd2070327bb2db1786f6186b1e17b2645863a..741a99c544f9beaab9111eb5de9813e70645370d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-formExtension.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-formExtension.md @@ -232,7 +232,7 @@ onAcquireFormState?(want: Want): formInfo.FormState; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| want | [Want](js-apis-application-want.md) | 是 | want表示获取卡片状态的描述。描述包括包名称、能力名称、模块名称、卡片名和卡片维度。 | +| want | [Want](js-apis-application-want.md) | 是 | want表示获取卡片状态的描述。描述包括Bundle名称、能力名称、模块名称、卡片名和卡片维度。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-formHost.md b/zh-cn/application-dev/reference/apis/js-apis-application-formHost.md index 1badfbc1f6ebf92f5643f34377fced401ad0c102..0e427503557cd4c69774e4b8e2e3e719eaafdab4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-formHost.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-formHost.md @@ -650,7 +650,7 @@ getFormsInfo(bundleName: string, callback: AsyncCallback<Array<formInfo.Fo | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------- | -| bundleName | string | 是 | 要查询的应用程序包名称。 | +| bundleName | string | 是 | 要查询的应用Bundle名称。 | | callback | AsyncCallback<Array<[FormInfo](js-apis-application-formInfo.md)>> | 是 | 回调函数。当获取设备上指定应用程序提供的卡片信息成功,err为undefined,data为查询到的卡片信息;否则为错误对象。 | **示例:** @@ -679,7 +679,7 @@ getFormsInfo(bundleName: string, moduleName: string, callback: AsyncCallback< | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------- | -| bundleName | string | 是 | 要查询的应用程序包名称。 | +| bundleName | string | 是 | 要查询的应用程序Bundle名称。 | | moduleName | string | 是 | 要查询的模块名称。 | | callback | AsyncCallback<Array<[FormInfo](js-apis-application-formInfo.md)>> | 是 | 回调函数。当获取设备上指定应用程序提供的卡片信息成功,err为undefined,data为查询到的卡片信息;否则为错误对象。 | @@ -709,7 +709,7 @@ getFormsInfo(bundleName: string, moduleName?: string): Promise<Array<formI | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------- | -| bundleName | string | 是 | 要查询的应用程序包名称。 | +| bundleName | string | 是 | 要查询的应用程序Bundle名称。 | | moduleName | string | 否 | 要查询的模块名称。 | **返回值:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-formInfo.md b/zh-cn/application-dev/reference/apis/js-apis-application-formInfo.md index c48ccb0e1412e5781f69e0aca377994271df050a..d50fb82a221268f5746f1ef887d8192809702a56 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-formInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-formInfo.md @@ -21,9 +21,9 @@ import formInfo from '@ohos.application.formInfo'; | 名称 | 类型 | 可读 | 可写 | 说明 | | ----------- | -------- |-------- | -------------------- | ------------------------------------------------------------ | -| bundleName | string | 是 | 否 | 表示卡片所属包的包名。 | +| bundleName | string | 是 | 否 | 表示卡片所属包的Bundle名称。 | | moduleName | string | 是 | 否 | 表示卡片所属模块的模块名。 | -| abilityName | string | 是 | 否 | 表示卡片所属的Ability名称。 | +| abilityName | string | 是 | 否 | 表示卡片所属的Ability名称。 | | name | string | 是 | 否 | 表示卡片名称。 | | description | string | 是 | 否 | 表示卡片描述。 | | type | [FormType](#formtype) | 是 | 否 | 表示卡片类型,当前支持JS卡片。 | @@ -32,7 +32,7 @@ import formInfo from '@ohos.application.formInfo'; | isDefault | boolean | 是 | 否 | 表示是否是默认卡片。 | | updateEnabled | boolean | 是 | 否 | 表示卡片是否使能更新。 | | formVisibleNotify | string | 是 | 否 | 表示卡片是否使能可见通知。 | -| relatedBundleName | string | 是 | 否 | 表示卡片所属的相关联包名。 | +| relatedBundleName | string | 是 | 否 | 表示卡片所属的相关联Bundle名称。 | | scheduledUpdateTime | string | 是 | 否 | 表示卡片更新时间。 | | formConfigAbility | string | 是 | 否 | 表示卡片配置ability。 | | updateDuration | string | 是 | 否 | 表示卡片更新周期。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-missionManager.md b/zh-cn/application-dev/reference/apis/js-apis-application-missionManager.md index f5cc6343be1662b1f2916930683f02bc263936bb..deb071195ff0101ee49e8d7f15c73bc6373677f4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-missionManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-missionManager.md @@ -20,7 +20,7 @@ ohos.permission.MANAGE_MISSIONS registerMissionListener(listener: MissionListener): number; -注册系统任务状态监听。 +注册系统任务状态监听器。 **需要权限**:ohos.permission.MANAGE_MISSIONS @@ -32,13 +32,13 @@ registerMissionListener(listener: MissionListener): number; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | listener | [MissionListener](js-apis-inner-application-missionListener.md) | 是 | 系统任务监听方法。 | + | listener | [MissionListener](js-apis-inner-application-missionListener.md) | 是 | 系统任务监听器。 | **返回值:** | 类型 | 说明 | | -------- | -------- | - | number | 监听方法的index值,由系统创建,在注册系统任务状态监听时分配,和监听方法一一对应 。 | + | number | 监听器的index值,由系统创建,在注册系统任务状态监听器时分配,和监听器一一对应 。 | **示例:** @@ -61,7 +61,7 @@ var listenerid = missionManager.registerMissionListener(listener); unregisterMissionListener(listenerId: number, callback: AsyncCallback<void>): void; -取消任务状态监听。 +解注册任务状态监听器。 **需要权限**:ohos.permission.MANAGE_MISSIONS @@ -73,7 +73,7 @@ unregisterMissionListener(listenerId: number, callback: AsyncCallback<void> | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | listenerId | number | 是 | 系统任务状态监听方法的index值,和监听方法一一对应,由registerMissionListener方法返回。 | + | listenerId | number | 是 | 系统任务状态监听器的index值,和监听器一一对应,由registerMissionListener方法返回。 | | callback | AsyncCallback<void> | 是 | 执行结果回调函数。 | **示例:** @@ -101,7 +101,7 @@ unregisterMissionListener(listenerId: number, callback: AsyncCallback<void> unregisterMissionListener(listenerId: number): Promise<void>; -取消任务状态监听,以promise方式返回执行结果。 +反注册任务状态监听器,以promise方式返回执行结果。 **需要权限**:ohos.permission.MANAGE_MISSIONS @@ -113,7 +113,7 @@ unregisterMissionListener(listenerId: number): Promise<void>; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | listenerId | number | 是 | 系统任务状态监听方法的index值,和监听方法一一对应,由registerMissionListener方法返回。 | + | listenerId | number | 是 | 系统任务状态监听器的index值,和监听器一一对应,由registerMissionListener方法返回。 | **返回值:** @@ -146,7 +146,7 @@ unregisterMissionListener(listenerId: number): Promise<void>; getMissionInfo(deviceId: string, missionId: number, callback: AsyncCallback<MissionInfo>): void; -获取任务信息,以异步回调的方式返回任务信息。 +获取单个任务信息,以异步回调的方式返回任务信息。 **需要权限**:ohos.permission.MANAGE_MISSIONS @@ -169,7 +169,12 @@ getMissionInfo(deviceId: string, missionId: number, callback: AsyncCallback<M var allMissions=missionManager.getMissionInfos("",10).catch(function(err){console.log(err);}); missionManager.getMissionInfo("", allMissions[0].missionId, (error, mission) => { - console.log("getMissionInfo is called, error.code = " + error.code) + if (error.code) { + console.log("getMissionInfo failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } + console.log("mission.missionId = " + mission.missionId); console.log("mission.runningState = " + mission.runningState); console.log("mission.lockedState = " + mission.lockedState); @@ -184,7 +189,7 @@ getMissionInfo(deviceId: string, missionId: number, callback: AsyncCallback<M getMissionInfo(deviceId: string, missionId: number): Promise<MissionInfo>; -获取任务信息,以promise方式返回任务信息。 +获取单个任务信息,以promise方式返回任务信息。 **需要权限**:ohos.permission.MANAGE_MISSIONS @@ -242,7 +247,11 @@ getMissionInfos(deviceId: string, numMax: number, callback: AsyncCallback<Arr import missionManager from '@ohos.application.missionManager' missionManager.getMissionInfos("", 10, (error, missions) => { - console.log("getMissionInfos is called, error.code = " + error.code); + if (error.code) { + console.log("getMissionInfos failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); }) @@ -311,14 +320,22 @@ getMissionSnapShot(deviceId: string, missionId: number, callback: AsyncCallback& import missionManager from '@ohos.application.missionManager' missionManager.getMissionInfos("", 10, (error, missions) => { - console.log("getMissionInfos is called, error.code = " + error.code); + if (error.code) { + console.log("getMissionInfos failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); var id = missions[0].missionId; missionManager.getMissionSnapShot("", id, (error, snapshot) => { - console.log("getMissionSnapShot is called, error.code = " + error.code); - console.log("bundleName = " + snapshot.ability.bundleName); + if (error.code) { + console.log("getMissionSnapShot failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } + console.log("bundleName = " + snapshot.ability.bundleName); }) }) ``` @@ -371,7 +388,7 @@ getMissionSnapShot(deviceId: string, missionId: number): Promise<MissionSnaps getLowResolutionMissionSnapShot(deviceId: string, missionId: number, callback: AsyncCallback\): void; -使用给定的任务ID获取任务低分辨率快照。 +获取任务低分辨率快照。 **需要权限**:ohos.permission.MANAGE_MISSIONS @@ -393,14 +410,22 @@ getLowResolutionMissionSnapShot(deviceId: string, missionId: number, callback: A import missionManager from '@ohos.application.missionManager' missionManager.getMissionInfos("", 10, (error, missions) => { - console.log("getMissionInfos is called, error.code = " + error.code); + if (error.code) { + console.log("getMissionInfos failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); var id = missions[0].missionId; missionManager.getLowResolutionMissionSnapShot("", id, (error, snapshot) => { - console.log("getLowResolutionMissionSnapShot is called, error.code = " + error.code); - console.log("bundleName = " + snapshot.ability.bundleName); + if (error.code) { + console.log("getLowResolutionMissionSnapShot failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } + console.log("bundleName = " + snapshot.ability.bundleName); }) }) ``` @@ -410,7 +435,7 @@ getLowResolutionMissionSnapShot(deviceId: string, missionId: number, callback: A getLowResolutionMissionSnapShot(deviceId: string, missionId: number): Promise\; -使用给定的任务ID获取任务低分辨率快照。 +获取任务低分辨率快照。 **需要权限**:ohos.permission.MANAGE_MISSIONS @@ -475,7 +500,11 @@ lockMission(missionId: number, callback: AsyncCallback<void>): void; import missionManager from '@ohos.application.missionManager' missionManager.getMissionInfos("", 10, (error, missions) => { - console.log("getMissionInfos is called, error.code = " + error.code); + if (error.code) { + console.log("getMissionInfos failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); var id = missions[0].missionId; @@ -554,7 +583,11 @@ unlockMission(missionId: number, callback: AsyncCallback<void>): void; import missionManager from '@ohos.application.missionManager' missionManager.getMissionInfos("", 10, (error, missions) => { - console.log("getMissionInfos is called, error.code = " + error.code); + if (error.code) { + console.log("getMissionInfos failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); var id = missions[0].missionId; @@ -637,7 +670,11 @@ clearMission(missionId: number, callback: AsyncCallback<void>): void; import missionManager from '@ohos.application.missionManager' missionManager.getMissionInfos("", 10, (error, missions) => { - console.log("getMissionInfos is called, error.code = " + error.code); + if (error.code) { + console.log("getMissionInfos failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); var id = missions[0].missionId; @@ -768,7 +805,11 @@ moveMissionToFront(missionId: number, callback: AsyncCallback<void>): void import missionManager from '@ohos.application.missionManager' missionManager.getMissionInfos("", 10, (error, missions) => { - console.log("getMissionInfos is called, error.code = " + error.code); + if (error.code) { + console.log("getMissionInfos failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); var id = missions[0].missionId; @@ -806,7 +847,11 @@ moveMissionToFront(missionId: number, options: StartOptions, callback: AsyncCall import missionManager from '@ohos.application.missionManager' missionManager.getMissionInfos("", 10, (error, missions) => { - console.log("getMissionInfos is called, error.code = " + error.code); + if (error.code) { + console.log("getMissionInfos failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); var id = missions[0].missionId; diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-staticSubscriberExtensionAbility.md b/zh-cn/application-dev/reference/apis/js-apis-application-staticSubscriberExtensionAbility.md index 21b6a8f94ec1289e3b51740c8b7fdea15f13d2c9..e2481c7e2165fa819870b9bfbef9c28a09340f04 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-staticSubscriberExtensionAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-staticSubscriberExtensionAbility.md @@ -24,9 +24,9 @@ onReceiveEvent(event: CommonEventData): void; **参数:** - | 参数名 | 类型 | 必填 | 说明 | - | -------- | -------- | -------- | -------- | - | event | [CommonEventData](js-apis-commonEvent.md#commoneventdata) | 是 | 静态订阅者通用事件回调。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| event | [CommonEventData](js-apis-commonEventManager.md#commoneventdata) | 是 | 静态订阅者通用事件回调。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-want.md b/zh-cn/application-dev/reference/apis/js-apis-application-want.md index 4458fd9a1dc9ae2f553dc26e6c8e45a3fdaa5d0b..a6b40f6271cc8350a61635fe1cfe58b5017b65b9 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-want.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-want.md @@ -1,6 +1,6 @@ # @ohos.application.Want (Want) -Want是对象间信息传递的载体, 可以用于应用组件间的信息传递。 Want的使用场景之一是作为startAbility的参数, 其包含了指定的启动目标, 以及启动时需携带的相关数据, 如bundleName和abilityName字段分别指明目标Ability所在应用的包名以及对应包内的Ability名称。当Ability A需要启动Ability B并传入一些数据时, 可使用Want作为载体将这些数据传递给Ability B。 +Want是对象间信息传递的载体, 可以用于应用组件间的信息传递。 Want的使用场景之一是作为startAbility的参数, 其包含了指定的启动目标, 以及启动时需携带的相关数据, 如bundleName和abilityName字段分别指明目标Ability所在应用Bundle名称以及对应包内的Ability名称。当Ability A需要启动Ability B并传入一些数据时, 可使用Want作为载体将这些数据传递给Ability B。 > **说明:** > diff --git a/zh-cn/application-dev/reference/apis/js-apis-arraylist.md b/zh-cn/application-dev/reference/apis/js-apis-arraylist.md index b65af8cd98ceb0cda80db811dfc04894a079eaa1..8bd0b1dfdeb82d2ab2495e58dc8dd23ce9b2b7ed 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-arraylist.md +++ b/zh-cn/application-dev/reference/apis/js-apis-arraylist.md @@ -1,6 +1,6 @@ # @ohos.util.ArrayList (线性容器ArrayList) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 ArrayList是一种线性数据结构,底层基于数组实现。ArrayList会根据实际需要动态调整容量,每次扩容增加50%。 @@ -41,7 +41,7 @@ ArrayList的构造函数。 **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -76,7 +76,7 @@ add(element: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -112,7 +112,7 @@ insert(element: T, index: number): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -150,7 +150,7 @@ has(element: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -187,7 +187,7 @@ getIndexOf(element: T): number **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -229,7 +229,7 @@ getLastIndexOf(element: T): number **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -271,7 +271,7 @@ removeByIndex(index: number): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -312,7 +312,7 @@ remove(element: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -346,7 +346,7 @@ removeByRange(fromIndex: number, toIndex: number): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -390,7 +390,7 @@ callbackfn的参数说明: **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -438,7 +438,7 @@ callbackfn的参数说明: **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -480,7 +480,7 @@ comparator的参数说明: **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -522,7 +522,7 @@ subArrayList(fromIndex: number, toIndex: number): ArrayList<T> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -552,7 +552,7 @@ clear(): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -586,7 +586,7 @@ clone(): ArrayList<T> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -619,7 +619,7 @@ getCapacity(): number **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -652,7 +652,7 @@ convertToArray(): Array<T> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -685,7 +685,7 @@ isEmpty(): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -718,7 +718,7 @@ increaseCapacityTo(newCapacity: number): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -746,7 +746,7 @@ trimToCurrentLength(): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -779,7 +779,7 @@ arrayList.trimToCurrentLength(); **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-avsession.md b/zh-cn/application-dev/reference/apis/js-apis-avsession.md index 2c34a0244668b9b6bd9df550d095a47218f93f2d..f57f581a3509ef8dd861c9e3e858664f0ceab81b 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-avsession.md +++ b/zh-cn/application-dev/reference/apis/js-apis-avsession.md @@ -978,9 +978,9 @@ setLaunchAbility(ability: WantAgent): Promise\ **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ------- | --------------------------------- | ---- | ----------------------------------------------------------- | -| ability | [WantAgent](js-apis-wantAgent.md) | 是 | 应用的相关属性信息,如bundleName,abilityName,deviceId等。 | +| 参数名 | 类型 | 必填 | 说明 | +| ------- | --------------------------------------------- | ---- | ----------------------------------------------------------- | +| ability | [WantAgent](js-apis-app-ability-wantAgent.md) | 是 | 应用的相关属性信息,如bundleName,abilityName,deviceId等。 | **返回值:** @@ -1048,10 +1048,10 @@ setLaunchAbility(ability: WantAgent, callback: AsyncCallback\): void **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | --------------------------------- | ---- | ----------------------------------------------------------- | -| ability | [WantAgent](js-apis-wantAgent.md) | 是 | 应用的相关属性信息,如bundleName,abilityName,deviceId等。 | -| callback | AsyncCallback | 是 | 回调函数。当Ability设置成功,err为undefined,否则返回错误对象。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------------- | ---- | ------------------------------------------------------------ | +| ability | [WantAgent](js-apis-app-ability-wantAgent.md) | 是 | 应用的相关属性信息,如bundleName,abilityName,deviceId等。 | +| callback | AsyncCallback | 是 | 回调函数。当Ability设置成功,err为undefined,否则返回错误对象。 | **错误码:** 以下错误码的详细介绍请参见[ohos.multimedia.avsession(多媒体会话)错误码](../errorcodes/errorcode-avsession.md)。 @@ -2204,9 +2204,9 @@ getLaunchAbility(): Promise\ **返回值:** -| 类型 | 说明 | -| ------------------------------------------- | ------------------------------------------------------------ | -| Promise<[WantAgent](js-apis-wantAgent.md)\> | Promise对象,返回在[setLaunchAbility](#setlaunchability)保存的对象,包括应用的相关属性信息,如bundleName,abilityName,deviceId等。 | +| 类型 | 说明 | +| ------------------------------------------------------- | ------------------------------------------------------------ | +| Promise<[WantAgent](js-apis-app-ability-wantAgent.md)\> | Promise对象,返回在[setLaunchAbility](#setlaunchability)保存的对象,包括应用的相关属性信息,如bundleName,abilityName,deviceId等。 | **错误码:** 以下错误码的详细介绍请参见[ohos.multimedia.avsession(多媒体会话)错误码](../errorcodes/errorcode-avsession.md)。 @@ -2239,9 +2239,9 @@ getLaunchAbility(callback: AsyncCallback\): void **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ------------------------------------------------- | ---- | ------------------------------------------------------------ | -| callback | AsyncCallback<[WantAgent](js-apis-wantAgent.md)\> | 是 | 回调函数。返回在[setLaunchAbility](#setlaunchability)保存的对象,包括应用的相关属性信息,如bundleName,abilityName,deviceId等。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | +| callback | AsyncCallback<[WantAgent](js-apis-app-ability-wantAgent.md)\> | 是 | 回调函数。返回在[setLaunchAbility](#setlaunchability)保存的对象,包括应用的相关属性信息,如bundleName,abilityName,deviceId等。 | **错误码:** 以下错误码的详细介绍请参见[ohos.multimedia.avsession(多媒体会话)错误码](../errorcodes/errorcode-avsession.md)。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-backgroundTaskManager.md b/zh-cn/application-dev/reference/apis/js-apis-backgroundTaskManager.md index 4b7b1d0524e8154bfeee78a04bde821b5ae59cce..b89e4400faec9c90601181d933e120a1a094e638 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-backgroundTaskManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-backgroundTaskManager.md @@ -159,12 +159,12 @@ startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: Want **参数**: -| 参数名 | 类型 | 必填 | 说明 | -| --------- | ---------------------------------- | ---- | ---------------------------------------- | -| context | Context | 是 | 应用运行的上下文。
FA模型的应用Context定义见[Context](js-apis-inner-app-context.md)。
Stage模型的应用Context定义见[Context](js-apis-ability-context.md)。 | -| bgMode | [BackgroundMode](#backgroundmode8) | 是 | 向系统申请的后台模式。 | -| wantAgent | [WantAgent](js-apis-wantAgent.md) | 是 | 通知参数,用于指定长时任务通知点击后跳转的界面。 | -| callback | AsyncCallback<void> | 是 | callback形式返回启动长时任务的结果。 | +| 参数名 | 类型 | 必填 | 说明 | +| --------- | --------------------------------------------- | ---- | ------------------------------------------------------------ | +| context | Context | 是 | 应用运行的上下文。
FA模型的应用Context定义见[Context](js-apis-inner-app-context.md)。
Stage模型的应用Context定义见[Context](js-apis-ability-context.md)。 | +| bgMode | [BackgroundMode](#backgroundmode8) | 是 | 向系统申请的后台模式。 | +| wantAgent | [WantAgent](js-apis-app-ability-wantAgent.md) | 是 | 通知参数,用于指定长时任务通知点击后跳转的界面。 | +| callback | AsyncCallback<void> | 是 | callback形式返回启动长时任务的结果。 | **示例**: @@ -251,11 +251,11 @@ startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: Want **参数**: -| 参数名 | 类型 | 必填 | 说明 | -| --------- | ---------------------------------- | ---- | ---------------------------------------- | -| context | Context | 是 | 应用运行的上下文。
FA模型的应用Context定义见[Context](js-apis-inner-app-context.md)。
Stage模型的应用Context定义见[Context](js-apis-ability-context.md)。 | -| bgMode | [BackgroundMode](#backgroundmode8) | 是 | 向系统申请的后台模式。 | -| wantAgent | [WantAgent](js-apis-wantAgent.md) | 是 | 通知参数,用于指定长时任务通知点击跳转的界面。 | +| 参数名 | 类型 | 必填 | 说明 | +| --------- | --------------------------------------------- | ---- | ------------------------------------------------------------ | +| context | Context | 是 | 应用运行的上下文。
FA模型的应用Context定义见[Context](js-apis-inner-app-context.md)。
Stage模型的应用Context定义见[Context](js-apis-ability-context.md)。 | +| bgMode | [BackgroundMode](#backgroundmode8) | 是 | 向系统申请的后台模式。 | +| wantAgent | [WantAgent](js-apis-app-ability-wantAgent.md) | 是 | 通知参数,用于指定长时任务通知点击跳转的界面。 | **返回值**: diff --git a/zh-cn/application-dev/reference/apis/js-apis-buffer.md b/zh-cn/application-dev/reference/apis/js-apis-buffer.md index 357969ee1ee97dcc29ceb83aade972fd1e222c31..33f6d16e90e4a44034281d7d598a96fa9e1a458b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-buffer.md +++ b/zh-cn/application-dev/reference/apis/js-apis-buffer.md @@ -1,6 +1,6 @@ # @ohos.buffer (Buffer) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 Buffer对象用于表示固定长度的字节序列,是专门存放二进制数据的缓存区。 @@ -47,7 +47,7 @@ import buffer from '@ohos.buffer'; **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -244,7 +244,7 @@ concat(list: Buffer[] | Uint8Array[], totalLength?: number): Buffer **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -314,7 +314,7 @@ from(arrayBuffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -509,6 +509,14 @@ compare(target: Buffer | Uint8Array, targetStart?: number, targetEnd?: number, s | -------- | -------- | | number | 比较结果。-1:前排序,0:与buf相同,1:后排序。 | +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------- | +| 10200001 | The value of "[targetStart/targetEnd/sourceStart/sourceEnd]" is out of range. | + **示例:** ```ts @@ -547,7 +555,7 @@ copy(target: Buffer| Uint8Array, targetStart?: number, sourceStart?: number, sou **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -647,7 +655,7 @@ fill(value: string | Buffer | Uint8Array | number, offset?: number, end?: number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -807,7 +815,7 @@ readBigInt64BE(offset?: number): bigint **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -848,7 +856,7 @@ readBigInt64LE(offset?: number): bigint **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -889,7 +897,7 @@ readBigUInt64BE(offset?: number): bigint **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -930,7 +938,7 @@ readBigUInt64LE(offset?: number): bigint **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -971,7 +979,7 @@ readDoubleBE(offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1011,7 +1019,7 @@ readDoubleLE(offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1051,7 +1059,7 @@ readFloatBE(offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1091,7 +1099,7 @@ readFloatLE(offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1131,7 +1139,7 @@ readInt8(offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1172,7 +1180,7 @@ readInt16BE(offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1212,7 +1220,7 @@ readInt16LE(offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1252,7 +1260,7 @@ readInt32BE(offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1292,7 +1300,7 @@ readInt32LE(offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1334,7 +1342,7 @@ readIntBE(offset: number, byteLength: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1378,7 +1386,7 @@ readIntLE(offset: number, byteLength: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1419,7 +1427,7 @@ readUInt8(offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1461,7 +1469,7 @@ readUInt16BE(offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1503,7 +1511,7 @@ readUInt16LE(offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1545,7 +1553,7 @@ readUInt32BE(offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1586,7 +1594,7 @@ readUInt32LE(offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1628,7 +1636,7 @@ readUIntBE(offset: number, byteLength: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1670,7 +1678,7 @@ readUIntLE(offset: number, byteLength: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1741,7 +1749,7 @@ swap16(): Buffer **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1776,7 +1784,7 @@ swap32(): Buffer **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1811,7 +1819,7 @@ swap64(): Buffer **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1940,7 +1948,7 @@ write(str: string, offset?: number, length?: number, encoding?: string): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -1984,7 +1992,7 @@ writeBigInt64BE(value: bigint, offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2023,7 +2031,7 @@ writeBigInt64LE(value: bigint, offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2062,7 +2070,7 @@ writeBigUInt64BE(value: bigint, offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2101,7 +2109,7 @@ writeBigUInt64LE(value: bigint, offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2140,7 +2148,7 @@ writeDoubleBE(value: number, offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2179,7 +2187,7 @@ writeDoubleLE(value: number, offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2218,7 +2226,7 @@ writeFloatBE(value: number, offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2258,7 +2266,7 @@ writeFloatLE(value: number, offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2297,7 +2305,7 @@ writeInt8(value: number, offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2338,7 +2346,7 @@ writeInt16BE(value: number, offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2378,7 +2386,7 @@ writeInt16LE(value: number, offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2417,7 +2425,7 @@ writeInt32BE(value: number, offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2457,7 +2465,7 @@ writeInt32LE(value: number, offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2497,7 +2505,7 @@ writeIntBE(value: number, offset: number, byteLength: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2538,7 +2546,7 @@ writeIntLE(value: number, offset: number, byteLength: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2577,7 +2585,7 @@ writeUInt8(value: number, offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2619,7 +2627,7 @@ writeUInt16BE(value: number, offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2659,7 +2667,7 @@ writeUInt16LE(value: number, offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2699,7 +2707,7 @@ writeUInt32BE(value: number, offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2738,7 +2746,7 @@ writeUInt32LE(value: number, offset?: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2778,7 +2786,7 @@ writeUIntBE(value: number, offset: number, byteLength: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -2818,7 +2826,7 @@ writeUIntLE(value: number, offset: number, byteLength: number): number **错误码:** -以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-AbilityInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-AbilityInfo.md index a760b9dfc4d136b98a36cdcfebbb2c0580631a99..6f82c803d4cce42903fb5d6b152d34c8a52b7e31 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-AbilityInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-AbilityInfo.md @@ -1,6 +1,6 @@ # AbilityInfo -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 7 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 @@ -13,32 +13,32 @@ Ability信息,未做特殊说明的属性,均通过[GET_BUNDLE_DEFAULT](js-a **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework -| 名称 | 类型 | 可读 | 可写 | 说明 | -| --------------------- | -------------------------------------------------------- | ---- | ---- | ----------------------------------------- | -| bundleName | string | 是 | 否 | 应用包名。 | -| name | string | 是 | 否 | Ability名称。 | -| label | string | 是 | 否 | Ability对用户显示的名称。 | -| description | string | 是 | 否 | Ability的描述。 | -| icon | string | 是 | 否 | Ability的图标资源文件索引。 | -| descriptionId | number | 是 | 否 | Ability的描述id。 | -| iconId | number | 是 | 否 | Ability的图标id。 | -| moduleName | string | 是 | 否 | Ability所属的HAP包的名称。 | -| process | string | 是 | 否 | Ability的进程,如果不设置,默认为包的名称。 | -| targetAbility | string | 是 | 否 | 当前Ability重用的目标Ability。
此属性仅可在FA模型下使用。 | -| backgroundModes | number | 是 | 否 | 表示后台服务的类型。
此属性仅可在FA模型下使用。 | -| isVisible | boolean | 是 | 否 | 判断Ability是否可以被其他应用调用。 | -| formEnabled | boolean | 是 | 否 | 判断Ability是否提供卡片能力。
此属性仅可在FA模型下使用。 | -| type | AbilityType | 是 | 否 | Ability类型。
此属性仅可在FA模型下使用。 | -| orientation | [DisplayOrientation](js-apis-Bundle.md#displayorientationdeprecated) | 是 | 否 | Ability的显示模式。 | -| launchMode | [LaunchMode](js-apis-Bundle.md#launchmodedeprecated) | 是 | 否 | Ability的启动模式。 | -| permissions | Array\ | 是 | 否 | 被其他应用Ability调用时需要申请的权限集合。
通过传入GET_ABILITY_INFO_WITH_PERMISSION获取。 | -| deviceTypes | Array\ | 是 | 否 | Ability支持的设备类型。 | -| deviceCapabilities | Array\ | 是 | 否 | Ability需要的设备能力。 | -| readPermission | string | 是 | 否 | 读取Ability数据所需的权限。
此属性仅可在FA模型下使用。| -| writePermission | string | 是 | 否 | 向Ability写数据所需的权限。
此属性仅可在FA模型下使用。 | -| applicationInfo | [ApplicationInfo](js-apis-bundle-ApplicationInfo.md) | 是 | 否 | 应用程序的配置信息。
通过传入[GET_ABILITY_INFO_WITH_APPLICATION](js-apis-Bundle.md)获取。 | -| uri | string | 是 | 否 | 获取Ability的统一资源标识符(URI)。
此属性仅可在FA模型下使用。 | -| labelId | number | 是 | 否 | Ability的标签id。 | -| subType | AbilitySubType | 是 | 否 | Ability中枚举使用的模板的子类型。
此属性仅可在FA模型下使用。 | -| metadata8+ | Array\<[CustomizeData](js-apis-bundle-CustomizeData.md)> | 是 | 否 | ability的元信息。
通过传入GET_ABILITY_INFO_WITH_METADATA获取。 | -| enabled8+ | boolean | 是 | 否 | ability是否可用。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| --------------------- | ------------------------------------------------------------ | ---- | ---- | ------------------------------------------------------------ | +| bundleName | string | 是 | 否 | 应用Bundle名称。 | +| name | string | 是 | 否 | Ability名称。 | +| label | string | 是 | 否 | Ability对用户显示的名称。 | +| description | string | 是 | 否 | Ability的描述。 | +| icon | string | 是 | 否 | Ability的图标资源文件索引。 | +| descriptionId | number | 是 | 否 | Ability的描述id。 | +| iconId | number | 是 | 否 | Ability的图标id。 | +| moduleName | string | 是 | 否 | Ability所属的HAP的名称。 | +| process | string | 是 | 否 | Ability的进程,如果不设置,默认为包的名称。 | +| targetAbility | string | 是 | 否 | 当前Ability重用的目标Ability。
此属性仅可在FA模型下使用。 | +| backgroundModes | number | 是 | 否 | 表示后台服务的类型。
此属性仅可在FA模型下使用。 | +| isVisible | boolean | 是 | 否 | 判断Ability是否可以被其他应用调用。 | +| formEnabled | boolean | 是 | 否 | 判断Ability是否提供卡片能力。
此属性仅可在FA模型下使用。 | +| type | AbilityType | 是 | 否 | Ability类型。
此属性仅可在FA模型下使用。 | +| orientation | [DisplayOrientation](js-apis-Bundle.md#displayorientationdeprecated) | 是 | 否 | Ability的显示模式。 | +| launchMode | [LaunchMode](js-apis-Bundle.md#launchmodedeprecated) | 是 | 否 | Ability的启动模式。 | +| permissions | Array\ | 是 | 否 | 被其他应用Ability调用时需要申请的权限集合。
通过传入GET_ABILITY_INFO_WITH_PERMISSION获取。 | +| deviceTypes | Array\ | 是 | 否 | Ability支持的设备类型。 | +| deviceCapabilities | Array\ | 是 | 否 | Ability需要的设备能力。 | +| readPermission | string | 是 | 否 | 读取Ability数据所需的权限。
此属性仅可在FA模型下使用。 | +| writePermission | string | 是 | 否 | 向Ability写数据所需的权限。
此属性仅可在FA模型下使用。 | +| applicationInfo | [ApplicationInfo](js-apis-bundle-ApplicationInfo.md) | 是 | 否 | 应用程序的配置信息。
通过传入[GET_ABILITY_INFO_WITH_APPLICATION](js-apis-Bundle.md)获取。 | +| uri | string | 是 | 否 | 获取Ability的统一资源标识符(URI)。
此属性仅可在FA模型下使用。 | +| labelId | number | 是 | 否 | Ability的标签id。 | +| subType | AbilitySubType | 是 | 否 | Ability中枚举使用的模板的子类型。
此属性仅可在FA模型下使用。 | +| metadata8+ | Array\<[CustomizeData](js-apis-bundle-CustomizeData.md)> | 是 | 否 | ability的元信息。
通过传入GET_ABILITY_INFO_WITH_METADATA获取。 | +| enabled8+ | boolean | 是 | 否 | ability是否可用。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-ApplicationInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-ApplicationInfo.md index 17cc30ad33e595826d96c51b421d175eb9b3a00d..0cafdce9479cf4f0b513af164c838f0224049fd6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-ApplicationInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-ApplicationInfo.md @@ -1,6 +1,6 @@ # ApplicationInfo -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 7 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 应用程序信息,未做特殊说明的属性,均通过[GET_BUNDLE_DEFAULT](js-apis-Bundle.md)获取。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInfo.md index 040e100b187e733919d436e781d250a9213a9244..8e1c7bdee07eac1042cf3c8e4cb9a39fe1790561 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInfo.md @@ -1,6 +1,6 @@ # BundleInfo -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 7 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 应用包的信息,未做特殊说明的属性,均通过[GET_BUNDLE_DEFAULT](js-apis-Bundle.md)获取。 @@ -11,31 +11,31 @@ **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework。 -| 名称 | 类型 | 可读 | 可写 | 说明 | -| --------------------------------- | ------------------------------------------------------------ | ---- | ---- | ------------------------------------------------------------ | -| name | string | 是 | 否 | 应用包的名称。 | -| type | string | 是 | 否 | 应用包类型。 | -| appId | string | 是 | 否 | 应用包里应用程序的id。 | -| uid | number | 是 | 否 | 应用包里应用程序的uid。 | -| installTime | number | 是 | 否 | HAP包安装时间。 | -| updateTime | number | 是 | 否 | HAP包更新时间。 | -| appInfo | [ApplicationInfo](js-apis-bundle-ApplicationInfo.md) | 是 | 否 | 应用程序的配置信息。 | -| abilityInfos | Array\<[AbilityInfo](js-apis-bundle-AbilityInfo.md)> | 是 | 否 | Ability的配置信息
通过传入GET_BUNDLE_WITH_ABILITIES获取。 | -| reqPermissions | Array\ | 是 | 否 | 应用运行时需向系统申请的权限集合
通过传入GET_BUNDLE_WITH_REQUESTED_PERMISSION获取。 | -| reqPermissionDetails | Array\<[ReqPermissionDetail](#reqpermissiondetaildeprecated)> | 是 | 否 | 应用运行时需向系统申请的权限集合的详细信息
通过传入GET_BUNDLE_WITH_REQUESTED_PERMISSION获取。 | -| vendor | string | 是 | 否 | 应用包的供应商。 | -| versionCode | number | 是 | 否 | 应用包的版本号。 | -| versionName | string | 是 | 否 | 应用包的版本文本描述信息。 | -| compatibleVersion | number | 是 | 否 | 运行应用包所需要最低的SDK版本号。 | -| targetVersion | number | 是 | 否 | 运行应用包所需要最高SDK版本号。 | -| isCompressNativeLibs | boolean | 是 | 否 | 是否压缩应用包的本地库,默认为true。 | -| hapModuleInfos | Array\<[HapModuleInfo](js-apis-bundle-HapModuleInfo.md)> | 是 | 否 | 模块的配置信息。 | -| entryModuleName | string | 是 | 否 | Entry的模块名称。 | -| cpuAbi | string | 是 | 否 | 应用包的cpuAbi信息。 | -| isSilentInstallation | string | 是 | 否 | 是否通过静默安装。 | -| minCompatibleVersionCode | number | 是 | 否 | 分布式场景下的应用包兼容的最低版本。 | -| entryInstallationFree | boolean | 是 | 否 | Entry是否支持免安装。 | -| reqPermissionStates8+ | Array\ | 是 | 否 | 申请权限的授予状态。0表示申请成功,-1表示申请失败。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| -------------------------------- | ------------------------------------------------------------ | ---- | ---- | ------------------------------------------------------------ | +| name | string | 是 | 否 | 应用包的名称。 | +| type | string | 是 | 否 | 应用包类型。 | +| appId | string | 是 | 否 | 应用包里应用程序的id。 | +| uid | number | 是 | 否 | 应用包里应用程序的uid。 | +| installTime | number | 是 | 否 | HAP安装时间。 | +| updateTime | number | 是 | 否 | HAP更新时间。 | +| appInfo | [ApplicationInfo](js-apis-bundle-ApplicationInfo.md) | 是 | 否 | 应用程序的配置信息。 | +| abilityInfos | Array\<[AbilityInfo](js-apis-bundle-AbilityInfo.md)> | 是 | 否 | Ability的配置信息
通过传入GET_BUNDLE_WITH_ABILITIES获取。 | +| reqPermissions | Array\ | 是 | 否 | 应用运行时需向系统申请的权限集合
通过传入GET_BUNDLE_WITH_REQUESTED_PERMISSION获取。 | +| reqPermissionDetails | Array\<[ReqPermissionDetail](#reqpermissiondetaildeprecated)> | 是 | 否 | 应用运行时需向系统申请的权限集合的详细信息
通过传入GET_BUNDLE_WITH_REQUESTED_PERMISSION获取。 | +| vendor | string | 是 | 否 | 应用包的供应商。 | +| versionCode | number | 是 | 否 | 应用包的版本号。 | +| versionName | string | 是 | 否 | 应用包的版本文本描述信息。 | +| compatibleVersion | number | 是 | 否 | 运行应用包所需要最低的SDK版本号。 | +| targetVersion | number | 是 | 否 | 运行应用包所需要最高SDK版本号。 | +| isCompressNativeLibs | boolean | 是 | 否 | 是否压缩应用包的本地库,默认为true。 | +| hapModuleInfos | Array\<[HapModuleInfo](js-apis-bundle-HapModuleInfo.md)> | 是 | 否 | 模块的配置信息。 | +| entryModuleName | string | 是 | 否 | Entry的模块名称。 | +| cpuAbi | string | 是 | 否 | 应用包的cpuAbi信息。 | +| isSilentInstallation | string | 是 | 否 | 是否通过静默安装。 | +| minCompatibleVersionCode | number | 是 | 否 | 分布式场景下的应用包兼容的最低版本。 | +| entryInstallationFree | boolean | 是 | 否 | Entry是否支持免安装。 | +| reqPermissionStates8+ | Array\ | 是 | 否 | 申请权限的授予状态。0表示申请成功,-1表示申请失败。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md index 0a1812363b419749311aadfbcbf61dba2650a499..39de3d5e9086a794be8e568e7089fc978ade1d38 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md @@ -1,6 +1,6 @@ # BundleInstaller -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 7 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 本模块提供设备上安装、升级和卸载应用的能力。 @@ -25,10 +25,10 @@ SystemCapability.BundleManager.BundleFramework **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| --------------- | ---------------------------------------------------- | ---- | ------------------------------------------------------------ | -| bundleFilePaths | Array<string> | 是 | 指示存储hap包的沙箱路径。沙箱路径的获取方法参见[获取应用的沙箱路径](#获取应用的沙箱路径)。| -| param | [InstallParam](#installparamdeprecated) | 是 | 指定安装所需的其他参数。 | +| 参数名 | 类型 | 必填 | 说明 | +| --------------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | +| bundleFilePaths | Array<string> | 是 | 指示存储HAP的沙箱路径。沙箱路径的获取方法参见[获取应用的沙箱路径](#获取应用的沙箱路径)。 | +| param | [InstallParam](#installparamdeprecated) | 是 | 指定安装所需的其他参数。 | | callback | AsyncCallback<[InstallStatus](#installstatusdeprecated)> | 是 | 程序启动作为入参的回调函数,返回安装状态信息。 | **示例:** @@ -75,10 +75,10 @@ SystemCapability.BundleManager.BundleFramework **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ---------- | ---------------------------------------------------- | ---- | ---------------------------------------------- | -| bundleName | string | 是 | 应用包名。 | -| param | [InstallParam](#installparamdeprecated) | 是 | 指定卸载所需的其他参数。 | +| 参数名 | 类型 | 必填 | 说明 | +| ---------- | ------------------------------------------------------------ | ---- | ---------------------------------------------- | +| bundleName | string | 是 | 应用Bundle名称。 | +| param | [InstallParam](#installparamdeprecated) | 是 | 指定卸载所需的其他参数。 | | callback | AsyncCallback<[InstallStatus](#installstatusdeprecated)> | 是 | 程序启动作为入参的回调函数,返回安装状态信息。 | **示例:** @@ -124,10 +124,10 @@ SystemCapability.BundleManager.BundleFramework **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ---------- | ---------------------------------------------------- | ---- | ---------------------------------------------- | -| bundleName | string | 是 | 应用包名。 | -| param | [InstallParam](#installparamdeprecated) | 是 | 指定应用恢复所需的其他参数。 | +| 参数名 | 类型 | 必填 | 说明 | +| ---------- | ------------------------------------------------------------ | ---- | -------------------------------------------------- | +| bundleName | string | 是 | 应用Bundle名称。 | +| param | [InstallParam](#installparamdeprecated) | 是 | 指定应用恢复所需的其他参数。 | | callback | AsyncCallback<[InstallStatus](#installstatusdeprecated)> | 是 | 程序启动作为入参的回调函数,返回应用恢复状态信息。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-CustomizeData.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-CustomizeData.md index 53b8d9d04b057801c9779069b0460effa11bee59..19b66ff1ed25d606ef3286b088dfc55f0ff897bf 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-CustomizeData.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-CustomizeData.md @@ -1,10 +1,8 @@ # CustomizeData -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 7 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 - - 自定义元数据。 ## CustomizeData(deprecated) diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-ElementName.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-ElementName.md index a683ca89db326168be4fafcecb0336af53a4ca3e..a066cf5bc3603432a525b81b09f8cee8922f35ff 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-ElementName.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-ElementName.md @@ -1,6 +1,6 @@ # ElementName -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 7 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 ElementName信息,通过接口[Context.getElementName](js-apis-inner-app-context.md)获取。 @@ -18,7 +18,7 @@ ElementName信息,标识Ability的基本信息,通过接口[Context.getEleme | 名称 | 类型 | 可读 | 可写 | 说明 | | ----------------------- | ---------| ---- | ---- | ------------------------- | | deviceId | string | 是 | 是 | 设备id。 | -| bundleName | string | 是 | 是 | 应用包名。 | +| bundleName | string | 是 | 是 | 应用Bundle名称。 | | abilityName | string | 是 | 是 | Ability名称。 | | uri | string | 是 | 是 | 资源标识符。 | | shortName | string | 是 | 是 | Ability短名称。 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-HapModuleInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-HapModuleInfo.md index c1feb97bc01f6880230e85743c0e31408e01ce91..f637a0933685b41e6db7e9e2249219a5ee8c6f91 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-HapModuleInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-HapModuleInfo.md @@ -1,10 +1,8 @@ # HapModuleInfo -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 7 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 - - Hap模块信息,未做特殊说明的属性,均通过[GET_BUNDLE_DEFAULT](js-apis-Bundle.md)获取。 ## HapModuleInfo(deprecated) @@ -13,8 +11,6 @@ Hap模块信息,未做特殊说明的属性,均通过[GET_BUNDLE_DEFAULT](js **系统能力**: 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework - - | 名称 | 类型 | 可读 | 可写 | 说明 | | --------------------------------- | ------------------------------------------------------------ | ---- | ---- | -------------------- | | name | string | 是 | 否 | 模块名称。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-LauncherAbilityInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-LauncherAbilityInfo.md index 668dd8073899dc4172d5872e45ae8fabbc642231..560a3362a8c9f2fc4f8dee442a2ae08116ae8a1d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-LauncherAbilityInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-LauncherAbilityInfo.md @@ -1,10 +1,8 @@ # LauncherAbilityInfo -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 - - LauncherAbilityInfo信息,通过接口[innerBundleManager.getLauncherAbilityInfos](js-apis-Bundle-InnerBundleManager.md)获取。 ## LauncherAbilityInfo(deprecated) diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-PermissionDef.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-PermissionDef.md index 9a19fdb75aca7b4a19ef3e41cda15e7dbcaf5daf..cea742c810f683eb9d204efc6ca7f5dc2cfc5220 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-PermissionDef.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-PermissionDef.md @@ -1,10 +1,8 @@ # PermissionDef -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 - - 配置文件中定义的权限详细信息。 ## **PermissionDef**(deprecated) diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md index 2a6ef57c17bcd50ed138b49447d00210286e1948..ed3855f05f8b458db170d785ef36a83c91b8bcfa 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md @@ -32,7 +32,7 @@ | 名称 | 类型 | 可读 | 可写 | 说明 | | ----------------------- | ------------------------------------------ | ---- | ---- | ---------------------------- | | id | string | 是 | 否 | 快捷方式所属应用程序的Id。 | -| bundleName | string | 是 | 否 | 包含该快捷方式的包名称。 | +| bundleName | string | 是 | 否 | 包含该快捷方式的Bundle名称。 | | hostAbility | string | 是 | 否 | 快捷方式的本地Ability信息。 | | icon | string | 是 | 否 | 快捷方式的图标。 | | iconId8+ | number | 是 | 否 | 快捷方式的图标Id。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-abilityInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-abilityInfo.md index 7eec5ec8d955dbe2503771a1e97ae47879823dea..4bc6eebde4629bbda01513e5a25c0b27d1fc4d0a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-abilityInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-abilityInfo.md @@ -1,6 +1,6 @@ # AbilityInfo -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 9 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 Ability信息,系统应用可以通过[getBundleInfo](js-apis-bundleManager.md#bundlemanagergetbundleinfo)获取自身或其他应用的Ability信息,三方应用可以通过[getBundleInfoForSelf](js-apis-bundleManager.md#bundlemanagergetbundleinfoforself)获取自身的Ability信息,其中入参[BundleFlag](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md#bundleflag)需要使用GET_BUNDLE_INFO_WITH_ABILITY。 @@ -11,8 +11,8 @@ Ability信息,系统应用可以通过[getBundleInfo](js-apis-bundleManager.md | 名称 | 类型 | 可读 | 可写 | 说明 | | --------------------- | -------------------------------------------------------- | ---- | ---- | ----------------------------------------- | -| bundleName | string | 是 | 否 | 应用包名 | -| moduleName | string | 是 | 否 | Ability所属的HAP包的名称 | +| bundleName | string | 是 | 否 | 应用Bundle名称 | +| moduleName | string | 是 | 否 | Ability所属的HAP的名称 | | name | string | 是 | 否 | Ability名称 | | label | string | 是 | 否 | Ability对用户显示的名称 | | labelId | number | 是 | 否 | Ability的标签资源id | diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-applicationInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-applicationInfo.md index 5e29ca0192e9a59cf02c93956ab7f49ac74a692a..d073aef1b684f23ce8cdd03fdd5adbf6411be4e7 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-applicationInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-applicationInfo.md @@ -1,6 +1,6 @@ # ApplicationInfo -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 9 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 应用程序信息,系统应用可以通过[getBundleInfo](js-apis-bundleManager.md#bundlemanagergetbundleinfo)获取自身或其他应用的应用程序信息,三方应用可以通过[getBundleInfoForSelf](js-apis-bundleManager.md#bundlemanagergetbundleinfoforself)获取自身的应用程序信息,其中入参[BundleFlag](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md#bundleflag)需要使用GET_BUNDLE_INFO_WITH_APPLICATION。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-elementName.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-elementName.md index 0752e44e680eaa0f6b5c73c49da03e47030a1195..a58a3641d4403418ccecdfc581a01bac96a2bbe8 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-elementName.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-elementName.md @@ -11,9 +11,9 @@ ElementName信息,通过接口[Context.getElementName](js-apis-inner-app-conte | 名称 | 类型 | 可读 | 可写 | 说明 | | ----------------------- | ---------| ---- | ---- | ------------------------- | -| deviceId | string | 是 | 是 | 设备id。 | -| bundleName | string | 是 | 是 | 应用包名。 | +| deviceId | string | 是 | 是 | 设备ID。 | +| bundleName | string | 是 | 是 | 应用Bundle名称。 | | abilityName | string | 是 | 是 | Ability名称。 | | uri | string | 是 | 是 | 资源标识符。 | | shortName | string | 是 | 是 | Ability短名称。 | -| moduleName | string | 是 | 是 | Ability所属的HAP包的模块名称。 | \ No newline at end of file +| moduleName | string | 是 | 是 | Ability所属的HAP的模块名称。 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-extensionAbilityInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-extensionAbilityInfo.md index 9088cc70a3a2c6e1fd91767fe06388bb8045762c..1cb1d8756d30d8e4a00189a08d461425a506260f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-extensionAbilityInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-extensionAbilityInfo.md @@ -9,19 +9,19 @@ ExtensionAbility信息,系统应用可以通过[getBundleInfo](js-apis-bundleM **系统能力**: SystemCapability.BundleManager.BundleFramework.Core -| 名称 | 类型 | 可读 | 可写 | 说明 | -| -------------------- | ----------------------------------------------------------- | ---- | ---- | -------------------------------------------------- | -| bundleName | string | 是 | 否 | 应用包名 | -| moduleName | string | 是 | 否 | ExtensionAbility所属的HAP包的名称 | -| name | string | 是 | 否 | ExtensionAbility名称 | -| labelId | number | 是 | 否 | ExtensionAbility的标签资源id | -| descriptionId | number | 是 | 否 | ExtensionAbility的描述资源id | -| iconId | number | 是 | 否 | ExtensionAbility的图标资源id | -| isVisible | boolean | 是 | 否 | 判断ExtensionAbility是否可以被其他应用调用 | -| extensionAbilityType | [ExtensionAbilityType](js-apis-bundleManager.md#extensionabilitytype) | 是 | 否 | ExtensionAbility类型 | -| permissions | Array\ | 是 | 否 | 被其他应用ExtensionAbility调用时需要申请的权限集合 | -| applicationInfo | [ApplicationInfo](js-apis-bundleManager-applicationInfo.md) | 是 | 否 | 应用程序的配置信息 | -| metadata | Array\<[Metadata](js-apis-bundleManager-metadata.md)> | 是 | 否 | ExtensionAbility的元信息 | -| enabled | boolean | 是 | 否 | ExtensionAbility是否可用 | -| readPermission | string | 是 | 否 | 读取ExtensionAbility数据所需的权限 | -| writePermission | string | 是 | 否 | 向ExtensionAbility写数据所需的权限 | \ No newline at end of file +| 名称 | 类型 | 可读 | 可写 | 说明 | +| -------------------- | ------------------------------------------------------------ | ---- | ---- | ---------------------------------------------------- | +| bundleName | string | 是 | 否 | 应用Bundle名称。 | +| moduleName | string | 是 | 否 | ExtensionAbility所属的HAP的名称。 | +| name | string | 是 | 否 | ExtensionAbility名称。 | +| labelId | number | 是 | 否 | ExtensionAbility的标签资源ID。 | +| descriptionId | number | 是 | 否 | ExtensionAbility的描述资源ID。 | +| iconId | number | 是 | 否 | ExtensionAbility的图标资源ID。 | +| isVisible | boolean | 是 | 否 | 判断ExtensionAbility是否可以被其他应用调用。 | +| extensionAbilityType | [ExtensionAbilityType](js-apis-bundleManager.md#extensionabilitytype) | 是 | 否 | ExtensionAbility类型。 | +| permissions | Array\ | 是 | 否 | 被其他应用ExtensionAbility调用时需要申请的权限集合。 | +| applicationInfo | [ApplicationInfo](js-apis-bundleManager-applicationInfo.md) | 是 | 否 | 应用程序的配置信息。 | +| metadata | Array\<[Metadata](js-apis-bundleManager-metadata.md)> | 是 | 否 | ExtensionAbility的元信息。 | +| enabled | boolean | 是 | 否 | ExtensionAbility是否可用。 | +| readPermission | string | 是 | 否 | 读取ExtensionAbility数据所需的权限。 | +| writePermission | string | 是 | 否 | 向ExtensionAbility写数据所需的权限。 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-packInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-packInfo.md index d6152ec79d315ad6ad5b1aae007050fabc266ef3..3c10f48e0f0efbaa4b3b215e067dd500a44ed95c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-packInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-packInfo.md @@ -47,10 +47,10 @@ **系统能力:** SystemCapability.BundleManager.BundleFrameWork.FreeInstall -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ---------- | ------------------- | ---- | ---- | ---------------------------------- | -| bundleName | string | 是 | 否 | 应用的包名,用于标识应用的唯一性。 | -| version | [Version](#version) | 是 | 否 | 包的版本。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ---------- | ------------------- | ---- | ---- | -------------------------------------- | +| bundleName | string | 是 | 否 | 应用Bundle名称,用于标识应用的唯一性。 | +| version | [Version](#version) | 是 | 否 | 包的版本。 | ## ModuleConfigInfo diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-shortcutInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-shortcutInfo.md index 164c8d8492ad6fa3637686c3124f61bef97f9749..67b3a567cde25339020af03a067b7a4d51f68791 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-shortcutInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-shortcutInfo.md @@ -15,9 +15,9 @@ | 名称 | 类型 | 可读 | 可写 | 说明 | | ------------------------- | ------ | ---- | ---- | -------------------- | -| targetBundle | string | 是 | 否 | 快捷方式的目标bundleName | -| targetModule | string | 是 | 否 | 快捷方式的目标moduleName | -| targetAbility | string | 是 | 否 | 快捷方式所需的目标abilityName | +| targetBundle | string | 是 | 否 | 快捷方式的目标bundleName。 | +| targetModule | string | 是 | 否 | 快捷方式的目标moduleName。 | +| targetAbility | string | 是 | 否 | 快捷方式所需的目标abilityName。 | ## ShortcutInfo @@ -27,14 +27,14 @@ | 名称 | 类型 | 可读 | 可写 | 说明 | | ----------------------- | ------------------------------------------ | ---- | ---- | ---------------------------- | -| id | string | 是 | 否 | 快捷方式所属应用程序的Id | -| bundleName | string | 是 | 否 | 包含快捷方式的包名称 | -| moduleName | string | 是 | 否 | 快捷方式的模块名 | -| hostAbility | string | 是 | 否 | 快捷方式的本地Ability名称 | -| icon | string | 是 | 否 | 快捷方式的图标 | -| iconId | number | 是 | 否 | 快捷方式的图标Id | -| label | string | 是 | 否 | 快捷方式的标签 | -| labelId | number | 是 | 否 | 快捷方式的标签Id | -| wants | Array\<[ShortcutWant](#shortcutwant)> | 是 | 否 | 快捷方式所需要的信息 | +| id | string | 是 | 否 | 快捷方式所属应用程序的ID。 | +| bundleName | string | 是 | 否 | 包含快捷方式的Bundle名称。 | +| moduleName | string | 是 | 否 | 快捷方式的模块名。 | +| hostAbility | string | 是 | 否 | 快捷方式的本地Ability名称。 | +| icon | string | 是 | 否 | 快捷方式的图标。 | +| iconId | number | 是 | 否 | 快捷方式的图标ID。 | +| label | string | 是 | 否 | 快捷方式的标签。 | +| labelId | number | 是 | 否 | 快捷方式的标签ID。 | +| wants | Array\<[ShortcutWant](#shortcutwant)> | 是 | 否 | 快捷方式所需要的信息。 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md index 71e766906933dbff86f328f24dadc3ab50fb5590..f9e360f9cfabb0753382ca2d1245e013ff24968f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md @@ -2,7 +2,7 @@ 本模块提供应用信息查询能力,支持BundleInfo、ApplicationInfo、Ability、ExtensionAbility等信息的查询 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 9 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 ## 导入模块 @@ -272,7 +272,7 @@ getBundleInfo(bundleName: string, bundleFlags: number, userId: number, callback: | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------ | ---- | ---------------------------- | -| bundleName | string | 是 | 表示要查询的应用程序包名称。 | +| bundleName | string | 是 | 表示要查询的应用Bundle名称。 | | bundleFlags | [number](#bundleflag) | 是 | 指定返回的BundleInfo所包含的信息。| | userId | number | 是 | 表示用户ID。 | | callback | AsyncCallback\<[BundleInfo](js-apis-bundleManager-bundleInfo.md)> | 是 | 回调函数,当获取成功时,err为null,data为获取到的bundleInfo;否则为错误对象。 | @@ -345,7 +345,7 @@ getBundleInfo(bundleName: string, bundleFlags: number, callback: AsyncCallback\< | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------ | ---- | ---------------------------- | -| bundleName | string | 是 | 表示要查询的应用程序包名称。 | +| bundleName | string | 是 | 表示要查询的应用Bundle名称。 | | bundleFlags | [number](#bundleflag) | 是 | 指定返回的BundleInfo所包含的信息。| | callback | AsyncCallback\<[BundleInfo](js-apis-bundleManager-bundleInfo.md)> | 是 | 回调函数,当获取成功时,err为null,data为获取到的BundleInfo;否则为错误对象。 | @@ -396,7 +396,7 @@ getBundleInfo(bundleName: string, bundleFlags: [number](#bundleflag), userId?: n | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------ | ---- | ---------------------------- | -| bundleName | string | 是 | 表示要查询的应用程序包名称。 | +| bundleName | string | 是 | 表示要查询的应用Bundle名称。 | | bundleFlags | [number](#bundleflag) | 是 | 指定返回的BundleInfo所包含的信息。 | | userId | number | 否 | 表示用户ID。 | @@ -469,7 +469,7 @@ getApplicationInfo(bundleName: string, appFlags: [number](#applicationflag), use | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------ | ---- | ---------------------------- | -| bundleName | string | 是 | 表示要查询的应用程序包名称。 | +| bundleName | string | 是 | 表示要查询的应用Bundle名称。 | | appFlags | [number](#applicationflag) | 是 | 指定返回的ApplicationInfo所包含的信息。 | | userId | number | 是 | 表示用户ID。 | | callback | AsyncCallback\<[ApplicationInfo](js-apis-bundleManager-applicationInfo.md)> | 是 | 回调函数,当获取成功时,err为null,data为获取到的ApplicationInfo;否则为错误对象。 | @@ -521,7 +521,7 @@ getApplicationInfo(bundleName: string, appFlags: [number](#applicationflag), cal | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------ | ---- | ---------------------------- | -| bundleName | string | 是 | 表示要查询的应用程序包名称。 | +| bundleName | string | 是 | 表示要查询的应用Bundle名称。 | | appFlags | [number](#applicationflag) | 是 | 指定返回的ApplicationInfo所包含的信息。 | | callback | AsyncCallback\<[ApplicationInfo](js-apis-bundleManager-applicationInfo.md)> | 是 | 回调函数,当获取成功时,err为null,data为获取到的ApplicationInfo;否则为错误对象。 | @@ -571,7 +571,7 @@ getApplicationInfo(bundleName: string, appFlags: [number](#applicationflag), use | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------ | ---- | ---------------------------- | -| bundleName | string | 是 | 表示要查询的应用程序包名称。 | +| bundleName | string | 是 | 表示要查询的应用Bundle名称。 | | appFlags | [number](#applicationflag) | 是 | 指定返回的ApplicationInfo所包含的信息。 | | userId | number | 否 | 表示用户ID。 | @@ -915,7 +915,7 @@ queryAbilityInfo(want: Want, abilityFlags: [number](#abilityflag), userId: numbe | 参数名 | 类型 | 必填 | 说明 | | ------------ | ------ | ---- | ------------------------------------------------------- | -| want | Want | 是 | 表示包含要查询的应用程序包名称的Want。 | +| want | Want | 是 | 表示包含要查询的应用Bundle名称的Want。 | | abilityFlags | [number](#abilityflag) | 是 | 指定返回的AbilityInfo所包含的信息。 | | userId | number | 是 | 表示用户ID。 | | callback | AsyncCallback> | 是 | 回调函数,当获取成功时,err为null,data为获取到的Array\;否则为错误对象。 | @@ -972,7 +972,7 @@ queryAbilityInfo(want: Want, abilityFlags: [number](#abilityflag), callback: Asy | 参数名 | 类型 | 必填 | 说明 | | ------------ | ------ | ---- | -------------------------------------------------------| -| want | Want | 是 | 表示包含要查询的应用程序包名称的Want。 | +| want | Want | 是 | 表示包含要查询的应用Bundle名称的Want。 | | abilityFlags | [number](#abilityflag) | 是 | 指定返回的AbilityInfo所包含的信息。 | | callback | AsyncCallback> | 是 | 回调函数,当获取成功时,err为null,data为获取到的Array\;否则为错误对象。 | @@ -1027,7 +1027,7 @@ queryAbilityInfo(want: Want, abilityFlags: [number](#abilityflag), userId?: numb | 参数名 | 类型 | 必填 | 说明 | | ------------ | ------ | ---- | ------------------------------------------------------- | -| want | Want | 是 | 表示包含要查询的应用程序包名称的Want。 | +| want | Want | 是 | 表示包含要查询的应用Bundle名称的Want。 | | abilityFlags | [number](#abilityflag) | 是 | 表示指定返回的AbilityInfo所包含的信息。 | | userId | number | 否 | 表示用户ID。 | @@ -1106,10 +1106,10 @@ queryExtensionAbilityInfo(want: Want, extensionAbilityType: [ExtensionAbilityTyp | 参数名 | 类型 | 必填 | 说明 | | --------------------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| want | Want | 是 | 表示包含要查询的应用程序包名称的Want。 | -| extensionAbilityType | [ExtensionAbilityType](#extensionabilitytype) | 是 | 标识extensionAbility的类型。 | -| extensionAbilityFlags | [number](#extensionabilityflag) | 是 | 表示用于指定将返回的ExtensionInfo对象中包含的信息的标志。 | -| userId | number | 是 | 表示用户ID。 | +| want | Want | 是 | 表示包含要查询的应用Bundle名称的Want。 | +| extensionAbilityType | [ExtensionAbilityType](#extensionabilitytype) | 是 | 标识extensionAbility的类型。 | +| extensionAbilityFlags | [number](#extensionabilityflag) | 是 | 表示用于指定将返回的ExtensionInfo对象中包含的信息的标志。 | +| userId | number | 是 | 表示用户ID。 | | callback | AsyncCallback> | 是 | 回调函数,当获取成功时,err为null,data为获取到Array\;否则为错误对象。 | **错误码:** @@ -1164,9 +1164,9 @@ queryExtensionAbilityInfo(want: Want, extensionAbilityType: [ExtensionAbilityTyp | 参数名 | 类型 | 必填 | 说明 | | --------------------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| want | Want | 是 | 表示包含要查询的应用程序包名称的Want。 | -| extensionAbilityType | [ExtensionAbilityType](#extensionabilitytype) | 是 | 标识extensionAbility的类型。 | -| extensionAbilityFlags | [number](#extensionabilityflag) | 是 | 表示用于指定将返回的ExtensionInfo对象中包含的信息的标志。 | +| want | Want | 是 | 表示包含要查询的应用Bundle名称的Want。 | +| extensionAbilityType | [ExtensionAbilityType](#extensionabilitytype) | 是 | 标识extensionAbility的类型。 | +| extensionAbilityFlags | [number](#extensionabilityflag) | 是 | 表示用于指定将返回的ExtensionInfo对象中包含的信息的标志。 | | callback | AsyncCallback> | 是 | 回调函数,当获取成功时,err为null,data为获取到Array\;否则为错误对象。 | **错误码:** @@ -1218,9 +1218,9 @@ queryExtensionAbilityInfo(want: Want, extensionAbilityType: [ExtensionAbilityTyp **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| --------------------- | --------------------------------------------- | ---- | ------------------------------------------------------- | -| want | Want | 是 | 表示包含要查询的应用程序包名称的Want。 | +| 参数名 | 类型 | 必填 | 说明 | +| --------------------- | --------------------------------------------- | ---- | --------------------------------------------------------- | +| want | Want | 是 | 表示包含要查询的应用Bundle名称的Want。 | | extensionAbilityType | [ExtensionAbilityType](#extensionabilitytype) | 是 | 标识extensionAbility的类型。 | | extensionAbilityFlags | [number](#extensionabilityflag) | 是 | 表示用于指定将返回的ExtensionInfo对象中包含的信息的标志。 | | userId | number | 否 | 表示用户ID。 | @@ -1711,7 +1711,7 @@ let want = { bundleName : "com.example.myapplication", abilityName : "com.example.myapplication.MainAbility" }; -var info; +let info; try { bundleManager.queryAbilityInfo(want, abilityFlags, userId).then((abilitiesInfo) => { @@ -1777,7 +1777,7 @@ let want = { bundleName : "com.example.myapplication", abilityName : "com.example.myapplication.MainAbility" }; -var info; +let info; try { bundleManager.queryAbilityInfo(want, abilityFlags, userId).then((abilitiesInfo) => { @@ -1924,7 +1924,7 @@ let want = { bundleName : "com.example.myapplication", abilityName : "com.example.myapplication.MainAbility" }; -var info; +let info; try { bundleManager.queryAbilityInfo(want, abilityFlags, userId).then((abilitiesInfo) => { @@ -1987,7 +1987,7 @@ let want = { bundleName : "com.example.myapplication", abilityName : "com.example.myapplication.MainAbility" }; -var info; +let info; try { bundleManager.queryAbilityInfo(want, abilityFlags, userId).then((abilitiesInfo) => { diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleMonitor.md b/zh-cn/application-dev/reference/apis/js-apis-bundleMonitor.md index 3a62f20cd58f414bf0023489dd7e54ce26b06f6a..0c4f4fe181ad774d6f00a3ed9904fae6aae07673 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleMonitor.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleMonitor.md @@ -28,12 +28,12 @@ import bundleMonitor from '@ohos.bundle.bundleMonitor'; | 名称 | 类型 | 可读 | 可写 | 说明 | | ---------- | ------ | ---- | ---- | -------------------------- | -| bundleName | string | 是 | 否 | 应用状态发生变化的应用包名。 | +| bundleName | string | 是 | 否 | 应用状态发生变化的应用Bundle名称。 | | userId | number | 是 | 否 | 应用状态发生变化的用户id。 | ## bundleMonitor.on -on(type: BundleChangedEvent, callback: Callback\): void; +on(type: BundleChangedEvent, callback: callback\): void; 注册监听应用的安装,卸载,更新。 @@ -47,8 +47,8 @@ on(type: BundleChangedEvent, callback: Callback\): void; | 参数名 | 类型 | 必填 | 说明 | | ---------------------------- | -------- | ---- | ------------------ | -| BundleChangedEvent | string | 是 | 注册监听的事件类型。 | -| Callback\ | callback | 是 | 注册监听的回调函数。 | +| type| BundleChangedEvent| 是 | 注册监听的事件类型。 | +| callback | callback\| 是 | 注册监听的回调函数。 | **示例:** @@ -66,7 +66,7 @@ try { ## bundleMonitor.off -off(type: BundleChangedEvent, callback?: Callback\): void; +off(type: BundleChangedEvent, callback?: callback\): void; 注销监听应用的安装,卸载,更新。 @@ -80,8 +80,8 @@ off(type: BundleChangedEvent, callback?: Callback\): void; | 参数名 | 类型 | 必填 | 说明 | | ---------------------------- | -------- | ---- | ---------------------------------------------------------- | -| BundleChangedEvent | string | 是 | 注销监听的事件类型。 | -| Callback\ | callback | 是 | 注销监听的回调函数,当为空时表示注销当前事件的所有callback。 | +| type| BundleChangedEvent| 是 | 注销监听的事件类型。 | +| callback | callback\| 是 | 注销监听的回调函数,当为空时表示注销当前事件的所有callback。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md b/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md index 2793dbbefe695c08ba084227b5d871e918e64d2d..46d0485bb53d43d6ae53c01e6934d49bb25f755d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md +++ b/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md @@ -16,7 +16,7 @@ import cardEmulation from '@ohos.nfc.cardEmulation'; 定义不同的NFC卡模拟类型。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.CardEmulation | 名称 | 值 | 说明 | | -------- | -------- | -------- | @@ -24,13 +24,24 @@ import cardEmulation from '@ohos.nfc.cardEmulation'; | UICC | 1 | SIM 卡模拟。 | | ESE | 2 | ESE卡模拟。 | +## CardType + +定义卡模拟应用是支付类型,还是非支付类型。 + +**系统能力:** SystemCapability.Communication.NFC.CardEmulation + +| 名称 | 值 | 说明 | +| -------- | -------- | -------- | +| PAYMENT | "payment" | 卡模拟应用是支付类型。 | +| OTHER | "other" | 卡模拟应用是非支付类型。 | + ## cardEmulation.isSupported isSupported(feature: number): boolean 是否支持某种类型的卡模拟。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.CardEmulation **参数:** @@ -44,6 +55,27 @@ isSupported(feature: number): boolean | -------- | -------- | | boolean | true: 支持该类型卡模拟, false: 不支持该类型卡模拟。| +## cardEmulation.isDefaultService + +isDefaultService(elementName: ElementName, type: CardType): boolean + +判断指定的应用是否为默认支付应用。 + +**系统能力:** SystemCapability.Communication.NFC.CardEmulation + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------- | -------- | ---- | ----------------------- | +| elementName | [ElementName](js-apis-bundleManager-elementName.md#elementname) | 是 | 应用的描述,由Bundle名称和组件名称组成。 | +| type | [CardType](#cardtype) | 是 | 应用的描述,由Bundle名称和组件名称组成。 | + +**返回值:** + +| **类型** | **说明** | +| -------- | -------- | +| boolean | true: 是默认支付应用, false: 不是默认支付应用。| + ## HceService8+ 提供HCE卡模拟的实现,主要包括接收对端读卡设备的APDU数据,并响应APDU数据到对端读卡设备。使用HCE相关接口前,必须先判断设备是否支持HCE卡模拟能力。 @@ -56,7 +88,7 @@ startHCE(aidList: string[]): boolean **需要权限:** ohos.permission.NFC_CARD_EMULATION -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.CardEmulation **参数:** @@ -72,7 +104,7 @@ stopHCE(): boolean **需要权限:** ohos.permission.NFC_CARD_EMULATION -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.CardEmulation ### on8+ @@ -82,7 +114,7 @@ on(type: "hceCmd", callback: AsyncCallback): void; **需要权限:** ohos.permission.NFC_CARD_EMULATION -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.CardEmulation **参数:** @@ -99,7 +131,7 @@ sendResponse(responseApdu: number[]): void; **需要权限:** ohos.permission.NFC_CARD_EMULATION -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.CardEmulation **参数:** @@ -118,6 +150,13 @@ if (!isHceSupported) { return; } +var elementName = { + "bundleName": "com.test.cardemulation", + "abilityName": "com.test.cardemulation.MainAbility", +}; +var isDefaultService = cardEmulation.isDefaultService(elementName, cardEmulation.CardType.PAYMENT); +console.log('is the app is default service for this card type: ' + isDefaultService); + // device supports HCE, transimit APDU with remote nfc reader. var hceService = new cardEmulation.HceService(); hceService.startHCE([ diff --git a/zh-cn/application-dev/reference/apis/js-apis-commonEvent.md b/zh-cn/application-dev/reference/apis/js-apis-commonEvent.md index 9941ef38f7e3690cb0d898a136b76c9227411708..58ec8675e61161db27d3efd6882a6d11b8292634 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-commonEvent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-commonEvent.md @@ -18,59 +18,59 @@ CommonEvent模块支持的事件类型。名称指的是系统公共事件宏; **系统能力:** SystemCapability.Notification.CommonEvent -| 名称 | 值 | 订阅者所需权限 | 说明 | -| ------------ | ------------------ | ---------------------- | -------------------- | -| COMMON_EVENT_BOOT_COMPLETED | usual.event.BOOT_COMPLETED | ohos.permission.RECEIVER_STARTUP_COMPLETED | 指示用户已完成引导并加载系统的公共事件的操作。 | -| COMMON_EVENT_LOCKED_BOOT_COMPLETED | usual.event.LOCKED_BOOT_COMPLETED | ohos.permission.RECEIVER_STARTUP_COMPLETED | 表示用户已完成引导,系统已加载,但屏幕仍锁定的公共事件的操作。 | -| COMMON_EVENT_SHUTDOWN | usual.event.SHUTDOWN | 无 | 指示设备正在关闭并将继续最终关闭的公共事件的操作。 | -| COMMON_EVENT_BATTERY_CHANGED | usual.event.BATTERY_CHANGED | 无 | 表示电池充电状态、电平和其他信息发生变化的公共事件的动作。 | -| COMMON_EVENT_BATTERY_LOW | usual.event.BATTERY_LOW | 无 | 表示电池电量低的普通事件的动作。 | -| COMMON_EVENT_BATTERY_OKAY | usual.event.BATTERY_OKAY | 无 | 表示电池退出低电平状态的公共事件的动作。 | -| COMMON_EVENT_POWER_CONNECTED | usual.event.POWER_CONNECTED | 无 | 设备连接到外部电源的公共事件的动作。 | -| COMMON_EVENT_POWER_DISCONNECTED | usual.event.POWER_DISCONNECTED | 无 | 设备与外部电源断开的公共事件的动作。 | -| COMMON_EVENT_SCREEN_OFF | usual.event.SCREEN_OFF | 无 | 指示设备屏幕关闭且设备处于睡眠状态的普通事件的动作。 | -| COMMON_EVENT_SCREEN_ON | usual.event.SCREEN_ON | 无 | 指示设备屏幕打开且设备处于交互状态的公共事件的操作。 | -| COMMON_EVENT_THERMAL_LEVEL_CHANGED8+ | usual.event.THERMAL_LEVEL_CHANGED | 无 | 指示设备热状态的公共事件的动作。 | -| COMMON_EVENT_USER_PRESENT | usual.event.USER_PRESENT | 无 | 用户解锁设备的公共事件的动作。 | -| COMMON_EVENT_TIME_TICK | usual.event.TIME_TICK | 无 | 表示系统时间更改的公共事件的动作。 | -| COMMON_EVENT_TIME_CHANGED | usual.event.TIME_CHANGED | 无 | 设置系统时间的公共事件的动作。 | -| COMMON_EVENT_DATE_CHANGED | usual.event.DATE_CHANGED | 无 | 表示系统日期已更改的公共事件的动作。 | -| COMMON_EVENT_TIMEZONE_CHANGED | usual.event.TIMEZONE_CHANGED | 无 | 表示系统时区更改的公共事件的动作。 | -| COMMON_EVENT_CLOSE_SYSTEM_DIALOGS | usual.event.CLOSE_SYSTEM_DIALOGS | 无 | 表示用户关闭临时系统对话框的公共事件的动作。 | -| COMMON_EVENT_PACKAGE_ADDED | usual.event.PACKAGE_ADDED | 无 | 设备上已安装新应用包的公共事件的动作。 | -| COMMON_EVENT_PACKAGE_REPLACED | usual.event.PACKAGE_REPLACED | 无 | 指示已安装的应用程序包的新版本已替换设备上的旧版本的公共事件的操作。 | -| COMMON_EVENT_MY_PACKAGE_REPLACED | usual.event.MY_PACKAGE_REPLACED | 无 | 指示应用程序包的新版本已取代前一个版本的公共事件的操作。 +| 名称 | | 订阅者所需权限 | 说明 | +| --------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| COMMON_EVENT_BOOT_COMPLETED | usual.event.BOOT_COMPLETED | ohos.permission.RECEIVER_STARTUP_COMPLETED | 指示用户已完成引导并加载系统的公共事件的操作。 | +| COMMON_EVENT_LOCKED_BOOT_COMPLETED | usual.event.LOCKED_BOOT_COMPLETED | ohos.permission.RECEIVER_STARTUP_COMPLETED | 表示用户已完成引导,系统已加载,但屏幕仍锁定的公共事件的操作。预留能力,暂未支持。 | +| COMMON_EVENT_SHUTDOWN | usual.event.SHUTDOWN | 无 | 指示设备正在关闭并将继续最终关闭的公共事件的操作。 | +| COMMON_EVENT_BATTERY_CHANGED | usual.event.BATTERY_CHANGED | 无 | 表示电池充电状态、电平和其他信息发生变化的公共事件的动作。 | +| COMMON_EVENT_BATTERY_LOW | usual.event.BATTERY_LOW | 无 | 表示电池电量低的普通事件的动作。 | +| COMMON_EVENT_BATTERY_OKAY | usual.event.BATTERY_OKAY | 无 | 表示电池退出低电平状态的公共事件的动作。 | +| COMMON_EVENT_POWER_CONNECTED | usual.event.POWER_CONNECTED | 无 | 设备连接到外部电源的公共事件的动作。 | +| COMMON_EVENT_POWER_DISCONNECTED | usual.event.POWER_DISCONNECTED | 无 | 设备与外部电源断开的公共事件的动作。 | +| COMMON_EVENT_SCREEN_OFF | usual.event.SCREEN_OFF | 无 | 指示设备屏幕关闭且设备处于睡眠状态的普通事件的动作。 | +| COMMON_EVENT_SCREEN_ON | usual.event.SCREEN_ON | 无 | 指示设备屏幕打开且设备处于交互状态的公共事件的操作。 | +| COMMON_EVENT_THERMAL_LEVEL_CHANGED8+ | usual.event.THERMAL_LEVEL_CHANGED | 无 | 指示设备热状态的公共事件的动作。 | +| COMMON_EVENT_USER_PRESENT | usual.event.USER_PRESENT | 无 | 用户解锁设备的公共事件的动作。预留能力,暂未支持。 | +| COMMON_EVENT_TIME_TICK | usual.event.TIME_TICK | 无 | 表示系统时间更改的公共事件的动作。 | +| COMMON_EVENT_TIME_CHANGED | usual.event.TIME_CHANGED | 无 | 设置系统时间的公共事件的动作。 | +| COMMON_EVENT_DATE_CHANGED | usual.event.DATE_CHANGED | 无 | 表示系统日期已更改的公共事件的动作。预留能力,暂未支持。 | +| COMMON_EVENT_TIMEZONE_CHANGED | usual.event.TIMEZONE_CHANGED | 无 | 表示系统时区更改的公共事件的动作。 | +| COMMON_EVENT_CLOSE_SYSTEM_DIALOGS | usual.event.CLOSE_SYSTEM_DIALOGS | 无 | 表示用户关闭临时系统对话框的公共事件的动作。预留能力,暂未支持。 | +| COMMON_EVENT_PACKAGE_ADDED | usual.event.PACKAGE_ADDED | 无 | 设备上已安装新应用包的公共事件的动作。 | +| COMMON_EVENT_PACKAGE_REPLACED | usual.event.PACKAGE_REPLACED | 无 | 指示已安装的应用程序包的新版本已替换设备上的旧版本的公共事件的操作。预留能力,暂未支持。 | +| COMMON_EVENT_MY_PACKAGE_REPLACED | usual.event.MY_PACKAGE_REPLACED | 无 | 指示应用程序包的新版本已取代前一个版本的公共事件的操作。预留事件,暂未支持。 | COMMON_EVENT_PACKAGE_REMOVED | usual.event.PACKAGE_REMOVED | 无 | 指示已从设备卸载已安装的应用程序,但应用程序数据保留的公共事件的操作。 | -| COMMON_EVENT_BUNDLE_REMOVED | usual.event.BUNDLE_REMOVED | 无 | 指示已从设备中卸载已安装的捆绑包,但应用程序数据仍保留的公共事件的操作。 | -| COMMON_EVENT_PACKAGE_FULLY_REMOVED | usual.event.PACKAGE_FULLY_REMOVED | 无 | 指示已从设备中完全卸载已安装的应用程序(包括应用程序数据和代码)的公共事件的操作。 | +| COMMON_EVENT_BUNDLE_REMOVED | usual.event.BUNDLE_REMOVED | 无 | 指示已从设备中卸载已安装的捆绑包,但应用程序数据仍保留的公共事件的操作。预留事件,暂未支持。 | +| COMMON_EVENT_PACKAGE_FULLY_REMOVED | usual.event.PACKAGE_FULLY_REMOVED | 无 | 指示已从设备中完全卸载已安装的应用程序(包括应用程序数据和代码)的公共事件的操作。预留事件,暂未支持。 | | COMMON_EVENT_PACKAGE_CHANGED | usual.event.PACKAGE_CHANGED | 无 | 指示应用包已更改的公共事件的动作(例如,包中的组件已启用或禁用)。 | | COMMON_EVENT_PACKAGE_RESTARTED | usual.event.PACKAGE_RESTARTED | 无 | 表示用户重启应用包并杀死其所有进程的普通事件的动作。 | | COMMON_EVENT_PACKAGE_DATA_CLEARED | usual.event.PACKAGE_DATA_CLEARED | 无 | 用户清除应用包数据的公共事件的动作。 | | COMMON_EVENT_PACKAGE_CACHE_CLEARED9+ | usual.event.PACKAGE_CACHE_CLEARED | 无 | 用户清除应用包缓存数据的公共事件的动作。 | -| COMMON_EVENT_PACKAGES_SUSPENDED | usual.event.PACKAGES_SUSPENDED | 无 | 表示应用包已挂起的公共事件的动作。 | -| COMMON_EVENT_PACKAGES_UNSUSPENDED | usual.event.PACKAGES_UNSUSPENDED | 无 | 表示应用包未挂起的公共事件的动作。 | +| COMMON_EVENT_PACKAGES_SUSPENDED | usual.event.PACKAGES_SUSPENDED | 无 | 表示应用包已挂起的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_PACKAGES_UNSUSPENDED | usual.event.PACKAGES_UNSUSPENDED | 无 | 表示应用包未挂起的公共事件的动作。预留事件,暂未支持。 | | COMMON_EVENT_MY_PACKAGE_SUSPENDED | usual.event.MY_PACKAGE_SUSPENDED | 无 | 应用包被挂起的公共事件的动作。 | | COMMON_EVENT_MY_PACKAGE_UNSUSPENDED | usual.event.MY_PACKAGE_UNSUSPENDED | 无 | 表示应用包未挂起的公共事件的动作。 | -| COMMON_EVENT_UID_REMOVED | usual.event.UID_REMOVED | 无 | 表示用户ID已从系统中删除的公共事件的动作。 | -| COMMON_EVENT_PACKAGE_FIRST_LAUNCH | usual.event.PACKAGE_FIRST_LAUNCH | 无 | 表示首次启动已安装应用程序的公共事件的动作。 | -| COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION | usual.event.PACKAGE_NEEDS_VERIFICATION | 无 | 表示应用需要系统校验的公共事件的动作。 | -| COMMON_EVENT_PACKAGE_VERIFIED | usual.event.PACKAGE_VERIFIED | 无 | 表示应用已被系统校验的公共事件的动作。 | -| COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE | usual.event.EXTERNAL_APPLICATIONS_AVAILABLE | 无 | 指示安装在外部存储上的应用程序对系统可用的公共事件的操作。 | -| COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE | usual.event.EXTERNAL_APPLICATIONS_UNAVAILABLE | 无 | 指示安装在外部存储上的应用程序对系统不可用的公共事件的操作。 | -| COMMON_EVENT_CONFIGURATION_CHANGED | usual.event.CONFIGURATION_CHANGED | 无 | 指示设备状态(例如,方向和区域设置)已更改的公共事件的操作。 | -| COMMON_EVENT_LOCALE_CHANGED | usual.event.LOCALE_CHANGED | 无 | 指示设备区域设置已更改的公共事件的操作。 | -| COMMON_EVENT_MANAGE_PACKAGE_STORAGE | usual.event.MANAGE_PACKAGE_STORAGE | 无 | 设备存储空间不足的公共事件的动作。 | -| COMMON_EVENT_DRIVE_MODE | common.event.DRIVE_MODE | 无 | 指示系统处于驾驶模式的公共事件的动作。 | -| COMMON_EVENT_HOME_MODE | common.event.HOME_MODE | 无 | 表示系统处于HOME模式的公共事件的动作。 | -| COMMON_EVENT_OFFICE_MODE | common.event.OFFICE_MODE | 无 | 表示系统处于办公模式的公共事件的动作。 | -| COMMON_EVENT_USER_STARTED | usual.event.USER_STARTED | 无 | 表示用户已启动的公共事件的动作。 | -| COMMON_EVENT_USER_BACKGROUND | usual.event.USER_BACKGROUND | 无 | 表示用户已被带到后台的公共事件的动作。 | -| COMMON_EVENT_USER_FOREGROUND | usual.event.USER_FOREGROUND | 无 | 表示用户已被带到前台的公共事件的动作。 | +| COMMON_EVENT_UID_REMOVED | usual.event.UID_REMOVED | 无 | 表示用户ID已从系统中删除的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_PACKAGE_FIRST_LAUNCH | usual.event.PACKAGE_FIRST_LAUNCH | 无 | 表示首次启动已安装应用程序的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION | usual.event.PACKAGE_NEEDS_VERIFICATION | 无 | 表示应用需要系统校验的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_PACKAGE_VERIFIED | usual.event.PACKAGE_VERIFIED | 无 | 表示应用已被系统校验的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE | usual.event.EXTERNAL_APPLICATIONS_AVAILABLE | 无 | 指示安装在外部存储上的应用程序对系统可用的公共事件的操作。预留事件,暂未支持。 | +| COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE | usual.event.EXTERNAL_APPLICATIONS_UNAVAILABLE | 无 | 指示安装在外部存储上的应用程序对系统不可用的公共事件的操作。预留事件,暂未支持。 | +| COMMON_EVENT_CONFIGURATION_CHANGED | usual.event.CONFIGURATION_CHANGED | 无 | 指示设备状态(例如,方向和区域设置)已更改的公共事件的操作。预留事件,暂未支持。 | +| COMMON_EVENT_LOCALE_CHANGED | usual.event.LOCALE_CHANGED | 无 | 指示设备区域设置已更改的公共事件的操作。预留事件,暂未支持。 | +| COMMON_EVENT_MANAGE_PACKAGE_STORAGE | usual.event.MANAGE_PACKAGE_STORAGE | 无 | 设备存储空间不足的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_DRIVE_MODE | common.event.DRIVE_MODE | 无 | 指示系统处于驾驶模式的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_HOME_MODE | common.event.HOME_MODE | 无 | 表示系统处于HOME模式的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_OFFICE_MODE | common.event.OFFICE_MODE | 无 | 表示系统处于办公模式的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_USER_STARTED | usual.event.USER_STARTED | 无 | 表示用户已启动的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_USER_BACKGROUND | usual.event.USER_BACKGROUND | 无 | 表示用户已被带到后台的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_USER_FOREGROUND | usual.event.USER_FOREGROUND | 无 | 表示用户已被带到前台的公共事件的动作。预留事件,暂未支持。 | | COMMON_EVENT_USER_SWITCHED | usual.event.USER_SWITCHED | ohos.permission.MANAGE_LOCAL_ACCOUNTS | 表示用户切换正在发生的公共事件的动作。 | -| COMMON_EVENT_USER_STARTING | usual.event.USER_STARTING | ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS | 表示要启动用户的公共事件的动作。 | -| COMMON_EVENT_USER_UNLOCKED | usual.event.USER_UNLOCKED | 无 | 设备重启后解锁时,当前用户的凭据加密存储已解锁的公共事件的动作。 | -| COMMON_EVENT_USER_STOPPING | usual.event.USER_STOPPING | ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS | 表示要停止用户的公共事件的动作。 | -| COMMON_EVENT_USER_STOPPED | usual.event.USER_STOPPED | 无 | 表示用户已停止的公共事件的动作。 | +| COMMON_EVENT_USER_STARTING | usual.event.USER_STARTING | ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS | 表示要启动用户的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_USER_UNLOCKED | usual.event.USER_UNLOCKED | 无 | 设备重启后解锁时,当前用户的凭据加密存储已解锁的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_USER_STOPPING | usual.event.USER_STOPPING | ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS | 表示要停止用户的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_USER_STOPPED | usual.event.USER_STOPPED | 无 | 表示用户已停止的公共事件的动作。预留事件,暂未支持。 | | COMMON_EVENT_WIFI_POWER_STATE | usual.event.wifi.POWER_STATE | 无 | Wi-Fi状态公共事件的动作,如启用和禁用。 | | COMMON_EVENT_WIFI_SCAN_FINISHED | usual.event.wifi.SCAN_FINISHED | ohos.permission.LOCATION | 表示Wi-Fi接入点已被扫描并证明可用的公共事件的操作。 | | COMMON_EVENT_WIFI_RSSI_VALUE | usual.event.wifi.RSSI_VALUE | ohos.permission.GET_WIFI_INFO | 表示Wi-Fi信号强度(RSSI)改变的公共事件的动作。 | @@ -85,87 +85,87 @@ CommonEvent模块支持的事件类型。名称指的是系统公共事件宏; | COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED | usual.event.wifi.p2p.PEER_DISCOVERY_STATE_CHANGE | ohos.permission.GET_WIFI_INFO | Wi-Fi P2P发现状态变化。 | | COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED | usual.event.wifi.p2p.CURRENT_DEVICE_CHANGE | ohos.permission.GET_WIFI_INFO | Wi-Fi P2P当前设备状态变化。 | | COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED | usual.event.wifi.p2p.GROUP_STATE_CHANGED | ohos.permission.GET_WIFI_INFO | Wi-Fi P2P群组信息已更改。 | -| COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE | usual.event.bluetooth.handsfree.ag.CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 蓝牙免提通信连接状态公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE | usual.event.bluetooth.handsfree.ag.CURRENT_DEVICE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示连接到蓝牙免提的设备处于活动状态的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE | usual.event.bluetooth.handsfree.ag.AUDIO_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP连接状态已更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE | usual.event.bluetooth.a2dpsource.CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 蓝牙A2DP连接状态公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE | usual.event.bluetooth.a2dpsource.CURRENT_DEVICE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示使用蓝牙A2DP连接的设备处于活动状态的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE | usual.event.bluetooth.a2dpsource.PLAYING_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 蓝牙A2DP播放状态改变的普通事件的动作。 | -| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE | usual.event.bluetooth.a2dpsource.AVRCP_CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP的AVRCP连接状态已更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE | usual.event.bluetooth.a2dpsource.CODEC_VALUE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP音频编解码状态更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED | usual.event.bluetooth.remotedevice.DISCOVERED | ohos.permission.LOCATION and ohos.permission.USE_BLUETOOTH | 表示发现远程蓝牙设备的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE | usual.event.bluetooth.remotedevice.CLASS_VALUE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示远程蓝牙设备的蓝牙类别已更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED | usual.event.bluetooth.remotedevice.ACL_CONNECTED | ohos.permission.USE_BLUETOOTH | 指示已与远程蓝牙设备建立低级别(ACL)连接的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED | usual.event.bluetooth.remotedevice.ACL_DISCONNECTED | ohos.permission.USE_BLUETOOTH | 表示低电平(ACL)连接已从远程蓝牙设备断开的普通事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE | usual.event.bluetooth.remotedevice.NAME_UPDATE | ohos.permission.USE_BLUETOOTH | 表示远程蓝牙设备的友好名称首次被检索或自上次检索以来被更改的公共事件的操作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE | usual.event.bluetooth.remotedevice.PAIR_STATE | ohos.permission.USE_BLUETOOTH | 远程蓝牙设备连接状态更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE | usual.event.bluetooth.remotedevice.BATTERY_VALUE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示远程蓝牙设备的电池电量首次被检索或自上次检索以来被更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT | usual.event.bluetooth.remotedevice.SDP_RESULT | 无 | 远程蓝牙设备SDP状态公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE | usual.event.bluetooth.remotedevice.UUID_VALUE | ohos.permission.DISCOVER_BLUETOOTH | 远程蓝牙设备UUID连接状态公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ | usual.event.bluetooth.remotedevice.PAIRING_REQ | ohos.permission.DISCOVER_BLUETOOTH | 表示远程蓝牙设备配对请求的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL | usual.event.bluetooth.remotedevice.PAIRING_CANCEL | 无 | 取消蓝牙配对的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ | usual.event.bluetooth.remotedevice.CONNECT_REQ | 无 | 表示远程蓝牙设备连接请求的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY | usual.event.bluetooth.remotedevice.CONNECT_REPLY | 无 | 表示远程蓝牙设备连接请求响应的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL | usual.event.bluetooth.remotedevice.CONNECT_CANCEL | 无 | 表示取消与远程蓝牙设备的连接的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE | usual.event.bluetooth.handsfreeunit.CONNECT_STATE_UPDATE | 无 | 表示蓝牙免提连接状态已更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE | usual.event.bluetooth.handsfreeunit.AUDIO_STATE_UPDATE | 无 | 表示蓝牙免提音频状态已更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT | usual.event.bluetooth.handsfreeunit.AG_COMMON_EVENT | 无 | 表示蓝牙免提音频网关状态已更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE | usual.event.bluetooth.handsfreeunit.AG_CALL_STATE_UPDATE | 无 | 表示蓝牙免提呼叫状态已更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE | usual.event.bluetooth.host.STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙适配器状态已更改的公共事件的操作,例如蓝牙已打开或关闭。 | -| COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE | usual.event.bluetooth.host.REQ_DISCOVERABLE | 无 | 表示用户允许扫描蓝牙请求的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE | usual.event.bluetooth.host.REQ_ENABLE | ohos.permission.USE_BLUETOOTH | 表示用户打开蓝牙请求的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE | usual.event.bluetooth.host.REQ_DISABLE | ohos.permission.USE_BLUETOOTH | 表示用户关闭蓝牙请求的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE | usual.event.bluetooth.host.SCAN_MODE_UPDATE | ohos.permission.USE_BLUETOOTH | 设备蓝牙扫描模式更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED | usual.event.bluetooth.host.DISCOVERY_STARTED | ohos.permission.USE_BLUETOOTH | 设备上已启动蓝牙扫描的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED | usual.event.bluetooth.host.DISCOVERY_FINISHED | ohos.permission.USE_BLUETOOTH | 设备上蓝牙扫描完成的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE | usual.event.bluetooth.host.NAME_UPDATE | ohos.permission.USE_BLUETOOTH | 指示设备蓝牙适配器名称已更改的公共事件的操作。 | -| COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE | usual.event.bluetooth.a2dpsink.CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP宿连接状态已更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE | usual.event.bluetooth.a2dpsink.PLAYING_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 蓝牙A2DP宿播放状态改变的普通事件的动作。 | -| COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE | usual.event.bluetooth.a2dpsink.AUDIO_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP宿的音频状态已更改的公共事件的动作。 | +| COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE | usual.event.bluetooth.handsfree.ag.CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 蓝牙免提通信连接状态公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE | usual.event.bluetooth.handsfree.ag.CURRENT_DEVICE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示连接到蓝牙免提的设备处于活动状态的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE | usual.event.bluetooth.handsfree.ag.AUDIO_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP连接状态已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE | usual.event.bluetooth.a2dpsource.CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 蓝牙A2DP连接状态公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE | usual.event.bluetooth.a2dpsource.CURRENT_DEVICE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示使用蓝牙A2DP连接的设备处于活动状态的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE | usual.event.bluetooth.a2dpsource.PLAYING_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 蓝牙A2DP播放状态改变的普通事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE | usual.event.bluetooth.a2dpsource.AVRCP_CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP的AVRCP连接状态已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE | usual.event.bluetooth.a2dpsource.CODEC_VALUE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP音频编解码状态更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED | usual.event.bluetooth.remotedevice.DISCOVERED | ohos.permission.LOCATION and ohos.permission.USE_BLUETOOTH | 表示发现远程蓝牙设备的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE | usual.event.bluetooth.remotedevice.CLASS_VALUE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示远程蓝牙设备的蓝牙类别已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED | usual.event.bluetooth.remotedevice.ACL_CONNECTED | ohos.permission.USE_BLUETOOTH | 指示已与远程蓝牙设备建立低级别(ACL)连接的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED | usual.event.bluetooth.remotedevice.ACL_DISCONNECTED | ohos.permission.USE_BLUETOOTH | 表示低电平(ACL)连接已从远程蓝牙设备断开的普通事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE | usual.event.bluetooth.remotedevice.NAME_UPDATE | ohos.permission.USE_BLUETOOTH | 表示远程蓝牙设备的友好名称首次被检索或自上次检索以来被更改的公共事件的操作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE | usual.event.bluetooth.remotedevice.PAIR_STATE | ohos.permission.USE_BLUETOOTH | 远程蓝牙设备连接状态更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE | usual.event.bluetooth.remotedevice.BATTERY_VALUE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示远程蓝牙设备的电池电量首次被检索或自上次检索以来被更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT | usual.event.bluetooth.remotedevice.SDP_RESULT | 无 | 远程蓝牙设备SDP状态公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE | usual.event.bluetooth.remotedevice.UUID_VALUE | ohos.permission.DISCOVER_BLUETOOTH | 远程蓝牙设备UUID连接状态公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ | usual.event.bluetooth.remotedevice.PAIRING_REQ | ohos.permission.DISCOVER_BLUETOOTH | 表示远程蓝牙设备配对请求的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL | usual.event.bluetooth.remotedevice.PAIRING_CANCEL | 无 | 取消蓝牙配对的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ | usual.event.bluetooth.remotedevice.CONNECT_REQ | 无 | 表示远程蓝牙设备连接请求的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY | usual.event.bluetooth.remotedevice.CONNECT_REPLY | 无 | 表示远程蓝牙设备连接请求响应的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL | usual.event.bluetooth.remotedevice.CONNECT_CANCEL | 无 | 表示取消与远程蓝牙设备的连接的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE | usual.event.bluetooth.handsfreeunit.CONNECT_STATE_UPDATE | 无 | 表示蓝牙免提连接状态已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE | usual.event.bluetooth.handsfreeunit.AUDIO_STATE_UPDATE | 无 | 表示蓝牙免提音频状态已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT | usual.event.bluetooth.handsfreeunit.AG_COMMON_EVENT | 无 | 表示蓝牙免提音频网关状态已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE | usual.event.bluetooth.handsfreeunit.AG_CALL_STATE_UPDATE | 无 | 表示蓝牙免提呼叫状态已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE | usual.event.bluetooth.host.STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙适配器状态已更改的公共事件的操作,例如蓝牙已打开或关闭。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE | usual.event.bluetooth.host.REQ_DISCOVERABLE | 无 | 表示用户允许扫描蓝牙请求的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE | usual.event.bluetooth.host.REQ_ENABLE | ohos.permission.USE_BLUETOOTH | 表示用户打开蓝牙请求的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE | usual.event.bluetooth.host.REQ_DISABLE | ohos.permission.USE_BLUETOOTH | 表示用户关闭蓝牙请求的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE | usual.event.bluetooth.host.SCAN_MODE_UPDATE | ohos.permission.USE_BLUETOOTH | 设备蓝牙扫描模式更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED | usual.event.bluetooth.host.DISCOVERY_STARTED | ohos.permission.USE_BLUETOOTH | 设备上已启动蓝牙扫描的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED | usual.event.bluetooth.host.DISCOVERY_FINISHED | ohos.permission.USE_BLUETOOTH | 设备上蓝牙扫描完成的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE | usual.event.bluetooth.host.NAME_UPDATE | ohos.permission.USE_BLUETOOTH | 指示设备蓝牙适配器名称已更改的公共事件的操作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE | usual.event.bluetooth.a2dpsink.CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP宿连接状态已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE | usual.event.bluetooth.a2dpsink.PLAYING_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 蓝牙A2DP宿播放状态改变的普通事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE | usual.event.bluetooth.a2dpsink.AUDIO_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP宿的音频状态已更改的公共事件的动作。预留事件,暂未支持。 | | COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED | usual.event.nfc.action.ADAPTER_STATE_CHANGED | 无 | 指示设备NFC适配器状态已更改的公共事件的操作。 | -| COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED | usual.event.nfc.action.RF_FIELD_ON_DETECTED | ohos.permission.MANAGE_SECURE_SETTINGS | 检测到NFC RF字段处于使能状态的公共事件的动作。 | -| COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED | usual.event.nfc.action.RF_FIELD_OFF_DETECTED | ohos.permission.MANAGE_SECURE_SETTINGS | 检测到NFC RF字段处于关闭状态的公共事件的动作。 | +| COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED | usual.event.nfc.action.RF_FIELD_ON_DETECTED | ohos.permission.MANAGE_SECURE_SETTINGS | 检测到NFC RF字段处于使能状态的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED | usual.event.nfc.action.RF_FIELD_OFF_DETECTED | ohos.permission.MANAGE_SECURE_SETTINGS | 检测到NFC RF字段处于关闭状态的公共事件的动作。预留事件,暂未支持。 | | COMMON_EVENT_DISCHARGING | usual.event.DISCHARGING | 无 | 表示系统停止为电池充电的公共事件的动作。 | | COMMON_EVENT_CHARGING | usual.event.CHARGING | 无 | 表示系统开始为电池充电的公共事件的动作。 | -| COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED | usual.event.DEVICE_IDLE_MODE_CHANGED | 无 | 表示系统空闲模式已更改的公共事件的动作。 | +| COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED | usual.event.DEVICE_IDLE_MODE_CHANGED | 无 | 表示系统空闲模式已更改的公共事件的动作。预留事件,暂未支持。 | | COMMON_EVENT_POWER_SAVE_MODE_CHANGED | usual.event.POWER_SAVE_MODE_CHANGED | 无 | 表示系统节能模式更改的公共事件的动作。 | | COMMON_EVENT_USER_ADDED | usual.event.USER_ADDED | ohos.permission.MANAGE_LOCAL_ACCOUNTS | 表示用户已添加到系统中的公共事件的动作。 | | COMMON_EVENT_USER_REMOVED | usual.event.USER_REMOVED | ohos.permission.MANAGE_LOCAL_ACCOUNTS | 表示用户已从系统中删除的公共事件的动作。 | -| COMMON_EVENT_ABILITY_ADDED | usual.event.ABILITY_ADDED | ohos.permission.LISTEN_BUNDLE_CHANGE | 表示已添加能力的公共事件的动作。 | -| COMMON_EVENT_ABILITY_REMOVED | usual.event.ABILITY_REMOVED | ohos.permission.LISTEN_BUNDLE_CHANGE | 表示已删除能力的公共事件的动作。 | -| COMMON_EVENT_ABILITY_UPDATED | usual.event.ABILITY_UPDATED | ohos.permission.LISTEN_BUNDLE_CHANGE | 表示能力已更新的公共事件的动作。 | -| COMMON_EVENT_LOCATION_MODE_STATE_CHANGED | usual.event.location.MODE_STATE_CHANGED | 无 | 表示系统定位模式已更改的公共事件的动作。 | -| COMMON_EVENT_IVI_SLEEP | common.event.IVI_SLEEP | 无 | 表示指示车辆的车载信息娱乐(IVI)系统正在休眠的常见事件的动作。 | -| COMMON_EVENT_IVI_PAUSE | common.event.IVI_PAUSE | 无 | 表示IVI已休眠,并通知应用程序停止播放。 | -| COMMON_EVENT_IVI_STANDBY | common.event.IVI_STANDBY | 无 | 指示第三方应用暂停当前工作的公共事件的动作。 | -| COMMON_EVENT_IVI_LASTMODE_SAVE | common.event.IVI_LASTMODE_SAVE | 无 | 指示第三方应用保存其最后一个模式的公共事件的动作。 | -| COMMON_EVENT_IVI_VOLTAGE_ABNORMAL | common.event.IVI_VOLTAGE_ABNORMAL | 无 | 表示车辆电源系统电压异常的公共事件的动作。 | -| COMMON_EVENT_IVI_HIGH_TEMPERATURE | common.event.IVI_HIGH_TEMPERATURE | 无 | 表示IVI温度过高。 | -| COMMON_EVENT_IVI_EXTREME_TEMPERATURE | common.event.IVI_EXTREME_TEMPERATURE | 无 | 表示IVI温度极高。 | -| COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL | common.event.IVI_TEMPERATURE_ABNORMAL | 无 | 表示车载系统具有极端温度的常见事件的动作。 | -| COMMON_EVENT_IVI_VOLTAGE_RECOVERY | common.event.IVI_VOLTAGE_RECOVERY | 无 | 表示车辆电源系统电压恢复正常的公共事件的动作。 | -| COMMON_EVENT_IVI_TEMPERATURE_RECOVERY | common.event.IVI_TEMPERATURE_RECOVERY | 无 | 表示车载系统温度恢复正常的公共事件的动作。 | -| COMMON_EVENT_IVI_ACTIVE | common.event.IVI_ACTIVE | 无 | 表示电池服务处于活动状态的公共事件的动作。 | +| COMMON_EVENT_ABILITY_ADDED | usual.event.ABILITY_ADDED | ohos.permission.LISTEN_BUNDLE_CHANGE | 表示已添加能力的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_ABILITY_REMOVED | usual.event.ABILITY_REMOVED | ohos.permission.LISTEN_BUNDLE_CHANGE | 表示已删除能力的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_ABILITY_UPDATED | usual.event.ABILITY_UPDATED | ohos.permission.LISTEN_BUNDLE_CHANGE | 表示能力已更新的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_LOCATION_MODE_STATE_CHANGED | usual.event.location.MODE_STATE_CHANGED | 无 | 表示系统定位模式已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_SLEEP | common.event.IVI_SLEEP | 无 | 表示指示车辆的车载信息娱乐(IVI)系统正在休眠的常见事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_PAUSE | common.event.IVI_PAUSE | 无 | 表示IVI已休眠,并通知应用程序停止播放。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_STANDBY | common.event.IVI_STANDBY | 无 | 指示第三方应用暂停当前工作的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_LASTMODE_SAVE | common.event.IVI_LASTMODE_SAVE | 无 | 指示第三方应用保存其最后一个模式的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_VOLTAGE_ABNORMAL | common.event.IVI_VOLTAGE_ABNORMAL | 无 | 表示车辆电源系统电压异常的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_HIGH_TEMPERATURE | common.event.IVI_HIGH_TEMPERATURE | 无 | 表示IVI温度过高。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_EXTREME_TEMPERATURE | common.event.IVI_EXTREME_TEMPERATURE | 无 | 表示IVI温度极高。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL | common.event.IVI_TEMPERATURE_ABNORMAL | 无 | 表示车载系统具有极端温度的常见事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_VOLTAGE_RECOVERY | common.event.IVI_VOLTAGE_RECOVERY | 无 | 表示车辆电源系统电压恢复正常的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_TEMPERATURE_RECOVERY | common.event.IVI_TEMPERATURE_RECOVERY | 无 | 表示车载系统温度恢复正常的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_ACTIVE | common.event.IVI_ACTIVE | 无 | 表示电池服务处于活动状态的公共事件的动作。预留事件,暂未支持。 | |COMMON_EVENT_USB_STATE9+ | usual.event.hardware.usb.action.USB_STATE | 无 | 表示USB设备状态发生变化的公共事件。 | |COMMON_EVENT_USB_PORT_CHANGED9+ | usual.event.hardware.usb.action.USB_PORT_CHANGED | 无 | 表示用户设备的USB端口状态发生改变的公共事件。 | | COMMON_EVENT_USB_DEVICE_ATTACHED | usual.event.hardware.usb.action.USB_DEVICE_ATTACHED | 无 | 当用户设备作为USB主机时,USB设备已挂载的公共事件的动作。 | | COMMON_EVENT_USB_DEVICE_DETACHED | usual.event.hardware.usb.action.USB_DEVICE_DETACHED | 无 | 当用户设备作为USB主机时,USB设备被卸载的公共事件的动作。 | -| COMMON_EVENT_USB_ACCESSORY_ATTACHED | usual.event.hardware.usb.action.USB_ACCESSORY_ATTACHED | 无 | 表示已连接USB附件的公共事件的动作。 | -| COMMON_EVENT_USB_ACCESSORY_DETACHED | usual.event.hardware.usb.action.USB_ACCESSORY_DETACHED | 无 | 表示USB附件被卸载的公共事件的动作。 | -| COMMON_EVENT_DISK_REMOVED | usual.event.data.DISK_REMOVED | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为移除时发送此公共事件。 | -| COMMON_EVENT_DISK_UNMOUNTED | usual.event.data.DISK_UNMOUNTED | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为卸载时发送此公共事件。 | -| COMMON_EVENT_DISK_MOUNTED | usual.event.data.DISK_MOUNTED | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为挂载时发送此公共事件。 | -| COMMON_EVENT_DISK_BAD_REMOVAL | usual.event.data.DISK_BAD_REMOVAL | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为挂载状态下移除时发送此公共事件。 | -| COMMON_EVENT_DISK_UNMOUNTABLE | usual.event.data.DISK_UNMOUNTABLE | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为插卡情况下无法挂载时发送此公共事件。 | -| COMMON_EVENT_DISK_EJECT | usual.event.data.DISK_EJECT | ohos.permission.STORAGE_MANAGER | 用户已表示希望删除外部存储介质时发送此公共事件。 | +| COMMON_EVENT_USB_ACCESSORY_ATTACHED | usual.event.hardware.usb.action.USB_ACCESSORY_ATTACHED | 无 | 表示已连接USB附件的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_USB_ACCESSORY_DETACHED | usual.event.hardware.usb.action.USB_ACCESSORY_DETACHED | 无 | 表示USB附件被卸载的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_DISK_REMOVED | usual.event.data.DISK_REMOVED | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为移除时发送此公共事件。预留事件,暂未支持。 | +| COMMON_EVENT_DISK_UNMOUNTED | usual.event.data.DISK_UNMOUNTED | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为卸载时发送此公共事件。预留事件,暂未支持。 | +| COMMON_EVENT_DISK_MOUNTED | usual.event.data.DISK_MOUNTED | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为挂载时发送此公共事件。预留事件,暂未支持。 | +| COMMON_EVENT_DISK_BAD_REMOVAL | usual.event.data.DISK_BAD_REMOVAL | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为挂载状态下移除时发送此公共事件。预留事件,暂未支持。 | +| COMMON_EVENT_DISK_UNMOUNTABLE | usual.event.data.DISK_UNMOUNTABLE | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为插卡情况下无法挂载时发送此公共事件。预留事件,暂未支持。 | +| COMMON_EVENT_DISK_EJECT | usual.event.data.DISK_EJECT | ohos.permission.STORAGE_MANAGER | 用户已表示希望删除外部存储介质时发送此公共事件。预留事件,暂未支持。 | | COMMON_EVENT_VOLUME_REMOVED9+ | usual.event.data.VOLUME_REMOVED | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为移除时发送此公共事件。 | | COMMON_EVENT_VOLUME_UNMOUNTED9+ | usual.event.data.VOLUME_UNMOUNTED | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为卸载时发送此公共事件。 | | COMMON_EVENT_VOLUME_MOUNTED9+ | usual.event.data.VOLUME_MOUNTED | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为挂载时发送此公共事件。 | | COMMON_EVENT_VOLUME_BAD_REMOVAL9+ | usual.event.data.VOLUME_BAD_REMOVAL | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为挂载状态下移除时发送此公共事件。 | | COMMON_EVENT_VOLUME_EJECT9+ | usual.event.data.VOLUME_EJECT | ohos.permission.STORAGE_MANAGER | 用户已表示希望删除外部存储介质时发送此公共事件。 | -| COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED | usual.event.data.VISIBLE_ACCOUNTS_UPDATED | ohos.permission.GET_APP_ACCOUNTS | 表示帐户可见更改的公共事件的动作。 | -| COMMON_EVENT_ACCOUNT_DELETED | usual.event.data.ACCOUNT_DELETED | ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS | 删除帐户的公共事件的动作。 | -| COMMON_EVENT_FOUNDATION_READY | usual.event.data.FOUNDATION_READY | ohos.permission.RECEIVER_STARTUP_COMPLETED | 表示foundation已准备好的公共事件的动作。 | +| COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED | usual.event.data.VISIBLE_ACCOUNTS_UPDATED | ohos.permission.GET_APP_ACCOUNTS | 表示帐户可见更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_ACCOUNT_DELETED | usual.event.data.ACCOUNT_DELETED | ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS | 删除帐户的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_FOUNDATION_READY | usual.event.data.FOUNDATION_READY | ohos.permission.RECEIVER_STARTUP_COMPLETED | 表示foundation已准备好的公共事件的动作。预留事件,暂未支持。 | | COMMON_EVENT_AIRPLANE_MODE_CHANGED | usual.event.AIRPLANE_MODE | 无 | 表示设备飞行模式已更改的公共事件的动作。 | | COMMON_EVENT_SPLIT_SCREEN8+ | usual.event.SPLIT_SCREEN | 无 | 表示分屏的公共事件的动作。 | | COMMON_EVENT_SLOT_CHANGE9+ | usual.event.SLOT_CHANGE | ohos.permission.NOTIFICATION_CONTROLLER | 表示通知通道更新的动作。 | @@ -1244,7 +1244,7 @@ subscriber.finishCommonEvent().then(() => { | 名称 | 类型 | 可读 | 可写 | 说明 | | ---------- |-------------------- | ---- | ---- | ------------------------------------------------------- | | event | string | 是 | 否 | 表示当前接收的公共事件名称。 | -| bundleName | string | 是 | 否 | 表示包名称。 | +| bundleName | string | 是 | 否 | 表示Bundle名称。 | | code | number | 是 | 否 | 表示公共事件的结果代码,用于传递int类型的数据。 | | data | string | 是 | 否 | 表示公共事件的自定义结果数据,用于传递string类型的数据。 | | parameters | {[key: string]: any} | 是 | 否 | 表示公共事件的附加信息。 | @@ -1258,7 +1258,7 @@ subscriber.finishCommonEvent().then(() => { | 名称 | 类型 | 可读 | 可写 | 说明 | | --------------------- | -------------------- | ---- | ---- | ---------------------------- | -| bundleName | string | 是 | 否 | 表示包名称。 | +| bundleName | string | 是 | 否 | 表示Bundle名称。 | | code | number | 是 | 否 | 表示公共事件的结果代码。 | | data | string | 是 | 否 | 表示公共事件的自定义结果数据。 | | subscriberPermissions | Array\ | 是 | 否 | 表示订阅者的权限。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md b/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md index abf50c4da461794f95b248ceead1129a42bb0dc9..846991584dc3235723eba0911801abaa1dc25438 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md @@ -18,10 +18,10 @@ CommonEventManager模块支持的事件类型。名称指的是系统公共事 **系统能力:** SystemCapability.Notification.CommonEvent -| 名称 | 值 | 订阅者所需权限 | 说明 | +| 名称 | | 订阅者所需权限 | 说明 | | ------------ | ------------------ | ---------------------- | -------------------- | | COMMON_EVENT_BOOT_COMPLETED | usual.event.BOOT_COMPLETED | ohos.permission.RECEIVER_STARTUP_COMPLETED | 表示用户已完成引导并加载系统的公共事件的操作。 | -| COMMON_EVENT_LOCKED_BOOT_COMPLETED | usual.event.LOCKED_BOOT_COMPLETED | ohos.permission.RECEIVER_STARTUP_COMPLETED | 表示用户已完成引导,系统已加载,但屏幕仍锁定的公共事件的操作。 | +| COMMON_EVENT_LOCKED_BOOT_COMPLETED | usual.event.LOCKED_BOOT_COMPLETED | ohos.permission.RECEIVER_STARTUP_COMPLETED | 表示用户已完成引导,系统已加载,但屏幕仍锁定的公共事件的操作。预留能力,暂未支持。 | | COMMON_EVENT_SHUTDOWN | usual.event.SHUTDOWN | 无 | 表示设备正在关闭并将继续最终关闭的公共事件的操作。 | | COMMON_EVENT_BATTERY_CHANGED | usual.event.BATTERY_CHANGED | 无 | 表示电池充电状态、电平和其他信息发生变化的公共事件的动作。 | | COMMON_EVENT_BATTERY_LOW | usual.event.BATTERY_LOW | 无 | 表示电池电量低的普通事件的动作。 | @@ -31,50 +31,50 @@ CommonEventManager模块支持的事件类型。名称指的是系统公共事 | COMMON_EVENT_SCREEN_OFF | usual.event.SCREEN_OFF | 无 | 表示设备屏幕关闭且设备处于睡眠状态的普通事件的动作。 | | COMMON_EVENT_SCREEN_ON | usual.event.SCREEN_ON | 无 | 表示设备屏幕打开且设备处于交互状态的公共事件的操作。 | | COMMON_EVENT_THERMAL_LEVEL_CHANGED | usual.event.THERMAL_LEVEL_CHANGED | 无 | 表示设备热状态的公共事件的动作。 | -| COMMON_EVENT_USER_PRESENT | usual.event.USER_PRESENT | 无 | 用户解锁设备的公共事件的动作。 | +| COMMON_EVENT_USER_PRESENT | usual.event.USER_PRESENT | 无 | 用户解锁设备的公共事件的动作。预留能力,暂未支持。 | | COMMON_EVENT_TIME_TICK | usual.event.TIME_TICK | 无 | 表示系统时间更改的公共事件的动作。 | | COMMON_EVENT_TIME_CHANGED | usual.event.TIME_CHANGED | 无 | 设置系统时间的公共事件的动作。 | -| COMMON_EVENT_DATE_CHANGED | usual.event.DATE_CHANGED | 无 | 表示系统日期已更改的公共事件的动作。 | +| COMMON_EVENT_DATE_CHANGED | usual.event.DATE_CHANGED | 无 | 表示系统日期已更改的公共事件的动作。预留能力,暂未支持。 | | COMMON_EVENT_TIMEZONE_CHANGED | usual.event.TIMEZONE_CHANGED | 无 | 表示系统时区更改的公共事件的动作。 | -| COMMON_EVENT_CLOSE_SYSTEM_DIALOGS | usual.event.CLOSE_SYSTEM_DIALOGS | 无 | 表示用户关闭临时系统对话框的公共事件的动作。 | +| COMMON_EVENT_CLOSE_SYSTEM_DIALOGS | usual.event.CLOSE_SYSTEM_DIALOGS | 无 | 表示用户关闭临时系统对话框的公共事件的动作。预留能力,暂未支持。 | | COMMON_EVENT_PACKAGE_ADDED | usual.event.PACKAGE_ADDED | 无 | 设备上已安装新应用包的公共事件的动作。 | -| COMMON_EVENT_PACKAGE_REPLACED | usual.event.PACKAGE_REPLACED | 无 | 表示已安装的应用程序包的新版本已替换设备上的旧版本的公共事件的操作。 | -| COMMON_EVENT_MY_PACKAGE_REPLACED | usual.event.MY_PACKAGE_REPLACED | 无 | 表示应用程序包的新版本已取代前一个版本的公共事件的操作。 +| COMMON_EVENT_PACKAGE_REPLACED | usual.event.PACKAGE_REPLACED | 无 | 表示已安装的应用程序包的新版本已替换设备上的旧版本的公共事件的操作。预留能力,暂未支持。 | +| COMMON_EVENT_MY_PACKAGE_REPLACED | usual.event.MY_PACKAGE_REPLACED | 无 | 表示应用程序包的新版本已取代前一个版本的公共事件的操作。预留事件,暂未支持。 | COMMON_EVENT_PACKAGE_REMOVED | usual.event.PACKAGE_REMOVED | 无 | 表示已从设备卸载已安装的应用程序,但应用程序数据保留的公共事件的操作。 | -| COMMON_EVENT_BUNDLE_REMOVED | usual.event.BUNDLE_REMOVED | 无 | 表示已从设备中卸载已安装的捆绑包,但应用程序数据仍保留的公共事件的操作。 | -| COMMON_EVENT_PACKAGE_FULLY_REMOVED | usual.event.PACKAGE_FULLY_REMOVED | 无 | 表示已从设备中完全卸载已安装的应用程序(包括应用程序数据和代码)的公共事件的操作。 | +| COMMON_EVENT_BUNDLE_REMOVED | usual.event.BUNDLE_REMOVED | 无 | 表示已从设备中卸载已安装的捆绑包,但应用程序数据仍保留的公共事件的操作。预留事件,暂未支持。 | +| COMMON_EVENT_PACKAGE_FULLY_REMOVED | usual.event.PACKAGE_FULLY_REMOVED | 无 | 表示已从设备中完全卸载已安装的应用程序(包括应用程序数据和代码)的公共事件的操作。预留事件,暂未支持。 | | COMMON_EVENT_PACKAGE_CHANGED | usual.event.PACKAGE_CHANGED | 无 | 表示应用包已更改的公共事件的动作(例如,包中的组件已启用或禁用)。 | | COMMON_EVENT_PACKAGE_RESTARTED | usual.event.PACKAGE_RESTARTED | 无 | 表示用户重启应用包并杀死其所有进程的普通事件的动作。 | | COMMON_EVENT_PACKAGE_DATA_CLEARED | usual.event.PACKAGE_DATA_CLEARED | 无 | 用户清除应用包数据的公共事件的动作。 | | COMMON_EVENT_PACKAGE_CACHE_CLEARED9+ | usual.event.PACKAGE_CACHE_CLEARED | 无 | 用户清除应用包缓存数据的公共事件的动作。 | -| COMMON_EVENT_PACKAGES_SUSPENDED | usual.event.PACKAGES_SUSPENDED | 无 | 表示应用包已挂起的公共事件的动作。 | -| COMMON_EVENT_PACKAGES_UNSUSPENDED | usual.event.PACKAGES_UNSUSPENDED | 无 | 表示应用包未挂起的公共事件的动作。 | +| COMMON_EVENT_PACKAGES_SUSPENDED | usual.event.PACKAGES_SUSPENDED | 无 | 表示应用包已挂起的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_PACKAGES_UNSUSPENDED | usual.event.PACKAGES_UNSUSPENDED | 无 | 表示应用包未挂起的公共事件的动作。预留事件,暂未支持。 | | COMMON_EVENT_MY_PACKAGE_SUSPENDED | usual.event.MY_PACKAGE_SUSPENDED | 无 | 应用包被挂起的公共事件的动作。 | | COMMON_EVENT_MY_PACKAGE_UNSUSPENDED | usual.event.MY_PACKAGE_UNSUSPENDED | 无 | 表示应用包未挂起的公共事件的动作。 | -| COMMON_EVENT_UID_REMOVED | usual.event.UID_REMOVED | 无 | 表示用户ID已从系统中删除的公共事件的动作。 | -| COMMON_EVENT_PACKAGE_FIRST_LAUNCH | usual.event.PACKAGE_FIRST_LAUNCH | 无 | 表示首次启动已安装应用程序的公共事件的动作。 | -| COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION | usual.event.PACKAGE_NEEDS_VERIFICATION | 无 | 表示应用需要系统校验的公共事件的动作。 | -| COMMON_EVENT_PACKAGE_VERIFIED | usual.event.PACKAGE_VERIFIED | 无 | 表示应用已被系统校验的公共事件的动作。 | -| COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE | usual.event.EXTERNAL_APPLICATIONS_AVAILABLE | 无 | 表示安装在外部存储上的应用程序对系统可用的公共事件的操作。 | -| COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE | usual.event.EXTERNAL_APPLICATIONS_UNAVAILABLE | 无 | 表示安装在外部存储上的应用程序对系统不可用的公共事件的操作。 | -| COMMON_EVENT_CONFIGURATION_CHANGED | usual.event.CONFIGURATION_CHANGED | 无 | 表示设备状态(例如,方向和区域设置)已更改的公共事件的操作。 | -| COMMON_EVENT_LOCALE_CHANGED | usual.event.LOCALE_CHANGED | 无 | 表示设备区域设置已更改的公共事件的操作。 | -| COMMON_EVENT_MANAGE_PACKAGE_STORAGE | usual.event.MANAGE_PACKAGE_STORAGE | 无 | 设备存储空间不足的公共事件的动作。 | -| COMMON_EVENT_DRIVE_MODE | common.event.DRIVE_MODE | 无 | 表示系统处于驾驶模式的公共事件的动作。 | -| COMMON_EVENT_HOME_MODE | common.event.HOME_MODE | 无 | 表示系统处于HOME模式的公共事件的动作。 | -| COMMON_EVENT_OFFICE_MODE | common.event.OFFICE_MODE | 无 | 表示系统处于办公模式的公共事件的动作。 | -| COMMON_EVENT_USER_STARTED | usual.event.USER_STARTED | 无 | 表示用户已启动的公共事件的动作。 | -| COMMON_EVENT_USER_BACKGROUND | usual.event.USER_BACKGROUND | 无 | 表示用户已被带到后台的公共事件的动作。 | -| COMMON_EVENT_USER_FOREGROUND | usual.event.USER_FOREGROUND | 无 | 表示用户已被带到前台的公共事件的动作。 | +| COMMON_EVENT_UID_REMOVED | usual.event.UID_REMOVED | 无 | 表示用户ID已从系统中删除的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_PACKAGE_FIRST_LAUNCH | usual.event.PACKAGE_FIRST_LAUNCH | 无 | 表示首次启动已安装应用程序的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION | usual.event.PACKAGE_NEEDS_VERIFICATION | 无 | 表示应用需要系统校验的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_PACKAGE_VERIFIED | usual.event.PACKAGE_VERIFIED | 无 | 表示应用已被系统校验的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE | usual.event.EXTERNAL_APPLICATIONS_AVAILABLE | 无 | 表示安装在外部存储上的应用程序对系统可用的公共事件的操作。预留事件,暂未支持。 | +| COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE | usual.event.EXTERNAL_APPLICATIONS_UNAVAILABLE | 无 | 表示安装在外部存储上的应用程序对系统不可用的公共事件的操作。预留事件,暂未支持。 | +| COMMON_EVENT_CONFIGURATION_CHANGED | usual.event.CONFIGURATION_CHANGED | 无 | 表示设备状态(例如,方向和区域设置)已更改的公共事件的操作。预留事件,暂未支持。 | +| COMMON_EVENT_LOCALE_CHANGED | usual.event.LOCALE_CHANGED | 无 | 表示设备区域设置已更改的公共事件的操作。预留事件,暂未支持。 | +| COMMON_EVENT_MANAGE_PACKAGE_STORAGE | usual.event.MANAGE_PACKAGE_STORAGE | 无 | 设备存储空间不足的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_DRIVE_MODE | common.event.DRIVE_MODE | 无 | 表示系统处于驾驶模式的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_HOME_MODE | common.event.HOME_MODE | 无 | 表示系统处于HOME模式的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_OFFICE_MODE | common.event.OFFICE_MODE | 无 | 表示系统处于办公模式的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_USER_STARTED | usual.event.USER_STARTED | 无 | 表示用户已启动的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_USER_BACKGROUND | usual.event.USER_BACKGROUND | 无 | 表示用户已被带到后台的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_USER_FOREGROUND | usual.event.USER_FOREGROUND | 无 | 表示用户已被带到前台的公共事件的动作。预留事件,暂未支持。 | | COMMON_EVENT_USER_SWITCHED | usual.event.USER_SWITCHED | ohos.permission.MANAGE_LOCAL_ACCOUNTS | 表示用户切换正在发生的公共事件的动作。 | -| COMMON_EVENT_USER_STARTING | usual.event.USER_STARTING | ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS | 表示要启动用户的公共事件的动作。 | -| COMMON_EVENT_USER_UNLOCKED | usual.event.USER_UNLOCKED | 无 | 设备重启后解锁时,当前用户的凭据加密存储已解锁的公共事件的动作。 | -| COMMON_EVENT_USER_STOPPING | usual.event.USER_STOPPING | ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS | 表示要停止用户的公共事件的动作。 | -| COMMON_EVENT_USER_STOPPED | usual.event.USER_STOPPED | 无 | 表示用户已停止的公共事件的动作。 | -| COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN | usual.event.DISTRIBUTED_ACCOUNT_LOGIN | 无 | 表示分布式账号登录成功的动作。 | -| COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT | usual.event.DISTRIBUTED_ACCOUNT_LOGOUT | 无 | 表示分布式账号登出成功的动作。 | -| COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID | usual.event.DISTRIBUTED_ACCOUNT_TOKEN_INVALID | 无 | 表示分布式账号token令牌无效的动作。 | -| COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF | usual.event.DISTRIBUTED_ACCOUNT_LOGOFF | 无 | 表示分布式账号注销的动作。 | +| COMMON_EVENT_USER_STARTING | usual.event.USER_STARTING | ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS | 表示要启动用户的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_USER_UNLOCKED | usual.event.USER_UNLOCKED | 无 | 设备重启后解锁时,当前用户的凭据加密存储已解锁的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_USER_STOPPING | usual.event.USER_STOPPING | ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS | 表示要停止用户的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_USER_STOPPED | usual.event.USER_STOPPED | 无 | 表示用户已停止的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN | usual.event.DISTRIBUTED_ACCOUNT_LOGIN | 无 | 表示分布式账号登录成功的动作。预留事件,暂未支持。 | +| COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT | usual.event.DISTRIBUTED_ACCOUNT_LOGOUT | 无 | 表示分布式账号登出成功的动作。预留事件,暂未支持。 | +| COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID | usual.event.DISTRIBUTED_ACCOUNT_TOKEN_INVALID | 无 | 表示分布式账号token令牌无效的动作。预留事件,暂未支持。 | +| COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF | usual.event.DISTRIBUTED_ACCOUNT_LOGOFF | 无 | 表示分布式账号注销的动作。预留事件,暂未支持。 | | COMMON_EVENT_WIFI_POWER_STATE | usual.event.wifi.POWER_STATE | 无 | Wi-Fi状态公共事件的动作,如启用和禁用。 | | COMMON_EVENT_WIFI_SCAN_FINISHED | usual.event.wifi.SCAN_FINISHED | ohos.permission.LOCATION | 表示Wi-Fi接入点已被扫描并证明可用的公共事件的操作。 | | COMMON_EVENT_WIFI_RSSI_VALUE | usual.event.wifi.RSSI_VALUE | ohos.permission.GET_WIFI_INFO | 表示Wi-Fi信号强度(RSSI)改变的公共事件的动作。 | @@ -89,87 +89,87 @@ CommonEventManager模块支持的事件类型。名称指的是系统公共事 | COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED | usual.event.wifi.p2p.PEER_DISCOVERY_STATE_CHANGE | ohos.permission.GET_WIFI_INFO | Wi-Fi P2P发现状态变化。 | | COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED | usual.event.wifi.p2p.CURRENT_DEVICE_CHANGE | ohos.permission.GET_WIFI_INFO | Wi-Fi P2P当前设备状态变化。 | | COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED | usual.event.wifi.p2p.GROUP_STATE_CHANGED | ohos.permission.GET_WIFI_INFO | Wi-Fi P2P群组信息已更改。 | -| COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE | usual.event.bluetooth.handsfree.ag.CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 蓝牙免提通信连接状态公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE | usual.event.bluetooth.handsfree.ag.CURRENT_DEVICE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示连接到蓝牙免提的设备处于活动状态的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE | usual.event.bluetooth.handsfree.ag.AUDIO_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP连接状态已更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE | usual.event.bluetooth.a2dpsource.CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 蓝牙A2DP连接状态公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE | usual.event.bluetooth.a2dpsource.CURRENT_DEVICE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示使用蓝牙A2DP连接的设备处于活动状态的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE | usual.event.bluetooth.a2dpsource.PLAYING_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 蓝牙A2DP播放状态改变的普通事件的动作。 | -| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE | usual.event.bluetooth.a2dpsource.AVRCP_CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP的AVRCP连接状态已更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE | usual.event.bluetooth.a2dpsource.CODEC_VALUE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP音频编解码状态更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED | usual.event.bluetooth.remotedevice.DISCOVERED | ohos.permission.LOCATION and ohos.permission.USE_BLUETOOTH | 表示发现远程蓝牙设备的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE | usual.event.bluetooth.remotedevice.CLASS_VALUE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示远程蓝牙设备的蓝牙类别已更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED | usual.event.bluetooth.remotedevice.ACL_CONNECTED | ohos.permission.USE_BLUETOOTH | 表示已与远程蓝牙设备建立低级别(ACL)连接的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED | usual.event.bluetooth.remotedevice.ACL_DISCONNECTED | ohos.permission.USE_BLUETOOTH | 表示低电平(ACL)连接已从远程蓝牙设备断开的普通事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE | usual.event.bluetooth.remotedevice.NAME_UPDATE | ohos.permission.USE_BLUETOOTH | 表示远程蓝牙设备的友好名称首次被检索或自上次检索以来被更改的公共事件的操作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE | usual.event.bluetooth.remotedevice.PAIR_STATE | ohos.permission.USE_BLUETOOTH | 远程蓝牙设备连接状态更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE | usual.event.bluetooth.remotedevice.BATTERY_VALUE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示远程蓝牙设备的电池电量首次被检索或自上次检索以来被更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT | usual.event.bluetooth.remotedevice.SDP_RESULT | 无 | 远程蓝牙设备SDP状态公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE | usual.event.bluetooth.remotedevice.UUID_VALUE | ohos.permission.DISCOVER_BLUETOOTH | 远程蓝牙设备UUID连接状态公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ | usual.event.bluetooth.remotedevice.PAIRING_REQ | ohos.permission.DISCOVER_BLUETOOTH | 表示远程蓝牙设备配对请求的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL | usual.event.bluetooth.remotedevice.PAIRING_CANCEL | 无 | 取消蓝牙配对的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ | usual.event.bluetooth.remotedevice.CONNECT_REQ | 无 | 表示远程蓝牙设备连接请求的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY | usual.event.bluetooth.remotedevice.CONNECT_REPLY | 无 | 表示远程蓝牙设备连接请求响应的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL | usual.event.bluetooth.remotedevice.CONNECT_CANCEL | 无 | 表示取消与远程蓝牙设备的连接的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE | usual.event.bluetooth.handsfreeunit.CONNECT_STATE_UPDATE | 无 | 表示蓝牙免提连接状态已更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE | usual.event.bluetooth.handsfreeunit.AUDIO_STATE_UPDATE | 无 | 表示蓝牙免提音频状态已更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT | usual.event.bluetooth.handsfreeunit.AG_COMMON_EVENT | 无 | 表示蓝牙免提音频网关状态已更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE | usual.event.bluetooth.handsfreeunit.AG_CALL_STATE_UPDATE | 无 | 表示蓝牙免提呼叫状态已更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE | usual.event.bluetooth.host.STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙适配器状态已更改的公共事件的操作,例如蓝牙已打开或关闭。 | -| COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE | usual.event.bluetooth.host.REQ_DISCOVERABLE | 无 | 表示用户允许扫描蓝牙请求的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE | usual.event.bluetooth.host.REQ_ENABLE | ohos.permission.USE_BLUETOOTH | 表示用户打开蓝牙请求的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE | usual.event.bluetooth.host.REQ_DISABLE | ohos.permission.USE_BLUETOOTH | 表示用户关闭蓝牙请求的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE | usual.event.bluetooth.host.SCAN_MODE_UPDATE | ohos.permission.USE_BLUETOOTH | 设备蓝牙扫描模式更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED | usual.event.bluetooth.host.DISCOVERY_STARTED | ohos.permission.USE_BLUETOOTH | 设备上已启动蓝牙扫描的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED | usual.event.bluetooth.host.DISCOVERY_FINISHED | ohos.permission.USE_BLUETOOTH | 设备上蓝牙扫描完成的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE | usual.event.bluetooth.host.NAME_UPDATE | ohos.permission.USE_BLUETOOTH | 表示设备蓝牙适配器名称已更改的公共事件的操作。 | -| COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE | usual.event.bluetooth.a2dpsink.CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP宿连接状态已更改的公共事件的动作。 | -| COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE | usual.event.bluetooth.a2dpsink.PLAYING_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 蓝牙A2DP宿播放状态改变的普通事件的动作。 | -| COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE | usual.event.bluetooth.a2dpsink.AUDIO_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP宿的音频状态已更改的公共事件的动作。 | -| COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED | usual.event.nfc.action.ADAPTER_STATE_CHANGED | 无 | 表示设备NFC适配器状态已更改的公共事件的操作。 | -| COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED | usual.event.nfc.action.RF_FIELD_ON_DETECTED | ohos.permission.MANAGE_SECURE_SETTINGS | 检测到NFC RF字段处于使能状态的公共事件的动作。 | -| COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED | usual.event.nfc.action.RF_FIELD_OFF_DETECTED | ohos.permission.MANAGE_SECURE_SETTINGS | 检测到NFC RF字段处于关闭状态的公共事件的动作。 | +| COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE | usual.event.bluetooth.handsfree.ag.CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 蓝牙免提通信连接状态公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE | usual.event.bluetooth.handsfree.ag.CURRENT_DEVICE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示连接到蓝牙免提的设备处于活动状态的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE | usual.event.bluetooth.handsfree.ag.AUDIO_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP连接状态已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE | usual.event.bluetooth.a2dpsource.CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 蓝牙A2DP连接状态公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE | usual.event.bluetooth.a2dpsource.CURRENT_DEVICE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示使用蓝牙A2DP连接的设备处于活动状态的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE | usual.event.bluetooth.a2dpsource.PLAYING_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 蓝牙A2DP播放状态改变的普通事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE | usual.event.bluetooth.a2dpsource.AVRCP_CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP的AVRCP连接状态已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE | usual.event.bluetooth.a2dpsource.CODEC_VALUE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP音频编解码状态更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED | usual.event.bluetooth.remotedevice.DISCOVERED | ohos.permission.LOCATION and ohos.permission.USE_BLUETOOTH | 表示发现远程蓝牙设备的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE | usual.event.bluetooth.remotedevice.CLASS_VALUE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示远程蓝牙设备的蓝牙类别已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED | usual.event.bluetooth.remotedevice.ACL_CONNECTED | ohos.permission.USE_BLUETOOTH | 表示已与远程蓝牙设备建立低级别(ACL)连接的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED | usual.event.bluetooth.remotedevice.ACL_DISCONNECTED | ohos.permission.USE_BLUETOOTH | 表示低电平(ACL)连接已从远程蓝牙设备断开的普通事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE | usual.event.bluetooth.remotedevice.NAME_UPDATE | ohos.permission.USE_BLUETOOTH | 表示远程蓝牙设备的友好名称首次被检索或自上次检索以来被更改的公共事件的操作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE | usual.event.bluetooth.remotedevice.PAIR_STATE | ohos.permission.USE_BLUETOOTH | 远程蓝牙设备连接状态更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE | usual.event.bluetooth.remotedevice.BATTERY_VALUE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示远程蓝牙设备的电池电量首次被检索或自上次检索以来被更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT | usual.event.bluetooth.remotedevice.SDP_RESULT | 无 | 远程蓝牙设备SDP状态公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE | usual.event.bluetooth.remotedevice.UUID_VALUE | ohos.permission.DISCOVER_BLUETOOTH | 远程蓝牙设备UUID连接状态公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ | usual.event.bluetooth.remotedevice.PAIRING_REQ | ohos.permission.DISCOVER_BLUETOOTH | 表示远程蓝牙设备配对请求的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL | usual.event.bluetooth.remotedevice.PAIRING_CANCEL | 无 | 取消蓝牙配对的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ | usual.event.bluetooth.remotedevice.CONNECT_REQ | 无 | 表示远程蓝牙设备连接请求的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY | usual.event.bluetooth.remotedevice.CONNECT_REPLY | 无 | 表示远程蓝牙设备连接请求响应的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL | usual.event.bluetooth.remotedevice.CONNECT_CANCEL | 无 | 表示取消与远程蓝牙设备的连接的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE | usual.event.bluetooth.handsfreeunit.CONNECT_STATE_UPDATE | 无 | 表示蓝牙免提连接状态已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE | usual.event.bluetooth.handsfreeunit.AUDIO_STATE_UPDATE | 无 | 表示蓝牙免提音频状态已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT | usual.event.bluetooth.handsfreeunit.AG_COMMON_EVENT | 无 | 表示蓝牙免提音频网关状态已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE | usual.event.bluetooth.handsfreeunit.AG_CALL_STATE_UPDATE | 无 | 表示蓝牙免提呼叫状态已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE | usual.event.bluetooth.host.STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙适配器状态已更改的公共事件的操作,例如蓝牙已打开或关闭。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE | usual.event.bluetooth.host.REQ_DISCOVERABLE | 无 | 表示用户允许扫描蓝牙请求的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE | usual.event.bluetooth.host.REQ_ENABLE | ohos.permission.USE_BLUETOOTH | 表示用户打开蓝牙请求的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE | usual.event.bluetooth.host.REQ_DISABLE | ohos.permission.USE_BLUETOOTH | 表示用户关闭蓝牙请求的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE | usual.event.bluetooth.host.SCAN_MODE_UPDATE | ohos.permission.USE_BLUETOOTH | 设备蓝牙扫描模式更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED | usual.event.bluetooth.host.DISCOVERY_STARTED | ohos.permission.USE_BLUETOOTH | 设备上已启动蓝牙扫描的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED | usual.event.bluetooth.host.DISCOVERY_FINISHED | ohos.permission.USE_BLUETOOTH | 设备上蓝牙扫描完成的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE | usual.event.bluetooth.host.NAME_UPDATE | ohos.permission.USE_BLUETOOTH | 指示设备蓝牙适配器名称已更改的公共事件的操作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE | usual.event.bluetooth.a2dpsink.CONNECT_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP宿连接状态已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE | usual.event.bluetooth.a2dpsink.PLAYING_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 蓝牙A2DP宿播放状态改变的普通事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE | usual.event.bluetooth.a2dpsink.AUDIO_STATE_UPDATE | ohos.permission.USE_BLUETOOTH | 表示蓝牙A2DP宿的音频状态已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED | usual.event.nfc.action.ADAPTER_STATE_CHANGED | 无 | 指示设备NFC适配器状态已更改的公共事件的操作。 | +| COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED | usual.event.nfc.action.RF_FIELD_ON_DETECTED | ohos.permission.MANAGE_SECURE_SETTINGS | 检测到NFC RF字段处于使能状态的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED | usual.event.nfc.action.RF_FIELD_OFF_DETECTED | ohos.permission.MANAGE_SECURE_SETTINGS | 检测到NFC RF字段处于关闭状态的公共事件的动作。预留事件,暂未支持。 | | COMMON_EVENT_DISCHARGING | usual.event.DISCHARGING | 无 | 表示系统停止为电池充电的公共事件的动作。 | | COMMON_EVENT_CHARGING | usual.event.CHARGING | 无 | 表示系统开始为电池充电的公共事件的动作。 | -| COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED | usual.event.DEVICE_IDLE_MODE_CHANGED | 无 | 表示系统空闲模式已更改的公共事件的动作。 | +| COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED | usual.event.DEVICE_IDLE_MODE_CHANGED | 无 | 表示系统空闲模式已更改的公共事件的动作。预留事件,暂未支持。 | | COMMON_EVENT_POWER_SAVE_MODE_CHANGED | usual.event.POWER_SAVE_MODE_CHANGED | 无 | 表示系统节能模式更改的公共事件的动作。 | | COMMON_EVENT_USER_ADDED | usual.event.USER_ADDED | ohos.permission.MANAGE_LOCAL_ACCOUNTS | 表示用户已添加到系统中的公共事件的动作。 | | COMMON_EVENT_USER_REMOVED | usual.event.USER_REMOVED | ohos.permission.MANAGE_LOCAL_ACCOUNTS | 表示用户已从系统中删除的公共事件的动作。 | -| COMMON_EVENT_ABILITY_ADDED | usual.event.ABILITY_ADDED | ohos.permission.LISTEN_BUNDLE_CHANGE | 表示已添加能力的公共事件的动作。 | -| COMMON_EVENT_ABILITY_REMOVED | usual.event.ABILITY_REMOVED | ohos.permission.LISTEN_BUNDLE_CHANGE | 表示已删除能力的公共事件的动作。 | -| COMMON_EVENT_ABILITY_UPDATED | usual.event.ABILITY_UPDATED | ohos.permission.LISTEN_BUNDLE_CHANGE | 表示能力已更新的公共事件的动作。 | -| COMMON_EVENT_LOCATION_MODE_STATE_CHANGED | usual.event.location.MODE_STATE_CHANGED | 无 | 表示系统定位模式已更改的公共事件的动作。 | -| COMMON_EVENT_IVI_SLEEP | common.event.IVI_SLEEP | 无 | 表示表示车辆的车载信息娱乐(IVI)系统正在休眠的常见事件的动作。 | -| COMMON_EVENT_IVI_PAUSE | common.event.IVI_PAUSE | 无 | 表示IVI已休眠,并通知应用程序停止播放。 | -| COMMON_EVENT_IVI_STANDBY | common.event.IVI_STANDBY | 无 | 表示第三方应用暂停当前工作的公共事件的动作。 | -| COMMON_EVENT_IVI_LASTMODE_SAVE | common.event.IVI_LASTMODE_SAVE | 无 | 表示第三方应用保存其最后一个模式的公共事件的动作。 | -| COMMON_EVENT_IVI_VOLTAGE_ABNORMAL | common.event.IVI_VOLTAGE_ABNORMAL | 无 | 表示车辆电源系统电压异常的公共事件的动作。 | -| COMMON_EVENT_IVI_HIGH_TEMPERATURE | common.event.IVI_HIGH_TEMPERATURE | 无 | 表示IVI温度过高。 | -| COMMON_EVENT_IVI_EXTREME_TEMPERATURE | common.event.IVI_EXTREME_TEMPERATURE | 无 | 表示IVI温度极高。 | -| COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL | common.event.IVI_TEMPERATURE_ABNORMAL | 无 | 表示车载系统具有极端温度的常见事件的动作。 | -| COMMON_EVENT_IVI_VOLTAGE_RECOVERY | common.event.IVI_VOLTAGE_RECOVERY | 无 | 表示车辆电源系统电压恢复正常的公共事件的动作。 | -| COMMON_EVENT_IVI_TEMPERATURE_RECOVERY | common.event.IVI_TEMPERATURE_RECOVERY | 无 | 表示车载系统温度恢复正常的公共事件的动作。 | -| COMMON_EVENT_IVI_ACTIVE | common.event.IVI_ACTIVE | 无 | 表示电池服务处于活动状态的公共事件的动作。 | +| COMMON_EVENT_ABILITY_ADDED | usual.event.ABILITY_ADDED | ohos.permission.LISTEN_BUNDLE_CHANGE | 表示已添加能力的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_ABILITY_REMOVED | usual.event.ABILITY_REMOVED | ohos.permission.LISTEN_BUNDLE_CHANGE | 表示已删除能力的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_ABILITY_UPDATED | usual.event.ABILITY_UPDATED | ohos.permission.LISTEN_BUNDLE_CHANGE | 表示能力已更新的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_LOCATION_MODE_STATE_CHANGED | usual.event.location.MODE_STATE_CHANGED | 无 | 表示系统定位模式已更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_SLEEP | common.event.IVI_SLEEP | 无 | 表示表示车辆的车载信息娱乐(IVI)系统正在休眠的常见事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_PAUSE | common.event.IVI_PAUSE | 无 | 表示IVI已休眠,并通知应用程序停止播放。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_STANDBY | common.event.IVI_STANDBY | 无 | 表示第三方应用暂停当前工作的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_LASTMODE_SAVE | common.event.IVI_LASTMODE_SAVE | 无 | 表示第三方应用保存其最后一个模式的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_VOLTAGE_ABNORMAL | common.event.IVI_VOLTAGE_ABNORMAL | 无 | 表示车辆电源系统电压异常的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_HIGH_TEMPERATURE | common.event.IVI_HIGH_TEMPERATURE | 无 | 表示IVI温度过高。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_EXTREME_TEMPERATURE | common.event.IVI_EXTREME_TEMPERATURE | 无 | 表示IVI温度极高。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL | common.event.IVI_TEMPERATURE_ABNORMAL | 无 | 表示车载系统具有极端温度的常见事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_VOLTAGE_RECOVERY | common.event.IVI_VOLTAGE_RECOVERY | 无 | 表示车辆电源系统电压恢复正常的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_TEMPERATURE_RECOVERY | common.event.IVI_TEMPERATURE_RECOVERY | 无 | 表示车载系统温度恢复正常的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_IVI_ACTIVE | common.event.IVI_ACTIVE | 无 | 表示电池服务处于活动状态的公共事件的动作。预留事件,暂未支持。 | |COMMON_EVENT_USB_STATE9+ | usual.event.hardware.usb.action.USB_STATE | 无 | 表示USB设备状态发生变化的公共事件。 | |COMMON_EVENT_USB_PORT_CHANGED9+ | usual.event.hardware.usb.action.USB_PORT_CHANGED | 无 | 表示用户设备的USB端口状态发生改变的公共事件。 | | COMMON_EVENT_USB_DEVICE_ATTACHED | usual.event.hardware.usb.action.USB_DEVICE_ATTACHED | 无 | 当用户设备作为USB主机时,USB设备已挂载的公共事件的动作。 | | COMMON_EVENT_USB_DEVICE_DETACHED | usual.event.hardware.usb.action.USB_DEVICE_DETACHED | 无 | 当用户设备作为USB主机时,USB设备被卸载的公共事件的动作。 | -| COMMON_EVENT_USB_ACCESSORY_ATTACHED | usual.event.hardware.usb.action.USB_ACCESSORY_ATTACHED | 无 | 表示已连接USB附件的公共事件的动作。 | -| COMMON_EVENT_USB_ACCESSORY_DETACHED | usual.event.hardware.usb.action.USB_ACCESSORY_DETACHED | 无 | 表示USB附件被卸载的公共事件的动作。 | -| COMMON_EVENT_DISK_REMOVED | usual.event.data.DISK_REMOVED | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为移除时发送此公共事件。 | -| COMMON_EVENT_DISK_UNMOUNTED | usual.event.data.DISK_UNMOUNTED | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为卸载时发送此公共事件。 | -| COMMON_EVENT_DISK_MOUNTED | usual.event.data.DISK_MOUNTED | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为挂载时发送此公共事件。 | -| COMMON_EVENT_DISK_BAD_REMOVAL | usual.event.data.DISK_BAD_REMOVAL | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为挂载状态下移除时发送此公共事件。 | -| COMMON_EVENT_DISK_UNMOUNTABLE | usual.event.data.DISK_UNMOUNTABLE | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为插卡情况下无法挂载时发送此公共事件。 | -| COMMON_EVENT_DISK_EJECT | usual.event.data.DISK_EJECT | ohos.permission.STORAGE_MANAGER | 用户已表示希望删除外部存储介质时发送此公共事件。 | +| COMMON_EVENT_USB_ACCESSORY_ATTACHED | usual.event.hardware.usb.action.USB_ACCESSORY_ATTACHED | 无 | 表示已连接USB附件的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_USB_ACCESSORY_DETACHED | usual.event.hardware.usb.action.USB_ACCESSORY_DETACHED | 无 | 表示USB附件被卸载的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_DISK_REMOVED | usual.event.data.DISK_REMOVED | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为移除时发送此公共事件。预留事件,暂未支持。 | +| COMMON_EVENT_DISK_UNMOUNTED | usual.event.data.DISK_UNMOUNTED | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为卸载时发送此公共事件。预留事件,暂未支持。 | +| COMMON_EVENT_DISK_MOUNTED | usual.event.data.DISK_MOUNTED | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为挂载时发送此公共事件。预留事件,暂未支持。 | +| COMMON_EVENT_DISK_BAD_REMOVAL | usual.event.data.DISK_BAD_REMOVAL | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为挂载状态下移除时发送此公共事件。预留事件,暂未支持。 | +| COMMON_EVENT_DISK_UNMOUNTABLE | usual.event.data.DISK_UNMOUNTABLE | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为插卡情况下无法挂载时发送此公共事件。预留事件,暂未支持。 | +| COMMON_EVENT_DISK_EJECT | usual.event.data.DISK_EJECT | ohos.permission.STORAGE_MANAGER | 用户已表示希望删除外部存储介质时发送此公共事件。预留事件,暂未支持。 | | COMMON_EVENT_VOLUME_REMOVED9+ | usual.event.data.VOLUME_REMOVED | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为移除时发送此公共事件。 | | COMMON_EVENT_VOLUME_UNMOUNTED9+ | usual.event.data.VOLUME_UNMOUNTED | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为卸载时发送此公共事件。 | | COMMON_EVENT_VOLUME_MOUNTED9+ | usual.event.data.VOLUME_MOUNTED | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为挂载时发送此公共事件。 | | COMMON_EVENT_VOLUME_BAD_REMOVAL9+ | usual.event.data.VOLUME_BAD_REMOVAL | ohos.permission.STORAGE_MANAGER | 外部存储设备状态变更为挂载状态下移除时发送此公共事件。 | | COMMON_EVENT_VOLUME_EJECT9+ | usual.event.data.VOLUME_EJECT | ohos.permission.STORAGE_MANAGER | 用户已表示希望删除外部存储介质时发送此公共事件。 | -| COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED | usual.event.data.VISIBLE_ACCOUNTS_UPDATED | ohos.permission.GET_APP_ACCOUNTS | 表示帐户可见更改的公共事件的动作。 | -| COMMON_EVENT_ACCOUNT_DELETED | usual.event.data.ACCOUNT_DELETED | ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS | 删除帐户的公共事件的动作。 | -| COMMON_EVENT_FOUNDATION_READY | usual.event.data.FOUNDATION_READY | ohos.permission.RECEIVER_STARTUP_COMPLETED | 表示foundation已准备好的公共事件的动作。 | +| COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED | usual.event.data.VISIBLE_ACCOUNTS_UPDATED | ohos.permission.GET_APP_ACCOUNTS | 表示帐户可见更改的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_ACCOUNT_DELETED | usual.event.data.ACCOUNT_DELETED | ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS | 删除帐户的公共事件的动作。预留事件,暂未支持。 | +| COMMON_EVENT_FOUNDATION_READY | usual.event.data.FOUNDATION_READY | ohos.permission.RECEIVER_STARTUP_COMPLETED | 表示foundation已准备好的公共事件的动作。预留事件,暂未支持。 | | COMMON_EVENT_AIRPLANE_MODE_CHANGED | usual.event.AIRPLANE_MODE | 无 | 表示设备飞行模式已更改的公共事件的动作。 | | COMMON_EVENT_SPLIT_SCREEN | usual.event.SPLIT_SCREEN | ohos.permission.RECEIVER_SPLIT_SCREEN | 表示分屏的公共事件的动作。 | | COMMON_EVENT_SLOT_CHANGE9+ | usual.event.SLOT_CHANGE | ohos.permission.NOTIFICATION_CONTROLLER | 表示通知通道更新的动作。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-contact.md b/zh-cn/application-dev/reference/apis/js-apis-contact.md index e361f2cfc2e84ace608a91f82a2377155d6ac311..2c6cb8f66a8dd544d343bdee6de8639f6c2db45d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-contact.md +++ b/zh-cn/application-dev/reference/apis/js-apis-contact.md @@ -1695,11 +1695,11 @@ email.email = "xxx@email.com"; **系统能力**:以下各项对应的系统能力均为SystemCapability.Applications.ContactsData。 -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ----------- | -------- | ---- | ---- | ---------- | -| bundleName | string | 是 | 否 | 包名。 | -| displayName | string | 是 | 否 | 应用名称。 | -| holderId | number | 是 | 是 | 应用id。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ----------- | ------ | ---- | ---- | ------------ | +| bundleName | string | 是 | 否 | Bundle名称。 | +| displayName | string | 是 | 否 | 应用名称。 | +| holderId | number | 是 | 是 | 应用ID。 | **对象创建示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationExtraParams.md b/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationExtraParams.md index 14b615cf20e96836c14086d9c79d5565cd1fc8e4..a715bc5e45535e140973fd4f899122e974ea9543 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationExtraParams.md +++ b/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationExtraParams.md @@ -15,7 +15,7 @@ | 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | | deviceType | Array\ | 是 | 是 | 表示设备类型。| -| targetBundle | string | 是 | 是 | 表示目标包名。 | +| targetBundle | string | 是 | 是 | 表示目标Bundle名称。 | | description | string | 是 | 是 | 表示设备过滤的描述。 | | filter | any | 是 | 是 | 表示设备过滤的参数。 | | continuationMode | [ContinuationMode](js-apis-continuation-continuationManager.md#continuationmode) | 是 | 是 | 表示协同的模式。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationResult.md b/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationResult.md index 608ec710810faa67cbb48ad1ceae1f5c91e5bd10..f283caaa43b78b857f6cac42f1913fe1a2097f06 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationResult.md +++ b/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationResult.md @@ -1,6 +1,6 @@ # ContinuationResult -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 ## ContinuationResult diff --git a/zh-cn/application-dev/reference/apis/js-apis-convertxml.md b/zh-cn/application-dev/reference/apis/js-apis-convertxml.md index b6850622bbc43143963e57249dce78e3cc00be11..59bd9b802a6a1fd48c9059eb0a92064fe8c8c998 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-convertxml.md +++ b/zh-cn/application-dev/reference/apis/js-apis-convertxml.md @@ -36,6 +36,14 @@ convertToJSObject(xml: string, options?: ConvertOptions) : Object | ------ | ---------------------------- | | Object | 处理后返回的JavaScript对象。 | +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------- | +| 10200002 | Invalid xml string. | + **示例:** ```js @@ -60,14 +68,14 @@ console.log(result); ### convert(deprecated) -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[convertToJSObject9+](#converttojsobject9)替代。 - convert(xml: string, options?: ConvertOptions) : Object 转换xml文本为JavaScript对象。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[convertToJSObject9+](#converttojsobject9)替代。 + **系统能力:** SystemCapability.Utils.Lang **参数:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-resultset.md b/zh-cn/application-dev/reference/apis/js-apis-data-resultset.md index 77df6f7329632d2143890aff7f04d50736e49b20..a54d63f77393df9988887fc17877a4e4d4bf3cc5 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-resultset.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-resultset.md @@ -999,9 +999,9 @@ close(): void 关闭结果集。 -**说明:** - -从 API Version 7 开始支持,从 API Version 9 开始废弃,建议使用[close](#close9)替代。 +> **说明:** +> +> 从 API Version 7 开始支持,从 API Version 9 开始废弃,建议使用[close](#close9)替代。 **系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core diff --git a/zh-cn/application-dev/reference/apis/js-apis-deque.md b/zh-cn/application-dev/reference/apis/js-apis-deque.md index 2e925579255313b11f4d28a6bb094a5c235e0a36..a5e689de493073e4f2c304ab03d060dd06c4183c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-deque.md +++ b/zh-cn/application-dev/reference/apis/js-apis-deque.md @@ -1,6 +1,6 @@ # @ohos.util.Deque (线性容器Deque) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 Deque(double ended queue)根据循环队列的数据结构实现,符合先进先出以及先进后出的特点,支持两端的元素插入和移除。Deque会根据实际需要动态调整容量,每次进行两倍扩容。 @@ -40,7 +40,7 @@ Deque的构造函数。 **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -68,7 +68,7 @@ insertFront(element: T): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -103,7 +103,7 @@ insertEnd(element: T): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -144,7 +144,7 @@ has(element: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -175,7 +175,7 @@ popFirst(): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -209,7 +209,7 @@ popLast(): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -253,7 +253,7 @@ callbackfn的参数说明: **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -288,7 +288,7 @@ getFirst(): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -321,7 +321,7 @@ getLast(): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -354,7 +354,7 @@ let result = deque.getLast(); **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-device-manager.md b/zh-cn/application-dev/reference/apis/js-apis-device-manager.md index c668a792b21145a26d8ccbbb5dae80a1f82636f3..ba3b1bd98d4d0a430a5e427ff49a29df9ccd6038 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-device-manager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-device-manager.md @@ -34,10 +34,10 @@ createDeviceManager(bundleName: string, callback: AsyncCallback<DeviceManager **参数:** - | 参数名 | 类型 | 必填 | 说明 | - | ---------- | ---------------------------------------- | ---- | ------------------------------------ | - | bundleName | string | 是 | 指示应用程序的包名。 | - | callback | AsyncCallback<[DeviceManager](#devicemanager)> | 是 | DeviceManager实例创建时调用的回调,返回设备管理器对象实例。 | +| 参数名 | 类型 | 必填 | 说明 | +| ---------- | ---------------------------------------------------- | ---- | ----------------------------------------------------------- | +| bundleName | string | 是 | 指示应用程序的Bundle名称。 | +| callback | AsyncCallback<[DeviceManager](#devicemanager)> | 是 | DeviceManager实例创建时调用的回调,返回设备管理器对象实例。 | **错误码:** @@ -638,7 +638,7 @@ publishDeviceDiscovery(publishInfo: PublishInfo): void console.error("publishDeviceDiscovery errCode:" + err.code + ",errMessage:" + err.message); } ``` - + ### unPublishDeviceDiscovery9+ unPublishDeviceDiscovery(publishId: number): void diff --git a/zh-cn/application-dev/reference/apis/js-apis-display.md b/zh-cn/application-dev/reference/apis/js-apis-display.md index 44bb178903cdb5552e8eafd50a40fa56e3617e9b..c1efdb814984db91be93f0c5532646e152bd7acc 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-display.md +++ b/zh-cn/application-dev/reference/apis/js-apis-display.md @@ -417,9 +417,9 @@ promise.then((data) => { | rotation | number | 是 | 否 | 显示设备的屏幕旋转角度。
值为0时,表示显示设备屏幕旋转为0°;
值为1时,表示显示设备屏幕旋转为90°;
值为2时,表示显示设备屏幕旋转为180°;
值为3时,表示显示设备屏幕旋转为270°。| | width | number | 是 | 否 | 显示设备的宽度,单位为像素。| | height | number | 是 | 否 | 显示设备的高度,单位为像素。| -| densityDPI | number | 是 | 否 | 显示设备的屏幕密度,单位为DPI。| -| densityPixels | number | 是 | 否 | 显示设备的屏幕密度,单位为像素。| -| scaledDensity | number | 是 | 否 | 显示设备的显示字体的缩放因子。| +| densityDPI | number | 是 | 否 | 显示设备的屏幕密度,表示每英寸点数。一般取值160,480等。 | +| densityPixels | number | 是 | 否 | 显示设备的逻辑密度,是像素单位无关的缩放系数。一般取值1,3等。 | +| scaledDensity | number | 是 | 否 | 显示设备的显示字体的缩放因子。通常与densityPixels相同。 | | xDPI | number | 是 | 否 | x方向中每英寸屏幕的确切物理像素值。 | | yDPI | number | 是 | 否 | y方向中每英寸屏幕的确切物理像素值。| diff --git a/zh-cn/application-dev/reference/apis/js-apis-distributed-data.md b/zh-cn/application-dev/reference/apis/js-apis-distributed-data.md index 55653a9924d67ee8a901845d7a99ab5abd005a9c..385a0aa56f3ffbe2e53b49445f1ef59bad60fac9 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-distributed-data.md +++ b/zh-cn/application-dev/reference/apis/js-apis-distributed-data.md @@ -37,7 +37,7 @@ createKVManager(config: KVManagerConfig, callback: AsyncCallback<KVManager> | 参数名 | 类型 | 必填 | 说明 | | ----- | ------ | ------ | ------ | -| config | [KVManagerConfig](#kvmanagerconfig) | 是 | 提供KVManager实例的配置信息,包括调用方的包名和用户信息。 | +| config | [KVManagerConfig](#kvmanagerconfig) | 是 | 提供KVManager实例的配置信息,包括调用方的Bundle名称和用户信息。 | | callback | AsyncCallback<[KVManager](#kvmanager)> | 是 | 回调函数。返回创建的KVManager对象实例。 | **示例:** @@ -112,14 +112,14 @@ try { ## KVManagerConfig -提供KVManager实例的配置信息,包括调用方的包名和用户信息。 +提供KVManager实例的配置信息,包括调用方的Bundle名称和用户信息。 **系统能力:** SystemCapability.DistributedDataManager.KVStore.Core | 名称 | 类型 | 必填 | 说明 | | ----- | ------ | ------ | ------ | | userInfo | [UserInfo](#userinfo) | 是 | 调用方的用户信息。 | -| bundleName | string | 是 | 调用方的包名。 | +| bundleName | string | 是 | 调用方的Bundle名称。 | ## UserInfo @@ -593,7 +593,7 @@ KVStore数据库类型枚举。 | --- | ---- | ----------------------- | | DEVICE_COLLABORATION | 0 | 表示多设备协同数据库。
**数据库特点:** 数据以设备的维度管理,不存在冲突;支持按照设备的维度查询数据。
**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore | | SINGLE_VERSION | 1 | 表示单版本数据库。
**数据库特点:** 数据不分设备,设备之间修改相同的key会覆盖。
**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core | -| MULTI_VERSION | 2 | 表示多版本数据库。此类型当前不允许使用。
**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore | +| MULTI_VERSION | 2 | 表示多版本数据库。当前暂不支持使用此接口。
**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore | ## SecurityLevel diff --git a/zh-cn/application-dev/reference/apis/js-apis-distributedBundle.md b/zh-cn/application-dev/reference/apis/js-apis-distributedBundle.md index 09e6acc1c4a9729c611e64da9ef612ee0629c579..e1c43fc5263f5024da1f63d8d9f5e6b4e28a51ef 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-distributedBundle.md +++ b/zh-cn/application-dev/reference/apis/js-apis-distributedBundle.md @@ -1,6 +1,6 @@ # @ohos.bundle.distributedBundle (distributedBundle模块) -本模块提供分布式包的管理能力 +本模块提供分布式应用的管理能力 > **说明:** > @@ -22,7 +22,7 @@ SystemCapability.BundleManager.DistributedBundleFramework | 权限 | 权限等级 | 说明 | | ------------------------------------------ | ------------ | ------------------ | -| ohos.permission.GET_BUNDLE_INFO_PRIVILEGED | system_basic | 可查询所有应用信息。 | +| ohos.permission.GET_BUNDLE_INFO_PRIVILEGED | system_basic | 可查询系统中所有应用信息。 | 权限等级参考[权限等级说明](../../security/accesstoken-overview.md#权限等级说明)。 @@ -30,7 +30,7 @@ SystemCapability.BundleManager.DistributedBundleFramework getRemoteAbilityInfo(elementName: ElementName, callback: AsyncCallback\): void; -以异步方法根据给定的ElementName获取有关远程设备AbilityInfo信息。使用callback异步回调。 +以异步方法获取由elementName指定的远程设备上的应用的AbilityInfo信息。使用callback异步回调。 **系统接口:** 此接口为系统接口。 @@ -43,7 +43,7 @@ getRemoteAbilityInfo(elementName: ElementName, callback: AsyncCallback\ | 是 | 回调函数,操作成功返回err为null,data为RemoteAbilityInfo对象;否则为错误对象。 | +| callback | AsyncCallback<[RemoteAbilityInfo](js-apis-bundleManager-remoteAbilityInfo.md)> | 是 | 回调函数,调用成功返回err为null,data为RemoteAbilityInfo对象;调用失败err为错误对象, data为undefined。 | **错误码:** @@ -67,13 +67,13 @@ try { abilityName: 'MainAbility' }, (err, data) => { if (err) { - console.error('Operation failed:' + JSON.stringify(err)); + console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message); } else { console.info('Operation succeed:' + JSON.stringify(data)); } }); } catch (err) { - console.error('Operation failed:' + JSON.stringify(err)); + console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message); } ``` @@ -81,7 +81,7 @@ try { getRemoteAbilityInfo(elementName: ElementName): Promise\; -以异步方法根据给定的ElementName获取有关远程设备AbilityInfo信息。使用Promise异步回调。 +以异步方法获取由elementName指定的远程设备上的应用的AbilityInfo信息。使用Promise异步回调。 **系统接口:** 此接口为系统接口。 @@ -99,7 +99,7 @@ getRemoteAbilityInfo(elementName: ElementName): Promise\; | 类型 | 说明 | | ------------------------------------------------------------ | --------------------------------- | -| Promise\<[RemoteAbilityInfo](js-apis-bundleManager-remoteAbilityInfo.md)> | Promise对象,返回RemoteAbilityInfo对象。 | +| Promise\<[RemoteAbilityInfo](js-apis-bundleManager-remoteAbilityInfo.md)> | Promise对象,调用成功返回RemoteAbilityInfo对象;调用失败返回错误对象。 | **错误码:** @@ -124,10 +124,10 @@ try { }).then(data => { console.info('Operation succeed:' + JSON.stringify(data)); }).catch(err => { - console.error('Operation failed:' + JSON.stringify(err)); + console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message); }); } catch (err) { - console.error('Operation failed:' + JSON.stringify(err)); + console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message); } ``` @@ -135,7 +135,7 @@ try { getRemoteAbilityInfo(elementNames: Array\, callback: AsyncCallback\>): void; -以异步方法根据给定的ElementName获取有关远程设备AbilityInfo数组信息。使用callback异步回调。 +以异步方法获取由elementName指定的远程设备上的应用的AbilityInfo数组信息。使用callback异步回调。 **系统接口:** 此接口为系统接口。 @@ -148,7 +148,7 @@ getRemoteAbilityInfo(elementNames: Array\, callback: AsyncCallback\ | 参数名 | 类型 | 必填 | 说明 | | ------------ | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | | elementNames | Array<[ElementName](js-apis-bundleManager-elementName.md)> | 是 | ElementName信息,最大数组长度为10。 | -| callback | AsyncCallback\> | 是 | 回调函数,调用成功返回err为null,data为RemoteAbilityInfo数组对象;否则返回错误对象。 | +| callback | AsyncCallback\> | 是 | 回调函数,调用成功返回err为null,data为RemoteAbilityInfo数组对象;调用失败err为错误对象, data为undefined。 | **错误码:** @@ -179,13 +179,13 @@ try { } ], (err, data) => { if (err) { - console.error('Operation failed:' + JSON.stringify(err)); + console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message); } else { console.info('Operation succeed:' + JSON.stringify(data)); } }); } catch (err) { - console.error('Operation failed:' + JSON.stringify(err)); + console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message); } ``` @@ -193,7 +193,7 @@ try { getRemoteAbilityInfo(elementNames: Array\): Promise\>; -以异步方法根据给定的ElementName和locale获取有关远程设备AbilityInfo数组信息。使用Promise异步回调。 +以异步方法获取由elementName指定的远程设备上的应用的AbilityInfo数组信息。使用Promise异步回调。 **系统接口:** 此接口为系统接口。 @@ -211,7 +211,7 @@ getRemoteAbilityInfo(elementNames: Array\): Promise\> | Promise对象,返回RemoteAbilityInfo数组对象。 | +| Promise\> | Promise对象,调用成功返回RemoteAbilityInfo对象;调用失败返回错误对象。 | **错误码:** @@ -243,10 +243,10 @@ try { ]).then(data => { console.info('Operation succeed:' + JSON.stringify(data)); }).catch(err => { - console.error('Operation failed:' + JSON.stringify(err)); + console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message); }); } catch (err) { - console.error('Operation failed:' + JSON.stringify(err)); + console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message); } ``` @@ -254,7 +254,7 @@ try { getRemoteAbilityInfo(elementName: ElementName, locale: string, callback: AsyncCallback\): void; -以异步方法根据给定的ElementName和locale获取有关远程设备AbilityInfo信息。使用callback异步回调。 +以异步方法获取由elementName和locale指定的远程设备上的应用的AbilityInfo信息。使用callback异步回调。 **系统接口:** 此接口为系统接口。 @@ -268,7 +268,7 @@ getRemoteAbilityInfo(elementName: ElementName, locale: string, callback: AsyncCa | ----------- | ------------------------------------------------------------ | ---- | -------------------------------------------------- | | elementName | [ElementName](js-apis-bundleManager-elementName.md) | 是 | ElementName信息。 | | locale | string |是 | 语言地区。 | -| callback | AsyncCallback<[RemoteAbilityInfo](js-apis-bundleManager-remoteAbilityInfo.md)> | 是 | 回调函数,操作成功返回err为null,data为RemoteAbilityInfo对象;否则为错误对象。 | +| callback | AsyncCallback<[RemoteAbilityInfo](js-apis-bundleManager-remoteAbilityInfo.md)> | 是 | 回调函数,调用成功返回err为null,data为RemoteAbilityInfo对象;调用失败err为错误对象, data为undefined。 | **错误码:** @@ -292,13 +292,13 @@ try { abilityName: 'MainAbility' }, 'zh-Hans-CN', (err, data) => { if (err) { - console.error('Operation failed:' + JSON.stringify(err)); + console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message); } else { console.info('Operation succeed:' + JSON.stringify(data)); } }); } catch (err) { - console.error('Operation failed:' + JSON.stringify(err)); + console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message); } ``` @@ -306,7 +306,7 @@ try { getRemoteAbilityInfo(elementName: ElementName, locale: string): Promise\; -以异步方法根据给定的ElementName和locale获取有关远程设备AbilityInfo信息。使用Promise异步回调。 +以异步方法获取由elementName和locale指定的远程设备上的应用的AbilityInfo信息。使用Promise异步回调。 **系统接口:** 此接口为系统接口。 @@ -325,7 +325,7 @@ getRemoteAbilityInfo(elementName: ElementName, locale: string): Promise\ | Promise对象,返回RemoteAbilityInfo对象。 | +| Promise\<[RemoteAbilityInfo](js-apis-bundleManager-remoteAbilityInfo.md)> | Promise对象,调用成功返回RemoteAbilityInfo对象;调用失败返回错误对象。 | **错误码:** @@ -350,10 +350,10 @@ try { }, 'zh-Hans-CN').then(data => { console.info('Operation succeed:' + JSON.stringify(data)); }).catch(err => { - console.error('Operation failed:' + JSON.stringify(err)); + console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message); }); } catch (err) { - console.error('Operation failed:' + JSON.stringify(err)); + console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message); } ``` @@ -361,7 +361,7 @@ try { getRemoteAbilityInfo(elementNames: Array\, locale: string, callback: AsyncCallback\>): void; -以异步方法根据给定的ElementName和locale获取有关远程设备AbilityInfo数组信息。使用callback异步回调。 +以异步方法获取由elementName和locale指定的远程设备上的应用的AbilityInfo数组信息。使用callback异步回调。 **系统接口:** 此接口为系统接口。 @@ -375,7 +375,7 @@ getRemoteAbilityInfo(elementNames: Array\, locale: string, callback | ------------ | ------------------------------------------------------------ | ---- | -------------------------------------------------- | | elementNames | Array<[ElementName](js-apis-bundleManager-elementName.md)> | 是 | ElementName信息,最大数组长度为10。 | | locale | string |是 | 语言地区。 | -| callback | AsyncCallback\> | 是 | 回调函数,调用成功返回err为null,data为RemoteAbilityInfo数组对象;否则返回错误对象。 | +| callback | AsyncCallback\> | 是 | 回调函数,调用成功返回err为null,data为RemoteAbilityInfo数组对象;调用失败err为错误对象, data为undefined。 | **错误码:** @@ -406,13 +406,13 @@ try { } ], 'zh-Hans-CN', (err, data) => { if (err) { - console.error('Operation failed:' + JSON.stringify(err)); + console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message); } else { console.info('Operation succeed:' + JSON.stringify(data)); } }); } catch (err) { - console.error('Operation failed:' + JSON.stringify(err)); + console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message); } ``` @@ -420,7 +420,7 @@ try { getRemoteAbilityInfo(elementNames: Array\, locale: string): Promise\>; -以异步方法根据给定的ElementName和locale获取有关远程设备AbilityInfo数组信息。使用Promise异步回调。 +以异步方法获取由elementName和locale指定的远程设备上的应用的AbilityInfo数组信息。使用Promise异步回调。 **系统接口:** 此接口为系统接口。 @@ -439,7 +439,7 @@ getRemoteAbilityInfo(elementNames: Array\, locale: string): Promise | 类型 | 说明 | | ------------------------------------------------------------ | --------------------------------- | -| Promise\> | Promise对象,返回RemoteAbilityInfo数组对象。 | +| Promise\> | Promise对象,调用成功返回RemoteAbilityInfo对象;调用失败返回错误对象。 | **错误码:** @@ -471,9 +471,9 @@ try { ], 'zh-Hans-CN').then(data => { console.info('Operation succeed:' + JSON.stringify(data)); }).catch(err => { - console.error('Operation failed:' + JSON.stringify(err)); + console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message); }); } catch (err) { - console.error('Operation failed:' + JSON.stringify(err)); + console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message); } ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-document.md b/zh-cn/application-dev/reference/apis/js-apis-document.md index 338c362ec9c3d980d1bdb6ea6be135eb6b28150b..0027cdcf91f0bbc82bcc28ebd2b7e28ac6502805 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-document.md +++ b/zh-cn/application-dev/reference/apis/js-apis-document.md @@ -1,6 +1,7 @@ # @ohos.document (文件交互) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** +> > - 本模块首批接口从API version 6开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > - 本模块接口从API9开始废弃。不建议使用以下接口,调用以下接口将抛出异常。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-environment.md b/zh-cn/application-dev/reference/apis/js-apis-environment.md index e7e5e6ce6dfd165faae96c5a55d94872a5e1f869..a83abb68ab47e5646cbc54c9478ede8196a78fc9 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-environment.md +++ b/zh-cn/application-dev/reference/apis/js-apis-environment.md @@ -2,7 +2,7 @@ 该模块提供环境目录能力,获取内存存储根目录、公共文件根目录的JS接口。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > > - 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > - 本模块接口为系统接口,三方应用不支持调用。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-fileio.md b/zh-cn/application-dev/reference/apis/js-apis-fileio.md index e07b14ed81facab4c52d1ee84de4d4314f3a75c0..394f00b25c4938c7858e26187554f44774dbff6c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-fileio.md +++ b/zh-cn/application-dev/reference/apis/js-apis-fileio.md @@ -2,7 +2,7 @@ 该模块提供文件存储管理能力,包括文件基本管理、文件目录管理、文件信息统计、文件流式读写等常用功能。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 6开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 @@ -40,7 +40,7 @@ class MainAbility extends Ability { let pathDir = data; }) ``` - + FA模型context的具体获取方法参见[FA模型](js-apis-inner-app-context.md#Context模块)。 ## fileio.stat diff --git a/zh-cn/application-dev/reference/apis/js-apis-freeInstall.md b/zh-cn/application-dev/reference/apis/js-apis-freeInstall.md index 43950b82feebedc9fde5ee77085828ad6bcfd94b..38bb665fbaa007edeabfae89ba27d81173cda37b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-freeInstall.md +++ b/zh-cn/application-dev/reference/apis/js-apis-freeInstall.md @@ -63,7 +63,7 @@ setHapModuleUpgradeFlag(bundleName: string, moduleName: string, upgradeFlag: Upg | 参数名 | 类型 | 必填 | 说明 | | ----------- | --------------------------- | ---- | ---------------------------- | -| bundleName | string | 是 | 应用程序包名称。 | +| bundleName | string | 是 | 应用Bundle名称。 | | moduleName | string | 是 | 应用程序模块名称。 | | upgradeFlag | [UpgradeFlag](#upgradeflag) | 是 | 仅供内部系统使用标志位 | | callback | AsyncCallback\ | 是 | 回调函数。当函数调用成功,err为null,否则为错误对象。 | @@ -113,7 +113,7 @@ setHapModuleUpgradeFlag(bundleName: string, moduleName: string, upgradeFlag: Upg | 参数名 | 类型 | 必填 | 说明 | | ----------- | --------------------------- | ---- | ---------------------- | -| bundleName | string | 是 | 应用程序包名称。 | +| bundleName | string | 是 | 应用Bundle名称。 | | moduleName | string | 是 | 应用程序模块名称。 | | upgradeFlag | [UpgradeFlag](#upgradeflag) | 是 | 仅供内部系统使用标志位。| @@ -166,7 +166,7 @@ isHapModuleRemovable(bundleName: string, moduleName: string, callback: AsyncCall | 参数名 | 类型 | 必填 | 说明 | | ---------- | ---------------------- | ---- | --------------------------------------------- | -| bundleName | string | 是 | 应用程序包名称。 | +| bundleName | string | 是 | 应用Bundle名称。 | | moduleName | string | 是 | 应用程序模块名称。 | | callback | AsyncCallback\ | 是 | 回调函数。返回true表示可以移除;返回false表示不可移除。 | @@ -214,7 +214,7 @@ isHapModuleRemovable(bundleName: string, moduleName: string): Promise\; | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------ | ---- | ------------------ | -| bundleName | string | 是 | 应用程序包名称。 | +| bundleName | string | 是 | 应用Bundle名称。 | | moduleName | string | 是 | 应用程序模块名称。 | **返回值:** @@ -265,8 +265,8 @@ getBundlePackInfo(bundleName: string, bundlePackFlag : BundlePackFlag, callback: | 参数名 | 类型 | 必填 | 说明 | | -------------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| bundleName | string | 是 | 应用程序包名称。 | -| bundlePackFlag | [BundlePackFlag](#bundlepackflag) | 是 | 指示要查询的应用包标志。 | +| bundleName | string | 是 | 应用Bundle名称。 | +| bundlePackFlag | [BundlePackFlag](#bundlepackflag) | 是 | 指示要查询的应用包标志。 | | callback | AsyncCallback<[BundlePackInfo](js-apis-bundleManager-packInfo.md)> | 是 | 回调函数。当函数调用成功,err为null,data为获取到的BundlePackInfo信息。否则为错误对象。 | **错误码:** @@ -311,7 +311,7 @@ getBundlePackInfo(bundleName: string, bundlePackFlag : BundlePackFlag): Promise\ | 参数名 | 类型 | 必填 | 说明 | | -------------- | --------------------------------- | ---- | ---------------------- | -| bundleName | string | 是 | 应用程序包名称。 | +| bundleName | string | 是 | 应用程序Bundle名称。 | | bundlePackFlag | [BundlePackFlag](#bundlepackflag) | 是 | 指示要查询的应用包标志。| **返回值:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-geolocation.md b/zh-cn/application-dev/reference/apis/js-apis-geolocation.md index ee2f81b52a13ff7fe750a7d92720a0bc26115cf4..6ee361d755f192c2df7c34a569dfb4fd3f9f4b3f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-geolocation.md +++ b/zh-cn/application-dev/reference/apis/js-apis-geolocation.md @@ -2,7 +2,7 @@ 位置服务提供GNSS定位、网络定位、地理编码、逆地理编码、国家码和地理围栏等基本功能。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > 从API Version 9开始,该接口不再维护,推荐使用新接口[geoLocationManager](js-apis-geoLocationManager.md)。 @@ -61,11 +61,11 @@ on(type: 'locationChange', request: LocationRequest, callback: Callback<Locat | type | string | 是 | 设置事件类型。type为“locationChange”,表示位置变化。 | | request | [LocationRequest](#locationrequest) | 是 | 设置位置请求参数。 | | callback | Callback<[Location](#location)> | 是 | 接收位置变化状态变化监听。 | - + **示例** - + ```ts import geolocation from '@ohos.geolocation'; var requestInfo = {'priority': 0x203, 'scenario': 0x300, 'timeInterval': 0, 'distanceInterval': 0, 'maxAccuracy': 0}; @@ -98,7 +98,7 @@ off(type: 'locationChange', callback?: Callback<Location>): void **示例** - + ```ts import geolocation from '@ohos.geolocation'; var requestInfo = {'priority': 0x203, 'scenario': 0x300, 'timeInterval': 0, 'distanceInterval': 0, 'maxAccuracy': 0}; @@ -132,7 +132,7 @@ on(type: 'locationServiceState', callback: Callback<boolean>): void **示例** - + ```ts import geolocation from '@ohos.geolocation'; var locationServiceState = (state) => { @@ -164,7 +164,7 @@ off(type: 'locationServiceState', callback?: Callback<boolean>): void; **示例** - + ```ts import geolocation from '@ohos.geolocation'; var locationServiceState = (state) => { @@ -199,7 +199,7 @@ on(type: 'cachedGnssLocationsReporting', request: CachedGnssLocationsRequest, ca **示例** - + ```ts import geolocation from '@ohos.geolocation'; var cachedLocationsCb = (locations) => { @@ -233,7 +233,7 @@ off(type: 'cachedGnssLocationsReporting', callback?: Callback<Array<Locati **示例** - + ```ts import geolocation from '@ohos.geolocation'; var cachedLocationsCb = (locations) => { @@ -268,7 +268,7 @@ on(type: 'gnssStatusChange', callback: Callback<SatelliteStatusInfo>): voi **示例** - + ```ts import geolocation from '@ohos.geolocation'; var gnssStatusCb = (satelliteStatusInfo) => { @@ -300,7 +300,7 @@ off(type: 'gnssStatusChange', callback?: Callback<SatelliteStatusInfo>): v | callback | Callback<[SatelliteStatusInfo](#satellitestatusinfo)> | 否 | 需要取消订阅的回调函数。若无此参数,则取消当前类型的所有订阅。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; var gnssStatusCb = (satelliteStatusInfo) => { @@ -334,7 +334,7 @@ on(type: 'nmeaMessageChange', callback: Callback<string>): void; **示例** - + ```ts import geolocation from '@ohos.geolocation'; var nmeaCb = (str) => { @@ -367,7 +367,7 @@ off(type: 'nmeaMessageChange', callback?: Callback<string>): void; **示例** - + ```ts import geolocation from '@ohos.geolocation'; var nmeaCb = (str) => { @@ -402,7 +402,7 @@ on(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent): void; **示例** - + ```ts import geolocation from '@ohos.geolocation'; import wantAgent from '@ohos.wantAgent'; @@ -450,7 +450,7 @@ off(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent): void; | want | WantAgent | 是 | 用于接收地理围栏事件上报(进出围栏)。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; import wantAgent from '@ohos.wantAgent'; @@ -497,7 +497,7 @@ getCurrentLocation(request: CurrentLocationRequest, callback: AsyncCallback<L | callback | AsyncCallback<[Location](#location)> | 是 | 用来接收位置信息的回调。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; var requestInfo = {'priority': 0x203, 'scenario': 0x300,'maxAccuracy': 0}; @@ -534,7 +534,7 @@ getCurrentLocation(callback: AsyncCallback<Location>): void | callback | AsyncCallback<[Location](#location)> | 是 | 用来接收位置信息的回调。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; var locationChange = (err, location) => { @@ -576,7 +576,7 @@ getCurrentLocation(request?: CurrentLocationRequest): Promise<Location> **示例** - + ```ts import geolocation from '@ohos.geolocation'; var requestInfo = {'priority': 0x203, 'scenario': 0x300,'maxAccuracy': 0}; @@ -607,7 +607,7 @@ getLastLocation(callback: AsyncCallback<Location>): void **示例** - + ```ts import geolocation from '@ohos.geolocation'; geolocation.getLastLocation((err, data) => { @@ -642,7 +642,7 @@ getLastLocation(): Promise<Location> **示例** - + ```ts import geolocation from '@ohos.geolocation'; geolocation.getLastLocation().then((result) => { @@ -671,7 +671,7 @@ isLocationEnabled(callback: AsyncCallback<boolean>): void | callback | AsyncCallback<boolean> | 是 | 用来接收位置服务状态的回调。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; geolocation.isLocationEnabled((err, data) => { @@ -705,7 +705,7 @@ isLocationEnabled(): Promise<boolean> | Promise<boolean> | boolean|NA|返回位置服务是否可用的状态。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; geolocation.isLocationEnabled().then((result) => { @@ -734,7 +734,7 @@ requestEnableLocation(callback: AsyncCallback<boolean>): void | callback | AsyncCallback<boolean> | 是 | 用来接收位置服务状态的回调。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; geolocation.requestEnableLocation((err, data) => { @@ -768,7 +768,7 @@ requestEnableLocation(): Promise<boolean> | Promise<boolean> | boolean|NA|返回位置服务是否可用。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; geolocation.requestEnableLocation().then((result) => { @@ -797,7 +797,7 @@ isGeoServiceAvailable(callback: AsyncCallback<boolean>): void | callback | AsyncCallback<boolean> | 是 | 用来接收地理编码服务状态的回调。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; geolocation.isGeoServiceAvailable((err, data) => { @@ -831,7 +831,7 @@ isGeoServiceAvailable(): Promise<boolean> | Promise<boolean> |boolean|NA| 返回地理编码服务是否可用的状态。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; geolocation.isGeoServiceAvailable().then((result) => { @@ -861,7 +861,7 @@ getAddressesFromLocation(request: ReverseGeoCodeRequest, callback: AsyncCallback | callback | AsyncCallback<Array<[GeoAddress](#geoaddress)>> | 是 | 设置接收逆地理编码请求的回调参数。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; var reverseGeocodeRequest = {"latitude": 31.12, "longitude": 121.11, "maxItems": 1}; @@ -902,7 +902,7 @@ getAddressesFromLocation(request: ReverseGeoCodeRequest): Promise<Array<Ge | Promise<Array<[GeoAddress](#geoaddress)>> | Array<[GeoAddress](#geoaddress)>|NA|返回地理描述信息。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; var reverseGeocodeRequest = {"latitude": 31.12, "longitude": 121.11, "maxItems": 1}; @@ -933,7 +933,7 @@ getAddressesFromLocationName(request: GeoCodeRequest, callback: AsyncCallback< | callback | AsyncCallback<Array<[GeoAddress](#geoaddress)>> | 是 | 设置接收地理编码请求的回调参数。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; var geocodeRequest = {"description": "上海市浦东新区xx路xx号", "maxItems": 1}; @@ -974,7 +974,7 @@ getAddressesFromLocationName(request: GeoCodeRequest): Promise<Array<GeoAd | Promise<Array<[GeoAddress](#geoaddress)>> | Array<[GeoAddress](#geoaddress)>|NA|设置接收地理编码请求的回调参数。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; var geocodeRequest = {"description": "上海市浦东新区xx路xx号", "maxItems": 1}; @@ -1005,7 +1005,7 @@ getCachedGnssLocationsSize(callback: AsyncCallback<number>): void; | callback | AsyncCallback<number> | 是 | 用来接收GNSS芯片缓存位置个数的回调。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; geolocation.getCachedGnssLocationsSize((err, size) => { @@ -1040,7 +1040,7 @@ getCachedGnssLocationsSize(): Promise<number>; | Promise<number> | number|NA|返回GNSS缓存位置的个数。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; geolocation.getCachedGnssLocationsSize().then((result) => { @@ -1070,7 +1070,7 @@ flushCachedGnssLocations(callback: AsyncCallback<boolean>): void; | callback | AsyncCallback<boolean> | 是 | 用来接收清空GNSS芯片缓存位置操作的结果。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; geolocation.flushCachedGnssLocations((err, result) => { @@ -1105,7 +1105,7 @@ flushCachedGnssLocations(): Promise<boolean>; | Promise<boolean> |boolean|NA| 清空所有GNSS缓存位置是否成功。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; geolocation.flushCachedGnssLocations().then((result) => { @@ -1136,7 +1136,7 @@ sendCommand(command: LocationCommand, callback: AsyncCallback<boolean>): v | callback | AsyncCallback<boolean> | 是 | 用来接收命令发送的结果。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; var requestInfo = {'scenario': 0x301, 'command': "command_1"}; @@ -1178,7 +1178,7 @@ sendCommand(command: LocationCommand): Promise<boolean>; | Promise<boolean> |boolean|NA| 表示命令发送成功或失败。 | **示例** - + ```ts import geolocation from '@ohos.geolocation'; var requestInfo = {'scenario': 0x301, 'command': "command_1"}; diff --git a/zh-cn/application-dev/reference/apis/js-apis-hashmap.md b/zh-cn/application-dev/reference/apis/js-apis-hashmap.md index 31ac9a44e52338e95e343844b0f2bd445a3f3e59..d4bac07c3165bfdd8e7cd6bcc2f771bffc43cbce 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-hashmap.md +++ b/zh-cn/application-dev/reference/apis/js-apis-hashmap.md @@ -1,6 +1,6 @@ # @ohos.util.HashMap (非线性容器HashMap) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 HashMap底层使用数组+链表+红黑树的方式实现,查询、插入和删除的效率都很高。HashMap存储内容基于key-value的键值对映射,不能有重复的key,且一个key只能对应一个value。 @@ -42,7 +42,7 @@ HashMap的构造函数。 **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -71,7 +71,7 @@ isEmpty(): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -107,7 +107,7 @@ hasKey(key: K): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -145,7 +145,7 @@ hasValue(value: V): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -183,7 +183,7 @@ get(key: K): V **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -215,7 +215,7 @@ setAll(map: HashMap): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -255,7 +255,7 @@ set(key: K, value: V): Object **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -291,7 +291,7 @@ remove(key: K): V **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -317,7 +317,7 @@ clear(): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -349,7 +349,7 @@ keys(): IterableIterator<K> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -386,7 +386,7 @@ values(): IterableIterator<V> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -430,7 +430,7 @@ replace(key: K, newValue: V): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -469,7 +469,7 @@ callbackfn的参数说明: **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -503,7 +503,7 @@ entries(): IterableIterator<[K, V]> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -541,7 +541,7 @@ while(temp != undefined) { **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-hashset.md b/zh-cn/application-dev/reference/apis/js-apis-hashset.md index 128eb01303ae8071d7b6390cd3dd780f5c6cd7bf..b5b4028d55c862bd0eb8fe3adbca62034322c6cd 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-hashset.md +++ b/zh-cn/application-dev/reference/apis/js-apis-hashset.md @@ -1,6 +1,6 @@ # @ohos.util.HashSet (非线性容器HashSet) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 HashSet基于[HashMap](js-apis-hashmap.md)实现。在HashSet中,只对value对象进行处理。 @@ -50,7 +50,7 @@ HashSet的构造函数。 **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -79,7 +79,7 @@ isEmpty(): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -115,7 +115,7 @@ has(value: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -153,7 +153,7 @@ add(value: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -189,7 +189,7 @@ remove(value: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -215,7 +215,7 @@ clear(): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -247,7 +247,7 @@ values(): IterableIterator<T> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -292,7 +292,7 @@ callbackfn的参数说明: **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -325,7 +325,7 @@ entries(): IterableIterator<[T, T]> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -363,7 +363,7 @@ while(temp != undefined) { **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-hiappevent.md b/zh-cn/application-dev/reference/apis/js-apis-hiappevent.md index 78da72192d584ddae66984b8bee6bb91fc2caa3d..394a61c58f2034dd2e818c1a8561a6b12ec22496 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-hiappevent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-hiappevent.md @@ -2,7 +2,8 @@ 本模块提供了应用事件打点能力,包括对打点数据的落盘,以及对打点功能的管理配置。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** +> > - 本模块接口从API version 9开始废弃,建议使用新接口[`@ohos.hiviewdfx.hiAppEvent`](js-apis-hiviewdfx-hiappevent.md)替代。 > - 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-ability-abilityResult.md b/zh-cn/application-dev/reference/apis/js-apis-inner-ability-abilityResult.md index 851a2725467242725c2ae0da44c6afcc89e8df8b..e0472d5cc12d0fecc5a12e8c7897475d3ca156e6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-ability-abilityResult.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-ability-abilityResult.md @@ -10,6 +10,6 @@ | 名称 | 可读 | 可写 | 类型 | 必填 | 说明 | | ----------- | -------- |-------- | -------------------- | ---- | ------------------------------------------------------------ | -| resultCode | 是 | 否 | number | 否 | 表示ability拉起、销毁之后返回的结果码。 | +| resultCode | 是 | 否 | number | 是 | 表示ability拉起、销毁之后返回的结果码。 | | want | 是 | 否 | [Want](./js-apis-app-ability-want.md) | 否 | 表示ability销毁之后返回的数据。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-ability-want.md b/zh-cn/application-dev/reference/apis/js-apis-inner-ability-want.md index be9ed68779a7f88e1d9bcb7111e06587c034d791..b0bea630d59c478157e97fc0f93aa59de9f01727 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-ability-want.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-ability-want.md @@ -1,6 +1,6 @@ # Want -Want是对象间信息传递的载体, 可以用于应用组件间的信息传递。 Want的使用场景之一是作为[startAbility](js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartability)的参数, 其包含了指定的启动目标, 以及启动时需携带的相关数据, 如bundleName和abilityName字段分别指明目标Ability所在应用的包名以及对应包内的Ability名称。当Ability A需要启动Ability B并传入一些数据时, 可使用Want作为载体将这些数据传递给Ability B。 +Want是对象间信息传递的载体, 可以用于应用组件间的信息传递。 Want的使用场景之一是作为[startAbility](js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartability)的参数, 其包含了指定的启动目标, 以及启动时需携带的相关数据, 如bundleName和abilityName字段分别指明目标Ability所在应用的Bundle名称以及对应包内的Ability名称。当Ability A需要启动Ability B并传入一些数据时, 可使用Want作为载体将这些数据传递给Ability B。 > **说明:** > @@ -11,7 +11,7 @@ Want是对象间信息传递的载体, 可以用于应用组件间的信息传 | 名称 | 类型 | 必填 | 说明 | | ----------- | -------------------- | ---- | ------------------------------------------------------------ | | deviceId | string | 否 | 表示运行指定Ability的设备ID。 | -| bundleName | string | 否 | 表示包名。如果在Want中同时指定了BundleName和AbilityName,则Want可以直接匹配到指定的Ability。 | +| bundleName | string | 否 | 表示Bundle名称。如果在Want中同时指定了BundleName和AbilityName,则Want可以直接匹配到指定的Ability。 | | abilityName | string | 否 | 表示待启动的Ability名称。如果在Want中该字段同时指定了BundleName和AbilityName,则Want可以直接匹配到指定的Ability。AbilityName需要在一个应用的范围内保证唯一。 | | uri | string | 否 | 表示Uri。如果在Want中指定了Uri,则Want将匹配指定的Uri信息,包括scheme, schemeSpecificPart, authority和path信息。 | | type | string | 否 | 表示MIME type类型,打开文件的类型,主要用于文管打开文件。比如:"text/xml" 、 "image/*"等,MIME定义参考:https://www.iana.org/assignments/media-types/media-types.xhtml?utm_source=ld246.com。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityStateData.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityStateData.md index eba70773f6a3c727192a366f6a85c2f224fc9fd3..94e7fb47420c00a713ea8c8ba7200af9449ec7dd 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityStateData.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityStateData.md @@ -7,10 +7,10 @@ | 名称 | 类型 | 可读 | 可写 | 说明 | | ----------------------- | ---------| ---- | ---- | ------------------------- | | pid8+ | number | 是 | 否 | 进程ID。 | -| bundleName8+ | string | 是 | 否 | 应用包名。 | +| bundleName8+ | string | 是 | 否 | 应用Bundle名称。 | | abilityName8+ | string | 是 | 否 | Ability名称。 | | uid8+ | number | 是 | 否 | 用户ID。 | | state8+ | number | 是 | 否 | Ability状态。 | -| moduleName9+ | string | 是 | 否 | Ability所属的HAP包的名称。 | +| moduleName9+ | string | 是 | 否 | Ability所属的HAP的名称。 | | abilityType8+ | string | 是 | 否 | Ability类型:页面或服务等。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-appStateData.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-appStateData.md index 2dce76952c4df946a96f2545b4708c1334c5a317..3c2aa81352a868d340d34e67f6f70dc97b893f1e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-appStateData.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-appStateData.md @@ -4,25 +4,32 @@ **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core -**系统API**:该接口为系统接口,三方应用不支持调用。 +**系统API**:本模块被标记为@systemapi,对三方应用隐藏 -| 名称 | 类型 | 必填 | 说明 | -| ----------- | -------- | ---- | ------------------------------------------------------------ | -| bundleName8+ | string | 否 | 包名。 | -| uid8+ | number | 否 | 用户ID。 | -| state8+ | number | 否 | 应用状态。 | +| 名称 | 类型 | 必填 | 说明 | +| ------------------------- | ------ | ---- | --------- | +| bundleName8+ | string | 否 | Bundle名称。 | +| uid8+ | number | 否 | 应用程序的uid。 | +| state8+ | number | 否 | 应用状态。
0:初始化状态,应用正在初始化
1:就绪状态,应用已初始化完毕
2:前台状态,应用位于前台
3:获焦状态。(预留状态,当前暂不支持)
4:后台状态,应用位于后台
5:退出状态,应用已退出 | **示例:** + ```ts -import appManager from "@ohos.application.appManager" +import appManager from "@ohos.app.ability.appManager" -appManager.getForegroundApplications((error, data) => { - for (let i = 0; i < data.length; i++) { - let appStateData = data[i]; - console.info('appStateData.bundleName: ' + appStateData.bundleName); - console.info('appStateData.uid: ' + appStateData.uid); - console.info('appStateData.state: ' + appStateData.state); - } -}); +function getForegroundAppInfos() { + appManager.getForegroundApplications((error, data) => { + if (error && error.code) { + console.log('getForegroundApplications failed, error.code: ' + JSON.stringify(error.code) + + ' error.message: ' + JSON.stringify(error.message)); + return; + } + for (let i = 0; i < data.length; i++) { + let appStateData = data[i]; + console.log('appStateData.bundleName: ' + appStateData.bundleName); + console.log('appStateData.uid: ' + appStateData.uid); + console.log('appStateData.state: ' + appStateData.state); + } + }); +} ``` - diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-baseContext.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-baseContext.md index 6c6d4c3eeea213c8ce372ac4a9f59c0181d344ed..7e08bd9cc348b097756032da0969ee3d1650330e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-baseContext.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-baseContext.md @@ -3,21 +3,21 @@ BaseContext抽象类用于表示继承的子类Context是Stage模型还是FA模型。 > **说明:** -> +> > 本模块首批接口从API version 8 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core | 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | ------ | ---- | ---- | ------- | -| stageMode | boolean | 是 | 是 | 表示Stage模型还是FA模型。 | +| stageMode | boolean | 是 | 是 | 表示是否Stage模型。
true:Stage模型
false:FA模型。 | **示例:** - + ```ts class MyContext extends BaseContext { constructor(stageMode) { this.stageMode = stageMode; } } - ``` \ No newline at end of file + ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-context.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-context.md index d085b67a001dc50e1a5b7f8d79114207f9920866..eadb6087fe22dda7c1d04469a5db38daac207b84 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-context.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-context.md @@ -1,11 +1,11 @@ -# Context模块 +# Context Context模块提供了ability或application的上下文的能力,包括访问特定应用程序的资源等。 > **说明:** > -> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -> 本模块接口仅可在Stage模型下使用。 +> - 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> - 本模块接口仅可在Stage模型下使用。 ## 属性 @@ -25,12 +25,13 @@ Context模块提供了ability或application的上下文的能力,包括访问 | eventHub | string | 是 | 否 | 事件中心,提供订阅、取消订阅、触发事件对象。 | | area | [AreaMode](#areamode) | 是 | 否 | 文件分区信息。 | - ## Context.createBundleContext createBundleContext(bundleName: string): Context; -根据包名创建安装包的上下文Context。 +根据Bundle名称创建安装包的上下文。 + +**需要权限**: ohos.permission.GET_BUNDLE_INFO_PRIVILEGED **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -38,25 +39,38 @@ createBundleContext(bundleName: string): Context; | 名称 | 类型 | 必填 | 说明 | | -------- | ---------------------- | ---- | ------------- | -| bundleName | string | 是 | 包名。 | +| bundleName | string | 是 | Bundle名称。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| Context | 安装包的上下文Context。 | +| Context | 安装包的上下文。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------- | +| 401 | If the input parameter is not valid parameter. | +其他ID见[元能力子系统错误码](../errorcodes/errorcode-ability.md) **示例:** ```ts -let bundleContext = this.context.createBundleContext("com.example.test"); +let bundleContext; +try { + bundleContext = this.context.createBundleContext("com.example.test"); +} catch (error) { + console.log('createBundleContext failed, error.code: ' + JSON.stringify(error.code) + + ' error.message: ' + JSON.stringify(error.message)); +} ``` ## Context.createModuleContext createModuleContext(moduleName: string): Context; -根据模块名创建上下文Context。 +根据模块名创建上下文。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -70,17 +84,30 @@ createModuleContext(moduleName: string): Context; | 类型 | 说明 | | -------- | -------- | -| Context | 上下文Context。 | +| Context | 模块的上下文。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------- | +| 401 | If the input parameter is not valid parameter. | +其他ID见[元能力子系统错误码](../errorcodes/errorcode-ability.md) **示例:** ```ts -let moduleContext = this.context.createModuleContext("entry"); +let moduleContext; +try { + moduleContext = this.context.createModuleContext("entry"); +} catch (error) { + console.log('createModuleContext failed, error.code: ' + JSON.stringify(error.code) + + ' error.message: ' + JSON.stringify(error.message)); +} ``` createModuleContext(bundleName: string, moduleName: string): Context; -根据包名和模块名创建上下文Context。 +根据Bundle名称和模块名称创建上下文。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -88,26 +115,39 @@ createModuleContext(bundleName: string, moduleName: string): Context; | 名称 | 类型 | 必填 | 说明 | | -------- | ---------------------- | ---- | ------------- | -| bundleName | string | 是 | 包名。 | +| bundleName | string | 是 | Bundle名称。 | | moduleName | string | 是 | 模块名。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| Context | 上下文Context。 | +| Context | 模块的上下文。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------- | +| 401 | If the input parameter is not valid parameter. | +其他ID见[元能力子系统错误码](../errorcodes/errorcode-ability.md) **示例:** ```ts -let moduleContext = this.context.createModuleContext("com.example.test", "entry"); +let moduleContext; +try { + moduleContext = this.context.createModuleContext("com.example.test", "entry"); +} catch (error) { + console.log('createModuleContext failed, error.code: ' + JSON.stringify(error.code) + + ' error.message: ' + JSON.stringify(error.message)); +} ``` ## Context.getApplicationContext getApplicationContext(): ApplicationContext; -获取应用上下文Context。 +获取本应用的应用上下文。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -115,12 +155,18 @@ getApplicationContext(): ApplicationContext; | 类型 | 说明 | | -------- | -------- | -| Context | 应用上下文Context。 | +| [ApplicationContext](js-apis-inner-application-applicationContext.md) | 应用上下文Context。 | **示例:** ```ts -let applicationContext = this.context.getApplicationContext(); +let applicationContext; +try { + applicationContext = this.context.getApplicationContext(); +} catch (error) { + console.log('getApplicationContext failed, error.code: ' + JSON.stringify(error.code) + + ' error.message: ' + JSON.stringify(error.message)); +} ``` ## AreaMode diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-continueCallback.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-continueCallback.md index 9367f66a9e24cf3956b06602501e2200b0957cc6..8cda7bb28b49ca4ec0ebe2ee0f15b05ad3d6c6e2 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-continueCallback.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-continueCallback.md @@ -1,37 +1,46 @@ # ContinueCallback -表示迁移完成后,返回迁移结果回调函数,可以作为[continueMission](js-apis-distributedMissionManager.md#distributedmissionmanagercontinuemission)的入参监听迁移回调。 +表示跨设备迁移Mission完成后,返回迁移结果的回调函数,迁移Mission详见:[continueMission接口](js-apis-distributedMissionManager.md#distributedmissionmanagercontinuemission)。 + +## ContinueCallback.onContinueDone + +onContinueDone(result: number): void; + +Mission迁移完成后调用,返回迁移结果。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Mission -| 名称 | 类型 | 可读 | 可写 | 说明 | -| --------------------- | -------- | ---- | ---- | ------------------ | -| onContinueDone | function | 是 | 否 | 通知迁移完成,返回迁移结果。 | +**参数:** + + | 参数名 | 类型 | 必填 | 说明 | + | -------- | -------- | -------- | -------- | + | result | number | 否 | 迁移任务的结果。 | **示例:** ```ts - import distributedMissionManager from '@ohos.distributedMissionManager'; + import distributedMissionManager from '@ohos.distributedMissionManager' let continueDeviceInfo = { - srcDeviceId: "123", - dstDeviceId: "456", - missionId: 123, - wantParam: { - "key":"value" - } + srcDeviceId: "123", + dstDeviceId: "456", + missionId: 123, + wantParam: { + "key":"value" + } }; let continueCallback = { onContinueDone(result) { console.log('onContinueDone, result: ' + JSON.stringify(result)); } - } + }; distributedMissionManager.continueMission(continueDeviceInfo, continueCallback, (error) => { - if (error.code != 0) { - console.error('continueMission failed, cause: ' + JSON.stringify(error)) - } - console.info('continueMission finished') + if (error && error.code) { + console.log('continueMission failed, error.code: ' + JSON.stringify(error.code) + + ' error.message: ' + JSON.stringify(error.message)); + } + console.log('continueMission finished'); }) - ``` \ No newline at end of file + ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-continueDeviceInfo.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-continueDeviceInfo.md index 0d4cdaae13b0f4d9af3b992a9408a846e434d36f..f885b2266eaee93eebba6073254a83f8bf9c1340 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-continueDeviceInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-continueDeviceInfo.md @@ -1,6 +1,6 @@ # ContinueDeviceInfo -表示发起任务迁移时所需参数的枚举,可以作为[continueMission](js-apis-distributedMissionManager.md#distributedmissionmanagercontinuemission)的入参指定迁移相关参数。 +表示发起Mission迁移时所需参数的枚举,迁移Mission详见:[continueMission接口](js-apis-distributedMissionManager.md#distributedmissionmanagercontinuemission)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Mission @@ -14,27 +14,28 @@ **示例:** ```ts - import distributedMissionManager from '@ohos.distributedMissionManager'; + import distributedMissionManager from '@ohos.distributedMissionManager' let continueDeviceInfo = { - srcDeviceId: "123", - dstDeviceId: "456", - missionId: 123, - wantParam: { - "key":"value" - } + srcDeviceId: "123", + dstDeviceId: "456", + missionId: 123, + wantParam: { + "key":"value" + } }; let continueCallback = { onContinueDone(result) { console.log('onContinueDone, result: ' + JSON.stringify(result)); } - } + }; distributedMissionManager.continueMission(continueDeviceInfo, continueCallback, (error) => { - if (error.code != 0) { - console.error('continueMission failed, cause: ' + JSON.stringify(error)) - } - console.info('continueMission finished') + if (error && error.code) { + console.log('continueMission failed, error.code: ' + JSON.stringify(error.code) + + ' error.message: ' + JSON.stringify(error.message)); + } + console.log('continueMission finished'); }) - ``` \ No newline at end of file + ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-errorObserver.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-errorObserver.md index af5ef4b750eccba37e7f4912c2e0ce1987fe1a27..825a459c7e1b268eb9c2fc764ef7aa2752c760e7 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-errorObserver.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-errorObserver.md @@ -1,8 +1,8 @@ # ErrorObserver -定义异常监听,可以作为[registerErrorObserver](js-apis-application-errorManager.md#errormanagerregistererrorobserver)的入参监听当前应用发生的异常。 +定义异常监听,可以作为[ErrorManager.on](js-apis-app-ability-errorManager.md#errormanageron)的入参监听当前应用发生的异常。 -## onUnhandledException +## ErrorObserver.onUnhandledException onUnhandledException(errMsg: string): void; @@ -19,12 +19,18 @@ onUnhandledException(errMsg: string): void; **示例:** ```ts -import errorManager from '@ohos.application.errorManager'; +import errorManager from '@ohos.app.ability.errorManager' let observer = { onUnhandledException(errorMsg) { - console.log('onUnhandledException, errorMsg: ' + JSON.stringify(errorMsg)); + console.log('HXW onUnhandledException, errorMsg: ', errorMsg); } } -errorManager.registerErrorObserver(observer) -``` \ No newline at end of file + +try { + errorManager.on("error", observer); +} catch (error) { + console.log('registerErrorObserver' + ' failed, error.code: ' + JSON.stringify(error.code) + + ' error.message: ' + JSON.stringify(error.message)); +} +``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-eventHub.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-eventHub.md index e5c0502fed2c7e5271ebb4239ab14e383f533d98..26b3685915afad94d76499246c05896074218180 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-eventHub.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-eventHub.md @@ -3,22 +3,24 @@ EventHub模块提供了事件中心,提供订阅、取消订阅、触发事件的能力。 > **说明:** -> -> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -> 本模块接口仅可在Stage模型下使用。 +> +> - 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> - 本模块接口仅可在Stage模型下使用。 ## 使用说明 -在使用eventHub的功能前,需要通过Ability实例的成员变量context获取。 +在使用eventHub的功能前,需要通过UIAbility实例的成员变量context获取。 ```ts -import Ability from '@ohos.application.Ability'; -export default class MainAbility extends Ability { - func1(){ - console.log("func1 is called"); +import UIAbility from '@ohos.app.ability.UIAbility' + +export default class MainAbility extends UIAbility { + eventFunc(){ + console.log("eventFunc is called"); } + onForeground() { - this.context.eventHub.on("123", this.func1); + this.context.eventHub.on("myEvent", this.eventFunc); } } ``` @@ -36,36 +38,39 @@ on(event: string, callback: Function): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | event | string | 是 | 事件名称。 | -| callback | Function | 是 | 事件回调,事件触发后运行。 | +| callback | Function | 是 | 事件回调,事件触发后调用。 | **示例:** - - ```ts - import Ability from '@ohos.application.Ability'; - - export default class MainAbility extends Ability { - onForeground() { - this.context.eventHub.on("123", this.func1); - this.context.eventHub.on("123", () => { - console.log("call anonymous func 1"); - }); - // 结果: - // func1 is called - // call anonymous func 1 - this.context.eventHub.emit("123"); - } - func1() { - console.log("func1 is called"); - } - } - ``` +```ts +import UIAbility from '@ohos.app.ability.UIAbility' + +export default class MainAbility extends UIAbility { + onForeground() { + this.context.eventHub.on("myEvent", this.eventFunc); + // 支持使用匿名函数订阅事件 + this.context.eventHub.on("myEvent", () => { + console.log("call anonymous eventFunc"); + }); + // 结果: + // eventFunc is called + // call anonymous eventFunc + this.context.eventHub.emit("myEvent"); + } + + eventFunc() { + console.log("eventFunc is called"); + } +} +``` ## EventHub.off off(event: string, callback?: Function): void; -取消订阅指定事件。当callback传值时,取消订阅指定的callback;未传值时,取消订阅该事件下所有callback。 +取消订阅指定事件。 + - 传入callback:取消指定的callback对指定事件的订阅,当该事件触发后,将不会回调该callback。 + - 不传callback:取消所有callback对指定事件的订阅。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -77,27 +82,28 @@ off(event: string, callback?: Function): void; | callback | Function | 否 | 事件回调。如果不传callback,则取消订阅该事件下所有callback。 | **示例:** - - ```ts - import Ability from '@ohos.application.Ability'; - - export default class MainAbility extends Ability { - onForeground() { - this.context.eventHub.on("123", this.func1); - this.context.eventHub.off("123", this.func1); //取消订阅func1 - this.context.eventHub.on("123", this.func1); - this.context.eventHub.on("123", this.func2); - this.context.eventHub.off("123"); //取消订阅func1和func2 - } - func1() { - console.log("func1 is called"); - } - func2() { - console.log("func2 is called"); - } - } - ``` +```ts +import UIAbility from '@ohos.app.ability.UIAbility' + +export default class MainAbility extends UIAbility { + onForeground() { + this.context.eventHub.on("myEvent", this.eventFunc1); + this.context.eventHub.off("myEvent", this.eventFunc1); // 取消eventFunc1对myEvent事件的订阅 + this.context.eventHub.on("myEvent", this.eventFunc1); + this.context.eventHub.on("myEvent", this.eventFunc2); + this.context.eventHub.off("myEvent"); // 取消eventFunc1和eventFunc2对myEvent事件的订阅 + } + + eventFunc1() { + console.log("eventFunc1 is called"); + } + + eventFunc2() { + console.log("eventFunc2 is called"); + } +} +``` ## EventHub.emit @@ -115,25 +121,26 @@ emit(event: string, ...args: Object[]): void; | ...args | Object[] | 是 | 可变参数,事件触发时,传递给回调函数的参数。 | **示例:** - - ```ts - import Ability from '@ohos.application.Ability'; - - export default class MainAbility extends Ability { - onForeground() { - this.context.eventHub.on("123", this.func1); - // 结果: - // func1 is called,undefined,undefined - this.context.eventHub.emit("123"); - // 结果: - // func1 is called,1,undefined - this.context.eventHub.emit("123", 1); - // 结果: - // func1 is called,1,2 - this.context.eventHub.emit("123", 1, 2); - } - func1(a, b) { - console.log("func1 is called," + a + "," + b); - } - } - ``` + +```ts +import UIAbility from '@ohos.app.ability.UIAbility' + +export default class MainAbility extends UIAbility { + onForeground() { + this.context.eventHub.on("myEvent", this.eventFunc); + // 结果: + // eventFunc is called,undefined,undefined + this.context.eventHub.emit("myEvent"); + // 结果: + // eventFunc is called,1,undefined + this.context.eventHub.emit("myEvent", 1); + // 结果: + // eventFunc is called,1,2 + this.context.eventHub.emit("myEvent", 1, 2); + } + + eventFunc(argOne, argTwo) { + console.log("eventFunc is called," + argOne + "," + argTwo); + } +} +``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-extensionContext.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-extensionContext.md index 071b5563b7621ae381123b55bb09f90009106acb..411b5d8a48b2536b596900603c4683bd079f80f1 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-extensionContext.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-extensionContext.md @@ -5,7 +5,7 @@ ExtensionContext是Extension的上下文环境,继承自Context。 ExtensionContext模块提供访问特定Extension的资源的能力,对于拓展的Extension,可直接将ExtensionContext作为上下文环境,或者定义一个继承自ExtensionContext的类型作为上下文环境。如:ServiceExtension提供了ServiceExtensionContext,它在ExtensionContext的基础上扩展了启动、停止、绑定、解绑Ability的能力,详见[ServiceExtensionContext](js-apis-inner-application-serviceExtensionContext.md)。 > **说明:** -> +> > - 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > - 本模块接口仅可在Stage模型下使用。 @@ -110,4 +110,4 @@ export default class ServiceModel { } } }; -``` \ No newline at end of file +``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-extensionRunningInfo.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-extensionRunningInfo.md index a5834f33491284810adbbc6457e50d5d59243ded..13e4ce5df6b37cb85cf82fd9e7e9841c3dca9fc1 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-extensionRunningInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-extensionRunningInfo.md @@ -1,15 +1,15 @@ # ExtensionRunningInfo -ExtensionRunningInfo模块提供对Extension运行的相关信息和类型进行设置和查询的能力,可以通过[getExtensionRunningInfos](js-apis-app-ability-abilityManager.md#getextensionrunninginfos)获取。 +ExtensionRunningInfo模块封装了Extension运行的相关信息,可以通过[getExtensionRunningInfos接口](js-apis-app-ability-abilityManager.md#getextensionrunninginfos)获取。 > **说明:** > -> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -> 本模块接口均为系统接口,三方应用不支持调用 +> - 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> - 本模块被标记为@systemapi,对三方应用隐藏 ## 使用说明 -通过abilityManager中方法获取。 +导入abilityManager模块,通过调用abilityManager中的方法获取ExtensionRunningInfo。 ## 属性 @@ -17,29 +17,37 @@ ExtensionRunningInfo模块提供对Extension运行的相关信息和类型进行 | 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | -| extension | ElementName | 是 | 否 | Extension匹配信息。 | +| extension | [ElementName](js-apis-bundleManager-elementName.md) | 是 | 否 | Extension信息。 | | pid | number | 是 | 否 | 进程ID。 | -| uid | number | 是 | 否 | 用户ID。 | +| uid | number | 是 | 否 | 应用程序的uid。 | | processName | string | 是 | 否 | 进程名称。 | -| startTime | number | 是 | 否 | Extension启动时间。 | +| startTime | number | 是 | 否 | Extension被启动时的时间戳。 | | clientPackage | Array<String> | 是 | 否 | 表示当期进程下的所有包名。 | -| type | [bundle.ExtensionAbilityType](js-apis-Bundle.md) | 是 | 否 | Extension类型。 | +| type | [ExtensionAbilityType](js-apis-bundleManager.md#extensionabilitytype) | 是 | 否 | Extension类型。 | **示例:** ```ts -import abilityManager from '@ohos.application.abilityManager'; -let upperLimit = 1; -abilityManager.getExtensionRunningInfos(upperLimit, (err,data) => { - console.log("getExtensionRunningInfos err: " + err + " data: " + JSON.stringify(data)); - for (let i = 0; i < data.length; i++) { - let extensionRunningInfo = data[i]; - console.log("extensionRunningInfo.extension: " + JSON.stringify(extensionRunningInfo.extension)); - console.log("extensionRunningInfo.pid: " + JSON.stringify(extensionRunningInfo.pid)); - console.log("extensionRunningInfo.uid: " + JSON.stringify(extensionRunningInfo.uid)); - console.log("extensionRunningInfo.processName: " + JSON.stringify(extensionRunningInfo.processName)); - console.log("extensionRunningInfo.startTime: " + JSON.stringify(extensionRunningInfo.startTime)); - console.log("extensionRunningInfo.clientPackage: " + JSON.stringify(extensionRunningInfo.clientPackage)); - console.log("extensionRunningInfo.type: " + JSON.stringify(extensionRunningInfo.type)); - } -}); -``` \ No newline at end of file +import abilityManager from '@ohos.app.ability.abilityManager' + +var upperLimit = 1; +function getExtensionInfos() { + abilityManager.getExtensionRunningInfos(upperLimit, (error, data) => { + if (error && error.code) { + console.log('getForegroundApplications failed, error.code: ' + JSON.stringify(error.code) + + ' error.message: ' + JSON.stringify(error.message)); + return; + } + + for (let i = 0; i < data.length; i++) { + let extensionRunningInfo = data[i]; + console.log("extensionRunningInfo.extension: " + JSON.stringify(extensionRunningInfo.extension)); + console.log("extensionRunningInfo.pid: " + JSON.stringify(extensionRunningInfo.pid)); + console.log("extensionRunningInfo.uid: " + JSON.stringify(extensionRunningInfo.uid)); + console.log("extensionRunningInfo.processName: " + JSON.stringify(extensionRunningInfo.processName)); + console.log("extensionRunningInfo.startTime: " + JSON.stringify(extensionRunningInfo.startTime)); + console.log("extensionRunningInfo.clientPackage: " + JSON.stringify(extensionRunningInfo.clientPackage)); + console.log("extensionRunningInfo.type: " + JSON.stringify(extensionRunningInfo.type)); + } + }); +} +``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-missionInfo.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-missionInfo.md index 3f3fd0c235df03dd07fc5ccb5705675f8e1056e7..1558a06859d60d4302a217238c8d029143009b6f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-missionInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-missionInfo.md @@ -1,6 +1,6 @@ # MissionInfo -表示Ability对应的任务信息,可以通过[getMissionInfo](js-apis-app-ability-missionManager.md#missionmanagergetmissioninfo)获取。 +表示任务的详细信息,可以通过[getMissionInfo](js-apis-app-ability-missionManager.md#missionmanagergetmissioninfo)获取。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Mission @@ -19,16 +19,27 @@ **示例:** ```ts -import missionManager from '@ohos.application.missionManager' +import missionManager from '@ohos.app.ability.missionManager' -missionManager.getMissionInfo("12345", 1, (error, data) => { - console.info('getMissionInfo missionId is:' + JSON.stringify(data.missionId)); - console.info('getMissionInfo runningState is:' + JSON.stringify(data.runningState)); - console.info('getMissionInfo lockedState is:' + JSON.stringify(data.lockedState)); - console.info('getMissionInfo timestamp is:' + JSON.stringify(data.timestamp)); - console.info('getMissionInfo want is:' + JSON.stringify(data.want)); - console.info('getMissionInfo label is:' + JSON.stringify(data.label)); - console.info('getMissionInfo iconPath is:' + JSON.stringify(data.iconPath)); - console.info('getMissionInfo continuable is:' + JSON.stringify(data.continuable)); -}); +try { + missionManager.getMissionInfo("", 1, (error, data) => { + if (error.code) { + // 处理业务逻辑错误 + console.log("getMissionInfo failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } + + console.log('getMissionInfo missionId is:' + JSON.stringify(data.missionId)); + console.log('getMissionInfo runningState is:' + JSON.stringify(data.runningState)); + console.log('getMissionInfo lockedState is:' + JSON.stringify(data.lockedState)); + console.log('getMissionInfo timestamp is:' + JSON.stringify(data.timestamp)); + console.log('getMissionInfo want is:' + JSON.stringify(data.want)); + console.log('getMissionInfo label is:' + JSON.stringify(data.label)); + console.log('getMissionInfo iconPath is:' + JSON.stringify(data.iconPath)); + console.log('getMissionInfo continuable is:' + JSON.stringify(data.continuable)); + }); +} catch (paramError) { + console.log("error: " + paramError.code + ", " + paramError.message); +} ``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-missionListener.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-missionListener.md index 6dbc6f9e7adf7335f834a3c75637869a9733ab0d..6cf445cbe310532951892f1785a3d5ee5cc7e426 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-missionListener.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-missionListener.md @@ -1,6 +1,6 @@ # MissionListener -定义系统任务状态监听,可以通过[registerMissionListener](js-apis-application-missionManager.md#missionmanagerregistermissionlistener)注册。 +定义系统任务状态监听,可以通过[on](js-apis-app-ability-missionManager.md#missionmanageron)注册。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Mission @@ -16,7 +16,7 @@ **示例:** ```ts -import missionManager from '@ohos.application.missionManager' +import missionManager from '@ohos.app.ability.missionManager' let listener = { onMissionCreated: function (mission) { @@ -38,5 +38,10 @@ let listener = { console.log("onMissionClosed mission: " + JSON.stringify(mission)); } }; -let listenerid = missionManager.registerMissionListener(listener); + +try { + let listenerId = missionManager.on("mission", listener); +} catch (paramError) { + console.log("error: " + paramError.code + ", " + paramError.message); +} ``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-missionSnapshot.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-missionSnapshot.md index 6cfb665902e90388e9043432406e64996bfe9daf..2310755f6bc2fd5ac0720e75060152ce6b050588 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-missionSnapshot.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-missionSnapshot.md @@ -11,7 +11,7 @@ | 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | -| ability | ElementName | 是 | 是 | 表示Ability任务元素名称。 | +| ability | ElementName | 是 | 是 | 表示该任务的组件信息。 | | snapshot | [image.PixelMap](js-apis-image.md) | 是 | 是 | 表示任务快照。 | ## 使用说明 @@ -20,19 +20,33 @@ **示例:** ```ts -import ElementName from '@ohos.bundle'; -import image from '@ohos.multimedia.image'; -import missionManager from '@ohos.application.missionManager'; - -missionManager.getMissionInfos("", 10, (error, missions) => { - console.log("getMissionInfos is called, error.code = " + error.code); - console.log("size = " + missions.length); - console.log("missions = " + JSON.stringify(missions)); - var id = missions[0].missionId; - - missionManager.getMissionSnapShot("", id, (error, snapshot) => { - console.log("getMissionSnapShot is called, error.code = " + error.code); - console.log("bundleName = " + snapshot.ability.bundleName); - }) -}) + import ElementName from '@ohos.bundle'; + import image from '@ohos.multimedia.image'; + import missionManager from '@ohos.app.ability.missionManager'; + + try { + missionManager.getMissionInfos("", 10, (error, missions) => { + if (error.code) { + console.log("getMissionInfos failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } + console.log("size = " + missions.length); + console.log("missions = " + JSON.stringify(missions)); + var id = missions[0].missionId; + + missionManager.getMissionSnapShot("", id, (err, snapshot) => { + if (err.code) { + console.log("getMissionInfos failed, err.code:" + JSON.stringify(err.code) + + "err.message:" + JSON.stringify(err.message)); + return; + } + + // 执行正常业务 + console.log("bundleName = " + snapshot.ability.bundleName); + }) + }) + } catch (paramError) { + console.log("error: " + paramError.code + ", " + paramError.message); + } ``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-permissionRequestResult.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-permissionRequestResult.md deleted file mode 100644 index 06f2abdd90e8cbc5a91bb9b8add5ca63a2049253..0000000000000000000000000000000000000000 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-permissionRequestResult.md +++ /dev/null @@ -1,40 +0,0 @@ -# PermissionRequestResult - -权限请求结果对象,在调用[requestPermissionsFromUser](js-apis-inner-application-uiAbilityContext.md#abilitycontextrequestpermissionsfromuser)申请权限时返回此对象表明此次权限申请的结果。 - -> **说明:** -> -> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -> 本模块接口仅可在Stage模型下使用。 - -## 属性 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| -------- | -------- | -------- | -------- | -------- | -| permissions | Array<string> | 是 | 否 | 用户传入的权限。| -| authResults | Array<number> | 是 | 否 | 相应请求权限的结果:0表示授权成功,非0表示失败。 | - -## 使用说明 - -通过AbilityContext实例来获取。 - -**示例:** -```ts -import UIAbility from '@ohos.app.ability.UIAbility' -export default class MainAbility extends UIAbility { - onWindowStageCreate(windowStage) { - var permissions = ['com.example.permission'] - var permissionRequestResult; - this.context.requestPermissionsFromUser(permissions, (err, result) => { - if (err) { - console.log('requestPermissionsFromUserError: ' + JSON.stringify(err)); - } else { - permissionRequestResult = result; - console.log('permissionRequestResult: ' + JSON.stringify(permissionRequestResult)); - } - }); - } -} -``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-processData.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-processData.md index 67c5ea0ea220addb82b5756641f331731a78bacd..de30f7ae379fd758d19c11e02d38c1587afd5b6a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-processData.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-processData.md @@ -9,7 +9,7 @@ | 名称 | 类型 | 可读 | 可写 | 说明 | | ----------------------- | ---------| ---- | ---- | ------------------------- | | pid8+ | number | 是 | 否 | 进程ID。 | -| bundleName8+ | string | 是 | 否 | 应用包名。 | +| bundleName8+ | string | 是 | 否 | Bundle名称。 | | uid8+ | number | 是 | 否 | 用户ID。 | | isContinuousTask9+ | boolean | 是 | 否 | 判断过程是否为连续任务。 | | isKeepAlive9+ | boolean | 是 | 否 | 判断该过程是否保持活跃。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-processRunningInfo.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-processRunningInfo.md index fc37e715b753b0dbf862f67057ff053795cc7098..92eaef536c9f8e696ff097a5884539a4e344ccf3 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-processRunningInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-processRunningInfo.md @@ -15,7 +15,7 @@ | pid | number | 是 | 否 | 进程ID。 | | uid | number | 是 | 否 | 用户ID。 | | processName | string | 是 | 否 | 进程名称。 | -| bundleNames | Array<string> | 是 | 否 | 进程中所有运行的包名称。 | +| bundleNames | Array<string> | 是 | 否 | 进程中所有运行的Bundle名称。 | ## 使用说明 diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-processRunningInformation.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-processRunningInformation.md index 6369bace76dc55fb55bdb32546eadb70a0a58f91..15f69daae2ec2fad6279a4312952f1181fa1e66d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-processRunningInformation.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-processRunningInformation.md @@ -27,4 +27,4 @@ appManager.getProcessRunningInformation((error, data) => { | pid | number | 是 | 否 | 进程ID。 | | uid | number | 是 | 否 | 用户ID。 | | processName | string | 是 | 否 | 进程名称。 | -| bundleNames | Array<string> | 是 | 否 | 进程中所有运行的包名称。 | +| bundleNames | Array<string> | 是 | 否 | 进程中所有运行的Bundle名称。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-serviceExtensionContext.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-serviceExtensionContext.md index 955b353266f7d982c3028269c136eafd74560b3c..babcff259e98e6fd531d9efc16c4ef2697683dfd 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-serviceExtensionContext.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-serviceExtensionContext.md @@ -38,7 +38,7 @@ startAbility(want: Want, callback: AsyncCallback<void>): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| want | [Want](js-apis-application-want.md) | 是 | Want类型参数,传入需要启动的ability的信息,如ability名称,包名等。 | +| want | [Want](js-apis-application-want.md) | 是 | Want类型参数,传入需要启动的ability的信息,如Ability名称,Bundle名称等。 | | callback | AsyncCallback<void> | 否 | 回调函数,返回接口调用是否成功的结果。 | **错误码:** @@ -105,7 +105,7 @@ startAbility(want: Want, options?: StartOptions): Promise\; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| want | [Want](js-apis-application-want.md) | 是 | Want类型参数,传入需要启动的ability的信息,如ability名称,包名等。 | +| want | [Want](js-apis-application-want.md) | 是 | Want类型参数,传入需要启动的ability的信息,如Ability名称,Bundle名称等。 | | options | [StartOptions](js-apis-app-ability-startOptions.md) | 是 | 启动Ability所携带的参数。 | **返回值:** @@ -1079,7 +1079,7 @@ connectServiceExtensionAbility(want: Want, options: ConnectOptions): number; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| want | [Want](js-apis-application-want.md) | 是 | Want类型参数,传入需要启动的ability的信息,如ability名称,包名等。 | +| want | [Want](js-apis-application-want.md) | 是 | Want类型参数,传入需要启动的ability的信息,如Ability名称,Bundle名称等。 | | options | [ConnectOptions](js-apis-inner-ability-connectOptions.md) | 是 | ConnectOptions类型的回调函数,返回服务连接成功、断开或连接失败后的信息。 | **返回值:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-uiAbilityContext.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-uiAbilityContext.md index 204bc2954e301bc64ea470869dfc769f24aa834b..3c67a67736b53081c8a41efb5e9615ee858be98e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-uiAbilityContext.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-uiAbilityContext.md @@ -1,8 +1,6 @@ # UIAbilityContext -UIAbilityContext是UIAbility的上下文环境,继承自Context。 - -UIAbilityContext模块提供允许访问特定UIAbility的资源的能力,包括对UIAbility的启动、停止的设置、获取caller通信接口、拉起弹窗请求用户授权等。 +UIAbilityContext是[UIAbility](js-apis-app-ability-uiAbility.md)的上下文环境,继承自[Context](js-apis-inner-application-context.md),提供UIAbility的相关配置信息以及操作UIAbility和ServiceExtensionAbility的方法,如启动UIAbility,停止当前UIAbilityContext所属的UIAbility,启动、停止、连接、断开连接ServiceExtensionAbility等。 > **说明:** > @@ -15,9 +13,12 @@ UIAbilityContext模块提供允许访问特定UIAbility的资源的能力,包 | 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | -| abilityInfo | [AbilityInfo](js-apis-bundleManager-abilityInfo.md) | 是 | 否 | Abilityinfo相关信息 | -| currentHapModuleInfo | [HapModuleInfo](js-apis-bundleManager-hapModuleInfo.md) | 是 | 否 | 当前hap包的信息 | -| config | [Configuration](js-apis-app-ability-configuration.md) | 是 | 否 | 表示配置信息。 | +| abilityInfo | [AbilityInfo](js-apis-bundleManager-abilityInfo.md) | 是 | 否 | UIAbility的相关信息。 | +| currentHapModuleInfo | [HapModuleInfo](js-apis-bundleManager-hapModuleInfo.md) | 是 | 否 | 当前HAP的信息。 | +| config | [Configuration](js-apis-app-ability-configuration.md) | 是 | 否 | 与UIAbility相关的配置信息,如语言、颜色模式等。 | + +> **关于示例代码的说明:** +> - 本文档中的示例,通过this.context获取UIAbilityContext,this代表的是继承自UIAbility的UIAbility实例,若需要在页面中使用UIAbilityContext的能力,请参照[获取UIAbility的上下文信息](../../application-models/uiability-usage.md#获取uiability的上下文信息) ## UIAbilityContext.startAbility @@ -32,7 +33,7 @@ startAbility(want: Want, callback: AsyncCallback<void>): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| callback | AsyncCallback<void> | 是 | callback形式返回启动结果 | +| callback | AsyncCallback<void> | 是 | callback形式返回启动结果。 | **错误码:** @@ -84,7 +85,6 @@ startAbility(want: Want, callback: AsyncCallback<void>): void; } ``` - ## UIAbilityContext.startAbility startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void>): void; @@ -150,7 +150,7 @@ startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void& }); } catch (paramError) { // 处理入参错误异常 - console.log('error.code: ' + JSON.stringify(paramError.code) + + console.log('startAbility failed, error.code: ' + JSON.stringify(paramError.code) + ' error.message: ' + JSON.stringify(paramError.message)); } ``` @@ -213,7 +213,7 @@ startAbility(want: Want, options?: StartOptions): Promise<void>; try { this.context.startAbility(want, options) - .then((data) => { + .then(() => { // 执行正常业务 console.log('startAbility succeed'); }) @@ -224,12 +224,11 @@ startAbility(want: Want, options?: StartOptions): Promise<void>; }); } catch (paramError) { // 处理入参错误异常 - console.log('error.code: ' + JSON.stringify(paramError.code) + + console.log('startAbility failed, error.code: ' + JSON.stringify(paramError.code) + ' error.message: ' + JSON.stringify(paramError.message)); } ``` - ## UIAbilityContext.startAbilityForResult startAbilityForResult(want: Want, callback: AsyncCallback<AbilityResult>): void; @@ -292,7 +291,7 @@ startAbilityForResult(want: Want, callback: AsyncCallback<AbilityResult>): }); } catch (paramError) { // 处理入参错误异常 - console.log('error.code: ' + JSON.stringify(paramError.code) + + console.log('startAbilityForResult failed, error.code: ' + JSON.stringify(paramError.code) + ' error.message: ' + JSON.stringify(paramError.message)); } ``` @@ -448,7 +447,7 @@ startAbilityForResult(want: Want, options?: StartOptions): Promise<AbilityRes startAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncCallback\): void; -启动一个Ability并在该Ability帐号销毁时返回执行结果(callback形式)。 +启动一个Ability并在该Ability销毁时返回执行结果(callback形式)。 **需要权限**: ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS,当accountId为当前用户时,不需要校验该权限。 @@ -461,8 +460,8 @@ startAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncC | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | -| callback | AsyncCallback\ | 是 | 启动Ability的回调函数,返回Ability结果。 | +| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getCreatedOsAccountsCount)。 | +| callback | AsyncCallback<[AbilityResult](js-apis-inner-ability-abilityResult.md)> | 是 | 启动Ability的回调函数,返回Ability结果。 | **错误码:** @@ -509,11 +508,11 @@ startAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncC } // 执行正常业务 console.log("startAbilityForResultWithAccount succeed, result.resultCode = " + - result.resultCode) + result.resultCode + ' result.want = ' + JSON.stringify(result.want)) }); } catch (paramError) { // 处理入参错误异常 - console.log('error.code: ' + JSON.stringify(paramError.code) + + console.log('startAbilityForResultWithAccount failed, error.code: ' + JSON.stringify(paramError.code) + ' error.message: ' + JSON.stringify(paramError.message)); } ``` @@ -523,7 +522,7 @@ startAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncC startAbilityForResultWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback\): void; -启动一个Ability并在该Ability帐号销毁时返回执行结果(callback形式)。 +启动一个Ability并在该Ability销毁时返回执行结果(callback形式)。 **需要权限**: ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS,当accountId为当前用户时,不需要校验该权限。 @@ -536,9 +535,9 @@ startAbilityForResultWithAccount(want: Want, accountId: number, options: StartOp | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | +| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getCreatedOsAccountsCount)。 | | options | [StartOptions](js-apis-app-ability-startOptions.md) | 是 | 启动Ability所携带的参数。 | -| callback | AsyncCallback\ | 是 | 启动Ability的回调函数。 | +| callback | AsyncCallback\ | 是 | 启动Ability后,Ability被销毁时的回调函数。 | **错误码:** @@ -579,7 +578,7 @@ startAbilityForResultWithAccount(want: Want, accountId: number, options: StartOp }; try { - this.context.startAbilityForResultWithAccount(want, accountId, options, (error, result) => { + this.context.startAbilityForResultWithAccount(want, accountId, options, (error) => { if (error.code) { // 处理业务逻辑错误 console.log('startAbilityForResultWithAccount failed, error.code: ' + JSON.stringify(error.code) + @@ -588,11 +587,11 @@ startAbilityForResultWithAccount(want: Want, accountId: number, options: StartOp } // 执行正常业务 console.log("startAbilityForResultWithAccount succeed, result.resultCode = " + - result.resultCode) + result.resultCode + ' result.want = ' + JSON.stringify(result.want)) }); } catch (paramError) { // 处理入参错误异常 - console.log('error.code: ' + JSON.stringify(paramError.code) + + console.log('startAbilityForResultWithAccount failed, error.code: ' + JSON.stringify(paramError.code) + ' error.message: ' + JSON.stringify(paramError.message)); } ``` @@ -602,7 +601,7 @@ startAbilityForResultWithAccount(want: Want, accountId: number, options: StartOp startAbilityForResultWithAccount(want: Want, accountId: number, options?: StartOptions): Promise\; -启动一个Ability并在该Ability帐号销毁时返回执行结果(promise形式)。 +启动一个Ability并在该Ability销毁时返回执行结果(promise形式)。 **需要权限**: ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS,当accountId为当前用户时,不需要校验该权限。 @@ -615,14 +614,14 @@ startAbilityForResultWithAccount(want: Want, accountId: number, options?: StartO | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | +| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getCreatedOsAccountsCount)。 | | options | [StartOptions](js-apis-app-ability-startOptions.md) | 否 | 启动Ability所携带的参数。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| Promise<AbilityResult> | 返回一个Promise,包含Ability结果。 | +| Promise<[AbilityResult](js-apis-inner-ability-abilityResult.md)> | Ability被销毁时的回调函数,包含AbilityResult参数。 | **错误码:** @@ -694,8 +693,8 @@ startServiceExtensionAbility(want: Want, callback: AsyncCallback\): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| callback | AsyncCallback\ | 是 | 启动Ability的回调函数。 | +| want | [Want](js-apis-application-want.md) | 是 | 启动ServiceExtensionAbility的want信息。 | +| callback | AsyncCallback\ | 是 | 启动ServiceExtensionAbility的回调函数。 | **错误码:** @@ -736,7 +735,7 @@ startServiceExtensionAbility(want: Want, callback: AsyncCallback\): void; }); } catch (paramError) { // 处理入参错误异常 - console.log('error.code: ' + JSON.stringify(paramError.code) + + console.log('startServiceExtensionAbility failed, error.code: ' + JSON.stringify(paramError.code) + ' error.message: ' + JSON.stringify(paramError.message)); } ``` @@ -755,7 +754,7 @@ startServiceExtensionAbility(want: Want): Promise\; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | +| want | [Want](js-apis-application-want.md) | 是 | 启动ServiceExtensionAbility的want信息。 | **错误码:** @@ -785,7 +784,7 @@ startServiceExtensionAbility(want: Want): Promise\; try { this.context.startServiceExtensionAbility(want) - .then((data) => { + .then(() => { // 执行正常业务 console.log('startServiceExtensionAbility succeed'); }) @@ -796,7 +795,7 @@ startServiceExtensionAbility(want: Want): Promise\; }); } catch (paramError) { // 处理入参错误异常 - console.log('error.code: ' + JSON.stringify(paramError.code) + + console.log('startServiceExtensionAbility failed, error.code: ' + JSON.stringify(paramError.code) + ' error.message: ' + JSON.stringify(paramError.message)); } ``` @@ -817,9 +816,9 @@ startServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | -| callback | AsyncCallback\ | 是 | 启动Ability的回调函数。 | +| want | [Want](js-apis-application-want.md) | 是 | 启动ServiceExtensionAbility的want信息。 | +| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getCreatedOsAccountsCount)。 | +| callback | AsyncCallback\ | 是 | 启动ServiceExtensionAbility的回调函数。 | **错误码:** @@ -858,7 +857,7 @@ startServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: }); } catch (paramError) { // 处理入参错误异常 - console.log('error.code: ' + JSON.stringify(paramError.code) + + console.log('startServiceExtensionAbilityWithAccount failed, error.code: ' + JSON.stringify(paramError.code) + ' error.message: ' + JSON.stringify(paramError.message)); } ``` @@ -880,7 +879,7 @@ startServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\ | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | +| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getCreatedOsAccountsCount)。 | **错误码:** @@ -923,7 +922,7 @@ startServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\ }); } catch (paramError) { // 处理入参错误异常 - console.log('error.code: ' + JSON.stringify(paramError.code) + + console.log('startServiceExtensionAbilityWithAccount failed, error.code: ' + JSON.stringify(paramError.code) + ' error.message: ' + JSON.stringify(paramError.message)); } ``` @@ -941,8 +940,8 @@ stopServiceExtensionAbility(want: Want, callback: AsyncCallback\): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| callback | AsyncCallback\ | 是 | 启动Ability的回调函数。 | +| want | [Want](js-apis-application-want.md) | 是 | 停止ServiceExtensionAbility的want信息。 | +| callback | AsyncCallback\ | 是 | 停止ServiceExtensionAbility的回调函数。 | **错误码:** @@ -980,7 +979,7 @@ stopServiceExtensionAbility(want: Want, callback: AsyncCallback\): void; }); } catch (paramError) { // 处理入参错误异常 - console.log('error.code: ' + JSON.stringify(paramError.code) + + console.log('stopServiceExtensionAbility failed, error.code: ' + JSON.stringify(paramError.code) + ' error.message: ' + JSON.stringify(paramError.message)); } ``` @@ -999,7 +998,7 @@ stopServiceExtensionAbility(want: Want): Promise\; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | +| want | [Want](js-apis-application-want.md) | 是 | 停止ServiceExtensionAbility的want信息。 | **错误码:** @@ -1037,7 +1036,7 @@ stopServiceExtensionAbility(want: Want): Promise\; }); } catch (paramError) { // 处理入参错误异常 - console.log('error.code: ' + JSON.stringify(paramError.code) + + console.log('stopServiceExtensionAbility failed, error.code: ' + JSON.stringify(paramError.code) + ' error.message: ' + JSON.stringify(paramError.message)); } ``` @@ -1046,7 +1045,7 @@ stopServiceExtensionAbility(want: Want): Promise\; stopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\): void; -使用帐户停止同一应用程序内的服务(callback形式)。 +停止同一应用程序内指定账户的服务(callback形式)。 **需要权限**: ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS,当accountId为当前用户时,不需要校验该权限。 @@ -1058,9 +1057,9 @@ stopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | -| callback | AsyncCallback\ | 是 | 启动Ability的回调函数。 | +| want | [Want](js-apis-application-want.md) | 是 | 停止ServiceExtensionAbility的want信息。 | +| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getCreatedOsAccountsCount)。 | +| callback | AsyncCallback\ | 是 | 停止ServiceExtensionAbility的回调函数。 | **错误码:** @@ -1100,7 +1099,7 @@ stopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: }); } catch (paramError) { // 处理入参错误异常 - console.log('error.code: ' + JSON.stringify(paramError.code) + + console.log('stopServiceExtensionAbilityWithAccount failed, error.code: ' + JSON.stringify(paramError.code) + ' error.message: ' + JSON.stringify(paramError.message)); } ``` @@ -1109,7 +1108,7 @@ stopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: stopServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\; -使用帐户停止同一应用程序内的服务(Promise形式)。 +停止同一应用程序内指定账户的服务(Promise形式)。 **需要权限**: ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS,当accountId为当前用户时,不需要校验该权限。 @@ -1121,8 +1120,8 @@ stopServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\< | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | +| want | [Want](js-apis-application-want.md) | 是 | 停止ServiceExtensionAbility的want信息。 | +| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getCreatedOsAccountsCount)。 | **错误码:** @@ -1162,7 +1161,7 @@ stopServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\< }); } catch (paramError) { // 处理入参错误异常 - console.log('error.code: ' + JSON.stringify(paramError.code) + + console.log('stopServiceExtensionAbilityWithAccount failed, error.code: ' + JSON.stringify(paramError.code) + ' error.message: ' + JSON.stringify(paramError.message)); } ``` @@ -1179,7 +1178,7 @@ terminateSelf(callback: AsyncCallback<void>): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| callback | AsyncCallback<void> | 是 | 回调函数,返回接口调用是否成功的结果。 | +| callback | AsyncCallback<void> | 是 | 停止Ability自身的回调函数。 | **错误码:** @@ -1195,16 +1194,22 @@ terminateSelf(callback: AsyncCallback<void>): void; **示例:** ```ts - this.context.terminateSelf((error) => { - if (error.code) { - // 处理业务逻辑错误 - console.log('terminateSelf failed, error.code: ' + JSON.stringify(error.code) + - ' error.message: ' + JSON.stringify(error.message)); - return; - } - // 执行正常业务 - console.log('terminateSelf succeed'); - }); + try { + this.context.terminateSelf((error) => { + if (error.code) { + // 处理业务逻辑错误 + console.log('terminateSelf failed, error.code: ' + JSON.stringify(error.code) + + ' error.message: ' + JSON.stringify(error.message)); + return; + } + // 执行正常业务 + console.log('terminateSelf succeed'); + }); + } catch (error) { + // 捕获同步的参数错误 + console.log('terminateSelf failed, error.code: ' + JSON.stringify(error.code) + + ' error.message: ' + JSON.stringify(error.message)); + } ``` @@ -1220,7 +1225,7 @@ terminateSelf(): Promise<void>; | 类型 | 说明 | | -------- | -------- | -| Promise<void> | 返回一个Promise,包含接口的结果。 | +| Promise<void> | 停止Ability自身的回调函数。 | **错误码:** @@ -1236,14 +1241,22 @@ terminateSelf(): Promise<void>; **示例:** ```ts - this.context.terminateSelf().then((data) => { - // 执行正常业务 - console.log('terminateSelf succeed'); - }).catch((error) => { - // 处理业务逻辑错误 + try { + this.context.terminateSelf() + .then(() => { + // 执行正常业务 + console.log('terminateSelf succeed'); + }) + .catch((error) => { + // 处理业务逻辑错误 + console.log('terminateSelf failed, error.code: ' + JSON.stringify(error.code) + + ' error.message: ' + JSON.stringify(error.message)); + }); + } catch (error) { + // 捕获同步的参数错误 console.log('terminateSelf failed, error.code: ' + JSON.stringify(error.code) + ' error.message: ' + JSON.stringify(error.message)); - }); + } ``` @@ -1300,7 +1313,7 @@ terminateSelfWithResult(parameter: AbilityResult, callback: AsyncCallback<voi }); } catch (paramError) { // 处理入参错误异常 - console.log('error.code: ' + JSON.stringify(paramError.code) + + console.log('terminateSelfWithResult failed, error.code: ' + JSON.stringify(paramError.code) + ' error.message: ' + JSON.stringify(paramError.message)); } ``` @@ -1365,7 +1378,7 @@ terminateSelfWithResult(parameter: AbilityResult): Promise<void>; }); } catch (paramError) { // 处理入参错误异常 - console.log('error.code: ' + JSON.stringify(paramError.code) + + console.log('terminateSelfWithResult failed, error.code: ' + JSON.stringify(paramError.code) + ' error.message: ' + JSON.stringify(paramError.message)); } ``` @@ -1374,7 +1387,7 @@ terminateSelfWithResult(parameter: AbilityResult): Promise<void>; connectServiceExtensionAbility(want: Want, options: ConnectOptions): number; -使用AbilityInfo.AbilityType.SERVICE模板将当前Ability连接到一个Ability。 +将当前Ability连接到一个使用AbilityInfo.AbilityType.SERVICE模板的Ability。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -1384,8 +1397,8 @@ connectServiceExtensionAbility(want: Want, options: ConnectOptions): number; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| options | [ConnectOptions](js-apis-inner-ability-connectOptions.md) | 否 | 远端对象实例。 | +| want | [Want](js-apis-application-want.md) | 是 | 连接ServiceExtensionAbility的want信息。 | +| options | [ConnectOptions](js-apis-inner-ability-connectOptions.md) | 是 | 与ServiceExtensionAbility建立连接后回调函数的实例。 | **返回值:** @@ -1434,7 +1447,7 @@ connectServiceExtensionAbility(want: Want, options: ConnectOptions): number; connectServiceExtensionAbilityWithAccount(want: Want, accountId: number, options: ConnectOptions): number; -使用AbilityInfo.AbilityType.SERVICE模板和account将当前Ability连接到一个Ability。 +将当前Ability连接到一个使用AbilityInfo.AbilityType.SERVICE模板的指定account的Ability。 **需要权限:** ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS,当accountId为当前用户时,不需要校验该权限。 @@ -1447,8 +1460,8 @@ connectServiceExtensionAbilityWithAccount(want: Want, accountId: number, options | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | -| options | [ConnectOptions](js-apis-inner-ability-connectOptions.md) | 否 | 远端对象实例。 | +| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getCreatedOsAccountsCount)。 | +| options | [ConnectOptions](js-apis-inner-ability-connectOptions.md) | 是 | 与ServiceExtensionAbility建立连接后回调函数的实例。。 | **返回值:** @@ -1498,7 +1511,7 @@ connectServiceExtensionAbilityWithAccount(want: Want, accountId: number, options disconnectServiceExtensionAbility(connection: number): Promise\; -断开连接(promise形式)。 +断开与ServiceExtensionAbility的连接(promise形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -1508,7 +1521,7 @@ disconnectServiceExtensionAbility(connection: number): Promise\; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| connection | number | 是 | 连接的Ability的数字代码。 | +| connection | number | 是 | 连接的ServiceExtensionAbility的数字代码,即connectServiceExtensionAbility返回的connectionId。 | **返回值:** @@ -1555,7 +1568,7 @@ disconnectServiceExtensionAbility(connection: number): Promise\; disconnectServiceExtensionAbility(connection: number, callback:AsyncCallback\): void; -断开连接(callback形式)。 +断开与ServiceExtensionAbility的连接(callback形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -1565,8 +1578,8 @@ disconnectServiceExtensionAbility(connection: number, callback:AsyncCallback\ | 是 | 表示指定的回调方法。 | +| connection | number | 是 | 连接的ServiceExtensionAbility的数字代码,即connectServiceExtensionAbility返回的connectionId。 | +| callback | AsyncCallback\ | 是 | callback形式返回断开连接的结果。 | **错误码:** @@ -1694,7 +1707,7 @@ startAbilityByCall(want: Want): Promise<Caller>; startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\): void; -根据account启动Ability(callback形式)。 +根据want和accountId启动Ability(callback形式)。 **需要权限**: ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS,当accountId为当前用户时,不需要校验该权限。 @@ -1707,7 +1720,7 @@ startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\< | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | +| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getCreatedOsAccountsCount)。 | | callback | AsyncCallback\ | 是 | 启动Ability的回调函数。 | **错误码:** @@ -1768,7 +1781,7 @@ startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\< startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback\): void; -根据account启动Ability(callback形式)。 +根据want、accountId及startOptions启动Ability(callback形式)。 **需要权限**: ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS,当accountId为当前用户时,不需要校验该权限。 @@ -1781,8 +1794,8 @@ startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, ca | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。| -| options | [StartOptions](js-apis-app-ability-startOptions.md) | 否 | 启动Ability所携带的参数。 | +| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getCreatedOsAccountsCount)。| +| options | [StartOptions](js-apis-app-ability-startOptions.md) | 是 | 启动Ability所携带的参数。 | | callback | AsyncCallback\ | 是 | 启动Ability的回调函数。 | **错误码:** @@ -1836,7 +1849,7 @@ startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, ca }); } catch (paramError) { // 处理入参错误异常 - console.log('error.code: ' + JSON.stringify(paramError.code) + + console.log('startAbilityWithAccount failed, error.code: ' + JSON.stringify(paramError.code) + ' error.message: ' + JSON.stringify(paramError.message)); } ``` @@ -1846,7 +1859,7 @@ startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, ca startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): Promise\; -根据account启动Ability(Promise形式)。 +根据want、accountId和startOptions启动Ability(Promise形式)。 **需要权限**: ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS,当accountId为当前用户时,不需要校验该权限。 @@ -1859,7 +1872,7 @@ startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | +| accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getCreatedOsAccountsCount)。 | | options | [StartOptions](js-apis-app-ability-startOptions.md) | 否 | 启动Ability所携带的参数。 | **错误码:** @@ -1913,70 +1926,11 @@ startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): }); } catch (paramError) { // 处理入参错误异常 - console.log('error.code: ' + JSON.stringify(paramError.code) + + console.log('startAbilityWithAccount failed, error.code: ' + JSON.stringify(paramError.code) + ' error.message: ' + JSON.stringify(paramError.message)); } ``` -## UIAbilityContext.requestPermissionsFromUser - -requestPermissionsFromUser(permissions: Array<string>, requestCallback: AsyncCallback<PermissionRequestResult>) : void; - -拉起弹窗请求用户授权(callback形式)。 - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| permissions | Array<string> | 是 | 权限列表。 | -| callback | AsyncCallback<[PermissionRequestResult](js-apis-inner-application-permissionRequestResult.md)> | 是 | 回调函数,返回接口调用是否成功的结果。 | - -**示例:** - - ```ts - var permissions=['com.example.permission'] - this.context.requestPermissionsFromUser(permissions,(result) => { - console.log('requestPermissionsFromUserresult:' + JSON.stringify(result)); - }); - - ``` - - -## UIAbilityContext.requestPermissionsFromUser - -requestPermissionsFromUser(permissions: Array<string>) : Promise<PermissionRequestResult>; - -拉起弹窗请求用户授权(promise形式)。 - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| permissions | Array<string> | 是 | 权限列表。 | - -**返回值:** - -| 类型 | 说明 | -| -------- | -------- | -| Promise<[PermissionRequestResult](js-apis-inner-application-permissionRequestResult.md)> | 返回一个Promise,包含接口的结果。 | - -**示例:** - - ```ts - var permissions=['com.example.permission'] - this.context.requestPermissionsFromUser(permissions).then((data) => { - console.log('success:' + JSON.stringify(data)); - }).catch((error) => { - console.log('failed:' + JSON.stringify(error)); - }); - - ``` - - ## UIAbilityContext.setMissionLabel setMissionLabel(label: string, callback:AsyncCallback<void>): void; @@ -1995,7 +1949,7 @@ setMissionLabel(label: string, callback:AsyncCallback<void>): void; **示例:** ```ts - this.context.setMissionLabel("test",(result) => { + this.context.setMissionLabel("test", (result) => { console.log('requestPermissionsFromUserresult:' + JSON.stringify(result)); }); ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-wantAgent-triggerInfo.md b/zh-cn/application-dev/reference/apis/js-apis-inner-wantAgent-triggerInfo.md index 4f8c88b6cef94a4cc0fbd79c90c7ccf098ae9ba7..8c0cbdd5ebb961644623f580f009407607935488 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-wantAgent-triggerInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-wantAgent-triggerInfo.md @@ -6,7 +6,7 @@ | 名称 | 类型 | 必填 | 说明 | | ---------- | --- |-------------------- | ----------- | -| code | number | 是 | result code。 | +| code | number | 是 | 提供给目标wantAgent的自定义结果码。 | | want | Want | 否 | Want。 | | permission | string | 否 | 权限定义。 | | extraInfo | {[key: string]: any} | 否 | 额外数据。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-wantAgent-wantAgentInfo.md b/zh-cn/application-dev/reference/apis/js-apis-inner-wantAgent-wantAgentInfo.md index 7228bf96d4552040fc72de80826c082076802b14..3f0d49e87c3a5b80e9ccbfa002caab0de4ce0e9e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-wantAgent-wantAgentInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-wantAgent-wantAgentInfo.md @@ -9,5 +9,5 @@ | wants | Array\ | 是 | 将被执行的动作列表。 | | operationType | wantAgent.OperationType | 是 | 动作类型。 | | requestCode | number | 是 | 使用者定义的一个私有值。 | -| wantAgentFlags | Array<[wantAgent.WantAgentFlags](js-apis-wantAgent.md#WantAgentFlags)> | 否 | 动作执行属性。 | +| wantAgentFlags | Array<[wantAgent.WantAgentFlags](js-apis-app-ability-wantAgent.md#wantagentflags)> | 否 | 动作执行属性。 | | extraInfo | {[key: string]: any} | 否 | 额外数据。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-installer.md b/zh-cn/application-dev/reference/apis/js-apis-installer.md index a4252ab66c14a1d2a81aa32cde455d57c84dd0ab..6ff03076c5db03c4e37fdfce443f7d4a9fa5740c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-installer.md +++ b/zh-cn/application-dev/reference/apis/js-apis-installer.md @@ -1,6 +1,6 @@ # @ohos.bundle.installer (installer模块) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 9 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 在设备上安装、升级和卸载应用 @@ -99,7 +99,7 @@ install(hapFilePaths: Array<string>, installParam: InstallParam, callback: | 参数名 | 类型 | 必填 | 说明 | | --------------- | ---------------------------------------------------- | ---- | ------------------------------------------------------------ | -| hapFilePaths | Array<string> | 是 | 存储应用程序包的路径。路径应该是当前应用程序中存放HAP包的数据目录。当传入的路径是一个目录时, 该目录下只能放同一个应用的HAP包,且这些HAP包的签名需要保持一致。 | +| hapFilePaths | Array<string> | 是 | 存储应用程序包的路径。路径应该是当前应用程序中存放HAP的数据目录。当传入的路径是一个目录时, 该目录下只能放同一个应用的HAP,且这些HAP的签名需要保持一致。 | | installParam | [InstallParam](#installparam) | 是 | 指定安装所需的其他参数。 | | callback | AsyncCallback<void> | 是 | 回调函数,安装应用成功,err为undefined,否则为错误对象。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-launcherBundleManager.md b/zh-cn/application-dev/reference/apis/js-apis-launcherBundleManager.md index d7b4f4a09f314cbfdd366606f3226c9e6f4870c7..be132d3f887219bb55d89c63cbd09be6f7b42d59 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-launcherBundleManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-launcherBundleManager.md @@ -29,7 +29,7 @@ getLauncherAbilityInfo(bundleName: string, userId: number, callback: AsyncCallba | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------ | ---- | -------------- | -| bundleName | string | 是 | 应用程序包名称。 | +| bundleName | string | 是 | 应用Bundle名称。 | | userId | number | 是 | 被查询的用户id。| **返回值:** @@ -55,12 +55,13 @@ import launcherBundleManager from '@ohos.bundle.launcherBundleManager'; try { launcherBundleManager.getLauncherAbilityInfo('com.example.demo', 100, (errData, data) => { if (errData !== null) { - console.log(`errData is errCode:${errData.code} message:${errData.message}`); + console.error(`errData is errCode:${errData.code} message:${errData.message}`); + } else { + console.log("data is " + JSON.stringify(data)); } - console.log("data is " + JSON.stringify(data)); }) } catch (errData) { - console.log(`errData is errCode:${errData.code} message:${errData.message}`); + console.error(`errData is errCode:${errData.code} message:${errData.message}`); } ``` @@ -80,7 +81,7 @@ getLauncherAbilityInfo(bundleName: string, userId: number) : Promise { console.log("data is " + JSON.stringify(data)); }).catch (errData => { - console.log(`errData is errCode:${errData.code} message:${errData.message}`); + console.error(`errData is errCode:${errData.code} message:${errData.message}`); }) } catch (errData) { - console.log(`errData is errCode:${errData.code} message:${errData.message}`); + console.error(`errData is errCode:${errData.code} message:${errData.message}`); } ``` @@ -154,12 +155,13 @@ import launcherBundleManager from '@ohos.bundle.launcherBundleManager'; try { launcherBundleManager.getAllLauncherAbilityInfo(100, (errData, data) => { if (errData !== null) { - console.log(`errData is errCode:${errData.code} message:${errData.message}`); + console.error(`errData is errCode:${errData.code} message:${errData.message}`); + } else { + console.log("data is " + JSON.stringify(data)); } - console.log("data is " + JSON.stringify(data)); }); } catch (errData) { - console.log(`errData is errCode:${errData.code} message:${errData.message}`); + console.error(`errData is errCode:${errData.code} message:${errData.message}`); } ``` ## launcherBundlemanager.getAllLauncherAbilityInfo9+ @@ -203,10 +205,10 @@ try { launcherBundleManager.getAllLauncherAbilityInfo(100).then(data => { console.log("data is " + JSON.stringify(data)); }).catch (errData => { - console.log(`errData is errCode:${errData.code} message:${errData.message}`); + console.error(`errData is errCode:${errData.code} message:${errData.message}`); }); } catch (errData) { - console.log(`errData is errCode:${errData.code} message:${errData.message}`); + console.error(`errData is errCode:${errData.code} message:${errData.message}`); } ``` @@ -224,7 +226,7 @@ getShortcutInfo(bundleName :string, callback: AsyncCallback { if (errData !== null) { - console.log(`errData is errCode:${errData.code} message:${errData.message}`); + console.error(`errData is errCode:${errData.code} message:${errData.message}`); + } else { + console.log("data is " + JSON.stringify(data)); } - console.log("data is " + JSON.stringify(data)); }); } catch (errData) { - console.log(`errData is errCode:${errData.code} message:${errData.message}`); + console.error(`errData is errCode:${errData.code} message:${errData.message}`); } ``` @@ -271,7 +274,7 @@ getShortcutInfo(bundleName : string) : Promise { console.log("data is " + JSON.stringify(data)); }).catch (errData => { - console.log(`errData is errCode:${errData.code} message:${errData.message}`); + console.error(`errData is errCode:${errData.code} message:${errData.message}`); }); } catch (errData) { - console.log(`errData is errCode:${errData.code} message:${errData.message}`); + console.error(`errData is errCode:${errData.code} message:${errData.message}`); } ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-lightweightmap.md b/zh-cn/application-dev/reference/apis/js-apis-lightweightmap.md index f61d8cc4b3e3a44b840177f5bc7fb97da612f6fd..75a644181defcd3f7a1e8ddb313390f0881c71fb 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-lightweightmap.md +++ b/zh-cn/application-dev/reference/apis/js-apis-lightweightmap.md @@ -1,6 +1,6 @@ # @ohos.util.LightWeightMap (非线性容器LightWeightMap) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 LightWeightMap可用于存储具有关联关系的key-value键值对集合,存储元素中key值唯一,每个key对应一个value。 @@ -43,7 +43,7 @@ LightWeightMap的构造函数。 **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -72,7 +72,7 @@ isEmpty(): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -108,7 +108,7 @@ hasAll(map: LightWeightMap): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -148,7 +148,7 @@ hasKey(key: K): boolean; **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -187,7 +187,7 @@ hasValue(value: V): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -213,7 +213,7 @@ increaseCapacityTo(minimumCapacity: number): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -255,7 +255,7 @@ get(key: K): V **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -293,7 +293,7 @@ getIndexOfKey(key: K): number **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -331,7 +331,7 @@ getIndexOfValue(value: V): number **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -369,7 +369,7 @@ getKeyAt(index: number): K **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -402,7 +402,7 @@ setAll(map: LightWeightMap): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -441,7 +441,7 @@ set(key: K, value: V): Object **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -477,7 +477,7 @@ remove(key: K): V **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -515,7 +515,7 @@ removeAt(index: number): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -554,7 +554,7 @@ setValueAt(index: number, newValue: V): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -593,7 +593,7 @@ getValueAt(index: number): V **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -620,7 +620,7 @@ clear(): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -652,7 +652,7 @@ keys(): IterableIterator<K> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -689,7 +689,7 @@ values(): IterableIterator<V> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -734,7 +734,7 @@ callbackfn的参数说明: **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -768,7 +768,7 @@ entries(): IterableIterator<[K, V]> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -805,7 +805,7 @@ toString(): String **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -836,7 +836,7 @@ let iter = lightWeightMap.toString(); **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md b/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md index 8809d3070b191ac6b449f087a6e55e9d8132afeb..2b7823b77e66da8e03ed3a937e832be30344f314 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md +++ b/zh-cn/application-dev/reference/apis/js-apis-lightweightset.md @@ -1,6 +1,6 @@ # @ohos.util.LightWeightSet (非线性容器LightWeightSet)@ohos.util.LightWeightSet (非线性容器LightWeightSet) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 LightWeightSet可用于存储一系列值的集合,存储元素中value值唯一。 @@ -43,7 +43,7 @@ LightWeightSet的构造函数。 **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -72,7 +72,7 @@ isEmpty(): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -107,7 +107,7 @@ add(obj: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -137,7 +137,7 @@ addAll(set: LightWeightSet<T>): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -177,7 +177,7 @@ hasAll(set: LightWeightSet<T>): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -217,7 +217,7 @@ has(key: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -255,7 +255,7 @@ equal(obj: Object): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -288,7 +288,7 @@ increaseCapacityTo(minimumCapacity: number): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -325,7 +325,7 @@ getIndexOf(key: T): number **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -363,7 +363,7 @@ remove(key: T): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -401,7 +401,7 @@ removeAt(index: number): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -439,7 +439,7 @@ getValueAt(index: number): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -465,7 +465,7 @@ clear(): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -495,14 +495,6 @@ toString(): String | -------- | -------- | | String | 返回对应字符串。 | -**错误码:** - -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 - -| 错误码ID | 错误信息 | -| -------- | -------- | -| 10200011 | The toString method cannot be bound. | - **示例:** ```ts @@ -529,7 +521,7 @@ toArray(): Array<T> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -561,7 +553,7 @@ values(): IterableIterator<T> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -606,7 +598,7 @@ callbackfn的参数说明: **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -640,7 +632,7 @@ entries(): IterableIterator<[T, T]> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -677,7 +669,7 @@ while(index < lightWeightSet.length) { **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-linkedlist.md b/zh-cn/application-dev/reference/apis/js-apis-linkedlist.md index 59ec6e1719f5c98a58d0a07b4497703d586614c6..4add3e8a58999e7e1969a47c9b280367fa19116f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-linkedlist.md +++ b/zh-cn/application-dev/reference/apis/js-apis-linkedlist.md @@ -1,6 +1,6 @@ # @ohos.util.LinkedList (线性容器LinkedList) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 LinkedList底层通过双向链表实现,双向链表的每个节点都包含对前一个元素和后一个元素的引用。当需要查询元素时,可以从头遍历,也可以从尾部遍历,插入、删除效率高,查询效率低。LinkedList允许元素为null。 @@ -41,7 +41,7 @@ LinkedList的构造函数。 **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -77,7 +77,7 @@ add(element: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -112,7 +112,7 @@ addFirst(element: T): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -148,7 +148,7 @@ insert(index: number, element: T): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -186,7 +186,7 @@ has(element: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -223,7 +223,7 @@ get(index: number): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -265,7 +265,7 @@ getLastIndexOf(element: T): number **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -307,7 +307,7 @@ getIndexOf(element: T): number **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -349,7 +349,7 @@ removeByIndex(index: number): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -384,7 +384,7 @@ removeFirst(): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -419,7 +419,7 @@ removeLast(): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -460,7 +460,7 @@ remove(element: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -499,7 +499,7 @@ removeFirstFound(element: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -539,7 +539,7 @@ removeLastFound(element: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -573,7 +573,7 @@ clone(): LinkedList<T> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -616,7 +616,7 @@ callbackfn的参数说明: **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -645,7 +645,7 @@ clear(): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -685,7 +685,7 @@ set(index: number, element: T): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -719,7 +719,7 @@ convertToArray(): Array<T> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -751,7 +751,7 @@ getFirst(): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -784,7 +784,7 @@ getLast(): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -817,7 +817,7 @@ linkedList.getLast(); **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-list.md b/zh-cn/application-dev/reference/apis/js-apis-list.md index 1170793c3c2e11b5fac94bec61c7954756987910..6437f970f43def150dc114bb65214e57771e3bd4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-list.md +++ b/zh-cn/application-dev/reference/apis/js-apis-list.md @@ -1,6 +1,6 @@ # @ohos.util.List (线性容器List) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 List底层通过单向链表实现,每个节点有一个指向后一个元素的引用。当需要查询元素时,必须从头遍历,插入、删除效率高,查询效率低。List允许元素为null。 @@ -40,7 +40,7 @@ List的构造函数。 **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -75,7 +75,7 @@ add(element: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -111,7 +111,7 @@ insert(element: T, index: number): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -149,7 +149,7 @@ has(element: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -186,7 +186,7 @@ get(index: number): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -228,7 +228,7 @@ getLastIndexOf(element: T): number **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -270,7 +270,7 @@ getIndexOf(element: T): number **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -313,7 +313,7 @@ equal(obj: Object): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -358,7 +358,7 @@ removeByIndex(index: number): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -399,7 +399,7 @@ remove(element: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -442,7 +442,7 @@ callbackfn的参数说明: **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -490,7 +490,7 @@ callbackfn的参数说明: **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -532,7 +532,7 @@ comparator的参数说明: **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -573,7 +573,7 @@ getSubList(fromIndex: number, toIndex: number): List<T> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -603,7 +603,7 @@ clear(): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -643,7 +643,7 @@ set(index: number, element: T): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -677,7 +677,7 @@ convertToArray(): Array<T> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -710,7 +710,7 @@ isEmpty(): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -743,7 +743,7 @@ getFirst(): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -776,7 +776,7 @@ getLast(): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -809,7 +809,7 @@ let result = list.getLast(); **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-medialibrary.md b/zh-cn/application-dev/reference/apis/js-apis-medialibrary.md index 6d9c4956519fa1bf262b219d3b8173c53e6a6877..7ae6d88fe7ae60eb5e4c879e7ca13acd721d6ac8 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-medialibrary.md +++ b/zh-cn/application-dev/reference/apis/js-apis-medialibrary.md @@ -1,6 +1,6 @@ # @ohos.multimedia.medialibrary (媒体库管理) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 该组件从API Version 6开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 ## 导入模块 @@ -870,7 +870,7 @@ getActivePeers(): Promise\>; | 类型 | 说明 | | ------------------- | -------------------- | -| Promise\> | 返回获取的所有在线对端设备的PeerInfo | +| Promise\> | 返回获取的所有在线对端设备的PeerInfo | **示例:** @@ -906,7 +906,7 @@ getActivePeers(callback: AsyncCallback\>): void; | 类型 | 说明 | | ------------------- | -------------------- | -| callback: AsyncCallback\> | 返回获取的所有在线对端设备的PeerInfo | +| callback: AsyncCallback\> | 返回获取的所有在线对端设备的PeerInfo | **示例:** @@ -941,7 +941,7 @@ getAllPeers(): Promise\>; | 类型 | 说明 | | ------------------- | -------------------- | -| Promise\> | 返回获取的所有对端设备的PeerInfo | +| Promise\> | 返回获取的所有对端设备的PeerInfo | **示例:** @@ -977,7 +977,7 @@ getAllPeers(callback: AsyncCallback\>): void; | 类型 | 说明 | | ------------------- | -------------------- | -| callback: AsyncCallback\> | 返回获取的所有对端设备的PeerInfo | +| callback: AsyncCallback\> | 返回获取的所有对端设备的PeerInfo | **示例:** @@ -999,7 +999,7 @@ async function example() { 提供封装文件属性的方法。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 1. title字段默认为去掉后缀的文件名,音频和视频文件会尝试解析文件内容,部分设备写入后在触发扫描时会被还原。 > 2. orientation字段部分设备可能不支持修改,建议使用image组件的[ModifyImageProperty](js-apis-image.md#modifyimageproperty9)接口。 @@ -2471,7 +2471,7 @@ async function example() { 枚举,文件关键信息。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > bucket_id字段在文件重命名或移动后可能会发生变化,开发者使用前需要重新获取。 **系统能力:** 以下各项对应的系统能力均为SystemCapability.Multimedia.MediaLibrary.Core @@ -2539,9 +2539,9 @@ async function example() { | 名称 | 类型 | 可读 | 可写 | 说明 | | ----------------------- | ------------------- | ---- | ---- | ------------------------------------------------------------ | -| selections | string | 是 | 是 | 检索条件,使用[FileKey](#filekey8)中的枚举值作为检索条件的列名。示例:
selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? OR ' +mediaLibrary.FileKey.MEDIA_TYPE + '= ?', | -| selectionArgs | Array<string> | 是 | 是 | 检索条件的值,对应selections中检索条件列的值。
示例:
selectionArgs: [mediaLibrary.MediaType.IMAGE.toString(), mediaLibrary.MediaType.VIDEO.toString()], | -| order | string | 是 | 是 | 检索结果排序方式,使用[FileKey](#filekey8)中的枚举值作为检索结果排序的列,可以用升序或降序排列。示例:
升序排列:order: mediaLibrary.FileKey.DATE_ADDED + " ASC"
降序排列:order: mediaLibrary.FileKey.DATE_ADDED + " DESC" | +| selections | string | 是 | 是 | 检索条件,使用[FileKey](#filekey8)中的枚举值作为检索条件的列名。示例:
selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? OR ' +mediaLibrary.FileKey.MEDIA_TYPE + '= ?', | +| selectionArgs | Array<string> | 是 | 是 | 检索条件的值,对应selections中检索条件列的值。
示例:
selectionArgs: [mediaLibrary.MediaType.IMAGE.toString(), mediaLibrary.MediaType.VIDEO.toString()], | +| order | string | 是 | 是 | 检索结果排序方式,使用[FileKey](#filekey8)中的枚举值作为检索结果排序的列,可以用升序或降序排列。示例:
升序排列:order: mediaLibrary.FileKey.DATE_ADDED + " ASC"
降序排列:order: mediaLibrary.FileKey.DATE_ADDED + " DESC" | | uri8+ | string | 是 | 是 | 文件URI | | networkId8+ | string | 是 | 是 | 注册设备网络ID | | extendArgs8+ | string | 是 | 是 | 扩展的检索参数,目前没有扩展检索参数 | @@ -2585,4 +2585,3 @@ async function example() { | type | 'image' | 'video' | 'media' | 是 | 是 | 媒体类型,包括:image, video, media,当前仅支持media类型 | | count | number | 是 | 是 | 媒体选择,count = 1表示单选,count大于1表示多选。 | - diff --git a/zh-cn/application-dev/reference/apis/js-apis-mouseevent.md b/zh-cn/application-dev/reference/apis/js-apis-mouseevent.md index 2b99f26abd110a15627dc3fd99e16bd86ed1eb1a..67b1b4b37b205a2325b77a19423400290933d6d9 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-mouseevent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-mouseevent.md @@ -9,7 +9,7 @@ ## 导入模块 ```js -import {Action,Button,Axis,AxisValue,MouseEvent} from '@ohos.multimodalInput.mouseEvent'; +import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInput.mouseEvent'; ``` ## Action diff --git a/zh-cn/application-dev/reference/apis/js-apis-nfcTag.md b/zh-cn/application-dev/reference/apis/js-apis-nfcTag.md index cece44bd98f9b40ac788e14a52ad3cad0ec28191..3c1f33040ca9c792e42256b083dbecaa9ec4ee44 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-nfcTag.md +++ b/zh-cn/application-dev/reference/apis/js-apis-nfcTag.md @@ -128,7 +128,7 @@ getNfcATag(tagInfo: [TagInfo](#taginfo)): [NfcATag](js-apis-nfctech.md#nfcatag) **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -144,7 +144,7 @@ getNfcBTag(tagInfo: [TagInfo](#taginfo)): [NfcBTag](js-apis-nfctech.md#nfcbtag) **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -160,7 +160,7 @@ getNfcFTag(tagInfo: [TagInfo](#taginfo)): [NfcFTag](js-apis-nfctech.md#nfcftag) **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -176,7 +176,7 @@ getNfcVTag(tagInfo: [TagInfo](#taginfo)): [NfcVTag](js-apis-nfctech.md#nfcvtag) **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -190,7 +190,7 @@ getIsoDep(tagInfo: [TagInfo](#taginfo)): [IsoDepTag](js-apis-nfctech.md#isoDepTa 获取IsoDep类型Tag对象,通过该对象可访问支持IsoDep技术类型的Tag。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -218,7 +218,7 @@ getNdef(tagInfo: [TagInfo](#taginfo)): [NdefTag](js-apis-nfctech.md#ndeftag9) 获取NDEF类型Tag对象,通过该对象可访问支持NDEF技术类型的Tag。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -246,7 +246,7 @@ getMifareClassic(tagInfo: [TagInfo](#taginfo)): [MifareClassicTag](js-apis-nfcte 获取MIFARE Classic类型Tag对象,通过该对象访问支持MIFARE Classic技术类型的Tag。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -274,7 +274,7 @@ getMifareUltralight(tagInfo: [TagInfo](#taginfo)): [MifareUltralightTag](js-apis 获取MIFARE Ultralight类型Tag对象,通过该对象可访问支持MIFARE Ultralight技术类型的Tag。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -301,7 +301,7 @@ getNdefFormatable(tagInfo: [TagInfo](#taginfo)): [NdefFormatableTag](js-apis-nfc 获取NDEF Formatable类型Tag对象,通过该对象可访问支持NDEF Formatable技术类型的Tag。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -323,7 +323,7 @@ getTagInfo(want: [Want](js-apis-app-ability-want.md#Want)): [TagInfo](#taginfo) 从Want中获取TagInfo,Want是被NFC服务初始化,包含了TagInfo所需的属性值。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -344,7 +344,7 @@ makeUriRecord(uri: string): [NdefRecord](#ndefrecord9); 根据输入的URI,构建NDEF标签的Record数据对象。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -383,7 +383,7 @@ makeTextRecord(text: string, locale: string): [NdefRecord](#ndefrecord9); 根据输入的文本数据和编码类型,构建NDEF标签的Record。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -425,7 +425,7 @@ makeMimeRecord(mimeType: string, mimeData: number[]): [NdefRecord](#ndefrecord9) 根据输入的MIME数据和类型,构建NDEF标签的Record。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -465,7 +465,7 @@ makeExternalRecord(domainName: string, type: string, externalData: number[]): [N 根据应用程序特定的外部数据,构建NDEF标签的Record。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -508,7 +508,7 @@ messageToBytes(ndefMessage: [NdefMessage](js-apis-nfctech.md#ndefmessage9)): num 把输入的NDEF消息数据对象,转换为字节格式的数据。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -549,7 +549,7 @@ createNdefMessage(data: number[]): [NdefMessage](js-apis-nfctech.md#ndefmessage9 使用原始字节数据创建NDEF标签的Message。该数据必须符合NDEF Record数据格式,如果不符合格式,则返回的NdeMessage数据对象,所包含的NDE Record列表会为空。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -583,7 +583,7 @@ createNdefMessage(ndefRecords: NdefRecord[]): [NdefMessage](js-apis-nfctech.md#n 使用NDEF Records列表,创建NDEF Message。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -618,7 +618,7 @@ try { NFC服务在读取到标签时给出的对象,通过改对象属性,应用知道该标签支持哪些技术类型,并使用匹配的技术类型来调用相关接口。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **需要权限:** ohos.permission.NFC_TAG @@ -633,7 +633,7 @@ NFC服务在读取到标签时给出的对象,通过改对象属性,应用 ## NdefRecord9+ NDEF标签Record属性的定义,参考NDEF标签技术规范《NFCForum-TS-NDEF_1.0》的定义细节。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag | **名称** | **类型** | **可读** | **可写** | **说明** | | -------- | -------- | -------- | -------- | -------- | @@ -645,7 +645,7 @@ NDEF标签Record属性的定义,参考NDEF标签技术规范《NFCForum-TS-NDE ## 技术类型定义 NFC Tag有多种不同的技术类型,定义常量描述不同的技术类型。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag | **名称** | **值** | **说明** | | -------- | -------- | -------- | @@ -662,7 +662,7 @@ NFC Tag有多种不同的技术类型,定义常量描述不同的技术类型 ## TnfType9+ NDEF Record的TNF(Type Name Field)类型值,参考NDEF标签技术规范《NFCForum-TS-NDEF_1.0》的定义细节。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag | **名称** | **值** | **说明** | | -------- | -------- | -------- | @@ -677,7 +677,7 @@ NDEF Record的TNF(Type Name Field)类型值,参考NDEF标签技术规范《NFC ## NDEF Record RTD类型定义 NDEF Record的RTD(Record Type Definition)类型值,参考NDEF标签技术规范《NFCForum-TS-NDEF_1.0》的定义细节。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag | **名称** | **值** | **说明** | | -------- | -------- | -------- | @@ -687,7 +687,7 @@ NDEF Record的RTD(Record Type Definition)类型值,参考NDEF标签技术规 ## NfcForumType9+ NFC Forum标准里面Tag类型的定义。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag | **名称** | **值** | **说明** | | -------- | -------- | -------- | @@ -700,7 +700,7 @@ NFC Forum标准里面Tag类型的定义。 ## MifareClassicType9+ MIFARE Classic标签类型的定义。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag | **名称** | **值** | **说明** | | -------- | -------- | -------- | @@ -712,7 +712,7 @@ MIFARE Classic标签类型的定义。 ## MifareClassicSize9+ MIFARE Classic标签存储大小的定义。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag | **名称** | **值** | **说明** | | -------- | -------- | -------- | @@ -724,7 +724,7 @@ MIFARE Classic标签存储大小的定义。 ## MifareUltralightType9+ MIFARE Ultralight标签类型的定义。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag | **名称** | **值** | **说明** | | -------- | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-nfctech.md b/zh-cn/application-dev/reference/apis/js-apis-nfctech.md index 444338ea5a20fac7275cfda11a89524991897188..fc5241358c6f5e76f43833d7aef8b059b663fe58 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-nfctech.md +++ b/zh-cn/application-dev/reference/apis/js-apis-nfctech.md @@ -28,7 +28,7 @@ getSak(): number **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -54,7 +54,7 @@ getAtqa(): number[] **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -88,7 +88,7 @@ getRespAppData(): number[] **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -114,7 +114,7 @@ getRespProtocol(): number[] **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -148,7 +148,7 @@ getSystemCode(): number[] **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -174,7 +174,7 @@ getPmm(): number[] **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -208,7 +208,7 @@ getResponseFlags(): number **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -234,7 +234,7 @@ getDsfId(): number **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -266,7 +266,7 @@ getHistoricalBytes(): number[] 获取标签的历史字节,针对基于NfcA通信技术的IsoDep卡片。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -290,7 +290,7 @@ getHiLayerResponse(): number[] 获取标签的更高层响应字节,针对基于NfcB通信技术的IsoDep卡片。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -316,7 +316,7 @@ isExtendedApduSupported(): Promise<boolean> **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -367,7 +367,7 @@ isExtendedApduSupported(callback: AsyncCallback\): void **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -419,7 +419,7 @@ getNdefRecords(): [tag.NdefRecord](js-apis-nfcTag.md#ndefrecord9)[] 获取NDEF消息中的所有记录。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -454,7 +454,7 @@ getNdefTagType(): [tag.NfcForumType](js-apis-nfcTag.md#nfcforumtype9) 获取NDEF标签的类型。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -478,7 +478,7 @@ getNdefMessage(): [NdefMessage](#ndefmessage9) 获取发现NDEF标签时,从标签读取的Message。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -501,7 +501,7 @@ isNdefWritable(): boolean; 检查NDEF标签是否可写。在调用写数据接口前,需要先判断是否支持写操作。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -527,7 +527,7 @@ readNdef(): Promise\<[NdefMessage](#ndefmessage9)> **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -577,7 +577,7 @@ readNdef(callback: AsyncCallback\<[NdefMessage](#ndefmessage9)>): void **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -629,7 +629,7 @@ writeNdef(msg: NdefMessage): Promise\; **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -682,7 +682,7 @@ writeNdef(msg: [NdefMessage](#ndefmessage9), callback: AsyncCallback\): vo **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -738,7 +738,7 @@ canSetReadOnly(): boolean **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -772,7 +772,7 @@ setReadOnly(): Promise\ **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **错误码:** @@ -816,7 +816,7 @@ setReadOnly(callback: AsyncCallback\): void **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -866,7 +866,7 @@ getNdefTagTypeString(type: [tag.NfcForumType](js-apis-nfcTag.md#nfcforumtype9)): 将NFC论坛类型,转换为NFC论坛中定义的字符串描述。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -911,7 +911,7 @@ authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean): Promise **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -965,7 +965,7 @@ authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean, callback **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -1021,7 +1021,7 @@ readSingleBlock(blockIndex: number): Promise\ **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -1078,7 +1078,7 @@ readSingleBlock(blockIndex: number, callback: AsyncCallback\): void **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -1132,7 +1132,7 @@ writeSingleBlock(blockIndex: number, data: number[]): Promise\ **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -1186,7 +1186,7 @@ writeSingleBlock(blockIndex: number, data: number[], callback: AsyncCallback\ **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -1296,7 +1296,7 @@ incrementBlock(blockIndex: number, value: number, callback: AsyncCallback\ **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -1352,7 +1352,7 @@ decrementBlock(blockIndex: number, value: number): Promise\ **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -1405,7 +1405,7 @@ decrementBlock(blockIndex: number, value: number, callback: AsyncCallback\ **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -1461,7 +1461,7 @@ transferToBlock(blockIndex: number): Promise\ **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -1512,7 +1512,7 @@ transferToBlock(blockIndex: number, callback: AsyncCallback\): void **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -1566,7 +1566,7 @@ restoreFromBlock(blockIndex: number): Promise\ **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -1617,7 +1617,7 @@ restoreFromBlock(blockIndex: number, callback: AsyncCallback\): void **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -1669,7 +1669,7 @@ getSectorCount(): number 获取MIFARE Classic标签中的扇区数。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -1693,7 +1693,7 @@ getBlockCountInSector(sectorIndex: number): number 获取指定扇区中的块数。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -1729,7 +1729,7 @@ getType(): [tag.MifareClassicType](js-apis-nfcTag.md#mifareclassictype9) 获取MIFARE Classic标签的类型。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -1753,7 +1753,7 @@ getTagSize(): number 获取标签的存储空间大小,具体请参见[MifareClassicSize](js-apis-nfcTag.md#mifareclassicsize9)。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -1777,7 +1777,7 @@ isEmulatedTag(): boolean 检查标签是不是被模拟的。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -1801,7 +1801,7 @@ getBlockIndex(sectorIndex: number): number 获取特定扇区的第一个块的序号。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -1837,7 +1837,7 @@ getSectorIndex(blockIndex: number): number 获取包含指定块号的扇区序号。 -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -1883,7 +1883,7 @@ readMultiplePages(pageIndex: number): Promise\ **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -1941,7 +1941,7 @@ readMultiplePages(pageIndex: number, callback: AsyncCallback\): void **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -1995,7 +1995,7 @@ writeSinglePage(pageIndex: number, data: number[]): Promise\ **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -2048,7 +2048,7 @@ writeSinglePage(pageIndex: number, data: number[], callback: AsyncCallback\ **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -2190,7 +2190,7 @@ format(message: [NdefMessage](#ndefmessage9), callback: AsyncCallback\): v **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -2245,7 +2245,7 @@ formatReadOnly(message: [NdefMessage](#ndefmessage9)): Promise\ **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -2299,7 +2299,7 @@ formatReadOnly(message: [NdefMessage](#ndefmessage9), callback: AsyncCallback\ **说明:** > > 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> +> 通知订阅和取消订阅仅对系统应用开放。 ## 导入模块 @@ -26,13 +26,13 @@ publish(request: NotificationRequest, callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------------------------- | ---- | ------------------------------------------- | -| request | [NotificationRequest](#notificationrequest) | 是 | 设置要发布通知内容的NotificationRequest对象。 | -| callback | AsyncCallback\ | 是 | 被指定的回调方法。 | +| request | [NotificationRequest](#notificationrequest) | 是 | 用于设置要发布通知的内容和相关配置信息。 | +| callback | AsyncCallback\ | 是 | 发布通知的回调方法。 | **示例:** ```js -//publish回调 +// publish回调 function publishCallback(err) { if (err.code) { console.info("publish failed " + JSON.stringify(err)); @@ -40,7 +40,7 @@ function publishCallback(err) { console.info("publish success"); } } -//通知Request对象 +// 通知Request对象 var notificationRequest = { id: 1, content: { @@ -69,12 +69,12 @@ publish(request: NotificationRequest): Promise\ | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------------------------- | ---- | ------------------------------------------- | -| request | [NotificationRequest](#notificationrequest) | 是 | 设置要发布通知内容的NotificationRequest对象。 | +| request | [NotificationRequest](#notificationrequest) | 是 | 用于设置要发布通知的内容和相关配置信息。 | **示例:** ```js -//通知Request对象 +// 通知Request对象 var notificationRequest = { notificationId: 1, content: { @@ -87,7 +87,7 @@ var notificationRequest = { } } Notification.publish(notificationRequest).then(() => { - console.info("publish sucess"); + console.info("publish success"); }); ``` @@ -96,7 +96,7 @@ Notification.publish(notificationRequest).then(() => { publish(request: NotificationRequest, userId: number, callback: AsyncCallback\): void -发布通知(callback形式)。 +发布通知给指定的用户(callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -108,14 +108,14 @@ publish(request: NotificationRequest, userId: number, callback: AsyncCallback\ | 是 | 被指定的回调方法。 | **示例:** ```js -//publish回调 +// publish回调 function publishCallback(err) { if (err.code) { console.info("publish failed " + JSON.stringify(err)); @@ -123,9 +123,9 @@ function publishCallback(err) { console.info("publish success"); } } -// 接收通知的用户ID +// 用户ID var userId = 1 -//通知Request对象 +// 通知Request对象 var notificationRequest = { id: 1, content: { @@ -144,7 +144,7 @@ Notification.publish(notificationRequest, userId, publishCallback); publish(request: NotificationRequest, userId: number): Promise\ -发布通知(Promise形式)。 +发布通知给指定的用户(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -156,8 +156,8 @@ publish(request: NotificationRequest, userId: number): Promise\ | 参数名 | 类型 | 必填 | 说明 | | -------- | ----------------------------------------- | ---- | ------------------------------------------- | -| request | [NotificationRequest](#notificationrequest) | 是 | 设置要发布通知内容的NotificationRequest对象。 | -| userId | number | 是 | 接收通知用户的Id。 | +| request | [NotificationRequest](#notificationrequest) | 是 | 用于设置要发布通知的内容和相关配置信息。 | +| userId | number | 是 | 用户ID。 | **示例:** @@ -177,7 +177,7 @@ var notificationRequest = { var userId = 1 Notification.publish(notificationRequest, userId).then(() => { - console.info("publish sucess"); + console.info("publish success"); }); ``` @@ -186,7 +186,7 @@ Notification.publish(notificationRequest, userId).then(() => { cancel(id: number, label: string, callback: AsyncCallback\): void -取消与指定id和label相匹配的已发布通知(callback形式)。 +通过通知ID和通知标签取消已发布的通知(callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -201,7 +201,7 @@ cancel(id: number, label: string, callback: AsyncCallback\): void **示例:** ```js -//cancel回调 +// cancel回调 function cancelCallback(err) { if (err.code) { console.info("cancel failed " + JSON.stringify(err)); @@ -218,7 +218,7 @@ Notification.cancel(0, "label", cancelCallback) cancel(id: number, label?: string): Promise\ -取消与指定id相匹配的已发布通知,label可以指定也可以不指定(Promise形式)。 +取消与指定通知ID相匹配的已发布通知,label可以指定也可以不指定(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -233,7 +233,7 @@ cancel(id: number, label?: string): Promise\ ```js Notification.cancel(0).then(() => { - console.info("cancel sucess"); + console.info("cancel success"); }); ``` @@ -243,7 +243,7 @@ Notification.cancel(0).then(() => { cancel(id: number, callback: AsyncCallback\): void -取消与指定id相匹配的已发布通知(callback形式)。 +取消与指定通知ID相匹配的已发布通知(callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -257,7 +257,7 @@ cancel(id: number, callback: AsyncCallback\): void **示例:** ```js -//cancel回调 +// cancel回调 function cancelCallback(err) { if (err.code) { console.info("cancel failed " + JSON.stringify(err)); @@ -287,7 +287,7 @@ cancelAll(callback: AsyncCallback\): void **示例:** ```js -//cancel回调 +// cancel回调 function cancelAllCallback(err) { if (err.code) { console.info("cancelAll failed " + JSON.stringify(err)); @@ -312,7 +312,7 @@ cancelAll(): Promise\ ```js Notification.cancelAll().then(() => { - console.info("cancelAll sucess"); + console.info("cancelAll success"); }); ``` @@ -340,7 +340,7 @@ addSlot(slot: NotificationSlot, callback: AsyncCallback\): void **示例:** ```js -//addslot回调 +// addslot回调 function addSlotCallBack(err) { if (err.code) { console.info("addSlot failed " + JSON.stringify(err)); @@ -348,7 +348,7 @@ function addSlotCallBack(err) { console.info("addSlot success"); } } -//通知slot对象 +// 通知slot对象 var notificationSlot = { type: Notification.SlotType.SOCIAL_COMMUNICATION } @@ -378,12 +378,12 @@ addSlot(slot: NotificationSlot): Promise\ **示例:** ```js -//通知slot对象 +// 通知slot对象 var notificationSlot = { type: Notification.SlotType.SOCIAL_COMMUNICATION } Notification.addSlot(notificationSlot).then(() => { - console.info("addSlot sucess"); + console.info("addSlot success"); }); ``` @@ -393,7 +393,7 @@ Notification.addSlot(notificationSlot).then(() => { addSlot(type: SlotType, callback: AsyncCallback\): void -创建通知通道(callback形式)。 +创建指定类型的通知通道(callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -407,7 +407,7 @@ addSlot(type: SlotType, callback: AsyncCallback\): void **示例:** ```js -//addslot回调 +// addslot回调 function addSlotCallBack(err) { if (err.code) { console.info("addSlot failed " + JSON.stringify(err)); @@ -424,7 +424,7 @@ Notification.addSlot(Notification.SlotType.SOCIAL_COMMUNICATION, addSlotCallBack addSlot(type: SlotType): Promise\ -创建通知通道(Promise形式)。 +创建指定类型的通知通道(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -438,7 +438,7 @@ addSlot(type: SlotType): Promise\ ```js Notification.addSlot(Notification.SlotType.SOCIAL_COMMUNICATION).then(() => { - console.info("addSlot sucess"); + console.info("addSlot success"); }); ``` @@ -466,7 +466,7 @@ addSlots(slots: Array\, callback: AsyncCallback\): voi **示例:** ```js -//addSlots回调 +// addSlots回调 function addSlotsCallBack(err) { if (err.code) { console.info("addSlots failed " + JSON.stringify(err)); @@ -474,11 +474,11 @@ function addSlotsCallBack(err) { console.info("addSlots success"); } } -//通知slot对象 +// 通知slot对象 var notificationSlot = { type: Notification.SlotType.SOCIAL_COMMUNICATION } -//通知slot array 对象 +// 通知slot array 对象 var notificationSlotArray = new Array(); notificationSlotArray[0] = notificationSlot; @@ -508,16 +508,16 @@ addSlots(slots: Array\): Promise\ **示例:** ```js -//通知slot对象 +// 通知slot对象 var notificationSlot = { type: Notification.SlotType.SOCIAL_COMMUNICATION } -//通知slot array 对象 +// 通知slot array 对象 var notificationSlotArray = new Array(); notificationSlotArray[0] = notificationSlot; Notification.addSlots(notificationSlotArray).then(() => { - console.info("addSlots sucess"); + console.info("addSlots success"); }); ``` @@ -527,7 +527,7 @@ Notification.addSlots(notificationSlotArray).then(() => { getSlot(slotType: SlotType, callback: AsyncCallback\): void -获取一个通知通道(callback形式)。 +获取一个指定类型的通知通道(callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -535,14 +535,14 @@ getSlot(slotType: SlotType, callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------------------- | ---- | ----------------------------------------------------------- | -| slotType | [SlotType](#slottype) | 是 | 通知渠道类型,目前分为社交通信、服务提醒、内容咨询和其他类型。 | +| slotType | [SlotType](#slottype) | 是 | 通知渠道类型,目前分为社交通信、服务提醒、内容咨询和其他类型。 | | callback | AsyncCallback\<[NotificationSlot](#notificationslot)\> | 是 | 表示被指定的回调方法。 | **示例:** ```js -//getSlot回调 -function getSlotCallback(err,data) { +// getSlot回调 +function getSlotCallback(err, data) { if (err.code) { console.info("getSlot failed " + JSON.stringify(err)); } else { @@ -559,7 +559,7 @@ Notification.getSlot(slotType, getSlotCallback) getSlot(slotType: SlotType): Promise\ -获取一个通知通道(Promise形式)。 +获取一个指定类型的通知通道(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -567,7 +567,7 @@ getSlot(slotType: SlotType): Promise\ | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | ---- | ----------------------------------------------------------- | -| slotType | [SlotType](#slottype) | 是 | 通知渠道类型,目前分为社交通信、服务提醒、内容咨询和其他类型。 | +| slotType | [SlotType](#slottype) | 是 | 通知渠道类型,目前分为社交通信、服务提醒、内容咨询和其他类型。 | **返回值:** @@ -580,7 +580,7 @@ getSlot(slotType: SlotType): Promise\ ```js var slotType = Notification.SlotType.SOCIAL_COMMUNICATION; Notification.getSlot(slotType).then((data) => { - console.info("getSlot sucess, data: " + JSON.stringify(data)); + console.info("getSlot success, data: " + JSON.stringify(data)); }); ``` @@ -598,13 +598,13 @@ getSlots(callback: AsyncCallback>): void | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------------------- | ---- | -------------------- | -| callback | AsyncCallback\\> | 是 | 表示被指定的回调方法。 | +| callback | AsyncCallback\\> | 是 | 以callback形式返回获取此应用程序的所有通知通道的结果。 | **示例:** ```js -//getSlots回调 -function getSlotsCallback(err,data) { +// getSlots回调 +function getSlotsCallback(err, data) { if (err.code) { console.info("getSlots failed " + JSON.stringify(err)); } else { @@ -634,7 +634,7 @@ getSlots(): Promise\> ```js Notification.getSlots().then((data) => { - console.info("getSlots sucess, data: " + JSON.stringify(data)); + console.info("getSlots success, data: " + JSON.stringify(data)); }); ``` @@ -644,7 +644,7 @@ Notification.getSlots().then((data) => { removeSlot(slotType: SlotType, callback: AsyncCallback\): void -根据通知通道类型删除创建的通知通道(callback形式)。 +删除指定类型的通知通道(callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -658,7 +658,7 @@ removeSlot(slotType: SlotType, callback: AsyncCallback\): void **示例:** ```js -//removeSlot回调 +// removeSlot回调 function removeSlotCallback(err) { if (err.code) { console.info("removeSlot failed " + JSON.stringify(err)); @@ -676,7 +676,7 @@ Notification.removeSlot(slotType,removeSlotCallback) removeSlot(slotType: SlotType): Promise\ -根据通知通道类型删除创建的通知通道(Promise形式)。 +删除指定类型的通知通道(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -691,7 +691,7 @@ removeSlot(slotType: SlotType): Promise\ ```js var slotType = Notification.SlotType.SOCIAL_COMMUNICATION; Notification.removeSlot(slotType).then(() => { - console.info("removeSlot sucess"); + console.info("removeSlot success"); }); ``` @@ -738,7 +738,7 @@ removeAllSlots(): Promise\ ```js Notification.removeAllSlots().then(() => { - console.info("removeAllSlots sucess"); + console.info("removeAllSlots success"); }); ``` @@ -761,13 +761,13 @@ subscribe(subscriber: NotificationSubscriber, info: NotificationSubscribeInfo, c | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------------------------- | ---- | ---------------- | | subscriber | [NotificationSubscriber](#notificationsubscriber) | 是 | 通知订阅对象。 | -| info | [NotificationSubscribeInfo](#notificationsubscribeinfo) | 是 | 订阅信息。 | +| info | [NotificationSubscribeInfo](#notificationsubscribeinfo) | 是 | 通知订阅信息。 | | callback | AsyncCallback\ | 是 | 订阅动作回调函数。 | **示例:** ```js -//subscribe回调 +// subscribe回调 function subscribeCallback(err) { if (err.code) { console.info("subscribe failed " + JSON.stringify(err)); @@ -782,7 +782,7 @@ var subscriber = { onConsume: onConsumeCallback } var info = { - bundleNames: ["bundleName1","bundleName2"] + bundleNames: ["bundleName1", "bundleName2"] } Notification.subscribe(subscriber, info, subscribeCallback); ``` @@ -793,7 +793,7 @@ Notification.subscribe(subscriber, info, subscribeCallback); subscribe(subscriber: NotificationSubscriber, callback: AsyncCallback\): void -订阅通知并指定订阅信息(callback形式)。 +订阅当前用户下所有应用的通知(callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -846,7 +846,7 @@ subscribe(subscriber: NotificationSubscriber, info?: NotificationSubscribeInfo): | 参数名 | 类型 | 必填 | 说明 | | ---------- | ------------------------- | ---- | ------------ | | subscriber | [NotificationSubscriber](#notificationsubscriber) | 是 | 通知订阅对象。 | -| info | [NotificationSubscribeInfo](#notificationsubscribeinfo) | 否 | 订阅信息。 | +| info | [NotificationSubscribeInfo](#notificationsubscribeinfo) | 否 | 通知订阅信息。 | **示例:** @@ -858,7 +858,7 @@ var subscriber = { onConsume: onConsumeCallback }; Notification.subscribe(subscriber).then(() => { - console.info("subscribe sucess"); + console.info("subscribe success"); }); ``` @@ -893,11 +893,11 @@ function unsubscribeCallback(err) { console.info("unsubscribe success"); } } -function onCancelCallback(data) { +function onDisconnectCallback(data) { console.info("Cancel callback: " + JSON.stringify(data)); } var subscriber = { - onCancel: onCancelCallback + onDisconnect: onDisconnectCallback } Notification.unsubscribe(subscriber, unsubscribeCallback); ``` @@ -925,14 +925,14 @@ unsubscribe(subscriber: NotificationSubscriber): Promise\ **示例:** ```js -function onCancelCallback(data) { +function onDisconnectCallback(data) { console.info("Cancel callback: " + JSON.stringify(data)); } var subscriber = { - onCancel: onCancelCallback + onDisconnect: onDisconnectCallback }; Notification.unsubscribe(subscriber).then(() => { - console.info("unsubscribe sucess"); + console.info("unsubscribe success"); }); ``` @@ -942,7 +942,7 @@ Notification.unsubscribe(subscriber).then(() => { enableNotification(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void -设定指定包的通知使能状态(Callback形式)。 +设定指定应用的通知使能状态(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -954,7 +954,7 @@ enableNotification(bundle: BundleOption, enable: boolean, callback: AsyncCallbac | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | -------------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | | enable | boolean | 是 | 使能状态。 | | callback | AsyncCallback\ | 是 | 设定通知使能回调函数。 | @@ -980,7 +980,7 @@ Notification.enableNotification(bundle, false, enableNotificationCallback); enableNotification(bundle: BundleOption, enable: boolean): Promise\ -设定指定包的通知使能状态(Promise形式)。 +设定指定应用的通知使能状态(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -992,7 +992,7 @@ enableNotification(bundle: BundleOption, enable: boolean): Promise\ | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | | enable | boolean | 是 | 使能状态。 | **示例:** @@ -1002,7 +1002,7 @@ var bundle = { bundle: "bundleName1", } Notification.enableNotification(bundle, false).then(() => { - console.info("enableNotification sucess"); + console.info("enableNotification success"); }); ``` @@ -1012,7 +1012,7 @@ Notification.enableNotification(bundle, false).then(() => { isNotificationEnabled(bundle: BundleOption, callback: AsyncCallback\): void -获取指定包的通知使能状态(Callback形式)。 +获取指定应用的通知使能状态(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1024,7 +1024,7 @@ isNotificationEnabled(bundle: BundleOption, callback: AsyncCallback\): | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | ------------------------ | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | | callback | AsyncCallback\ | 是 | 获取通知使能状态回调函数。 | **示例:** @@ -1049,7 +1049,7 @@ Notification.isNotificationEnabled(bundle, isNotificationEnabledCallback); isNotificationEnabled(bundle: BundleOption): Promise\ -获取指定包的通知使能状态(Promise形式)。 +获取指定应用的通知使能状态(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1061,13 +1061,13 @@ isNotificationEnabled(bundle: BundleOption): Promise\ | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | **返回值:** -| 类型 | 说明 | -| ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\ | 以Promise形式返回获取指定包的通知使能状态的结果。 | +| 类型 | 说明 | +| ------------------ | --------------------------------------------------- | +| Promise\ | 以Promise形式返回获取指定应用的通知使能状态的结果。 | **示例:** @@ -1076,7 +1076,7 @@ var bundle = { bundle: "bundleName1", } Notification.isNotificationEnabled(bundle).then((data) => { - console.info("isNotificationEnabled sucess, data: " + JSON.stringify(data)); + console.info("isNotificationEnabled success, data: " + JSON.stringify(data)); }); ``` @@ -1132,7 +1132,7 @@ isNotificationEnabled(): Promise\ | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | **返回值:** @@ -1144,7 +1144,7 @@ isNotificationEnabled(): Promise\ ```js Notification.isNotificationEnabled().then((data) => { - console.info("isNotificationEnabled sucess, data: " + JSON.stringify(data)); + console.info("isNotificationEnabled success, data: " + JSON.stringify(data)); }); ``` @@ -1154,7 +1154,7 @@ Notification.isNotificationEnabled().then((data) => { displayBadge(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void -设定指定包的角标使能状态(Callback形式)。 +设定指定应用的角标使能状态(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1166,7 +1166,7 @@ displayBadge(bundle: BundleOption, enable: boolean, callback: AsyncCallback\ | 是 | 设定角标使能回调函数。 | @@ -1192,7 +1192,7 @@ Notification.displayBadge(bundle, false, displayBadgeCallback); displayBadge(bundle: BundleOption, enable: boolean): Promise\ -设定指定包的角标使能状态(Promise形式)。 +设定指定应用的角标使能状态(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1204,7 +1204,7 @@ displayBadge(bundle: BundleOption, enable: boolean): Promise\ | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | | enable | boolean | 是 | 使能状态。 | **示例:** @@ -1214,7 +1214,7 @@ var bundle = { bundle: "bundleName1", } Notification.displayBadge(bundle, false).then(() => { - console.info("displayBadge sucess"); + console.info("displayBadge success"); }); ``` @@ -1224,7 +1224,7 @@ Notification.displayBadge(bundle, false).then(() => { isBadgeDisplayed(bundle: BundleOption, callback: AsyncCallback\): void -获取指定包的角标使能状态(Callback形式)。 +获取指定应用的角标使能状态(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1236,7 +1236,7 @@ isBadgeDisplayed(bundle: BundleOption, callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | ------------------------ | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | | callback | AsyncCallback\ | 是 | 获取角标使能状态回调函数。 | **示例:** @@ -1261,7 +1261,7 @@ Notification.isBadgeDisplayed(bundle, isBadgeDisplayedCallback); isBadgeDisplayed(bundle: BundleOption): Promise\ -获取指定包的角标使能状态(Promise形式)。 +获取指定应用的角标使能状态(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1273,13 +1273,13 @@ isBadgeDisplayed(bundle: BundleOption): Promise\ | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | **返回值:** | 类型 | 说明 | | ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\ | 以Promise形式返回获取指定包的角标使能状态。 | +| Promise\ | 以Promise形式返回获取指定应用的角标使能状态。 | **示例:** @@ -1288,7 +1288,7 @@ var bundle = { bundle: "bundleName1", } Notification.isBadgeDisplayed(bundle).then((data) => { - console.info("isBadgeDisplayed sucess, data: " + JSON.stringify(data)); + console.info("isBadgeDisplayed success, data: " + JSON.stringify(data)); }); ``` @@ -1298,7 +1298,7 @@ Notification.isBadgeDisplayed(bundle).then((data) => { setSlotByBundle(bundle: BundleOption, slot: NotificationSlot, callback: AsyncCallback\): void -设定指定包的通知通道状态(Callback形式)。 +设定指定应用的通知通道(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1310,7 +1310,7 @@ setSlotByBundle(bundle: BundleOption, slot: NotificationSlot, callback: AsyncCal | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | -------------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | | slot | [NotificationSlot](#notificationslot) | 是 | 通知通道。 | | callback | AsyncCallback\ | 是 | 设定通知通道回调函数。 | @@ -1339,7 +1339,7 @@ Notification.setSlotByBundle(bundle, notificationSlot, setSlotByBundleCallback); setSlotByBundle(bundle: BundleOption, slot: NotificationSlot): Promise\ -设定指定包的通知通道状态(Promise形式)。 +设定指定应用的通知通道(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1351,8 +1351,8 @@ setSlotByBundle(bundle: BundleOption, slot: NotificationSlot): Promise\ | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | -| slot | [NotificationSlot](#notificationslot) | 是 | 使能状态。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | +| slot | [NotificationSlot](#notificationslot) | 是 | 通知通道。 | **示例:** @@ -1364,7 +1364,7 @@ var notificationSlot = { type: Notification.SlotType.SOCIAL_COMMUNICATION } Notification.setSlotByBundle(bundle, notificationSlot).then(() => { - console.info("setSlotByBundle sucess"); + console.info("setSlotByBundle success"); }); ``` @@ -1374,7 +1374,7 @@ Notification.setSlotByBundle(bundle, notificationSlot).then(() => { getSlotsByBundle(bundle: BundleOption, callback: AsyncCallback>): void -获取指定包的通知通道(Callback形式)。 +获取指定应用的所有通知通道(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1386,7 +1386,7 @@ getSlotsByBundle(bundle: BundleOption, callback: AsyncCallback> | 是 | 获取通知通道回调函数。 | **示例:** @@ -1411,7 +1411,7 @@ Notification.getSlotsByBundle(bundle, getSlotsByBundleCallback); getSlotsByBundle(bundle: BundleOption): Promise> -获取指定包的通知通道(Promise形式)。 +获取指定应用的所有通知通道(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1423,13 +1423,13 @@ getSlotsByBundle(bundle: BundleOption): Promise> | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | **返回值:** | 类型 | 说明 | | ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise> | 以Promise形式返回获取指定包的通知通道。 | +| Promise> | 以Promise形式返回获取指定应用的通知通道。 | **示例:** @@ -1438,7 +1438,7 @@ var bundle = { bundle: "bundleName1", } Notification.getSlotsByBundle(bundle).then((data) => { - console.info("getSlotsByBundle sucess, data: " + JSON.stringify(data)); + console.info("getSlotsByBundle success, data: " + JSON.stringify(data)); }); ``` @@ -1448,7 +1448,7 @@ Notification.getSlotsByBundle(bundle).then((data) => { getSlotNumByBundle(bundle: BundleOption, callback: AsyncCallback\): void -获取指定包的通知通道数(Callback形式)。 +获取指定应用的通知通道数量(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1460,8 +1460,8 @@ getSlotNumByBundle(bundle: BundleOption, callback: AsyncCallback\): voi | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------- | ---- | ---------------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | -| callback | AsyncCallback\ | 是 | 获取通知通道数回调函数。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | +| callback | AsyncCallback\ | 是 | 获取通知通道数量回调函数。 | **示例:** @@ -1485,7 +1485,7 @@ Notification.getSlotNumByBundle(bundle, getSlotNumByBundleCallback); getSlotNumByBundle(bundle: BundleOption): Promise\ -获取指定包的通知通道数(Promise形式)。 +获取指定应用的通知通道数量(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1497,13 +1497,13 @@ getSlotNumByBundle(bundle: BundleOption): Promise\ | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | **返回值:** | 类型 | 说明 | | ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\ | 以Promise形式返回获取指定包的通知通道数。 | +| Promise\ | 以Promise形式返回获取指定应用的通知通道数量。 | **示例:** @@ -1512,7 +1512,7 @@ var bundle = { bundle: "bundleName1", } Notification.getSlotNumByBundle(bundle).then((data) => { - console.info("getSlotNumByBundle sucess, data: " + JSON.stringify(data)); + console.info("getSlotNumByBundle success, data: " + JSON.stringify(data)); }); ``` @@ -1534,7 +1534,7 @@ remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveRea | 参数名 | 类型 | 必填 | 说明 | | --------------- | ----------------------------------| ---- | -------------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | | notificationKey | [NotificationKey](#notificationkey) | 是 | 通知键值。 | | reason | [RemoveReason](#removereason9) | 是 | 通知删除原因。 | | callback | AsyncCallback\ | 是 | 删除指定通知回调函数。 | @@ -1578,7 +1578,7 @@ remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveRea | 参数名 | 类型 | 必填 | 说明 | | --------------- | --------------- | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | | notificationKey | [NotificationKey](#notificationkey) | 是 | 通知键值。 | | reason | [RemoveReason](#removereason9) | 是 | 通知删除原因。 | @@ -1594,7 +1594,7 @@ var notificationKey = { } var reason = Notification.RemoveReason.CLICK_REASON_REMOVE; Notification.remove(bundle, notificationKey, reason).then(() => { - console.info("remove sucess"); + console.info("remove success"); }); ``` @@ -1616,7 +1616,7 @@ remove(hashCode: string, reason: RemoveReason, callback: AsyncCallback\): | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | -------------------- | -| hashCode | string | 是 | 通知唯一ID。 | +| hashCode | string | 是 | 通知唯一ID。可以通过[onConsume](#onconsume)回调的入参[SubscribeCallbackData](#subscribecallbackdata)获取其内部[NotificationRequest](#notificationrequest)对象中的hashCode。 | | reason | [RemoveReason](#removereason9) | 是 | 通知删除原因。 | | callback | AsyncCallback\ | 是 | 删除指定通知回调函数。 | @@ -1663,7 +1663,7 @@ remove(hashCode: string, reason: RemoveReason): Promise\ var hashCode = 'hashCode' var reason = Notification.RemoveReason.CLICK_REASON_REMOVE; Notification.remove(hashCode, reason).then(() => { - console.info("remove sucess"); + console.info("remove success"); }); ``` @@ -1673,7 +1673,7 @@ Notification.remove(hashCode, reason).then(() => { removeAll(bundle: BundleOption, callback: AsyncCallback\): void -删除指定包的所有通知(Callback形式)。 +删除指定应用的所有通知(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1685,8 +1685,8 @@ removeAll(bundle: BundleOption, callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | ---------------------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | -| callback | AsyncCallback\ | 是 | 删除指定包的所有通知回调函数。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | +| callback | AsyncCallback\ | 是 | 删除指定应用的所有通知回调函数。 | **示例:** @@ -1744,7 +1744,7 @@ Notification.removeAll(removeAllCallback); removeAll(bundle?: BundleOption): Promise\ -删除所有通知(Promise形式)。 +删除指定应用的所有通知(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1756,13 +1756,14 @@ removeAll(bundle?: BundleOption): Promise\ | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 否 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 否 | 指定应用的包信息。 | **示例:** ```js +// 不指定应用时,删除所有通知 Notification.removeAll().then(() => { - console.info("removeAll sucess"); + console.info("removeAll success"); }); ``` @@ -1770,7 +1771,7 @@ Notification.removeAll().then(() => { removeAll(userId: number, callback: AsyncCallback\): void -删除所有通知(callback形式)。 +删除指定用户下的所有通知(callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1782,8 +1783,8 @@ removeAll(userId: number, callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| userId | number | 是 | 接收通知用户的Id。 | -| callback | AsyncCallback\ | 是 | 删除所有通知回调函数。 | +| userId | number | 是 | 用户ID。 | +| callback | AsyncCallback\ | 是 | 删除指定用户所有通知回调函数。 | **示例:** @@ -1797,7 +1798,6 @@ function removeAllCallback(err) { } var userId = 1 - Notification.removeAll(userId, removeAllCallback); ``` @@ -1805,7 +1805,7 @@ Notification.removeAll(userId, removeAllCallback); removeAll(userId: number): Promise\ -删除所有通知(Promise形式)。 +删除指定用户下的所有通知(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1817,22 +1817,15 @@ removeAll(userId: number): Promise\ | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| userId | number | 是 | 接收通知用户的Id。 | +| userId | number | 是 | 用户ID。 | **示例:** ```js -function removeAllCallback(err) { - if (err.code) { - console.info("removeAll failed " + JSON.stringify(err)); - } else { - console.info("removeAll success"); - } -} - var userId = 1 - -Notification.removeAll(userId, removeAllCallback); +Notification.removeAll(userId).then(() => { + console.info("removeAll success"); +}); ``` @@ -1840,7 +1833,7 @@ Notification.removeAll(userId, removeAllCallback); getAllActiveNotifications(callback: AsyncCallback>): void -获取活动通知(Callback形式)。 +获取当前未删除的所有通知(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1874,7 +1867,7 @@ Notification.getAllActiveNotifications(getAllActiveNotificationsCallback); getAllActiveNotifications(): Promise\\> -获取活动通知(Promise形式)。 +获取当前未删除的所有通知(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1892,7 +1885,7 @@ getAllActiveNotifications(): Promise\ { - console.info("getAllActiveNotifications sucess, data: " + JSON.stringify(data)); + console.info("getAllActiveNotifications success, data: " + JSON.stringify(data)); }); ``` @@ -1902,7 +1895,7 @@ Notification.getAllActiveNotifications().then((data) => { getActiveNotificationCount(callback: AsyncCallback\): void -获取当前应用的活动通知数(Callback形式)。 +获取当前应用未删除的通知数(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1910,7 +1903,7 @@ getActiveNotificationCount(callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | ---------------------- | ---- | ---------------------- | -| callback | AsyncCallback\ | 是 | 获取活动通知数回调函数。 | +| callback | AsyncCallback\ | 是 | 获取未删除通知数回调函数。 | **示例:** @@ -1932,21 +1925,21 @@ Notification.getActiveNotificationCount(getActiveNotificationCountCallback); getActiveNotificationCount(): Promise\ -获取当前应用的活动通知数(Promise形式)。 +获取当前应用未删除的通知数(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification **返回值:** -| 类型 | 说明 | -| ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\ | 以Promise形式返回获取当前应用的活动通知数。 | +| 类型 | 说明 | +| ----------------- | ------------------------------------------- | +| Promise\ | 以Promise形式返回获取当前应用未删除通知数。 | **示例:** ```js Notification.getActiveNotificationCount().then((data) => { - console.info("getActiveNotificationCount sucess, data: " + JSON.stringify(data)); + console.info("getActiveNotificationCount success, data: " + JSON.stringify(data)); }); ``` @@ -1956,7 +1949,7 @@ Notification.getActiveNotificationCount().then((data) => { getActiveNotifications(callback: AsyncCallback>): void -获取当前应用的活动通知(Callback形式)。 +获取当前应用未删除的通知列表(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1964,7 +1957,7 @@ getActiveNotifications(callback: AsyncCallback>): v | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------------------------------------------ | ---- | ------------------------------ | -| callback | AsyncCallback> | 是 | 获取当前应用的活动通知回调函数。 | +| callback | AsyncCallback> | 是 | 获取当前应用通知列表回调函数。 | **示例:** @@ -1986,21 +1979,21 @@ Notification.getActiveNotifications(getActiveNotificationsCallback); getActiveNotifications(): Promise\\> -获取当前应用的活动通知(Promise形式)。 +获取当前应用未删除的通知列表(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification **返回值:** -| 类型 | 说明 | -| ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\\> | 以Promise形式返回获取当前应用的活动通知。 | +| 类型 | 说明 | +| ------------------------------------------------------------ | --------------------------------------- | +| Promise\\> | 以Promise形式返回获取当前应用通知列表。 | **示例:** ```js Notification.getActiveNotifications().then((data) => { - console.info("removeGroupByBundle sucess, data: " + JSON.stringify(data)); + console.info("removeGroupByBundle success, data: " + JSON.stringify(data)); }); ``` @@ -2010,7 +2003,7 @@ Notification.getActiveNotifications().then((data) => { cancelGroup(groupName: string, callback: AsyncCallback\): void -取消本应用指定组通知(Callback形式)。 +取消本应用指定组下的通知(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2018,8 +2011,8 @@ cancelGroup(groupName: string, callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | --------- | --------------------- | ---- | ---------------------------- | -| groupName | string | 是 | 指定通知组名称。 | -| callback | AsyncCallback\ | 是 | 取消本应用指定组通知回调函数。 | +| groupName | string | 是 | 通知组名称,此名称需要在发布通知时通过[NotificationRequest](#notificationrequest)对象指定。 | +| callback | AsyncCallback\ | 是 | 取消本应用指定组下通知的回调函数。 | **示例:** @@ -2043,7 +2036,7 @@ Notification.cancelGroup(groupName, cancelGroupCallback); cancelGroup(groupName: string): Promise\ -取消本应用指定组通知(Promise形式)。 +取消本应用指定组下的通知(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2051,14 +2044,14 @@ cancelGroup(groupName: string): Promise\ | 参数名 | 类型 | 必填 | 说明 | | --------- | ------ | ---- | -------------- | -| groupName | string | 是 | 指定通知组名称。 | +| groupName | string | 是 | 通知组名称。 | **示例:** ```js var groupName = "GroupName"; Notification.cancelGroup(groupName).then(() => { - console.info("cancelGroup sucess"); + console.info("cancelGroup success"); }); ``` @@ -2068,7 +2061,7 @@ Notification.cancelGroup(groupName).then(() => { removeGroupByBundle(bundle: BundleOption, groupName: string, callback: AsyncCallback\): void -删除指定应用指定组通知(Callback形式)。 +删除指定应用的指定组下的通知(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2080,9 +2073,9 @@ removeGroupByBundle(bundle: BundleOption, groupName: string, callback: AsyncCall | 参数名 | 类型 | 必填 | 说明 | | --------- | --------------------- | ---- | ---------------------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | -| groupName | string | 是 | 指定通知组名称。 | -| callback | AsyncCallback\ | 是 | 删除本应用指定组通知回调函数。 | +| bundle | [BundleOption](#bundleoption) | 是 | 应用的包信息。 | +| groupName | string | 是 | 通知组名称。 | +| callback | AsyncCallback\ | 是 | 删除指定应用指定组下通知的回调函数。 | **示例:** @@ -2107,7 +2100,7 @@ Notification.removeGroupByBundle(bundleOption, groupName, removeGroupByBundleCal removeGroupByBundle(bundle: BundleOption, groupName: string): Promise\ -删除指定应用指定组通知(Promise形式)。 +删除指定应用的指定组下的通知(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2119,8 +2112,8 @@ removeGroupByBundle(bundle: BundleOption, groupName: string): Promise\ | 参数名 | 类型 | 必填 | 说明 | | --------- | ------------ | ---- | -------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | -| groupName | string | 是 | 指定通知组名称。 | +| bundle | [BundleOption](#bundleoption) | 是 | 应用的包信息。 | +| groupName | string | 是 | 通知组名称。 | **示例:** @@ -2128,7 +2121,7 @@ removeGroupByBundle(bundle: BundleOption, groupName: string): Promise\ var bundleOption = {bundle: "Bundle"}; var groupName = "GroupName"; Notification.removeGroupByBundle(bundleOption, groupName).then(() => { - console.info("removeGroupByBundle sucess"); + console.info("removeGroupByBundle success"); }); ``` @@ -2179,7 +2172,7 @@ Notification.setDoNotDisturbDate(doNotDisturbDate, setDoNotDisturbDateCallback); setDoNotDisturbDate(date: DoNotDisturbDate): Promise\ -设置免打扰时间接口(Promise形式)。 +设置免打扰时间(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2202,7 +2195,7 @@ var doNotDisturbDate = { end: new Date(2021, 11, 15, 18, 0) } Notification.setDoNotDisturbDate(doNotDisturbDate).then(() => { - console.info("setDoNotDisturbDate sucess"); + console.info("setDoNotDisturbDate success"); }); ``` @@ -2224,7 +2217,7 @@ setDoNotDisturbDate(date: DoNotDisturbDate, userId: number, callback: AsyncCallb | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | ---------------------- | | date | [DoNotDisturbDate](#donotdisturbdate8) | 是 | 免打扰时间选项。 | -| userId | number | 是 | 设置免打扰事件的用户ID。 | +| userId | number | 是 | 设置免打扰时间的用户ID。 | | callback | AsyncCallback\ | 是 | 设置免打扰时间回调函数。 | **示例:** @@ -2245,7 +2238,6 @@ var doNotDisturbDate = { } var userId = 1 - Notification.setDoNotDisturbDate(doNotDisturbDate, userId, setDoNotDisturbDateCallback); ``` @@ -2255,7 +2247,7 @@ Notification.setDoNotDisturbDate(doNotDisturbDate, userId, setDoNotDisturbDateCa setDoNotDisturbDate(date: DoNotDisturbDate, userId: number): Promise\ -指定用户设置免打扰时间接口(Promise形式)。 +指定用户设置免打扰时间(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2268,7 +2260,7 @@ setDoNotDisturbDate(date: DoNotDisturbDate, userId: number): Promise\ | 参数名 | 类型 | 必填 | 说明 | | ------ | ---------------- | ---- | -------------- | | date | [DoNotDisturbDate](#donotdisturbdate8) | 是 | 免打扰时间选项。 | -| userId | number | 是 | 设置免打扰事件的用户ID。 | +| userId | number | 是 | 设置免打扰时间的用户ID。 | **示例:** @@ -2282,7 +2274,7 @@ var doNotDisturbDate = { var userId = 1 Notification.setDoNotDisturbDate(doNotDisturbDate, userId).then(() => { - console.info("setDoNotDisturbDate sucess"); + console.info("setDoNotDisturbDate success"); }); ``` @@ -2291,7 +2283,7 @@ Notification.setDoNotDisturbDate(doNotDisturbDate, userId).then(() => { getDoNotDisturbDate(callback: AsyncCallback\): void -查询免打扰时间接口(Callback形式)。 +查询免打扰时间(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2308,7 +2300,7 @@ getDoNotDisturbDate(callback: AsyncCallback\): void **示例:** ```js -function getDoNotDisturbDateCallback(err,data) { +function getDoNotDisturbDateCallback(err, data) { if (err.code) { console.info("getDoNotDisturbDate failed " + JSON.stringify(err)); } else { @@ -2325,7 +2317,7 @@ Notification.getDoNotDisturbDate(getDoNotDisturbDateCallback); getDoNotDisturbDate(): Promise\ -查询免打扰时间接口(Promise形式)。 +查询免打扰时间(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2335,15 +2327,15 @@ getDoNotDisturbDate(): Promise\ **返回值:** -| 类型 | 说明 | -| ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\<[DoNotDisturbDate](#donotdisturbdate8)\> | 以Promise形式返回获取查询免打扰时间接口。 | +| 类型 | 说明 | +| ------------------------------------------------- | ----------------------------------------- | +| Promise\<[DoNotDisturbDate](#donotdisturbdate8)\> | 以Promise形式返回获取查询到的免打扰时间。 | **示例:** ```js Notification.getDoNotDisturbDate().then((data) => { - console.info("getDoNotDisturbDate sucess, data: " + JSON.stringify(data)); + console.info("getDoNotDisturbDate success, data: " + JSON.stringify(data)); }); ``` @@ -2352,7 +2344,7 @@ Notification.getDoNotDisturbDate().then((data) => { getDoNotDisturbDate(userId: number, callback: AsyncCallback\): void -指定用户查询免打扰时间接口(Callback形式)。 +查询指定用户的免打扰时间(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2365,7 +2357,7 @@ getDoNotDisturbDate(userId: number, callback: AsyncCallback\) | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------------------- | ---- | ---------------------- | | callback | AsyncCallback\<[DoNotDisturbDate](#donotdisturbdate8)\> | 是 | 查询免打扰时间回调函数。 | -| userId | number | 是 | 设置免打扰事件的用户ID。 | +| userId | number | 是 | 用户ID。 | **示例:** @@ -2389,7 +2381,7 @@ Notification.getDoNotDisturbDate(userId, getDoNotDisturbDateCallback); getDoNotDisturbDate(userId: number): Promise\ -指定用户查询免打扰时间接口(Promise形式)。 +查询指定用户的免打扰时间(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2401,13 +2393,13 @@ getDoNotDisturbDate(userId: number): Promise\ | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------------------- | ---- | ---------------------- | -| userId | number | 是 | 设置免打扰事件的用户ID。 | +| userId | number | 是 | 用户ID。 | **返回值:** -| 类型 | 说明 | -| ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\<[DoNotDisturbDate](#donotdisturbdate8)\> | 以Promise形式返回获取查询免打扰时间接口。 | +| 类型 | 说明 | +| ------------------------------------------------- | ----------------------------------------- | +| Promise\<[DoNotDisturbDate](#donotdisturbdate8)\> | 以Promise形式返回获取查询到的免打扰时间。 | **示例:** @@ -2415,7 +2407,7 @@ getDoNotDisturbDate(userId: number): Promise\ var userId = 1 Notification.getDoNotDisturbDate(userId).then((data) => { - console.info("getDoNotDisturbDate sucess, data: " + JSON.stringify(data)); + console.info("getDoNotDisturbDate success, data: " + JSON.stringify(data)); }); ``` @@ -2424,7 +2416,7 @@ Notification.getDoNotDisturbDate(userId).then((data) => { supportDoNotDisturbMode(callback: AsyncCallback\): void -查询是否支持勿扰模式功能(Callback形式)。 +查询是否支持免打扰功能(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2436,7 +2428,7 @@ supportDoNotDisturbMode(callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------ | ---- | -------------------------------- | -| callback | AsyncCallback\ | 是 | 查询是否支持勿扰模式功能回调函数。 | +| callback | AsyncCallback\ | 是 | 查询是否支持免打扰功能回调函数。 | **示例:** @@ -2458,7 +2450,7 @@ Notification.supportDoNotDisturbMode(supportDoNotDisturbModeCallback); supportDoNotDisturbMode(): Promise\ -查询是否支持勿扰模式功能(Promise形式)。 +查询是否支持免打扰功能(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2470,13 +2462,13 @@ supportDoNotDisturbMode(): Promise\ | 类型 | 说明 | | ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\ | 以Promise形式返回获取是否支持勿扰模式功能的结果。 | +| Promise\ | 以Promise形式返回获取是否支持免打扰功能的结果。 | **示例:** ```js Notification.supportDoNotDisturbMode().then((data) => { - console.info("supportDoNotDisturbMode sucess, data: " + JSON.stringify(data)); + console.info("supportDoNotDisturbMode success, data: " + JSON.stringify(data)); }); ``` @@ -2567,7 +2559,7 @@ function requestEnableNotificationCallback(err) { if (err.code) { console.info("requestEnableNotification failed " + JSON.stringify(err)); } else { - + console.info("requestEnableNotification success"); } }; @@ -2587,10 +2579,9 @@ requestEnableNotification(): Promise\ **示例:** ```javascript -Notification.requestEnableNotification() - .then(() => { - console.info("requestEnableNotification sucess"); - }); +Notification.requestEnableNotification().then(() => { + console.info("requestEnableNotification success"); +}); ``` @@ -2610,7 +2601,7 @@ enableDistributed(enable: boolean, callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------ | ---- | -------------------------- | -| enable | boolean | 是 | 是否支持。
true 支持。
false 不支持。| +| enable | boolean | 是 | 是否支持。 | | callback | AsyncCallback\ | 是 | 设置设备是否支持分布式通知的回调函数。 | **示例:** @@ -2647,17 +2638,15 @@ enableDistributed(enable: boolean): Promise\ | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------ | ---- | -------------------------- | -| enable | boolean | 是 | 是否支持。
true 支持。
false 不支持。| +| enable | boolean | 是 | 是否支持。 | **示例:** ```javascript var enable = true - -Notification.enableDistributed(enable) - .then(() => { - console.info("enableDistributed sucess"); - }); +Notification.enableDistributed(enable).then(() => { + console.info("enableDistributed success"); +}); ``` @@ -2665,7 +2654,7 @@ Notification.enableDistributed(enable) isDistributedEnabled(callback: AsyncCallback\): void -获取设备是否支持分布式通知(Callback形式)。 +查询设备是否支持分布式通知(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2695,23 +2684,22 @@ Notification.isDistributedEnabled(isDistributedEnabledCallback); isDistributedEnabled(): Promise\ -获取设备是否支持分布式通知(Promise形式)。 +查询设备是否支持分布式通知(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification **返回值:** -| 类型 | 说明 | -| ------------------ | --------------- | -| Promise\ | Promise方式返回设备是否支持分布式通知的结果。
true 支持。
false 不支持。 | +| 类型 | 说明 | +| ------------------ | --------------------------------------------- | +| Promise\ | Promise方式返回设备是否支持分布式通知的结果。 | **示例:** ```javascript -Notification.isDistributedEnabled() - .then((data) => { - console.info("isDistributedEnabled sucess, data: " + JSON.stringify(data)); - }); +Notification.isDistributedEnabled().then((data) => { + console.info("isDistributedEnabled success, data: " + JSON.stringify(data)); +}); ``` @@ -2719,7 +2707,7 @@ Notification.isDistributedEnabled() enableDistributedByBundle(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void -根据应用的包设置应用程序是否支持分布式通知(Callback形式)。 +设置指定应用是否支持分布式通知(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2731,7 +2719,7 @@ enableDistributedByBundle(bundle: BundleOption, enable: boolean, callback: Async | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------ | ---- | -------------------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 应用的包。 | +| bundle | [BundleOption](#bundleoption) | 是 | 应用的包信息。 | | enable | boolean | 是 | 是否支持。 | | callback | AsyncCallback\ | 是 | 应用程序是否支持分布式通知的回调函数。 | @@ -2761,7 +2749,7 @@ Notification.enableDistributedByBundle(bundle, enable, enableDistributedByBundle enableDistributedByBundle(bundle: BundleOption, enable: boolean): Promise\ -根据应用的包设置应用程序是否支持分布式通知(Promise形式)。 +设置指定应用是否支持分布式通知(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2784,11 +2772,9 @@ var bundle = { } var enable = true - -Notification.enableDistributedByBundle(bundle, enable) - .then(() => { - console.info("enableDistributedByBundle sucess"); - }); +Notification.enableDistributedByBundle(bundle, enable).then(() => { + console.info("enableDistributedByBundle success"); +}); ``` ## Notification.isDistributedEnabledByBundle8+ @@ -2808,7 +2794,7 @@ isDistributedEnabledByBundle(bundle: BundleOption, callback: AsyncCallback\ | 是 | 应用程序是否支持分布式通知的回调函数。 | +| callback | AsyncCallback\ | 是 | 查询指定应用是否支持分布式通知的回调函数。 | **示例:** @@ -2834,7 +2820,7 @@ Notification.isDistributedEnabledByBundle(bundle, isDistributedEnabledByBundleCa isDistributedEnabledByBundle(bundle: BundleOption): Promise\ -根据应用的包获取应用程序是否支持分布式通知(Promise形式)。 +查询指定应用是否支持分布式通知(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2850,9 +2836,9 @@ isDistributedEnabledByBundle(bundle: BundleOption): Promise\ **返回值:** -| 类型 | 说明 | -| ------------------ | --------------- | -| Promise\ | Promise方式返回应用程序是否支持分布式通知的结果。
true 支持。
false 不支持。 | +| 类型 | 说明 | +| ------------------ | ------------------------------------------------- | +| Promise\ | Promise方式返回指定应用是否支持分布式通知的结果。 | **示例:** @@ -2861,10 +2847,9 @@ var bundle = { bundle: "bundleName1", } -Notification.isDistributedEnabledByBundle(bundle) - .then((data) => { - console.info("isDistributedEnabledByBundle sucess, data: " + JSON.stringify(data)); - }); +Notification.isDistributedEnabledByBundle(bundle).then((data) => { + console.info("isDistributedEnabledByBundle success, data: " + JSON.stringify(data)); +}); ``` @@ -2884,7 +2869,7 @@ getDeviceRemindType(callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------------------- | ---- | -------------------------- | -| callback | AsyncCallback\<[DeviceRemindType](#deviceremindtype8)\> | 是 | 获取通知的提醒方式的回调函数。 | +| callback | AsyncCallback\<[DeviceRemindType](#deviceremindtype8)\> | 是 | 获取通知提醒方式的回调函数。 | **示例:** @@ -2918,15 +2903,14 @@ getDeviceRemindType(): Promise\ | 类型 | 说明 | | ------------------ | --------------- | -| Promise\<[DeviceRemindType](#deviceremindtype8)\> | Promise方式返回通知的提醒方式的结果。 | +| Promise\<[DeviceRemindType](#deviceremindtype8)\> | Promise方式返回获取通知提醒方式的结果。 | **示例:** ```javascript -Notification.getDeviceRemindType() - .then((data) => { - console.info("getDeviceRemindType sucess, data: " + JSON.stringify(data)); - }); +Notification.getDeviceRemindType().then((data) => { + console.info("getDeviceRemindType success, data: " + JSON.stringify(data)); +}); ``` @@ -2944,18 +2928,18 @@ publishAsBundle(request: NotificationRequest, representativeBundle: string, user **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------------------- | ------------------------------------------- | ---- | --------------------------------------------- | -| request | [NotificationRequest](#notificationrequest) | 是 | 设置要发布通知内容的NotificationRequest对象。 | -| representativeBundle | string | 是 | 被代理应用的包名。 | -| userId | number | 是 | 接收通知用户的Id。 | -| callback | AsyncCallback | 是 | 发布代理通知的回调方法。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------------------- | ------------------------------------------- | ---- | ---------------------------------------- | +| request | [NotificationRequest](#notificationrequest) | 是 | 用于设置要发布通知的内容和相关配置信息。 | +| representativeBundle | string | 是 | 被代理应用的包名。 | +| userId | number | 是 | 用户ID。 | +| callback | AsyncCallback | 是 | 发布代理通知的回调方法。 | **示例:** ```js -//publishAsBundle回调 -function publishAsBundleCallback(err) { +// publishAsBundle回调 +function callback(err) { if (err.code) { console.info("publishAsBundle failed " + JSON.stringify(err)); } else { @@ -2964,10 +2948,10 @@ function publishAsBundleCallback(err) { } // 被代理应用的包名 let representativeBundle = "com.example.demo" -// 接收通知的用户ID +// 用户ID let userId = 100 -//通知Request对象 -let notificationRequest = { +// NotificationRequest对象 +let request = { id: 1, content: { contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, @@ -2979,7 +2963,7 @@ let notificationRequest = { } } -Notification.publishAsBundle(notificationRequest, representativeBundle, userId, publishAsBundleCallback); +Notification.publishAsBundle(request, representativeBundle, userId, callback); ``` ## Notification.publishAsBundle9+ @@ -2999,19 +2983,19 @@ publishAsBundle(request: NotificationRequest, representativeBundle: string, user | 参数名 | 类型 | 必填 | 说明 | | -------------------- | ------------------------------------------- | ---- | --------------------------------------------- | -| request | [NotificationRequest](#notificationrequest) | 是 | 设置要发布通知内容的NotificationRequest对象。 | +| request | [NotificationRequest](#notificationrequest) | 是 | 用于设置要发布通知的内容和相关配置信息。 | | representativeBundle | string | 是 | 被代理应用的包名。 | -| userId | number | 是 | 接收通知用户的Id。 | +| userId | number | 是 | 用户ID。 | **示例:** ```js // 被代理应用的包名 let representativeBundle = "com.example.demo" -// 接收通知的用户ID +// 用户ID let userId = 100 -//通知Request对象 -var notificationRequest = { +// NotificationRequest对象 +var request = { id: 1, content: { contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, @@ -3023,8 +3007,8 @@ var notificationRequest = { } } -Notification.publishAsBundle(notificationRequest, representativeBundle, userId).then(() => { - console.info("publishAsBundle sucess"); +Notification.publishAsBundle(request, representativeBundle, userId).then(() => { + console.info("publishAsBundle success"); }); ``` @@ -3048,13 +3032,13 @@ cancelAsBundle(id: number, representativeBundle: string, userId: number, callbac | -------------------- | ------------- | ---- | ------------------------ | | id | number | 是 | 通知ID。 | | representativeBundle | string | 是 | 被代理应用的包名。 | -| userId | number | 是 | 接收通知用户的Id。 | +| userId | number | 是 | 用户ID。 | | callback | AsyncCallback | 是 | 取消代理通知的回调方法。 | **示例:** ```js -//cancelAsBundle +// cancelAsBundle function cancelAsBundleCallback(err) { if (err.code) { console.info("cancelAsBundle failed " + JSON.stringify(err)); @@ -3064,7 +3048,7 @@ function cancelAsBundleCallback(err) { } // 被代理应用的包名 let representativeBundle = "com.example.demo" -// 接收通知的用户ID +// 用户ID let userId = 100 Notification.cancelAsBundle(0, representativeBundle, userId, cancelAsBundleCallback); @@ -3074,7 +3058,7 @@ Notification.cancelAsBundle(0, representativeBundle, userId, cancelAsBundleCallb cancelAsBundle(id: number, representativeBundle: string, userId: number): Promise\ -发布代理通知(Promise形式)。 +取消代理通知(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -3090,14 +3074,14 @@ cancelAsBundle(id: number, representativeBundle: string, userId: number): Promis | -------------------- | ------ | ---- | ------------------ | | id | number | 是 | 通知ID。 | | representativeBundle | string | 是 | 被代理应用的包名。 | -| userId | number | 是 | 接收通知用户的Id。 | +| userId | number | 是 | 用户ID。 | **示例:** ```js // 被代理应用的包名 let representativeBundle = "com.example.demo" -// 接收通知的用户ID +// 用户ID let userId = 100 Notification.cancelAsBundle(0, representativeBundle, userId).then(() => { @@ -3109,7 +3093,7 @@ Notification.cancelAsBundle(0, representativeBundle, userId).then(() => { enableNotificationSlot(bundle: BundleOption, type: SlotType, enable: boolean, callback: AsyncCallback\): void -设定指定类型的渠道使能状态(Callback形式)。 +设置指定应用的指定渠道类型的使能状态(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -3121,15 +3105,15 @@ enableNotificationSlot(bundle: BundleOption, type: SlotType, enable: boolean, ca | 参数名 | 类型 | 必填 | 说明 | | -------- | ----------------------------- | ---- | ---------------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 应用的包信息。 | | type | [SlotType](#slottype) | 是 | 指定渠道类型。 | | enable | boolean | 是 | 使能状态。 | -| callback | AsyncCallback\ | 是 | 设定渠道使能回调函数。 | +| callback | AsyncCallback\ | 是 | 设置渠道使能回调函数。 | **示例:** ```js -//enableNotificationSlot +// enableNotificationSlot function enableSlotCallback(err) { if (err.code) { console.info("enableNotificationSlot failed " + JSON.stringify(err)); @@ -3149,7 +3133,7 @@ Notification.enableNotificationSlot( enableNotificationSlot(bundle: BundleOption, type: SlotType, enable: boolean): Promise\ -设定指定类型的渠道使能状态(Promise形式)。 +设置指定应用的指定渠道类型的使能状态(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -3161,27 +3145,25 @@ enableNotificationSlot(bundle: BundleOption, type: SlotType, enable: boolean): P | 参数名 | 类型 | 必填 | 说明 | | ------ | ----------------------------- | ---- | -------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | -| type | [SlotType](#slottype) | 是 | 指定渠道类型。 | +| bundle | [BundleOption](#bundleoption) | 是 | 应用的包信息。 | +| type | [SlotType](#slottype) | 是 | 渠道类型。 | | enable | boolean | 是 | 使能状态。 | **示例:** ```js -//enableNotificationSlot -Notification.enableNotificationSlot( - { bundle: "ohos.samples.notification", }, - Notification.SlotType.SOCIAL_COMMUNICATION, - true).then(() => { - console.info("enableNotificationSlot sucess"); - }); +// enableNotificationSlot +Notification.enableNotificationSlot({ bundle: "ohos.samples.notification", }, + Notification.SlotType.SOCIAL_COMMUNICATION,true).then(() => { + console.info("enableNotificationSlot success"); +}); ``` ## Notification.isNotificationSlotEnabled 9+ isNotificationSlotEnabled(bundle: BundleOption, type: SlotType, callback: AsyncCallback\): void -获取指定类型的渠道使能状态(Callback形式)。 +获取指定应用的指定渠道类型的使能状态(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -3193,14 +3175,14 @@ isNotificationSlotEnabled(bundle: BundleOption, type: SlotType, callback: AsyncC | 参数名 | 类型 | 必填 | 说明 | | -------- | ----------------------------- | ---- | ---------------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | -| type | [SlotType](#slottype) | 是 | 指定渠道类型。 | -| callback | AsyncCallback\ | 是 | 设定渠道使能回调函数。 | +| bundle | [BundleOption](#bundleoption) | 是 | 应用的包信息。 | +| type | [SlotType](#slottype) | 是 | 渠道类型。 | +| callback | AsyncCallback\ | 是 | 获取渠道使能状态回调函数。 | **示例:** ```js -//isNotificationSlotEnabled +// isNotificationSlotEnabled function getEnableSlotCallback(err, data) { if (err.code) { console.info("isNotificationSlotEnabled failed " + JSON.stringify(err)); @@ -3219,7 +3201,7 @@ Notification.isNotificationSlotEnabled( isNotificationSlotEnabled(bundle: BundleOption, type: SlotType): Promise\ -获取指定类型的渠道使能状态(Promise形式)。 +获取指定应用的指定渠道类型的使能状态(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -3231,25 +3213,23 @@ isNotificationSlotEnabled(bundle: BundleOption, type: SlotType): Promise\ | 以Promise形式返回指定类型的渠道使能状态。 | +| 类型 | 说明 | +| ------------------ | ------------------------------- | +| Promise\ | 以Promise形式返回渠道使能状态。 | **示例:** ```js -//isNotificationSlotEnabled -Notification.isNotificationSlotEnabled( - { bundle: "ohos.samples.notification", }, - Notification.SlotType.SOCIAL_COMMUNICATION - ).then((data) => { - console.info("isNotificationSlotEnabled success, data: " + JSON.stringify(data)); - }); +// isNotificationSlotEnabled +Notification.isNotificationSlotEnabled({ bundle: "ohos.samples.notification", }, + Notification.SlotType.SOCIAL_COMMUNICATION).then((data) => { + console.info("isNotificationSlotEnabled success, data: " + JSON.stringify(data)); +}); ``` @@ -3269,8 +3249,8 @@ setSyncNotificationEnabledWithoutApp(userId: number, enable: boolean, callback: | 参数名 | 类型 | 必填 | 说明 | | ------ | ----------------------------- | ---- | -------------- | -| userId | number | 是 | 用户Id。 | -| enable | boolean | 是 | 是否启用。
true:启用。
false:禁用。 | +| userId | number | 是 | 用户ID。 | +| enable | boolean | 是 | 是否启用。 | | callback | AsyncCallback\ | 是 | 设置是否将通知同步到未安装应用程序的设备的回调函数。 | **示例:** @@ -3279,7 +3259,7 @@ setSyncNotificationEnabledWithoutApp(userId: number, enable: boolean, callback: let userId = 100; let enable = true; -function setSyncNotificationEnabledWithoutAppCallback(err) { +function callback(err) { if (err.code) { console.info("setSyncNotificationEnabledWithoutApp failed " + JSON.stringify(err)); } else { @@ -3287,7 +3267,7 @@ function setSyncNotificationEnabledWithoutAppCallback(err) { } } -Notification.setSyncNotificationEnabledWithoutApp(userId, enable, setSyncNotificationEnabledWithoutAppCallback); +Notification.setSyncNotificationEnabledWithoutApp(userId, enable, callback); ``` @@ -3307,8 +3287,8 @@ setSyncNotificationEnabledWithoutApp(userId: number, enable: boolean): Promise\< | 参数名 | 类型 | 必填 | 说明 | | ------ | ----------------------------- | ---- | -------------- | -| userId | number | 是 | 用户Id。 | -| enable | boolean | 是 | 是否启用。
true:启用。
false:禁用。 | +| userId | number | 是 | 用户ID。 | +| enable | boolean | 是 | 是否启用。 | **返回值:** @@ -3322,13 +3302,11 @@ setSyncNotificationEnabledWithoutApp(userId: number, enable: boolean): Promise\< let userId = 100; let enable = true; -Notification.setSyncNotificationEnabledWithoutApp(userId, enable) - .then(() => { - console.info('setSyncNotificationEnabledWithoutApp'); - }) - .catch((err) => { - console.info('setSyncNotificationEnabledWithoutApp, err:', err); - }); +Notification.setSyncNotificationEnabledWithoutApp(userId, enable).then(() => { + console.info('setSyncNotificationEnabledWithoutApp success'); +}).catch((err) => { + console.info('setSyncNotificationEnabledWithoutApp, err:' + JSON.stringify(err)); +}); ``` @@ -3336,7 +3314,7 @@ Notification.setSyncNotificationEnabledWithoutApp(userId, enable) getSyncNotificationEnabledWithoutApp(userId: number, callback: AsyncCallback\): void -获取是否同步通知到未安装应用程序的设备(callback形式)。 +获取同步通知到未安装应用程序设备的开关是否开启(callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -3348,19 +3326,19 @@ getSyncNotificationEnabledWithoutApp(userId: number, callback: AsyncCallback\ | 是 | 设置是否将通知同步到未安装应用程序的设备的回调函数。
true: 是。
false: 否。 | +| userId | number | 是 | 用户ID。 | +| callback | AsyncCallback\ | 是 | 获取同步通知到未安装应用程序设备的开关是否开启的回调函数。 | **示例:** ```js let userId = 100; -function getSyncNotificationEnabledWithoutAppCallback(data, err) { +function getSyncNotificationEnabledWithoutAppCallback(err, data) { if (err) { - console.info('getSyncNotificationEnabledWithoutAppCallback, err' + err); + console.info('getSyncNotificationEnabledWithoutAppCallback, err:' + err); } else { - console.info('getSyncNotificationEnabledWithoutAppCallback, data' + data); + console.info('getSyncNotificationEnabledWithoutAppCallback, data:' + data); } } @@ -3372,7 +3350,7 @@ Notification.getSyncNotificationEnabledWithoutApp(userId, getSyncNotificationEna getSyncNotificationEnabledWithoutApp(userId: number): Promise\ -获取是否同步通知到未安装应用程序的设备(Promise形式)。 +获取同步通知到未安装应用程序设备的开关是否开启(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -3384,33 +3362,30 @@ getSyncNotificationEnabledWithoutApp(userId: number): Promise\ | 参数名 | 类型 | 必填 | 说明 | | ------ | ----------------------------- | ---- | -------------- | -| userId | number | 是 | 用户Id。 | +| userId | number | 是 | 用户ID。 | **返回值:** -| 类型 | 说明 | -| ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\ | 以Promise形式返回获取是否同步通知到未安装应用程序的设备的结果。
true: 是。
false: 否。 | +| 类型 | 说明 | +| ------------------ | ------------------------------------------------------------ | +| Promise\ | 以Promise形式返回获取同步通知到未安装应用程序设备的开关是否开启的结果。 | **示例:** ```js let userId = 100; - -Notification.getSyncNotificationEnabledWithoutApp(userId) - .then((data) => { - console.info('getSyncNotificationEnabledWithoutApp, data:', data); - }) - .catch((err) => { - console.info('getSyncNotificationEnabledWithoutApp, err:', err); - }); +Notification.getSyncNotificationEnabledWithoutApp(userId).then((data) => { + console.info('getSyncNotificationEnabledWithoutApp, data:' + data); +}).catch((err) => { + console.info('getSyncNotificationEnabledWithoutApp, err:' + err); +}); ``` ## NotificationSubscriber -提供订阅者接收到新通知或取消通知时的回调方法。 +作为订阅通知接口[subscribe](#notificationsubscribe)的入参,提供订阅者接收到新通知、取消通知等的回调方法。 **系统API**:此接口为系统接口,三方应用不支持调用。 @@ -3418,7 +3393,7 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) onConsume?: (data: [SubscribeCallbackData](#subscribecallbackdata)) => void -接收通知回调函数。 +接收到新通知的回调函数。 **系统能力**:SystemCapability.Notification.Notification @@ -3428,7 +3403,7 @@ onConsume?: (data: [SubscribeCallbackData](#subscribecallbackdata)) => void | 参数名 | 类型 | 必填 | 说明 | | ------------ | ------------------------ | ---- | -------------------------- | -| data | [SubscribeCallbackData](#subscribecallbackdata) | 是 | 回调返回接收到的通知信息。 | +| data | [SubscribeCallbackData](#subscribecallbackdata) | 是 | 新接收到的通知信息。 | **示例:** @@ -3442,7 +3417,6 @@ function subscribeCallback(err) { }; function onConsumeCallback(data) { - console.info('===> onConsume in test'); let req = data.request; console.info('===> onConsume callback req.id:' + req.id); }; @@ -3458,7 +3432,7 @@ Notification.subscribe(subscriber, subscribeCallback); onCancel?:(data: [SubscribeCallbackData](#subscribecallbackdata)) => void -删除通知回调函数。 +取消通知的回调函数。 **系统能力**:SystemCapability.Notification.Notification @@ -3468,7 +3442,7 @@ onCancel?:(data: [SubscribeCallbackData](#subscribecallbackdata)) => void | 参数名 | 类型 | 必填 | 说明 | | ------------ | ------------------------ | ---- | -------------------------- | -| data | [SubscribeCallbackData](#subscribecallbackdata) | 是 | 回调返回接收到的通知信息。 | +| data | [SubscribeCallbackData](#subscribecallbackdata) | 是 | 需要取消的通知信息。 | **示例:** @@ -3482,7 +3456,6 @@ function subscribeCallback(err) { }; function onCancelCallback(data) { - console.info('===> onCancel in test'); let req = data.request; console.info('===> onCancel callback req.id:' + req.id); } @@ -3498,7 +3471,7 @@ Notification.subscribe(subscriber, subscribeCallback); onUpdate?:(data: [NotificationSortingMap](#notificationsortingmap)) => void -更新通知排序回调函数。 +更新通知排序的回调函数。 **系统能力**:SystemCapability.Notification.Notification @@ -3508,7 +3481,7 @@ onUpdate?:(data: [NotificationSortingMap](#notificationsortingmap)) => void | 参数名 | 类型 | 必填 | 说明 | | ------------ | ------------------------ | ---- | -------------------------- | -| data | [NotificationSortingMap](#notificationsortingmap) | 是 | 回调返回接收到的通知信息。 | +| data | [NotificationSortingMap](#notificationsortingmap) | 是 | 最新的通知排序列表。 | **示例:** @@ -3521,8 +3494,8 @@ function subscribeCallback(err) { } }; -function onUpdateCallback() { - console.info('===> onUpdate in test'); +function onUpdateCallback(map) { + console.info('===> onUpdateCallback map:' + JSON.stringify(map)); } var subscriber = { @@ -3536,7 +3509,7 @@ Notification.subscribe(subscriber, subscribeCallback); onConnect?:() => void -注册订阅回调函数。 +订阅完成的回调函数。 **系统能力**:SystemCapability.Notification.Notification @@ -3568,7 +3541,7 @@ Notification.subscribe(subscriber, subscribeCallback); onDisconnect?:() => void -取消订阅回调函数。 +取消订阅的回调函数。 **系统能力**:SystemCapability.Notification.Notification @@ -3584,16 +3557,30 @@ function subscribeCallback(err) { console.info("subscribeCallback"); } }; +function unsubscribeCallback(err) { + if (err.code) { + console.info("unsubscribe failed " + JSON.stringify(err)); + } else { + console.info("unsubscribeCallback"); + } +}; +function onConnectCallback() { + console.info('===> onConnect in test'); +} function onDisconnectCallback() { console.info('===> onDisconnect in test'); } var subscriber = { + onConnect: onConnectCallback, onDisconnect: onDisconnectCallback }; +// 订阅通知后会收到onConnect回调 Notification.subscribe(subscriber, subscribeCallback); +// 取消订阅后会收到onDisconnect回调 +Notification.unsubscribe(subscriber, unsubscribeCallback); ``` ### onDestroy @@ -3632,7 +3619,7 @@ Notification.subscribe(subscriber, subscribeCallback); onDoNotDisturbDateChange?:(mode: notification.[DoNotDisturbDate](#donotdisturbdate8)) => void -免打扰时间选项变更回调函数。 +免打扰时间选项发生变更时的回调函数。 **系统能力**:SystemCapability.Notification.Notification @@ -3654,15 +3641,24 @@ function subscribeCallback(err) { } }; -function onDoNotDisturbDateChangeCallback() { - console.info('===> onDoNotDisturbDateChange in test'); +function onDoNotDisturbDateChangeCallback(mode) { + console.info('===> onDoNotDisturbDateChange:' + mode); } var subscriber = { onDoNotDisturbDateChange: onDoNotDisturbDateChangeCallback }; - Notification.subscribe(subscriber, subscribeCallback); + +var doNotDisturbDate = { + type: Notification.DoNotDisturbType.TYPE_ONCE, + begin: new Date(), + end: new Date(2021, 11, 15, 18, 0) +} +// 设置一个新的免打扰时间选项时触发onDoNotDisturbDateChange回调 +Notification.setDoNotDisturbDate(doNotDisturbDate).then(() => { + console.info("setDoNotDisturbDate sucess"); +}); ``` @@ -3694,16 +3690,23 @@ function subscribeCallback(err) { }; function onEnabledNotificationChangedCallback(callbackData) { - console.info("bundle: ", callbackData.bundle); - console.info("uid: ", callbackData.uid); - console.info("enable: ", callbackData.enable); + console.info("bundle: " + callbackData.bundle); + console.info("uid: " + callbackData.uid); + console.info("enable: " + callbackData.enable); }; var subscriber = { onEnabledNotificationChanged: onEnabledNotificationChangedCallback }; - Notification.subscribe(subscriber, subscribeCallback); + +var bundle = { + bundle: "bundleName1", +} +// 设置指定应用通知使能状态触发onEnabledNotificationChanged回调 +Notification.enableNotification(bundle, false).then(() => { + console.info("enableNotification sucess"); +}); ``` ## SubscribeCallbackData @@ -3715,7 +3718,7 @@ Notification.subscribe(subscriber, subscribeCallback); | 名称 | 类型 | 可读 | 可写 | 说明 | | --------------- | ------------------------------------------------- | ---- | --- | -------- | | request | [NotificationRequest](#notificationrequest) | 是 | 否 | 通知内容。 | -| sortingMap | [NotificationSortingMap](#notificationsortingmap) | 是 | 否 | 排序信息。 | +| sortingMap | [NotificationSortingMap](#notificationsortingmap) | 是 | 否 | 通知排序信息。 | | reason | number | 是 | 否 | 删除原因。 | | sound | string | 是 | 否 | 通知声音。 | | vibrationValues | Array\ | 是 | 否 | 通知震动。 | @@ -3740,13 +3743,11 @@ Notification.subscribe(subscriber, subscribeCallback); **系统API**:此接口为系统接口,三方应用不支持调用。 -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ----- ------------------------------------- || ---- | --- | ------------------------ | -| type | [DoNotDisturbType](#donotdisturbtype8) | 是 | 否 | 指定免打扰设置的时间类型。 | -| begin | Date | 是 | 否 | 指定免打扰设置的起点时间。 | -| end | Date | 是 | 否 | 指定免打扰设置的终点时间。 | - - +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ----- | -------------------------------------- | ---- | ---- | ---------------------- | +| type | [DoNotDisturbType](#donotdisturbtype8) | 是 | 是 | 免打扰设置的时间类型。 | +| begin | Date | 是 | 是 | 免打扰设置的起点时间。 | +| end | Date | 是 | 是 | 免打扰设置的终点时间。 | ## DoNotDisturbType8+ @@ -3793,8 +3794,8 @@ Notification.subscribe(subscriber, subscribeCallback); | 名称 | 类型 | 可读 | 可写 | 说明 | | ------ | ------ |---- | --- | ------ | -| bundle | string | 是 | 是 | 包名。 | -| uid | number | 是 | 是 | 用户id。 | +| bundle | string | 是 | 是 | 应用的包信息。 | +| uid | number | 是 | 是 | 用户ID。 | @@ -3830,7 +3831,7 @@ Notification.subscribe(subscriber, subscribeCallback); | 名称 | 类型 | 可读 | 可写 | 说明 | | --------- | ----------------------------------------------- | --- | ---- | ------------------------- | | title | string | 是 | 是 | 按钮标题。 | -| wantAgent | WantAgent | 是 | 是 | 点击按钮时触发的WantAgent。 | +| wantAgent | [WantAgent](js-apis-app-ability-wantAgent.md) | 是 | 是 | 点击按钮时触发的WantAgent。 | | extras | { [key: string]: any } | 是 | 是 | 按钮扩展信息。 | | userInput8+ | [NotificationUserInput](#notificationuserinput8) | 是 | 是 | 用户输入对象实例。 | @@ -3845,7 +3846,7 @@ Notification.subscribe(subscriber, subscribeCallback); | -------------- | ------ | ---- | ---- | ---------------------------------- | | title | string | 是 | 是 | 通知标题。 | | text | string | 是 | 是 | 通知内容。 | -| additionalText | string | 是 | 是 | 通知次要内容,是对通知内容的补充。 | +| additionalText | string | 是 | 是 | 通知附加内容,是对通知内容的补充。 | ## NotificationLongTextContent @@ -3858,7 +3859,7 @@ Notification.subscribe(subscriber, subscribeCallback); | -------------- | ------ | ---- | --- | -------------------------------- | | title | string | 是 | 是 | 通知标题。 | | text | string | 是 | 是 | 通知内容。 | -| additionalText | string | 是 | 是 | 通知次要内容,是对通知内容的补充。 | +| additionalText | string | 是 | 是 | 通知附加内容,是对通知内容的补充。 | | longText | string | 是 | 是 | 通知的长文本。 | | briefText | string | 是 | 是 | 通知概要内容,是对通知内容的总结。 | | expandedTitle | string | 是 | 是 | 通知展开时的标题。 | @@ -3874,7 +3875,7 @@ Notification.subscribe(subscriber, subscribeCallback); | -------------- | --------------- | --- | --- | -------------------------------- | | title | string | 是 | 是 | 通知标题。 | | text | string | 是 | 是 | 通知内容。 | -| additionalText | string | 是 | 是 | 通知次要内容,是对通知内容的补充。 | +| additionalText | string | 是 | 是 | 通知附加内容,是对通知内容的补充。 | | briefText | string | 是 | 是 | 通知概要内容,是对通知内容的总结。 | | longTitle | string | 是 | 是 | 通知展开时的标题。 | | lines | Array\ | 是 | 是 | 通知的多行文本。 | @@ -3890,10 +3891,10 @@ Notification.subscribe(subscriber, subscribeCallback); | -------------- | -------------- | ---- | --- | -------------------------------- | | title | string | 是 | 是 | 通知标题。 | | text | string | 是 | 是 | 通知内容。 | -| additionalText | string | 是 | 是 | 通知次要内容,是对通知内容的补充。 | +| additionalText | string | 是 | 是 | 通知附加内容,是对通知内容的补充。 | | briefText | string | 是 | 是 | 通知概要内容,是对通知内容的总结。 | | expandedTitle | string | 是 | 是 | 通知展开时的标题。 | -| picture | image.PixelMap | 是 | 是 | 通知的图片内容。 | +| picture | [image.PixelMap](js-apis-image.md#pixelmap7) | 是 | 是 | 通知的图片内容。 | ## NotificationContent @@ -3934,8 +3935,8 @@ Notification.subscribe(subscriber, subscribeCallback); | 名称 | 类型 | 可读 | 可写 | 说明 | | ---------------- | ---------------------- | ---- | ---- | --------------------------------- | -| soundEnabled | NotificationFlagStatus | 是 | 否 | 是否启用声音提示。 | -| vibrationEnabled | NotificationFlagStatus | 是 | 否 | 是否启用振动提醒功能。 | +| soundEnabled | [NotificationFlagStatus](#notificationflagstatus8) | 是 | 否 | 是否启用声音提示。 | +| vibrationEnabled | [NotificationFlagStatus](#notificationflagstatus8) | 是 | 否 | 是否启用振动提醒功能。 | ## NotificationRequest @@ -3954,11 +3955,11 @@ Notification.subscribe(subscriber, subscribeCallback); | deliveryTime | number | 是 | 是 | 通知发送时间。 | | tapDismissed | boolean | 是 | 是 | 通知是否自动清除。 | | autoDeletedTime | number | 是 | 是 | 自动清除的时间。 | -| wantAgent | WantAgent | 是 | 是 | WantAgent封装了应用的行为意图,点击通知时触发该行为。 | +| wantAgent | [WantAgent](js-apis-app-ability-wantAgent.md) | 是 | 是 | WantAgent封装了应用的行为意图,点击通知时触发该行为。 | | extraInfo | {[key: string]: any} | 是 | 是 | 扩展参数。 | -| color | number | 是 | 是 | 通知背景颜色。暂不支持。 | -| colorEnabled | boolean | 是 | 是 | 通知背景颜色是否使能。暂不支持。 | -| isAlertOnce | boolean | 是 | 是 | 设置是否仅有一次此通知警报。 | +| color | number | 是 | 是 | 通知背景颜色。预留能力,暂未支持。 | +| colorEnabled | boolean | 是 | 是 | 通知背景颜色是否使能。预留能力,暂未支持。 | +| isAlertOnce | boolean | 是 | 是 | 设置是否仅有一次此通知提醒。 | | isStopwatch | boolean | 是 | 是 | 是否显示已用时间。 | | isCountDown | boolean | 是 | 是 | 是否显示倒计时时间。 | | isFloatingIcon | boolean | 是 | 是 | 是否显示状态栏图标。 | @@ -3966,8 +3967,8 @@ Notification.subscribe(subscriber, subscribeCallback); | badgeIconStyle | number | 是 | 是 | 通知角标类型。 | | showDeliveryTime | boolean | 是 | 是 | 是否显示分发时间。 | | actionButtons | Array\<[NotificationActionButton](#notificationactionbutton)\> | 是 | 是 | 通知按钮,最多两个按钮。 | -| smallIcon | PixelMap | 是 | 是 | 通知小图标。(可选字段,大小不超过30KB) | -| largeIcon | PixelMap | 是 | 是 | 通知大图标。(可选字段,大小不超过30KB) | +| smallIcon | [image.PixelMap](js-apis-image.md#pixelmap7) | 是 | 是 | 通知小图标。可选字段,大小不超过30KB。 | +| largeIcon | [image.PixelMap](js-apis-image.md#pixelmap7) | 是 | 是 | 通知大图标。可选字段,大小不超过30KB。 | | creatorBundleName | string | 是 | 否 | 创建通知的包名。 | | creatorUid | number | 是 | 否 | 创建通知的UID。 | | creatorPid | number | 是 | 否 | 创建通知的PID。 | @@ -3981,7 +3982,7 @@ Notification.subscribe(subscriber, subscribeCallback); | distributedOption8+ | [DistributedOptions](#distributedoptions8) | 是 | 是 | 分布式通知的选项。 | | deviceId8+ | string | 是 | 否 | 通知源的deviceId。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | | notificationFlags8+ | [NotificationFlags](#notificationflags8) | 是 | 否 | 获取NotificationFlags。 | -| removalWantAgent9+ | WantAgent | 是 | 是 | 当移除通知时,通知将被重定向到的WantAgent实例。 | +| removalWantAgent9+ | [WantAgent](js-apis-app-ability-wantAgent.md) | 是 | 是 | 当移除通知时,通知将被重定向到的WantAgent实例。 | | badgeNumber9+ | number | 是 | 是 | 应用程序图标上显示的通知数。 | ## DistributedOptions8+ @@ -3993,8 +3994,8 @@ Notification.subscribe(subscriber, subscribeCallback); | 名称 | 类型 | 可读 | 可写 | 说明 | | ---------------------- | -------------- | ---- | ---- | ---------------------------------- | | isDistributed | boolean | 是 | 是 | 是否为分布式通知。 | -| supportDisplayDevices | Array\ | 是 | 是 | 可以同步通知到的设备类型。 | -| supportOperateDevices | Array\ | 是 | 是 | 可以打开通知的设备。 | +| supportDisplayDevices | Array\ | 是 | 是 | 可以同步通知到的设备列表。 | +| supportOperateDevices | Array\ | 是 | 是 | 可以打开通知的设备列表。 | | remindType | number | 是 | 否 | 通知的提醒方式。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-notificationManager.md b/zh-cn/application-dev/reference/apis/js-apis-notificationManager.md index 91aea9501f91f557e4b40015353ff6f09baeb9b9..ced38bbef44fcfbdada48f864713fb317efab672 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-notificationManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-notificationManager.md @@ -22,10 +22,10 @@ publish(request: NotificationRequest, callback: AsyncCallback\): void **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------------------------- | ---- | ------------------------------------------- | -| request | [NotificationRequest](#notificationrequest) | 是 | 设置要发布通知内容的NotificationRequest对象。 | -| callback | AsyncCallback\ | 是 | 被指定的回调方法。 | +| request | [NotificationRequest](#notificationrequest) | 是 | 用于设置要发布通知的内容和相关配置信息。 | +| callback | AsyncCallback\ | 是 | 发布通知的回调方法。 | **错误码:** @@ -76,9 +76,9 @@ publish(request: NotificationRequest): Promise\ **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------------------------- | ---- | ------------------------------------------- | -| request | [NotificationRequest](#notificationrequest) | 是 | 设置要发布通知内容的NotificationRequest对象。 | +| request | [NotificationRequest](#notificationrequest) | 是 | 用于设置要发布通知的内容和相关配置信息。 | **错误码:** @@ -94,7 +94,7 @@ publish(request: NotificationRequest): Promise\ **示例:** ```js -//通知Request对象 +// 通知Request对象 var notificationRequest = { notificationId: 1, content: { @@ -107,7 +107,7 @@ var notificationRequest = { } } Notification.publish(notificationRequest).then(() => { - console.info("publish sucess"); + console.info("publish success"); }); ``` @@ -116,7 +116,7 @@ Notification.publish(notificationRequest).then(() => { publish(request: NotificationRequest, userId: number, callback: AsyncCallback\): void -发布通知(callback形式)。 +发布通知给指定的用户(callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -126,10 +126,10 @@ publish(request: NotificationRequest, userId: number, callback: AsyncCallback\ | 是 | 被指定的回调方法。 | **错误码:** @@ -147,7 +147,7 @@ publish(request: NotificationRequest, userId: number, callback: AsyncCallback\ -发布通知(Promise形式)。 +发布通知给指定的用户(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -186,10 +186,10 @@ publish(request: NotificationRequest, userId: number): Promise\ **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | ----------------------------------------- | ---- | ------------------------------------------- | -| request | [NotificationRequest](#notificationrequest) | 是 | 设置要发布通知内容的NotificationRequest对象。 | -| userId | number | 是 | 接收通知用户的Id。 | +| request | [NotificationRequest](#notificationrequest) | 是 | 用于设置要发布通知的内容和相关配置信息。 | +| userId | number | 是 | 用户ID。 | **错误码:** @@ -221,7 +221,7 @@ var notificationRequest = { var userId = 1 Notification.publish(notificationRequest, userId).then(() => { - console.info("publish sucess"); + console.info("publish success"); }); ``` @@ -230,13 +230,13 @@ Notification.publish(notificationRequest, userId).then(() => { cancel(id: number, label: string, callback: AsyncCallback\): void -取消与指定id和label相匹配的已发布通知(callback形式)。 +通过通知ID和通知标签取消已发布的通知(callback形式)。 **系统能力**:SystemCapability.Notification.Notification **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | -------------------- | | id | number | 是 | 通知ID。 | | label | string | 是 | 通知标签。 | @@ -254,7 +254,7 @@ cancel(id: number, label: string, callback: AsyncCallback\): void **示例:** ```js -//cancel回调 +// cancel回调 function cancelCallback(err) { if (err) { console.info("cancel failed " + JSON.stringify(err)); @@ -271,13 +271,13 @@ Notification.cancel(0, "label", cancelCallback) cancel(id: number, label?: string): Promise\ -取消与指定id相匹配的已发布通知,label可以指定也可以不指定(Promise形式)。 +取消与指定通知ID相匹配的已发布通知,label可以指定也可以不指定(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ----- | ------ | ---- | -------- | | id | number | 是 | 通知ID。 | | label | string | 否 | 通知标签。 | @@ -295,7 +295,7 @@ cancel(id: number, label?: string): Promise\ ```js Notification.cancel(0).then(() => { - console.info("cancel sucess"); + console.info("cancel success"); }); ``` @@ -305,13 +305,13 @@ Notification.cancel(0).then(() => { cancel(id: number, callback: AsyncCallback\): void -取消与指定id相匹配的已发布通知(callback形式)。 +取消与指定通知ID相匹配的已发布通知(callback形式)。 **系统能力**:SystemCapability.Notification.Notification **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | -------------------- | | id | number | 是 | 通知ID。 | | callback | AsyncCallback\ | 是 | 表示被指定的回调方法。 | @@ -328,7 +328,7 @@ cancel(id: number, callback: AsyncCallback\): void **示例:** ```js -//cancel回调 +// cancel回调 function cancelCallback(err) { if (err) { console.info("cancel failed " + JSON.stringify(err)); @@ -359,14 +359,14 @@ cancelAll(callback: AsyncCallback\): void **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | -------------------- | | callback | AsyncCallback\ | 是 | 表示被指定的回调方法。 | **示例:** ```js -//cancel回调 +// cancel回调 function cancelAllCallback(err) { if (err) { console.info("cancelAll failed " + JSON.stringify(err)); @@ -399,7 +399,7 @@ cancelAll(): Promise\ ```js Notification.cancelAll().then(() => { - console.info("cancelAll sucess"); + console.info("cancelAll success"); }); ``` @@ -419,7 +419,7 @@ addSlot(slot: NotificationSlot, callback: AsyncCallback\): void **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | -------------------- | | slot | [NotificationSlot](#notificationslot) | 是 | 要创建的通知通道对象。 | | callback | AsyncCallback\ | 是 | 表示被指定的回调方法。 | @@ -435,7 +435,7 @@ addSlot(slot: NotificationSlot, callback: AsyncCallback\): void **示例:** ```js -//addslot回调 +// addslot回调 function addSlotCallBack(err) { if (err) { console.info("addSlot failed " + JSON.stringify(err)); @@ -443,7 +443,7 @@ function addSlotCallBack(err) { console.info("addSlot success"); } } -//通知slot对象 +// 通知slot对象 var notificationSlot = { type: Notification.SlotType.SOCIAL_COMMUNICATION } @@ -466,7 +466,7 @@ addSlot(slot: NotificationSlot): Promise\ **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ---- | ---------------- | ---- | -------------------- | | slot | [NotificationSlot](#notificationslot) | 是 | 要创建的通知通道对象。 | @@ -481,12 +481,12 @@ addSlot(slot: NotificationSlot): Promise\ **示例:** ```js -//通知slot对象 +// 通知slot对象 var notificationSlot = { type: Notification.SlotType.SOCIAL_COMMUNICATION } Notification.addSlot(notificationSlot).then(() => { - console.info("addSlot sucess"); + console.info("addSlot success"); }); ``` @@ -496,13 +496,13 @@ Notification.addSlot(notificationSlot).then(() => { addSlot(type: SlotType, callback: AsyncCallback\): void -创建通知通道(callback形式)。 +创建指定类型的通知通道(callback形式)。 **系统能力**:SystemCapability.Notification.Notification **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | ---------------------- | | type | [SlotType](#slottype) | 是 | 要创建的通知通道的类型。 | | callback | AsyncCallback\ | 是 | 表示被指定的回调方法。 | @@ -518,7 +518,7 @@ addSlot(type: SlotType, callback: AsyncCallback\): void **示例:** ```js -//addslot回调 +// addslot回调 function addSlotCallBack(err) { if (err) { console.info("addSlot failed " + JSON.stringify(err)); @@ -535,13 +535,13 @@ Notification.addSlot(Notification.SlotType.SOCIAL_COMMUNICATION, addSlotCallBack addSlot(type: SlotType): Promise\ -创建通知通道(Promise形式)。 +创建指定类型的通知通道(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ---- | -------- | ---- | ---------------------- | | type | [SlotType](#slottype) | 是 | 要创建的通知通道的类型。 | @@ -557,7 +557,7 @@ addSlot(type: SlotType): Promise\ ```js Notification.addSlot(Notification.SlotType.SOCIAL_COMMUNICATION).then(() => { - console.info("addSlot sucess"); + console.info("addSlot success"); }); ``` @@ -577,7 +577,7 @@ addSlots(slots: Array\, callback: AsyncCallback\): voi **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------- | ---- | ------------------------ | | slots | Array\<[NotificationSlot](#notificationslot)\> | 是 | 要创建的通知通道对象数组。 | | callback | AsyncCallback\ | 是 | 表示被指定的回调方法。 | @@ -593,7 +593,7 @@ addSlots(slots: Array\, callback: AsyncCallback\): voi **示例:** ```js -//addSlots回调 +// addSlots回调 function addSlotsCallBack(err) { if (err) { console.info("addSlots failed " + JSON.stringify(err)); @@ -601,11 +601,11 @@ function addSlotsCallBack(err) { console.info("addSlots success"); } } -//通知slot对象 +// 通知slot对象 var notificationSlot = { type: Notification.SlotType.SOCIAL_COMMUNICATION } -//通知slot array 对象 +// 通知slot array 对象 var notificationSlotArray = new Array(); notificationSlotArray[0] = notificationSlot; @@ -628,7 +628,7 @@ addSlots(slots: Array\): Promise\ **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ----- | ------------------------- | ---- | ------------------------ | | slots | Array\<[NotificationSlot](#notificationslot)\> | 是 | 要创建的通知通道对象数组。 | @@ -643,16 +643,16 @@ addSlots(slots: Array\): Promise\ **示例:** ```js -//通知slot对象 +// 通知slot对象 var notificationSlot = { type: Notification.SlotType.SOCIAL_COMMUNICATION } -//通知slot array 对象 +// 通知slot array 对象 var notificationSlotArray = new Array(); notificationSlotArray[0] = notificationSlot; Notification.addSlots(notificationSlotArray).then(() => { - console.info("addSlots sucess"); + console.info("addSlots success"); }); ``` @@ -662,15 +662,15 @@ Notification.addSlots(notificationSlotArray).then(() => { getSlot(slotType: SlotType, callback: AsyncCallback\): void -获取一个通知通道(callback形式)。 +获取一个指定类型的通知通道(callback形式)。 **系统能力**:SystemCapability.Notification.Notification **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------------------- | ---- | ----------------------------------------------------------- | -| slotType | [SlotType](#slottype) | 是 | 通知渠道类型,目前分为社交通信、服务提醒、内容咨询和其他类型。 | +| slotType | [SlotType](#slottype) | 是 | 通知渠道类型,目前分为社交通信、服务提醒、内容咨询和其他类型。 | | callback | AsyncCallback\<[NotificationSlot](#notificationslot)\> | 是 | 表示被指定的回调方法。 | **错误码:** @@ -684,7 +684,7 @@ getSlot(slotType: SlotType, callback: AsyncCallback\): void **示例:** ```js -//getSlot回调 +// getSlot回调 function getSlotCallback(err,data) { if (err) { console.info("getSlot failed " + JSON.stringify(err)); @@ -702,15 +702,15 @@ Notification.getSlot(slotType, getSlotCallback) getSlot(slotType: SlotType): Promise\ -获取一个通知通道(Promise形式)。 +获取一个指定类型的通知通道(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | ---- | ----------------------------------------------------------- | -| slotType | [SlotType](#slottype) | 是 | 通知渠道类型,目前分为社交通信、服务提醒、内容咨询和其他类型。 | +| slotType | [SlotType](#slottype) | 是 | 通知渠道类型,目前分为社交通信、服务提醒、内容咨询和其他类型。 | **返回值:** @@ -731,7 +731,7 @@ getSlot(slotType: SlotType): Promise\ ```js var slotType = Notification.SlotType.SOCIAL_COMMUNICATION; Notification.getSlot(slotType).then((data) => { - console.info("getSlot sucess, data: " + JSON.stringify(data)); + console.info("getSlot success, data: " + JSON.stringify(data)); }); ``` @@ -747,9 +747,9 @@ getSlots(callback: AsyncCallback>): void **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------------------- | ---- | -------------------- | -| callback | AsyncCallback\\> | 是 | 表示被指定的回调方法。 | +| callback | AsyncCallback\\> | 是 | 以callback形式返回获取此应用程序的所有通知通道的结果。 | **错误码:** @@ -762,7 +762,7 @@ getSlots(callback: AsyncCallback>): void **示例:** ```js -//getSlots回调 +// getSlots回调 function getSlotsCallback(err,data) { if (err) { console.info("getSlots failed " + JSON.stringify(err)); @@ -801,7 +801,7 @@ getSlots(): Promise\> ```js Notification.getSlots().then((data) => { - console.info("getSlots sucess, data: " + JSON.stringify(data)); + console.info("getSlots success, data: " + JSON.stringify(data)); }); ``` @@ -811,13 +811,13 @@ Notification.getSlots().then((data) => { removeSlot(slotType: SlotType, callback: AsyncCallback\): void -根据通知通道类型删除创建的通知通道(callback形式)。 +删除指定类型的通知通道(callback形式)。 **系统能力**:SystemCapability.Notification.Notification **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | ----------------------------------------------------------- | | slotType | [SlotType](#slottype) | 是 | 通知渠道类型,目前分为社交通信、服务提醒、内容咨询和其他类型。 | | callback | AsyncCallback\ | 是 | 表示被指定的回调方法。 | @@ -833,7 +833,7 @@ removeSlot(slotType: SlotType, callback: AsyncCallback\): void **示例:** ```js -//removeSlot回调 +// removeSlot回调 function removeSlotCallback(err) { if (err) { console.info("removeSlot failed " + JSON.stringify(err)); @@ -851,13 +851,13 @@ Notification.removeSlot(slotType,removeSlotCallback) removeSlot(slotType: SlotType): Promise\ -根据通知通道类型删除创建的通知通道(Promise形式)。 +删除指定类型的通知通道(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | ---- | ----------------------------------------------------------- | | slotType | [SlotType](#slottype) | 是 | 通知渠道类型,目前分为社交通信、服务提醒、内容咨询和其他类型。 | @@ -874,7 +874,7 @@ removeSlot(slotType: SlotType): Promise\ ```js var slotType = Notification.SlotType.SOCIAL_COMMUNICATION; Notification.removeSlot(slotType).then(() => { - console.info("removeSlot sucess"); + console.info("removeSlot success"); }); ``` @@ -890,7 +890,7 @@ removeAllSlots(callback: AsyncCallback\): void **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | -------------------- | | callback | AsyncCallback\ | 是 | 表示被指定的回调方法。 | @@ -937,7 +937,7 @@ removeAllSlots(): Promise\ ```js Notification.removeAllSlots().then(() => { - console.info("removeAllSlots sucess"); + console.info("removeAllSlots success"); }); ``` @@ -947,7 +947,7 @@ Notification.removeAllSlots().then(() => { setNotificationEnable(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void -设定指定包的通知使能状态(Callback形式)。 +设定指定应用的通知使能状态(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -957,9 +957,9 @@ setNotificationEnable(bundle: BundleOption, enable: boolean, callback: AsyncCall **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | -------------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | | enable | boolean | 是 | 使能状态。 | | callback | AsyncCallback\ | 是 | 设定通知使能回调函数。 | @@ -994,7 +994,7 @@ Notification.setNotificationEnable(bundle, false, setNotificationEnablenCallback setNotificationEnable(bundle: BundleOption, enable: boolean): Promise\ -设定指定包的通知使能状态(Promise形式)。 +设定指定应用的通知使能状态(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1004,9 +1004,9 @@ setNotificationEnable(bundle: BundleOption, enable: boolean): Promise\ **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | | enable | boolean | 是 | 使能状态。 | **错误码:** @@ -1025,7 +1025,7 @@ var bundle = { bundle: "bundleName1", } Notification.setNotificationEnable(bundle, false).then(() => { - console.info("setNotificationEnable sucess"); + console.info("setNotificationEnable success"); }); ``` @@ -1035,7 +1035,7 @@ Notification.setNotificationEnable(bundle, false).then(() => { isNotificationEnabled(bundle: BundleOption, callback: AsyncCallback\): void -获取指定包的通知使能状态(Callback形式)。 +获取指定应用的通知使能状态(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1045,9 +1045,9 @@ isNotificationEnabled(bundle: BundleOption, callback: AsyncCallback\): **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | ------------------------ | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | | callback | AsyncCallback\ | 是 | 获取通知使能状态回调函数。 | **错误码:** @@ -1081,7 +1081,7 @@ Notification.isNotificationEnabled(bundle, isNotificationEnabledCallback); isNotificationEnabled(bundle: BundleOption): Promise\ -获取指定包的通知使能状态(Promise形式)。 +获取指定应用的通知使能状态(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1091,15 +1091,15 @@ isNotificationEnabled(bundle: BundleOption): Promise\ **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | **返回值:** -| 类型 | 说明 | -| ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\ | 以Promise形式返回获取指定包的通知使能状态的结果。 | +| 类型 | 说明 | +| ------------------ | --------------------------------------------------- | +| Promise\ | 以Promise形式返回获取指定应用的通知使能状态的结果。 | **错误码:** @@ -1117,7 +1117,7 @@ var bundle = { bundle: "bundleName1", } Notification.isNotificationEnabled(bundle).then((data) => { - console.info("isNotificationEnabled sucess, data: " + JSON.stringify(data)); + console.info("isNotificationEnabled success, data: " + JSON.stringify(data)); }); ``` @@ -1137,7 +1137,7 @@ isNotificationEnabled(callback: AsyncCallback\): void **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | ------------------------ | | callback | AsyncCallback\ | 是 | 获取通知使能状态回调函数。 | @@ -1179,9 +1179,9 @@ isNotificationEnabled(): Promise\ **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | **返回值:** @@ -1202,7 +1202,7 @@ isNotificationEnabled(): Promise\ ```js Notification.isNotificationEnabled().then((data) => { - console.info("isNotificationEnabled sucess, data: " + JSON.stringify(data)); + console.info("isNotificationEnabled success, data: " + JSON.stringify(data)); }); ``` @@ -1212,7 +1212,7 @@ Notification.isNotificationEnabled().then((data) => { displayBadge(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void -设定指定包的角标使能状态(Callback形式)。 +设定指定应用的角标使能状态(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1222,9 +1222,9 @@ displayBadge(bundle: BundleOption, enable: boolean, callback: AsyncCallback\ | 是 | 设定角标使能回调函数。 | @@ -1259,7 +1259,7 @@ Notification.displayBadge(bundle, false, displayBadgeCallback); displayBadge(bundle: BundleOption, enable: boolean): Promise\ -设定指定包的角标使能状态(Promise形式)。 +设定指定应用的角标使能状态(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1269,9 +1269,9 @@ displayBadge(bundle: BundleOption, enable: boolean): Promise\ **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | | enable | boolean | 是 | 使能状态。 | **错误码:** @@ -1290,7 +1290,7 @@ var bundle = { bundle: "bundleName1", } Notification.displayBadge(bundle, false).then(() => { - console.info("displayBadge sucess"); + console.info("displayBadge success"); }); ``` @@ -1300,7 +1300,7 @@ Notification.displayBadge(bundle, false).then(() => { isBadgeDisplayed(bundle: BundleOption, callback: AsyncCallback\): void -获取指定包的角标使能状态(Callback形式)。 +获取指定应用的角标使能状态(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1310,9 +1310,9 @@ isBadgeDisplayed(bundle: BundleOption, callback: AsyncCallback\): void **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | ------------------------ | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | | callback | AsyncCallback\ | 是 | 获取角标使能状态回调函数。 | **错误码:** @@ -1346,7 +1346,7 @@ Notification.isBadgeDisplayed(bundle, isBadgeDisplayedCallback); isBadgeDisplayed(bundle: BundleOption): Promise\ -获取指定包的角标使能状态(Promise形式)。 +获取指定应用的角标使能状态(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1356,15 +1356,15 @@ isBadgeDisplayed(bundle: BundleOption): Promise\ **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | **返回值:** | 类型 | 说明 | | ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\ | 以Promise形式返回获取指定包的角标使能状态。 | +| Promise\ | 以Promise形式返回获取指定应用的角标使能状态。 | **错误码:** @@ -1382,7 +1382,7 @@ var bundle = { bundle: "bundleName1", } Notification.isBadgeDisplayed(bundle).then((data) => { - console.info("isBadgeDisplayed sucess, data: " + JSON.stringify(data)); + console.info("isBadgeDisplayed success, data: " + JSON.stringify(data)); }); ``` @@ -1392,7 +1392,7 @@ Notification.isBadgeDisplayed(bundle).then((data) => { setSlotByBundle(bundle: BundleOption, slot: NotificationSlot, callback: AsyncCallback\): void -设定指定包的通知通道状态(Callback形式)。 +设定指定应用的通知通道(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1402,9 +1402,9 @@ setSlotByBundle(bundle: BundleOption, slot: NotificationSlot, callback: AsyncCal **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | -------------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | | slot | [NotificationSlot](#notificationslot) | 是 | 通知通道。 | | callback | AsyncCallback\ | 是 | 设定通知通道回调函数。 | @@ -1444,7 +1444,7 @@ Notification.setSlotByBundle(bundle, notificationSlot, setSlotByBundleCallback); setSlotByBundle(bundle: BundleOption, slot: NotificationSlot): Promise\ -设定指定包的通知通道状态(Promise形式)。 +设定指定应用的通知通道(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1454,10 +1454,10 @@ setSlotByBundle(bundle: BundleOption, slot: NotificationSlot): Promise\ **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | -| slot | [NotificationSlot](#notificationslot) | 是 | 使能状态。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | +| slot | [NotificationSlot](#notificationslot) | 是 | 通知通道。 | **错误码:** @@ -1478,7 +1478,7 @@ var notificationSlot = { type: Notification.SlotType.SOCIAL_COMMUNICATION } Notification.setSlotByBundle(bundle, notificationSlot).then(() => { - console.info("setSlotByBundle sucess"); + console.info("setSlotByBundle success"); }); ``` @@ -1488,7 +1488,7 @@ Notification.setSlotByBundle(bundle, notificationSlot).then(() => { getSlotsByBundle(bundle: BundleOption, callback: AsyncCallback>): void -获取指定包的通知通道(Callback形式)。 +获取指定应用的所有通知通道(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1498,9 +1498,9 @@ getSlotsByBundle(bundle: BundleOption, callback: AsyncCallback> | 是 | 获取通知通道回调函数。 | **错误码:** @@ -1534,7 +1534,7 @@ Notification.getSlotsByBundle(bundle, getSlotsByBundleCallback); getSlotsByBundle(bundle: BundleOption): Promise> -获取指定包的通知通道(Promise形式)。 +获取指定应用的所有通知通道(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1544,15 +1544,15 @@ getSlotsByBundle(bundle: BundleOption): Promise> **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | **返回值:** | 类型 | 说明 | | ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise> | 以Promise形式返回获取指定包的通知通道。 | +| Promise> | 以Promise形式返回获取指定应用的通知通道。 | **错误码:** @@ -1570,7 +1570,7 @@ var bundle = { bundle: "bundleName1", } Notification.getSlotsByBundle(bundle).then((data) => { - console.info("getSlotsByBundle sucess, data: " + JSON.stringify(data)); + console.info("getSlotsByBundle success, data: " + JSON.stringify(data)); }); ``` @@ -1580,7 +1580,7 @@ Notification.getSlotsByBundle(bundle).then((data) => { getSlotNumByBundle(bundle: BundleOption, callback: AsyncCallback\): void -获取指定包的通知通道数(Callback形式)。 +获取指定应用的通知通道数量(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1590,10 +1590,10 @@ getSlotNumByBundle(bundle: BundleOption, callback: AsyncCallback\): voi **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------- | ---- | ---------------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | -| callback | AsyncCallback\ | 是 | 获取通知通道数回调函数。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | +| callback | AsyncCallback\ | 是 | 获取通知通道数量回调函数。 | **错误码:** @@ -1626,7 +1626,7 @@ Notification.getSlotNumByBundle(bundle, getSlotNumByBundleCallback); getSlotNumByBundle(bundle: BundleOption): Promise\ -获取指定包的通知通道数(Promise形式)。 +获取指定应用的通知通道数量(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1636,15 +1636,15 @@ getSlotNumByBundle(bundle: BundleOption): Promise\ **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | **返回值:** | 类型 | 说明 | | ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\ | 以Promise形式返回获取指定包的通知通道数。 | +| Promise\ | 以Promise形式返回获取指定应用的通知通道数量。 | **错误码:** @@ -1662,7 +1662,7 @@ var bundle = { bundle: "bundleName1", } Notification.getSlotNumByBundle(bundle).then((data) => { - console.info("getSlotNumByBundle sucess, data: " + JSON.stringify(data)); + console.info("getSlotNumByBundle success, data: " + JSON.stringify(data)); }); ``` @@ -1673,7 +1673,7 @@ Notification.getSlotNumByBundle(bundle).then((data) => { getAllActiveNotifications(callback: AsyncCallback>): void -获取活动通知(Callback形式)。 +获取当前未删除的所有通知(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1683,7 +1683,7 @@ getAllActiveNotifications(callback: AsyncCallback>) **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------------------------------------------ | ---- | -------------------- | | callback | AsyncCallback> | 是 | 获取活动通知回调函数。 | @@ -1715,7 +1715,7 @@ Notification.getAllActiveNotifications(getAllActiveNotificationsCallback); getAllActiveNotifications(): Promise\\> -获取活动通知(Promise形式)。 +获取当前未删除的所有通知(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1741,7 +1741,7 @@ getAllActiveNotifications(): Promise\ { - console.info("getAllActiveNotifications sucess, data: " + JSON.stringify(data)); + console.info("getAllActiveNotifications success, data: " + JSON.stringify(data)); }); ``` @@ -1751,15 +1751,15 @@ Notification.getAllActiveNotifications().then((data) => { getActiveNotificationCount(callback: AsyncCallback\): void -获取当前应用的活动通知数(Callback形式)。 +获取当前应用未删除的通知数(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | ---------------------- | ---- | ---------------------- | -| callback | AsyncCallback\ | 是 | 获取活动通知数回调函数。 | +| callback | AsyncCallback\ | 是 | 获取未删除通知数回调函数。 | **错误码:** @@ -1789,15 +1789,15 @@ Notification.getActiveNotificationCount(getActiveNotificationCountCallback); getActiveNotificationCount(): Promise\ -获取当前应用的活动通知数(Promise形式)。 +获取当前应用未删除的通知数(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification **返回值:** -| 类型 | 说明 | -| ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\ | 以Promise形式返回获取当前应用的活动通知数。 | +| 类型 | 说明 | +| ----------------- | ------------------------------------------- | +| Promise\ | 以Promise形式返回获取当前应用未删除通知数。 | **错误码:** @@ -1811,7 +1811,7 @@ getActiveNotificationCount(): Promise\ ```js Notification.getActiveNotificationCount().then((data) => { - console.info("getActiveNotificationCount sucess, data: " + JSON.stringify(data)); + console.info("getActiveNotificationCount success, data: " + JSON.stringify(data)); }); ``` @@ -1821,15 +1821,15 @@ Notification.getActiveNotificationCount().then((data) => { getActiveNotifications(callback: AsyncCallback>): void -获取当前应用的活动通知(Callback形式)。 +获取当前应用未删除的通知列表(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------------------------------------------ | ---- | ------------------------------ | -| callback | AsyncCallback> | 是 | 获取当前应用的活动通知回调函数。 | +| callback | AsyncCallback> | 是 | 获取当前应用通知列表回调函数。 | **错误码:** @@ -1859,15 +1859,15 @@ Notification.getActiveNotifications(getActiveNotificationsCallback); getActiveNotifications(): Promise\\> -获取当前应用的活动通知(Promise形式)。 +获取当前应用未删除的通知列表(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification **返回值:** -| 类型 | 说明 | -| ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\\> | 以Promise形式返回获取当前应用的活动通知。 | +| 类型 | 说明 | +| ------------------------------------------------------------ | --------------------------------------- | +| Promise\\> | 以Promise形式返回获取当前应用通知列表。 | **错误码:** @@ -1881,7 +1881,7 @@ getActiveNotifications(): Promise\ { - console.info("removeGroupByBundle sucess, data: " + JSON.stringify(data)); + console.info("removeGroupByBundle success, data: " + JSON.stringify(data)); }); ``` @@ -1891,16 +1891,16 @@ Notification.getActiveNotifications().then((data) => { cancelGroup(groupName: string, callback: AsyncCallback\): void -取消本应用指定组通知(Callback形式)。 +取消本应用指定组下的通知(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | --------- | --------------------- | ---- | ---------------------------- | -| groupName | string | 是 | 指定通知组名称。 | -| callback | AsyncCallback\ | 是 | 取消本应用指定组通知回调函数。 | +| groupName | string | 是 | 通知组名称,此名称需要在发布通知时通过[NotificationRequest](#notificationrequest)对象指定。 | +| callback | AsyncCallback\ | 是 | 取消本应用指定组下通知的回调函数。 | **错误码:** @@ -1932,15 +1932,15 @@ Notification.cancelGroup(groupName, cancelGroupCallback); cancelGroup(groupName: string): Promise\ -取消本应用指定组通知(Promise形式)。 +取消本应用指定组下的通知(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | --------- | ------ | ---- | -------------- | -| groupName | string | 是 | 指定通知组名称。 | +| groupName | string | 是 | 通知组名称。 | **错误码:** @@ -1955,7 +1955,7 @@ cancelGroup(groupName: string): Promise\ ```js var groupName = "GroupName"; Notification.cancelGroup(groupName).then(() => { - console.info("cancelGroup sucess"); + console.info("cancelGroup success"); }); ``` @@ -1965,7 +1965,7 @@ Notification.cancelGroup(groupName).then(() => { removeGroupByBundle(bundle: BundleOption, groupName: string, callback: AsyncCallback\): void -删除指定应用指定组通知(Callback形式)。 +删除指定应用的指定组下的通知(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -1975,11 +1975,11 @@ removeGroupByBundle(bundle: BundleOption, groupName: string, callback: AsyncCall **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | --------- | --------------------- | ---- | ---------------------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | -| groupName | string | 是 | 指定通知组名称。 | -| callback | AsyncCallback\ | 是 | 删除本应用指定组通知回调函数。 | +| bundle | [BundleOption](#bundleoption) | 是 | 应用的包信息。 | +| groupName | string | 是 | 通知组名称。 | +| callback | AsyncCallback\ | 是 | 删除指定应用指定组下通知的回调函数。 | **错误码:** @@ -2013,7 +2013,7 @@ Notification.removeGroupByBundle(bundleOption, groupName, removeGroupByBundleCal removeGroupByBundle(bundle: BundleOption, groupName: string): Promise\ -删除指定应用指定组通知(Promise形式)。 +删除指定应用的指定组下的通知(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2023,10 +2023,10 @@ removeGroupByBundle(bundle: BundleOption, groupName: string): Promise\ **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | --------- | ------------ | ---- | -------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | -| groupName | string | 是 | 指定通知组名称。 | +| bundle | [BundleOption](#bundleoption) | 是 | 应用的包信息。 | +| groupName | string | 是 | 通知组名称。 | **错误码:** @@ -2043,7 +2043,7 @@ removeGroupByBundle(bundle: BundleOption, groupName: string): Promise\ var bundleOption = {bundle: "Bundle"}; var groupName = "GroupName"; Notification.removeGroupByBundle(bundleOption, groupName).then(() => { - console.info("removeGroupByBundle sucess"); + console.info("removeGroupByBundle success"); }); ``` @@ -2063,7 +2063,7 @@ setDoNotDisturbDate(date: DoNotDisturbDate, callback: AsyncCallback\): vo **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | ---------------------- | | date | [DoNotDisturbDate](#donotdisturbdate) | 是 | 免打扰时间选项。 | | callback | AsyncCallback\ | 是 | 设置免打扰时间回调函数。 | @@ -2102,7 +2102,7 @@ Notification.setDoNotDisturbDate(doNotDisturbDate, setDoNotDisturbDateCallback); setDoNotDisturbDate(date: DoNotDisturbDate): Promise\ -设置免打扰时间接口(Promise形式)。 +设置免打扰时间(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2112,7 +2112,7 @@ setDoNotDisturbDate(date: DoNotDisturbDate): Promise\ **参数:** -| 名称 | 类型 | 必填 | 说明 | +| 参数名 | 类型 | 必填 | 说明 | | ---- | ---------------- | ---- | -------------- | | date | [DoNotDisturbDate](#donotdisturbdate) | 是 | 免打扰时间选项。 | @@ -2133,7 +2133,7 @@ var doNotDisturbDate = { end: new Date(2021, 11, 15, 18, 0) } Notification.setDoNotDisturbDate(doNotDisturbDate).then(() => { - console.info("setDoNotDisturbDate sucess"); + console.info("setDoNotDisturbDate success"); }); ``` @@ -2152,10 +2152,10 @@ setDoNotDisturbDate(date: DoNotDisturbDate, userId: number, callback: AsyncCallb **参数:** -| 名称 | 类型 | 必填 | 说明 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | ---------------------- | | date | [DoNotDisturbDate](#donotdisturbdate) | 是 | 免打扰时间选项。 | -| userId | number | 是 | 设置免打扰事件的用户ID。 | +| userId | number | 是 | 设置免打扰时间的用户ID。 | | callback | AsyncCallback\ | 是 | 设置免打扰时间回调函数。 | **错误码:** @@ -2195,7 +2195,7 @@ Notification.setDoNotDisturbDate(doNotDisturbDate, userId, setDoNotDisturbDateCa setDoNotDisturbDate(date: DoNotDisturbDate, userId: number): Promise\ -指定用户设置免打扰时间接口(Promise形式)。 +指定用户设置免打扰时间(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2205,10 +2205,10 @@ setDoNotDisturbDate(date: DoNotDisturbDate, userId: number): Promise\ **参数:** -| 名称 | 类型 | 必填 | 说明 | +| 参数名 | 类型 | 必填 | 说明 | | ------ | ---------------- | ---- | -------------- | | date | [DoNotDisturbDate](#donotdisturbdate) | 是 | 免打扰时间选项。 | -| userId | number | 是 | 设置免打扰事件的用户ID。 | +| userId | number | 是 | 设置免打扰时间的用户ID。 | **错误码:** @@ -2231,7 +2231,7 @@ var doNotDisturbDate = { var userId = 1 Notification.setDoNotDisturbDate(doNotDisturbDate, userId).then(() => { - console.info("setDoNotDisturbDate sucess"); + console.info("setDoNotDisturbDate success"); }); ``` @@ -2240,7 +2240,7 @@ Notification.setDoNotDisturbDate(doNotDisturbDate, userId).then(() => { getDoNotDisturbDate(callback: AsyncCallback\): void -查询免打扰时间接口(Callback形式)。 +查询免打扰时间(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2250,7 +2250,7 @@ getDoNotDisturbDate(callback: AsyncCallback\): void **参数:** -| 名称 | 类型 | 必填 | 说明 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------------------- | ---- | ---------------------- | | callback | AsyncCallback\<[DoNotDisturbDate](#donotdisturbdate)\> | 是 | 查询免打扰时间回调函数。 | @@ -2282,7 +2282,7 @@ Notification.getDoNotDisturbDate(getDoNotDisturbDateCallback); getDoNotDisturbDate(): Promise\ -查询免打扰时间接口(Promise形式)。 +查询免打扰时间(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2294,7 +2294,7 @@ getDoNotDisturbDate(): Promise\ | 类型 | 说明 | | ------------------------------------------------ | ----------------------------------------- | -| Promise\<[DoNotDisturbDate](#donotdisturbdate)\> | 以Promise形式返回获取查询免打扰时间接口。 | +| Promise\<[DoNotDisturbDate](#donotdisturbdate)\> | 以Promise形式返回获取查询到的免打扰时间。 | **错误码:** @@ -2308,7 +2308,7 @@ getDoNotDisturbDate(): Promise\ ```js Notification.getDoNotDisturbDate().then((data) => { - console.info("getDoNotDisturbDate sucess, data: " + JSON.stringify(data)); + console.info("getDoNotDisturbDate success, data: " + JSON.stringify(data)); }); ``` @@ -2317,7 +2317,7 @@ Notification.getDoNotDisturbDate().then((data) => { getDoNotDisturbDate(userId: number, callback: AsyncCallback\): void -指定用户查询免打扰时间接口(Callback形式)。 +查询指定用户的免打扰时间(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2327,10 +2327,10 @@ getDoNotDisturbDate(userId: number, callback: AsyncCallback\) **参数:** -| 名称 | 类型 | 必填 | 说明 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------------------- | ---- | ---------------------- | | callback | AsyncCallback\<[DoNotDisturbDate](#donotdisturbdate)\> | 是 | 查询免打扰时间回调函数。 | -| userId | number | 是 | 设置免打扰事件的用户ID。 | +| userId | number | 是 | 用户ID。 | **错误码:** @@ -2363,7 +2363,7 @@ Notification.getDoNotDisturbDate(userId, getDoNotDisturbDateCallback); getDoNotDisturbDate(userId: number): Promise\ -指定用户查询免打扰时间接口(Promise形式)。 +查询指定用户的免打扰时间(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2373,15 +2373,15 @@ getDoNotDisturbDate(userId: number): Promise\ **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------------------- | ---- | ---------------------- | -| userId | number | 是 | 设置免打扰事件的用户ID。 | +| userId | number | 是 | 用户ID。 | **返回值:** | 类型 | 说明 | | ------------------------------------------------ | ----------------------------------------- | -| Promise\<[DoNotDisturbDate](#donotdisturbdate)\> | 以Promise形式返回获取查询免打扰时间接口。 | +| Promise\<[DoNotDisturbDate](#donotdisturbdate)\> | 以Promise形式返回获取查询到的免打扰时间。 | **错误码:** @@ -2398,7 +2398,7 @@ getDoNotDisturbDate(userId: number): Promise\ var userId = 1 Notification.getDoNotDisturbDate(userId).then((data) => { - console.info("getDoNotDisturbDate sucess, data: " + JSON.stringify(data)); + console.info("getDoNotDisturbDate success, data: " + JSON.stringify(data)); }); ``` @@ -2407,7 +2407,7 @@ Notification.getDoNotDisturbDate(userId).then((data) => { supportDoNotDisturbMode(callback: AsyncCallback\): void -查询是否支持勿扰模式功能(Callback形式)。 +查询是否支持免打扰功能(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2417,9 +2417,9 @@ supportDoNotDisturbMode(callback: AsyncCallback\): void **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------ | ---- | -------------------------------- | -| callback | AsyncCallback\ | 是 | 查询是否支持勿扰模式功能回调函数。 | +| callback | AsyncCallback\ | 是 | 查询是否支持免打扰功能回调函数。 | **错误码:** @@ -2461,7 +2461,7 @@ supportDoNotDisturbMode(): Promise\ | 类型 | 说明 | | ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\ | 以Promise形式返回获取是否支持勿扰模式功能的结果。 | +| Promise\ | 以Promise形式返回获取是否支持免打扰功能的结果。 | **错误码:** @@ -2475,7 +2475,7 @@ supportDoNotDisturbMode(): Promise\ ```js Notification.supportDoNotDisturbMode().then((data) => { - console.info("supportDoNotDisturbMode sucess, data: " + JSON.stringify(data)); + console.info("supportDoNotDisturbMode success, data: " + JSON.stringify(data)); }); ``` @@ -2620,10 +2620,9 @@ requestEnableNotification(): Promise\ **示例:** ```javascript -Notification.requestEnableNotification() - .then(() => { - console.info("requestEnableNotification sucess"); - }); +Notification.requestEnableNotification().then(() => { + console.info("requestEnableNotification success"); +}); ``` @@ -2644,7 +2643,7 @@ setDistributedEnable(enable: boolean, callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------ | ---- | -------------------------- | -| enable | boolean | 是 | 是否支持。
true 支持。
false 不支持。| +| enable | boolean | 是 | 是否支持。 | | callback | AsyncCallback\ | 是 | 设置设备是否支持分布式通知的回调函数。 | **错误码:** @@ -2690,7 +2689,7 @@ setDistributedEnable(enable: boolean): Promise\ | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------ | ---- | -------------------------- | -| enable | boolean | 是 | 是否支持。
true 支持。
false 不支持。| +| enable | boolean | 是 | 是否支持。 | **错误码:** @@ -2706,9 +2705,8 @@ setDistributedEnable(enable: boolean): Promise\ ```javascript var enable = true -Notification.setDistributedEnable(enable) - .then(() => { - console.info("setDistributedEnable sucess"); +Notification.setDistributedEnable(enable).then(() => { + console.info("setDistributedEnable success"); }); ``` @@ -2717,7 +2715,7 @@ Notification.setDistributedEnable(enable) isDistributedEnabled(callback: AsyncCallback\): void -获取设备是否支持分布式通知(Callback形式)。 +查询设备是否支持分布式通知(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2739,11 +2737,11 @@ isDistributedEnabled(callback: AsyncCallback\): void **示例:** ```javascript -function isDistributedEnabledCallback(err) { +function isDistributedEnabledCallback(err, data) { if (err) { console.info("isDistributedEnabled failed " + JSON.stringify(err)); } else { - console.info("isDistributedEnabled success"); + console.info("isDistributedEnabled success " + JSON.stringify(data)); } }; @@ -2756,15 +2754,15 @@ Notification.isDistributedEnabled(isDistributedEnabledCallback); isDistributedEnabled(): Promise\ -获取设备是否支持分布式通知(Promise形式)。 +查询设备是否支持分布式通知(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification **返回值:** -| 类型 | 说明 | -| ------------------ | --------------- | -| Promise\ | Promise方式返回设备是否支持分布式通知的结果。
true 支持。
false 不支持。 | +| 类型 | 说明 | +| ------------------ | --------------------------------------------- | +| Promise\ | Promise方式返回设备是否支持分布式通知的结果。 | **错误码:** @@ -2780,7 +2778,7 @@ isDistributedEnabled(): Promise\ ```javascript Notification.isDistributedEnabled() .then((data) => { - console.info("isDistributedEnabled sucess, data: " + JSON.stringify(data)); + console.info("isDistributedEnabled success, data: " + JSON.stringify(data)); }); ``` @@ -2789,7 +2787,7 @@ Notification.isDistributedEnabled() setDistributedEnableByBundle(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void -根据应用的包设置应用程序是否支持分布式通知(Callback形式)。 +设置指定应用是否支持分布式通知(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2801,7 +2799,7 @@ setDistributedEnableByBundle(bundle: BundleOption, enable: boolean, callback: As | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------ | ---- | -------------------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 应用的包。 | +| bundle | [BundleOption](#bundleoption) | 是 | 应用的包信息。 | | enable | boolean | 是 | 是否支持。 | | callback | AsyncCallback\ | 是 | 应用程序是否支持分布式通知的回调函数。 | @@ -2841,7 +2839,7 @@ Notification.setDistributedEnableByBundle(bundle, enable, setDistributedEnableBy setDistributedEnableByBundle(bundle: BundleOption, enable: boolean): Promise\ -根据应用的包设置应用程序是否支持分布式通知(Promise形式)。 +设置指定应用是否支持分布式通知(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2875,9 +2873,8 @@ var bundle = { var enable = true -Notification.setDistributedEnableByBundle(bundle, enable) - .then(() => { - console.info("setDistributedEnableByBundle sucess"); +Notification.setDistributedEnableByBundle(bundle, enable).then(() => { + console.info("setDistributedEnableByBundle success"); }); ``` @@ -2898,7 +2895,7 @@ isDistributedEnabledByBundle(bundle: BundleOption, callback: AsyncCallback\ | 是 | 应用程序是否支持分布式通知的回调函数。 | +| callback | AsyncCallback\ | 是 | 查询指定应用是否支持分布式通知的回调函数。 | **错误码:** @@ -2917,7 +2914,7 @@ function isDistributedEnabledByBundleCallback(data) { if (err) { console.info("isDistributedEnabledByBundle failed " + JSON.stringify(err)); } else { - console.info("isDistributedEnabledByBundle success"); + console.info("isDistributedEnabledByBundle success" + JSON.stringify(data)); } }; @@ -2934,7 +2931,7 @@ Notification.isDistributedEnabledByBundle(bundle, isDistributedEnabledByBundleCa isDistributedEnabledByBundle(bundle: BundleOption): Promise\ -根据应用的包获取应用程序是否支持分布式通知(Promise形式)。 +查询指定应用是否支持分布式通知(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -2950,9 +2947,9 @@ isDistributedEnabledByBundle(bundle: BundleOption): Promise\ **返回值:** -| 类型 | 说明 | -| ------------------ | --------------- | -| Promise\ | Promise方式返回应用程序是否支持分布式通知的结果。
true 支持。
false 不支持。 | +| 类型 | 说明 | +| ------------------ | ------------------------------------------------- | +| Promise\ | Promise方式返回指定应用是否支持分布式通知的结果。 | **错误码:** @@ -2971,10 +2968,9 @@ var bundle = { bundle: "bundleName1", } -Notification.isDistributedEnabledByBundle(bundle) - .then((data) => { - console.info("isDistributedEnabledByBundle sucess, data: " + JSON.stringify(data)); - }); +Notification.isDistributedEnabledByBundle(bundle).then((data) => { + console.info("isDistributedEnabledByBundle success, data: " + JSON.stringify(data)); +}); ``` @@ -2994,7 +2990,7 @@ getDeviceRemindType(callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------------------- | ---- | -------------------------- | -| callback | AsyncCallback\<[DeviceRemindType](#deviceremindtype)\> | 是 | 获取通知的提醒方式的回调函数。 | +| callback | AsyncCallback\<[DeviceRemindType](#deviceremindtype)\> | 是 | 获取通知提醒方式的回调函数。 | **错误码:** @@ -3036,7 +3032,7 @@ getDeviceRemindType(): Promise\ | 类型 | 说明 | | ------------------ | --------------- | -| Promise\<[DeviceRemindType](#deviceremindtype)\> | Promise方式返回通知的提醒方式的结果。 | +| Promise\<[DeviceRemindType](#deviceremindtype)\> | Promise方式返回获取通知提醒方式的结果。 | **错误码:** @@ -3049,10 +3045,9 @@ getDeviceRemindType(): Promise\ **示例:** ```javascript -Notification.getDeviceRemindType() - .then((data) => { - console.info("getDeviceRemindType sucess, data: " + JSON.stringify(data)); - }); +Notification.getDeviceRemindType().then((data) => { + console.info("getDeviceRemindType success, data: " + JSON.stringify(data)); +}); ``` @@ -3070,12 +3065,12 @@ publishAsBundle(request: NotificationRequest, representativeBundle: string, user **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------------------- | ------------------------------------------- | ---- | --------------------------------------------- | -| request | [NotificationRequest](#notificationrequest) | 是 | 设置要发布通知内容的NotificationRequest对象。 | -| representativeBundle | string | 是 | 被代理应用的包名。 | -| userId | number | 是 | 接收通知用户的Id。 | -| callback | AsyncCallback | 是 | 发布代理通知的回调方法。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------------------- | ------------------------------------------- | ---- | ---------------------------------------- | +| request | [NotificationRequest](#notificationrequest) | 是 | 用于设置要发布通知的内容和相关配置信息。 | +| representativeBundle | string | 是 | 被代理应用的包名。 | +| userId | number | 是 | 用户ID。 | +| callback | AsyncCallback | 是 | 发布代理通知的回调方法。 | **错误码:** @@ -3093,7 +3088,7 @@ publishAsBundle(request: NotificationRequest, representativeBundle: string, user ```js //publishAsBundle回调 -function publishAsBundleCallback(err) { +function callback(err) { if (err) { console.info("publishAsBundle failed " + JSON.stringify(err)); } else { @@ -3102,10 +3097,10 @@ function publishAsBundleCallback(err) { } // 被代理应用的包名 let representativeBundle = "com.example.demo" -// 接收通知的用户ID +// 用户ID let userId = 100 -//通知Request对象 -let notificationRequest = { +// NotificationRequest对象 +let request = { id: 1, content: { contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, @@ -3117,7 +3112,7 @@ let notificationRequest = { } } -Notification.publishAsBundle(notificationRequest, representativeBundle, userId, publishAsBundleCallback); +Notification.publishAsBundle(request, representativeBundle, userId, callback); ``` ## Notification.publishAsBundle @@ -3137,9 +3132,9 @@ publishAsBundle(request: NotificationRequest, representativeBundle: string, user | 参数名 | 类型 | 必填 | 说明 | | -------------------- | ------------------------------------------- | ---- | --------------------------------------------- | -| request | [NotificationRequest](#notificationrequest) | 是 | 设置要发布通知内容的NotificationRequest对象。 | +| request | [NotificationRequest](#notificationrequest) | 是 | 用于设置要发布通知的内容和相关配置信息。 | | representativeBundle | string | 是 | 被代理应用的包名。 | -| userId | number | 是 | 接收通知用户的Id。 | +| userId | number | 是 | 用户ID。 | **错误码:** @@ -3158,10 +3153,10 @@ publishAsBundle(request: NotificationRequest, representativeBundle: string, user ```js // 被代理应用的包名 let representativeBundle = "com.example.demo" -// 接收通知的用户ID +// 用户ID let userId = 100 -//通知Request对象 -var notificationRequest = { +// NotificationRequest对象 +var request = { id: 1, content: { contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, @@ -3173,8 +3168,8 @@ var notificationRequest = { } } -Notification.publishAsBundle(notificationRequest, representativeBundle, userId).then(() => { - console.info("publishAsBundle sucess"); +Notification.publishAsBundle(request, representativeBundle, userId).then(() => { + console.info("publishAsBundle success"); }); ``` @@ -3198,7 +3193,7 @@ cancelAsBundle(id: number, representativeBundle: string, userId: number, callbac | -------------------- | ------------- | ---- | ------------------------ | | id | number | 是 | 通知ID。 | | representativeBundle | string | 是 | 被代理应用的包名。 | -| userId | number | 是 | 接收通知用户的Id。 | +| userId | number | 是 | 用户ID。 | | callback | AsyncCallback | 是 | 取消代理通知的回调方法。 | **错误码:** @@ -3214,7 +3209,7 @@ cancelAsBundle(id: number, representativeBundle: string, userId: number, callbac **示例:** ```js -//cancelAsBundle +// cancelAsBundle function cancelAsBundleCallback(err) { if (err) { console.info("cancelAsBundle failed " + JSON.stringify(err)); @@ -3224,7 +3219,7 @@ function cancelAsBundleCallback(err) { } // 被代理应用的包名 let representativeBundle = "com.example.demo" -// 接收通知的用户ID +// 用户ID let userId = 100 Notification.cancelAsBundle(0, representativeBundle, userId, cancelAsBundleCallback); @@ -3234,7 +3229,7 @@ Notification.cancelAsBundle(0, representativeBundle, userId, cancelAsBundleCallb cancelAsBundle(id: number, representativeBundle: string, userId: number): Promise\ -发布代理通知(Promise形式)。 +取消代理通知(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -3250,7 +3245,7 @@ cancelAsBundle(id: number, representativeBundle: string, userId: number): Promis | -------------------- | ------ | ---- | ------------------ | | id | number | 是 | 通知ID。 | | representativeBundle | string | 是 | 被代理应用的包名。 | -| userId | number | 是 | 接收通知用户的Id。 | +| userId | number | 是 | 用户ID。 | **错误码:** @@ -3267,7 +3262,7 @@ cancelAsBundle(id: number, representativeBundle: string, userId: number): Promis ```js // 被代理应用的包名 let representativeBundle = "com.example.demo" -// 接收通知的用户ID +// 用户ID let userId = 100 Notification.cancelAsBundle(0, representativeBundle, userId).then(() => { @@ -3279,7 +3274,7 @@ Notification.cancelAsBundle(0, representativeBundle, userId).then(() => { setNotificationEnableSlot(bundle: BundleOption, type: SlotType, enable: boolean, callback: AsyncCallback\): void -设定指定类型的渠道使能状态(Callback形式)。 +设置指定应用的指定渠道类型的使能状态(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -3291,10 +3286,10 @@ setNotificationEnableSlot(bundle: BundleOption, type: SlotType, enable: boolean, | 参数名 | 类型 | 必填 | 说明 | | -------- | ----------------------------- | ---- | ---------------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 应用的包信息。 | | type | [SlotType](#slottype) | 是 | 指定渠道类型。 | | enable | boolean | 是 | 使能状态。 | -| callback | AsyncCallback\ | 是 | 设定渠道使能回调函数。 | +| callback | AsyncCallback\ | 是 | 设置渠道使能回调函数。 | **错误码:** @@ -3308,7 +3303,7 @@ setNotificationEnableSlot(bundle: BundleOption, type: SlotType, enable: boolean, **示例:** ```js -//setNotificationEnableSlot +// setNotificationEnableSlot function setNotificationEnableSlotCallback(err) { if (err) { console.info("setNotificationEnableSlot failed " + JSON.stringify(err)); @@ -3328,7 +3323,7 @@ Notification.setNotificationEnableSlot( setNotificationEnableSlot(bundle: BundleOption, type: SlotType, enable: boolean): Promise\ -设定指定类型的渠道使能状态(Promise形式)。 +设置指定应用的指定渠道类型的使能状态(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -3340,8 +3335,8 @@ setNotificationEnableSlot(bundle: BundleOption, type: SlotType, enable: boolean) | 参数名 | 类型 | 必填 | 说明 | | ------ | ----------------------------- | ---- | -------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | -| type | [SlotType](#slottype) | 是 | 指定渠道类型。 | +| bundle | [BundleOption](#bundleoption) | 是 | 应用的包信息。 | +| type | [SlotType](#slottype) | 是 | 渠道类型。 | | enable | boolean | 是 | 使能状态。 | **错误码:** @@ -3356,12 +3351,12 @@ setNotificationEnableSlot(bundle: BundleOption, type: SlotType, enable: boolean) **示例:** ```js -//setNotificationEnableSlot +// setNotificationEnableSlot Notification.setNotificationEnableSlot( { bundle: "ohos.samples.notification", }, Notification.SlotType.SOCIAL_COMMUNICATION, true).then(() => { - console.info("setNotificationEnableSlot sucess"); + console.info("setNotificationEnableSlot success"); }); ``` @@ -3369,7 +3364,7 @@ Notification.setNotificationEnableSlot( isNotificationSlotEnabled(bundle: BundleOption, type: SlotType, callback: AsyncCallback\): void -获取指定类型的渠道使能状态(Callback形式)。 +获取指定应用的指定渠道类型的使能状态(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -3381,9 +3376,9 @@ isNotificationSlotEnabled(bundle: BundleOption, type: SlotType, callback: AsyncC | 参数名 | 类型 | 必填 | 说明 | | -------- | ----------------------------- | ---- | ---------------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | -| type | [SlotType](#slottype) | 是 | 指定渠道类型。 | -| callback | AsyncCallback\ | 是 | 设定渠道使能回调函数。 | +| bundle | [BundleOption](#bundleoption) | 是 | 应用的包信息。 | +| type | [SlotType](#slottype) | 是 | 渠道类型。 | +| callback | AsyncCallback\ | 是 | 获取渠道使能状态回调函数。 | **错误码:** @@ -3397,7 +3392,7 @@ isNotificationSlotEnabled(bundle: BundleOption, type: SlotType, callback: AsyncC **示例:** ```js -//isNotificationSlotEnabled +// isNotificationSlotEnabled function getEnableSlotCallback(err, data) { if (err) { console.info("isNotificationSlotEnabled failed " + JSON.stringify(err)); @@ -3416,7 +3411,7 @@ Notification.isNotificationSlotEnabled( isNotificationSlotEnabled(bundle: BundleOption, type: SlotType): Promise\ -获取指定类型的渠道使能状态(Promise形式)。 +获取指定应用的指定渠道类型的使能状态(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -3428,8 +3423,8 @@ isNotificationSlotEnabled(bundle: BundleOption, type: SlotType): Promise\ { - console.info("isNotificationSlotEnabled success, data: " + JSON.stringify(data)); - }); +// isNotificationSlotEnabled +Notification.isNotificationSlotEnabled({ bundle: "ohos.samples.notification", }, + Notification.SlotType.SOCIAL_COMMUNICATION).then((data) => { + console.info("isNotificationSlotEnabled success, data: " + JSON.stringify(data)); +}); ``` @@ -3475,8 +3468,8 @@ setSyncNotificationEnabledWithoutApp(userId: number, enable: boolean, callback: | 参数名 | 类型 | 必填 | 说明 | | ------ | ----------------------------- | ---- | -------------- | -| userId | number | 是 | 用户Id。 | -| enable | boolean | 是 | 是否启用。
true:启用。
false:禁用。 | +| userId | number | 是 | 用户ID。 | +| enable | boolean | 是 | 是否启用。 | | callback | AsyncCallback\ | 是 | 设置是否将通知同步到未安装应用程序的设备的回调函数。 | **错误码:** @@ -3494,7 +3487,7 @@ setSyncNotificationEnabledWithoutApp(userId: number, enable: boolean, callback: let userId = 100; let enable = true; -function setSyncNotificationEnabledWithoutAppCallback(err) { +function callback(err) { if (err) { console.info("setSyncNotificationEnabledWithoutApp failed " + JSON.stringify(err)); } else { @@ -3502,7 +3495,7 @@ function setSyncNotificationEnabledWithoutAppCallback(err) { } } -Notification.setSyncNotificationEnabledWithoutApp(userId, enable, setSyncNotificationEnabledWithoutAppCallback); +Notification.setSyncNotificationEnabledWithoutApp(userId, enable, callback); ``` @@ -3522,8 +3515,8 @@ setSyncNotificationEnabledWithoutApp(userId: number, enable: boolean): Promise\< | 参数名 | 类型 | 必填 | 说明 | | ------ | ----------------------------- | ---- | -------------- | -| userId | number | 是 | 用户Id。 | -| enable | boolean | 是 | 是否启用。
true:启用。
false:禁用。 | +| userId | number | 是 | 用户ID。 | +| enable | boolean | 是 | 是否启用。 | **返回值:** @@ -3546,13 +3539,11 @@ setSyncNotificationEnabledWithoutApp(userId: number, enable: boolean): Promise\< let userId = 100; let enable = true; -Notification.setSyncNotificationEnabledWithoutApp(userId, enable) - .then(() => { - console.info('setSyncNotificationEnabledWithoutApp'); - }) - .catch((err) => { - console.info('setSyncNotificationEnabledWithoutApp, err:', err); - }); +Notification.setSyncNotificationEnabledWithoutApp(userId, enable).then(() => { + console.info('setSyncNotificationEnabledWithoutApp success'); +}).catch((err) => { + console.info('setSyncNotificationEnabledWithoutApp, err:' + JSON.stringify(err)); +}); ``` @@ -3560,7 +3551,7 @@ Notification.setSyncNotificationEnabledWithoutApp(userId, enable) getSyncNotificationEnabledWithoutApp(userId: number, callback: AsyncCallback\): void -获取是否同步通知到未安装应用程序的设备(callback形式)。 +获取同步通知到未安装应用程序设备的开关是否开启(callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -3572,8 +3563,8 @@ getSyncNotificationEnabledWithoutApp(userId: number, callback: AsyncCallback\ | 是 | 设置是否将通知同步到未安装应用程序的设备的回调函数。
true: 是。
false: 否。 | +| userId | number | 是 | 用户ID。 | +| callback | AsyncCallback\ | 是 | 获取同步通知到未安装应用程序设备的开关是否开启的回调函数。 | **错误码:** @@ -3589,11 +3580,11 @@ getSyncNotificationEnabledWithoutApp(userId: number, callback: AsyncCallback\ -获取是否同步通知到未安装应用程序的设备(Promise形式)。 +获取同步通知到未安装应用程序设备的开关是否开启(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -3617,13 +3608,13 @@ getSyncNotificationEnabledWithoutApp(userId: number): Promise\ | 参数名 | 类型 | 必填 | 说明 | | ------ | ----------------------------- | ---- | -------------- | -| userId | number | 是 | 用户Id。 | +| userId | number | 是 | 用户ID。 | **返回值:** -| 类型 | 说明 | -| ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\ | 以Promise形式返回获取是否同步通知到未安装应用程序的设备的结果。
true: 是。
false: 否。 | +| 类型 | 说明 | +| ------------------ | ------------------------------------------------------------ | +| Promise\ | 以Promise形式返回获取同步通知到未安装应用程序设备的开关是否开启的结果。 | **错误码:** @@ -3638,11 +3629,11 @@ getSyncNotificationEnabledWithoutApp(userId: number): Promise\ ```js let userId = 100; - -Notification.getSyncNotificationEnabledWithoutApp(userId) - .then((data) => { - console.info('getSyncNotificationEnabledWithoutApp, data:', data); - }) +Notification.getSyncNotificationEnabledWithoutApp(userId).then((data) => { + console.info('getSyncNotificationEnabledWithoutApp, data:' + data); +}).catch((err) => { + console.info('getSyncNotificationEnabledWithoutApp, err:' + err); +}); .catch((err) => { console.info('getSyncNotificationEnabledWithoutApp, err:', err); }); @@ -3657,11 +3648,11 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) **系统API**:此接口为系统接口,三方应用不支持调用。 -| 名称 | 可读 | 可写 | 类型 | 说明 | -| ----- | ---- | --- | ------------------------------------- | ------------------------ | -| type | 是 | 否 | [DoNotDisturbType](#donotdisturbtype) | 指定免打扰设置的时间类型。 | -| begin | 是 | 否 | Date | 指定免打扰设置的起点时间。 | -| end | 是 | 否 | Date | 指定免打扰设置的终点时间。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ----- | ------------------------------------- | ---- | ---- | ---------------------- | +| type | [DoNotDisturbType](#donotdisturbtype) | 是 | 是 | 免打扰设置的时间类型。 | +| begin | Date | 是 | 是 | 免打扰设置的起点时间。 | +| end | Date | 是 | 是 | 免打扰设置的终点时间。 | @@ -3708,10 +3699,10 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification -| 名称 | 可读 | 可写 | 类型 | 描述 | -| ------ | ---- | --- | ------ | ------ | -| bundle | 是 | 是 | string | 包名。 | -| uid | 是 | 是 | number | 用户id。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------ | ------ |---- | --- | ------ | +| bundle | string | 是 | 是 | 应用的包信息。 | +| uid | number | 是 | 是 | 用户ID。 | ## SlotType @@ -3733,12 +3724,12 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification -| 名称 | 可读 | 可写 | 类型 | 说明 | -| --------- | --- | ---- | ----------------------------------------------- | ------------------------- | -| title | 是 | 是 | string | 按钮标题。 | -| wantAgent | 是 | 是 | WantAgent | 点击按钮时触发的WantAgent。 | -| extras | 是 | 是 | { [key: string]: any } | 按钮扩展信息。 | -| userInput | 是 | 是 | [NotificationUserInput](#notificationuserinput) | 用户输入对象实例。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| --------- | ----------------------------------------------- | --- | ---- | ------------------------- | +| title | string | 是 | 是 | 按钮标题。 | +| wantAgent | [WantAgent](js-apis-app-ability-wantAgent.md) | 是 | 是 | 点击按钮时触发的WantAgent。 | +| extras | { [key: string]: any } | 是 | 是 | 按钮扩展信息。 | +| userInput | [NotificationUserInput](#notificationuserinput) | 是 | 是 | 用户输入对象实例。 | ## NotificationBasicContent @@ -3747,11 +3738,11 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification -| 名称 | 可读 | 可写 | 类型 | 描述 | -| -------------- | ---- | ---- | ------ | ---------------------------------- | -| title | 是 | 是 | string | 通知标题。 | -| text | 是 | 是 | string | 通知内容。 | -| additionalText | 是 | 是 | string | 通知次要内容,是对通知内容的补充。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| -------------- | ------ | ---- | ---- | ---------------------------------- | +| title | string | 是 | 是 | 通知标题。 | +| text | string | 是 | 是 | 通知内容。 | +| additionalText | string | 是 | 是 | 通知附加内容,是对通知内容的补充。 | ## NotificationLongTextContent @@ -3760,14 +3751,14 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification -| 名称 | 可读 | 可写 | 类型 | 描述 | -| -------------- | ---- | --- | ------ | -------------------------------- | -| title | 是 | 是 | string | 通知标题。 | -| text | 是 | 是 | string | 通知内容。 | -| additionalText | 是 | 是 | string | 通知次要内容,是对通知内容的补充。 | -| longText | 是 | 是 | string | 通知的长文本。 | -| briefText | 是 | 是 | string | 通知概要内容,是对通知内容的总结。 | -| expandedTitle | 是 | 是 | string | 通知展开时的标题。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| -------------- | ------ | ---- | --- | -------------------------------- | +| title | string | 是 | 是 | 通知标题。 | +| text | string | 是 | 是 | 通知内容。 | +| additionalText | string | 是 | 是 | 通知附加内容,是对通知内容的补充。 | +| longText | string | 是 | 是 | 通知的长文本。 | +| briefText | string | 是 | 是 | 通知概要内容,是对通知内容的总结。 | +| expandedTitle | string | 是 | 是 | 通知展开时的标题。 | ## NotificationMultiLineContent @@ -3776,14 +3767,14 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification -| 名称 | 可读 | 可写 | 类型 | 描述 | -| -------------- | --- | --- | --------------- | -------------------------------- | -| title | 是 | 是 | string | 通知标题。 | -| text | 是 | 是 | string | 通知内容。 | -| additionalText | 是 | 是 | string | 通知次要内容,是对通知内容的补充。 | -| briefText | 是 | 是 | string | 通知概要内容,是对通知内容的总结。 | -| longTitle | 是 | 是 | string | 通知展开时的标题。 | -| lines | 是 | 是 | Array\ | 通知的多行文本。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| -------------- | --------------- | --- | --- | -------------------------------- | +| title | string | 是 | 是 | 通知标题。 | +| text | string | 是 | 是 | 通知内容。 | +| additionalText | string | 是 | 是 | 通知附加内容,是对通知内容的补充。 | +| briefText | string | 是 | 是 | 通知概要内容,是对通知内容的总结。 | +| longTitle | string | 是 | 是 | 通知展开时的标题。 | +| lines | Array\ | 是 | 是 | 通知的多行文本。 | ## NotificationPictureContent @@ -3792,14 +3783,14 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification -| 名称 | 可读 | 可写 | 类型 | 描述 | -| -------------- | ---- | --- | -------------- | -------------------------------- | -| title | 是 | 是 | string | 通知标题。 | -| text | 是 | 是 | string | 通知内容。 | -| additionalText | 是 | 是 | string | 通知次要内容,是对通知内容的补充。 | -| briefText | 是 | 是 | string | 通知概要内容,是对通知内容的总结。 | -| expandedTitle | 是 | 是 | string | 通知展开时的标题。 | -| picture | 是 | 是 | image.PixelMap | 通知的图片内容。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| -------------- | -------------- | ---- | --- | -------------------------------- | +| title | string | 是 | 是 | 通知标题。 | +| text | string | 是 | 是 | 通知内容。 | +| additionalText | string | 是 | 是 | 通知附加内容,是对通知内容的补充。 | +| briefText | string | 是 | 是 | 通知概要内容,是对通知内容的总结。 | +| expandedTitle | string | 是 | 是 | 通知展开时的标题。 | +| picture | [image.PixelMap](js-apis-image.md#pixelmap7) | 是 | 是 | 通知的图片内容。 | ## NotificationContent @@ -3808,13 +3799,13 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification -| 名称 | 可读 | 可写 | 类型 | 描述 | -| ----------- | ---- | --- | ------------------------------------------------------------ | ------------------ | -| contentType | 是 | 是 | [ContentType](#contenttype) | 通知内容类型。 | -| normal | 是 | 是 | [NotificationBasicContent](#notificationbasiccontent) | 基本类型通知内容。 | -| longText | 是 | 是 | [NotificationLongTextContent](#notificationlongtextcontent) | 长文本类型通知内容。 | -| multiLine | 是 | 是 | [NotificationMultiLineContent](#notificationmultilinecontent) | 多行类型通知内容。 | -| picture | 是 | 是 | [NotificationPictureContent](#notificationpicturecontent) | 图片类型通知内容。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ----------- | ------------------------------------------------------------ | ---- | --- | ------------------ | +| contentType | [ContentType](#contenttype) | 是 | 是 | 通知内容类型。 | +| normal | [NotificationBasicContent](#notificationbasiccontent) | 是 | 是 | 基本类型通知内容。 | +| longText | [NotificationLongTextContent](#notificationlongtextcontent) | 是 | 是 | 长文本类型通知内容。 | +| multiLine | [NotificationMultiLineContent](#notificationmultilinecontent) | 是 | 是 | 多行类型通知内容。 | +| picture | [NotificationPictureContent](#notificationpicturecontent) | 是 | 是 | 图片类型通知内容。 | ## NotificationFlagStatus @@ -3825,7 +3816,7 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) **系统接口**:此接口为系统接口,三方应用不支持调用。 -| 名称 | 值 | 描述 | +| 名称 | 值 | 说明 | | -------------- | --- | --------------------------------- | | TYPE_NONE | 0 | 默认标志。 | | TYPE_OPEN | 1 | 通知标志打开。 | @@ -3838,10 +3829,10 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification -| 名称 | 可读 | 可写 | 类型 | 描述 | -| ---------------- | ---- | ---- | ---------------------- | --------------------------------- | -| soundEnabled | 是 | 否 | NotificationFlagStatus | 是否启用声音提示。 | -| vibrationEnabled | 是 | 否 | NotificationFlagStatus | 是否启用振动提醒功能。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ---------------- | ---------------------- | ---- | ---- | --------------------------------- | +| soundEnabled | [NotificationFlagStatus](#notificationflagstatus) | 是 | 否 | 是否启用声音提示。 | +| vibrationEnabled | [NotificationFlagStatus](#notificationflagstatus) | 是 | 否 | 是否启用振动提醒功能。 | ## NotificationRequest @@ -3850,45 +3841,45 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification -| 名称 | 可读 | 可写 | 类型 | 说明 | -| --------------------- | ---- | --- | --------------------------------------------- | -------------------------- | -| content | 是 | 是 | [NotificationContent](#notificationcontent) | 通知内容。 | -| id | 是 | 是 | number | 通知ID。 | -| slotType | 是 | 是 | [SlotType](#slottype) | 通道类型。 | -| isOngoing | 是 | 是 | boolean | 是否进行时通知。 | -| isUnremovable | 是 | 是 | boolean | 是否可移除。 | -| deliveryTime | 是 | 是 | number | 通知发送时间。 | -| tapDismissed | 是 | 是 | boolean | 通知是否自动清除。 | -| autoDeletedTime | 是 | 是 | number | 自动清除的时间。 | -| wantAgent | 是 | 是 | WantAgent | WantAgent封装了应用的行为意图,点击通知时触发该行为。 | -| extraInfo | 是 | 是 | {[key: string]: any} | 扩展参数。 | -| color | 是 | 是 | number | 通知背景颜色。暂不支持。 | -| colorEnabled | 是 | 是 | boolean | 通知背景颜色是否使能。暂不支持。 | -| isAlertOnce | 是 | 是 | boolean | 设置是否仅有一次此通知警报。 | -| isStopwatch | 是 | 是 | boolean | 是否显示已用时间。 | -| isCountDown | 是 | 是 | boolean | 是否显示倒计时时间。 | -| isFloatingIcon | 是 | 是 | boolean | 是否显示状态栏图标。 | -| label | 是 | 是 | string | 通知标签。 | -| badgeIconStyle | 是 | 是 | number | 通知角标类型。 | -| showDeliveryTime | 是 | 是 | boolean | 是否显示分发时间。 | -| actionButtons | 是 | 是 | Array\<[NotificationActionButton](#notificationactionbutton)\> | 通知按钮,最多两个按钮。 | -| smallIcon | 是 | 是 | PixelMap | 通知小图标。(可选字段,大小不超过30KB) | -| largeIcon | 是 | 是 | PixelMap | 通知大图标。(可选字段,大小不超过30KB) | -| creatorBundleName | 是 | 否 | string | 创建通知的包名。 | -| creatorUid | 是 | 否 | number | 创建通知的UID。 | -| creatorPid | 是 | 否 | number | 创建通知的PID。 | -| creatorUserId | 是 | 否 | number | 创建通知的UserId。 | -| hashCode | 是 | 否 | string | 通知唯一标识。 | -| classification | 是 | 是 | string | 通知分类。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | -| groupName | 是 | 是 | string | 组通知名称。 | -| template | 是 | 是 | [NotificationTemplate](#notificationtemplate) | 通知模板。 | -| isRemoveAllowed | 是 | 否 | boolean | 通知是否能被移除。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | -| source | 是 | 否 | number | 通知源。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | -| distributedOption | 是 | 是 | [DistributedOptions](#distributedoptions) | 分布式通知的选项。 | -| deviceId | 是 | 否 | string | 通知源的deviceId。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | -| notificationFlags | 是 | 否 | [NotificationFlags](#notificationflags) | 获取NotificationFlags。 | -| removalWantAgent | 是 | 是 | WantAgent | 当移除通知时,通知将被重定向到的WantAgent实例。 | -| badgeNumber | 是 | 是 | number | 应用程序图标上显示的通知数。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| --------------------- | --------------------------------------------- | ---- | --- | -------------------------- | +| content | [NotificationContent](#notificationcontent) | 是 | 是 | 通知内容。 | +| id | number | 是 | 是 | 通知ID。 | +| slotType | [SlotType](#slottype) | 是 | 是 | 通道类型。 | +| isOngoing | boolean | 是 | 是 | 是否进行时通知。 | +| isUnremovable | boolean | 是 | 是 | 是否可移除。 | +| deliveryTime | number | 是 | 是 | 通知发送时间。 | +| tapDismissed | boolean | 是 | 是 | 通知是否自动清除。 | +| autoDeletedTime | number | 是 | 是 | 自动清除的时间。 | +| wantAgent | [WantAgent](js-apis-app-ability-wantAgent.md) | 是 | 是 | WantAgent封装了应用的行为意图,点击通知时触发该行为。 | +| extraInfo | {[key: string]: any} | 是 | 是 | 扩展参数。 | +| color | number | 是 | 是 | 通知背景颜色。预留能力,暂未支持。 | +| colorEnabled | boolean | 是 | 是 | 通知背景颜色是否使能。预留能力,暂未支持。 | +| isAlertOnce | boolean | 是 | 是 | 设置是否仅有一次此通知提醒。 | +| isStopwatch | boolean | 是 | 是 | 是否显示已用时间。 | +| isCountDown | boolean | 是 | 是 | 是否显示倒计时时间。 | +| isFloatingIcon | boolean | 是 | 是 | 是否显示状态栏图标。 | +| label | string | 是 | 是 | 通知标签。 | +| badgeIconStyle | number | 是 | 是 | 通知角标类型。 | +| showDeliveryTime | boolean | 是 | 是 | 是否显示分发时间。 | +| actionButtons | Array\<[NotificationActionButton](#notificationactionbutton)\> | 是 | 是 | 通知按钮,最多两个按钮。 | +| smallIcon | [image.PixelMap](js-apis-image.md#pixelmap7) | 是 | 是 | 通知小图标。可选字段,大小不超过30KB。 | +| largeIcon | [image.PixelMap](js-apis-image.md#pixelmap7) | 是 | 是 | 通知大图标。可选字段,大小不超过30KB。 | +| creatorBundleName | string | 是 | 否 | 创建通知的包名。 | +| creatorUid | number | 是 | 否 | 创建通知的UID。 | +| creatorPid | number | 是 | 否 | 创建通知的PID。 | +| creatorUserId| number | 是 | 否 | 创建通知的UserId。 | +| hashCode | string | 是 | 否 | 通知唯一标识。 | +| classification | string | 是 | 是 | 通知分类。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | +| groupName| string | 是 | 是 | 组通知名称。 | +| template | [NotificationTemplate](#notificationtemplate) | 是 | 是 | 通知模板。 | +| isRemoveAllowed | boolean | 是 | 否 | 通知是否能被移除。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | +| source | number | 是 | 否 | 通知源。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | +| distributedOption | [DistributedOptions](#distributedoptions) | 是 | 是 | 分布式通知的选项。 | +| deviceId | string | 是 | 否 | 通知源的deviceId。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | +| notificationFlags | [NotificationFlags](#notificationflags) | 是 | 否 | 获取NotificationFlags。 | +| removalWantAgent | [WantAgent](js-apis-app-ability-wantAgent.md) | 是 | 是 | 当移除通知时,通知将被重定向到的WantAgent实例。 | +| badgeNumber | number | 是 | 是 | 应用程序图标上显示的通知数。 | ## DistributedOptions @@ -3897,12 +3888,12 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification -| 名称 | 可读 | 可写 | 类型 | 描述 | -| ---------------------- | ---- | ---- | -------------- | ---------------------------------- | -| isDistributed | 是 | 是 | boolean | 是否为分布式通知。 | -| supportDisplayDevices | 是 | 是 | Array\ | 可以同步通知到的设备类型。 | -| supportOperateDevices | 是 | 是 | Array\ | 可以打开通知的设备。 | -| remindType | 是 | 否 | number | 通知的提醒方式。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ---------------------- | -------------- | ---- | ---- | ---------------------------------- | +| isDistributed | boolean | 是 | 是 | 是否为分布式通知。 | +| supportDisplayDevices | Array\ | 是 | 是 | 可以同步通知到的设备列表。 | +| supportOperateDevices | Array\ | 是 | 是 | 可以打开通知的设备列表。 | +| remindType | number | 是 | 否 | 通知的提醒方式。
**系统API**: 此接口为系统接口,三方应用不支持调用。 | ## NotificationSlot @@ -3911,20 +3902,20 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification -| 名称 | 可读 | 可写 | 类型 | 描述 | -| -------------------- | ---- | --- | --------------------- | ------------------------------------------ | -| type | 是 | 是 | [SlotType](#slottype) | 通道类型。 | -| level | 是 | 是 | number | 通知级别,不设置则根据通知渠道类型有默认值。 | -| desc | 是 | 是 | string | 通知渠道描述信息。 | -| badgeFlag | 是 | 是 | boolean | 是否显示角标。 | -| bypassDnd | 是 | 是 | boolean | 置是否在系统中绕过免打扰模式。 | -| lockscreenVisibility | 是 | 是 | number | 在锁定屏幕上显示通知的模式。 | -| vibrationEnabled | 是 | 是 | boolean | 是否可振动。 | -| sound | 是 | 是 | string | 通知提示音。 | -| lightEnabled | 是 | 是 | boolean | 是否闪灯。 | -| lightColor | 是 | 是 | number | 通知灯颜色。 | -| vibrationValues | 是 | 是 | Array\ | 通知振动样式。 | -| enabled9+ | 是 | 否 | boolean | 此通知插槽中的启停状态。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| -------------------- | --------------------- | ---- | --- | ------------------------------------------ | +| type | [SlotType](#slottype) | 是 | 是 | 通道类型。 | +| level | number | 是 | 是 | 通知级别,不设置则根据通知渠道类型有默认值。 | +| desc | string | 是 | 是 | 通知渠道描述信息。 | +| badgeFlag | boolean | 是 | 是 | 是否显示角标。 | +| bypassDnd | boolean | 是 | 是 | 置是否在系统中绕过免打扰模式。 | +| lockscreenVisibility | number | 是 | 是 | 在锁定屏幕上显示通知的模式。 | +| vibrationEnabled | boolean | 是 | 是 | 是否可振动。 | +| sound | string | 是 | 是 | 通知提示音。 | +| lightEnabled | boolean | 是 | 是 | 是否闪灯。 | +| lightColor | number | 是 | 是 | 通知灯颜色。 | +| vibrationValues | Array\ | 是 | 是 | 通知振动样式。 | +| enabled9+ | boolean | 是 | 否 | 此通知插槽中的启停状态。 | ## NotificationTemplate @@ -3933,7 +3924,7 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification -| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | ---- | ---------------------- | ---- | ---- | ---------- | | name | string | 是 | 是 | 模板名称。 | | data | {[key:string]: Object} | 是 | 是 | 模板数据。 | @@ -3945,9 +3936,9 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) **系统能力**:SystemCapability.Notification.Notification -| 名称 | 可读 | 可写 | 类型 | 描述 | -| -------- | --- | ---- | ------ | ----------------------------- | -| inputKey | 是 | 是 | string | 用户输入时用于标识此输入的key。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| -------- | ------ | --- | ---- | ----------------------------- | +| inputKey | string | 是 | 是 | 用户输入时用于标识此输入的key。 | ## DeviceRemindType @@ -3956,7 +3947,7 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) **系统API**: 此接口为系统接口,三方应用不支持调用。 -| 名称 | 值 | 描述 | +| 名称 | 值 | 说明 | | -------------------- | --- | --------------------------------- | | IDLE_DONOT_REMIND | 0 | 设备未被使用,无需提醒。 | | IDLE_REMIND | 1 | 提醒设备未被使用。 | @@ -3970,7 +3961,7 @@ Notification.getSyncNotificationEnabledWithoutApp(userId) **系统API**: 此接口为系统接口,三方应用不支持调用。 -| 名称 | 值 | 描述 | +| 名称 | 值 | 说明 | | -------------------- | --- | -------------------- | | TYPE_NORMAL | 0 | 一般通知。 | | TYPE_CONTINUOUS | 1 | 连续通知。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-notificationSubscribe.md b/zh-cn/application-dev/reference/apis/js-apis-notificationSubscribe.md index da154974391b7ac513b31ca4d2485272c0de2205..feddf226db95238b7e378530d9e2fcb043b4ca89 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-notificationSubscribe.md +++ b/zh-cn/application-dev/reference/apis/js-apis-notificationSubscribe.md @@ -28,10 +28,10 @@ subscribe(subscriber: NotificationSubscriber, info: NotificationSubscribeInfo, c **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ---------- | ------------------------- | ---- | ---------------- | | subscriber | [NotificationSubscriber](#notificationsubscriber) | 是 | 通知订阅对象。 | -| info | [NotificationSubscribeInfo](#notificationsubscribeinfo) | 是 | 订阅信息。 | +| info | [NotificationSubscribeInfo](#notificationsubscribeinfo) | 是 | 通知订阅信息。 | | callback | AsyncCallback\ | 是 | 订阅动作回调函数。 | **错误码:** @@ -71,7 +71,7 @@ NotificationSubscribe.subscribe(subscriber, info, subscribeCallback); subscribe(subscriber: NotificationSubscriber, callback: AsyncCallback\): void -订阅通知并指定订阅信息(callback形式)。 +订阅当前用户下所有应用的通知(callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -81,7 +81,7 @@ subscribe(subscriber: NotificationSubscriber, callback: AsyncCallback\): **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ---------- | ---------------------- | ---- | ---------------- | | subscriber | [NotificationSubscriber](#notificationsubscriber) | 是 | 通知订阅对象。 | | callback | AsyncCallback\ | 是 | 订阅动作回调函数。 | @@ -129,10 +129,10 @@ subscribe(subscriber: NotificationSubscriber, info?: NotificationSubscribeInfo): **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ---------- | ------------------------- | ---- | ------------ | | subscriber | [NotificationSubscriber](#notificationsubscriber) | 是 | 通知订阅对象。 | -| info | [NotificationSubscribeInfo](#notificationsubscribeinfo) | 否 | 订阅信息。 | +| info | [NotificationSubscribeInfo](#notificationsubscribeinfo) | 否 | 通知订阅信息。 | **错误码:** @@ -146,17 +146,13 @@ subscribe(subscriber: NotificationSubscriber, info?: NotificationSubscribeInfo): ```js function onConsumeCallback(data) { - if (err) { - console.info("subscribe failed " + JSON.stringify(err)); - } else { - console.info("subscribe success"); - } + console.info("Consume callback: " + JSON.stringify(data)); } var subscriber = { onConsume: onConsumeCallback }; NotificationSubscribe.subscribe(subscriber).then(() => { - console.info("subscribe sucess"); + console.info("subscribe success"); }); ``` @@ -176,7 +172,7 @@ unsubscribe(subscriber: NotificationSubscriber, callback: AsyncCallback\) **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ---------- | ---------------------- | ---- | -------------------- | | subscriber | [NotificationSubscriber](#notificationsubscriber) | 是 | 通知订阅对象。 | | callback | AsyncCallback\ | 是 | 取消订阅动作回调函数。 | @@ -199,11 +195,11 @@ function unsubscribeCallback(err) { console.info("unsubscribe success"); } } -function onCancelCallback(data) { +function onDisconnectCallback(data) { console.info("Cancel callback: " + JSON.stringify(data)); } var subscriber = { - onCancel: onCancelCallback + onDisconnect: onDisconnectCallback } NotificationSubscribe.unsubscribe(subscriber, unsubscribeCallback); ``` @@ -224,7 +220,7 @@ unsubscribe(subscriber: NotificationSubscriber): Promise\ **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ---------- | ---------------------- | ---- | ------------ | | subscriber | [NotificationSubscriber](#notificationsubscriber) | 是 | 通知订阅对象。 | @@ -239,14 +235,14 @@ unsubscribe(subscriber: NotificationSubscriber): Promise\ **示例:** ```js -function onCancelCallback(data) { +function onDisconnectCallback(data) { console.info("Cancel callback: " + JSON.stringify(data)); } var subscriber = { - onCancel: onCancelCallback + onDisconnect: onDisconnectCallback }; NotificationSubscribe.unsubscribe(subscriber).then(() => { - console.info("unsubscribe sucess"); + console.info("unsubscribe success"); }); ``` @@ -266,9 +262,9 @@ remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveRea **参数:** -| 名称 | 类型 | 必填 | 说明 | +| 参数名 | 类型 | 必填 | 说明 | | --------------- | ----------------------------------| ---- | -------------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | | notificationKey | [NotificationKey](#notificationkey) | 是 | 通知键值。 | | reason | [RemoveReason](#removereason) | 是 | 通知删除原因。 | | callback | AsyncCallback\ | 是 | 删除指定通知回调函数。 | @@ -320,9 +316,9 @@ remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveRea **参数:** -| 名称 | 类型 | 必填 | 说明 | +| 参数名 | 类型 | 必填 | 说明 | | --------------- | --------------- | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | | notificationKey | [NotificationKey](#notificationkey) | 是 | 通知键值。 | | reason | [RemoveReason](#removereason) | 是 | 通知删除原因。 | @@ -348,7 +344,7 @@ var notificationKey = { } var reason = NotificationSubscribe.RemoveReason.CLICK_REASON_REMOVE; NotificationSubscribe.remove(bundle, notificationKey, reason).then(() => { - console.info("remove sucess"); + console.info("remove success"); }); ``` @@ -368,9 +364,9 @@ remove(hashCode: string, reason: RemoveReason, callback: AsyncCallback\): **参数:** -| 名称 | 类型 | 必填 | 说明 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | -------------------- | -| hashCode | string | 是 | 通知唯一ID。 | +| hashCode | string | 是 | 通知唯一ID。可以通过[onConsume](#onconsume)回调的入参[SubscribeCallbackData](#subscribecallbackdata)获取其内部[NotificationRequest](#notificationrequest)对象中的hashCode。 | | reason | [RemoveReason](#removereason) | 是 | 通知删除原因。 | | callback | AsyncCallback\ | 是 | 删除指定通知回调函数。 | @@ -415,7 +411,7 @@ remove(hashCode: string, reason: RemoveReason): Promise\ **参数:** -| 名称 | 类型 | 必填 | 说明 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | ---------- | ---- | ---------- | | hashCode | string | 是 | 通知唯一ID。 | | reason | [RemoveReason](#removereason) | 是 | 通知删除原因。 | @@ -435,7 +431,7 @@ remove(hashCode: string, reason: RemoveReason): Promise\ var hashCode = 'hashCode' var reason = NotificationSubscribe.RemoveReason.CLICK_REASON_REMOVE; NotificationSubscribe.remove(hashCode, reason).then(() => { - console.info("remove sucess"); + console.info("remove success"); }); ``` @@ -445,7 +441,7 @@ NotificationSubscribe.remove(hashCode, reason).then(() => { removeAll(bundle: BundleOption, callback: AsyncCallback\): void -删除指定包的所有通知(Callback形式)。 +删除指定应用的所有通知(Callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -455,10 +451,10 @@ removeAll(bundle: BundleOption, callback: AsyncCallback\): void **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | ---------------------------- | -| bundle | [BundleOption](#bundleoption) | 是 | 指定包信息。 | -| callback | AsyncCallback\ | 是 | 删除指定包的所有通知回调函数。 | +| bundle | [BundleOption](#bundleoption) | 是 | 指定应用的包信息。 | +| callback | AsyncCallback\ | 是 | 删除指定应用的所有通知回调函数。 | **错误码:** @@ -501,7 +497,7 @@ removeAll(callback: AsyncCallback\): void **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------- | ---- | -------------------- | | callback | AsyncCallback\ | 是 | 删除所有通知回调函数。 | @@ -533,7 +529,7 @@ NotificationSubscribe.removeAll(removeAllCallback); removeAll(bundle?: BundleOption): Promise\ -删除所有通知(Promise形式)。 +删除指定应用的所有通知(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -543,9 +539,9 @@ removeAll(bundle?: BundleOption): Promise\ **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| bundle | [BundleOption](#bundleoption) | 否 | 指定包信息。 | +| bundle | [BundleOption](#bundleoption) | 否 | 指定应用的包信息。 | **错误码:** @@ -559,8 +555,9 @@ removeAll(bundle?: BundleOption): Promise\ **示例:** ```js +// 不指定应用时,删除所有通知 NotificationSubscribe.removeAll().then(() => { - console.info("removeAll sucess"); + console.info("removeAll success"); }); ``` @@ -568,7 +565,7 @@ NotificationSubscribe.removeAll().then(() => { removeAll(userId: number, callback: AsyncCallback\): void -删除所有通知(callback形式)。 +删除指定用户下的所有通知(callback形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -578,10 +575,10 @@ removeAll(userId: number, callback: AsyncCallback\): void **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| userId | number | 是 | 接收通知用户的Id。 | -| callback | AsyncCallback\ | 是 | 删除所有通知回调函数。 | +| userId | number | 是 | 用户ID。 | +| callback | AsyncCallback\ | 是 | 删除指定用户所有通知回调函数。 | **错误码:** @@ -612,7 +609,7 @@ NotificationSubscribe.removeAll(userId, removeAllCallback); removeAll(userId: number): Promise\ -删除所有通知(Promise形式)。 +删除指定用户下的所有通知(Promise形式)。 **系统能力**:SystemCapability.Notification.Notification @@ -622,9 +619,9 @@ removeAll(userId: number): Promise\ **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ------ | ------------ | ---- | ---------- | -| userId | number | 是 | 接收通知用户的Id。 | +| userId | number | 是 | 用户ID。 | **错误码:** @@ -655,7 +652,7 @@ NotificationSubscribe.removeAll(userId, removeAllCallback); ## NotificationSubscriber -提供订阅者接收到新通知或取消通知时的回调方法。 +作为订阅通知接口[subscribe](#notificationsubscribe)的入参,提供订阅者接收到新通知、取消通知等的回调方法。 **系统API**:此接口为系统接口,三方应用不支持调用。 @@ -663,7 +660,7 @@ NotificationSubscribe.removeAll(userId, removeAllCallback); onConsume?: (data: [SubscribeCallbackData](#subscribecallbackdata)) => void -接收通知回调函数。 +接收到新通知的回调函数。 **系统能力**:SystemCapability.Notification.Notification @@ -673,7 +670,7 @@ onConsume?: (data: [SubscribeCallbackData](#subscribecallbackdata)) => void | 参数名 | 类型 | 必填 | 说明 | | ------------ | ------------------------ | ---- | -------------------------- | -| data | [SubscribeCallbackData](#subscribecallbackdata) | 是 | 回调返回接收到的通知信息。 | +| data | [SubscribeCallbackData](#subscribecallbackdata) | 是 | 新接收到的通知信息。 | **示例:** @@ -703,7 +700,7 @@ NotificationSubscribe.subscribe(subscriber, subscribeCallback); onCancel?:(data: [SubscribeCallbackData](#subscribecallbackdata)) => void -删除通知回调函数。 +取消通知的回调函数。 **系统能力**:SystemCapability.Notification.Notification @@ -713,7 +710,7 @@ onCancel?:(data: [SubscribeCallbackData](#subscribecallbackdata)) => void | 参数名 | 类型 | 必填 | 说明 | | ------------ | ------------------------ | ---- | -------------------------- | -| data | [SubscribeCallbackData](#subscribecallbackdata) | 是 | 回调返回接收到的通知信息。 | +| data | [SubscribeCallbackData](#subscribecallbackdata) | 是 | 需要取消的通知信息。 | **示例:** @@ -743,7 +740,7 @@ NotificationSubscribe.subscribe(subscriber, subscribeCallback); onUpdate?:(data: [NotificationSortingMap](#notificationsortingmap)) => void -更新通知排序回调函数。 +更新通知排序的回调函数。 **系统能力**:SystemCapability.Notification.Notification @@ -753,7 +750,7 @@ onUpdate?:(data: [NotificationSortingMap](#notificationsortingmap)) => void | 参数名 | 类型 | 必填 | 说明 | | ------------ | ------------------------ | ---- | -------------------------- | -| data | [NotificationSortingMap](#notificationsortingmap) | 是 | 回调返回接收到的通知信息。 | +| data | [NotificationSortingMap](#notificationsortingmap) | 是 | 最新的通知排序列表。 | **示例:** @@ -766,8 +763,8 @@ function subscribeCallback(err) { } }; -function onUpdateCallback() { - console.info('===> onUpdate in test'); +function onUpdateCallback(map) { + console.info('===> onUpdateCallback map:' + JSON.stringify(map)); } var subscriber = { @@ -781,7 +778,7 @@ NotificationSubscribe.subscribe(subscriber, subscribeCallback); onConnect?:() => void -注册订阅回调函数。 +订阅完成的回调函数。 **系统能力**:SystemCapability.Notification.Notification @@ -813,7 +810,7 @@ NotificationSubscribe.subscribe(subscriber, subscribeCallback); onDisconnect?:() => void -取消订阅回调函数。 +取消订阅的回调函数。 **系统能力**:SystemCapability.Notification.Notification @@ -829,16 +826,30 @@ function subscribeCallback(err) { console.info("subscribeCallback"); } }; +function unsubscribeCallback(err) { + if (err.code) { + console.info("unsubscribe failed " + JSON.stringify(err)); + } else { + console.info("unsubscribeCallback"); + } +}; +function onConnectCallback() { + console.info('===> onConnect in test'); +} function onDisconnectCallback() { console.info('===> onDisconnect in test'); } var subscriber = { + onConnect: onConnectCallback, onDisconnect: onDisconnectCallback }; +// 订阅通知后会收到onConnect回调 NotificationSubscribe.subscribe(subscriber, subscribeCallback); +// 取消订阅后会收到onDisconnect回调 +NotificationSubscribe.unsubscribe(subscriber, unsubscribeCallback); ``` ### onDestroy @@ -877,7 +888,7 @@ NotificationSubscribe.subscribe(subscriber, subscribeCallback); onDoNotDisturbDateChange?:(mode: notification.[DoNotDisturbDate](js-apis-notificationManager.md#donotdisturbdate)) => void -免打扰时间选项变更回调函数。 +免打扰时间选项发生变更时的回调函数。 **系统能力**:SystemCapability.Notification.Notification @@ -900,8 +911,8 @@ function subscribeCallback(err) { } }; -function onDoNotDisturbDateChangeCallback() { - console.info('===> onDoNotDisturbDateChange in test'); +function onDoNotDisturbDateChangeCallback(mode) { + console.info('===> onDoNotDisturbDateChange:' + mode); } var subscriber = { @@ -956,19 +967,19 @@ NotificationSubscribe.subscribe(subscriber, subscribeCallback); **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification -| 名称 | 可读 | 可写 | 类型 | 说明 | -| ------ | ---- | ---- | ------ | -------- | -| bundle | 是 | 是 | string | 包名。 | -| uid | 是 | 是 | number | 用户id。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ------ | ------ |---- | --- | ------ | +| bundle | string | 是 | 是 | 应用的包信息。 | +| uid | number | 是 | 是 | 用户ID。 | ## NotificationKey **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification -| 名称 | 可读 | 可写 | 类型 | 说明 | -| ----- | ---- | ---- | ------ | ---------- | -| id | 是 | 是 | number | 通知ID。 | -| label | 是 | 是 | string | 通知标签。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ----- | ------ | ---- | --- | -------- | +| id | number | 是 | 是 | 通知ID。 | +| label | string | 是 | 是 | 通知标签。 | ## SubscribeCallbackData @@ -976,13 +987,13 @@ NotificationSubscribe.subscribe(subscriber, subscribeCallback); **系统API**:此接口为系统接口,三方应用不支持调用。 -| 名称 | 可读 | 可写 | 类型 | 说明 | -| --------------- | ---- | --- | ------------------------------------------------- | -------- | -| request | 是 | 否 | [NotificationRequest](js-apis-notificationManager.md#notificationrequest) | 通知内容。 | -| sortingMap | 是 | 否 | [NotificationSortingMap](#notificationsortingmap) | 排序信息。 | -| reason | 是 | 否 | number | 删除原因。 | -| sound | 是 | 否 | string | 通知声音。 | -| vibrationValues | 是 | 否 | Array\ | 通知震动。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| --------------- | ------------------------------------------------- | -------- | -------- | -------- | +| request | [NotificationRequest](js-apis-notificationManager.md#notificationrequest) | 是 | 否 | 通知内容。 | +| sortingMap | [NotificationSortingMap](#notificationsortingmap) | 是 | 否 | 排序信息。 | +| reason | number | 是 | 否 | 删除原因。 | +| sound | string | 是 | 否 | 通知声音。 | +| vibrationValues | Array\ | 是 | 否 | 通知震动。 | ## EnabledNotificationCallbackData @@ -991,11 +1002,11 @@ NotificationSubscribe.subscribe(subscriber, subscribeCallback); **系统API**:此接口为系统接口,三方应用不支持调用。 -| 名称 | 可读 | 可写 | 类型 | 描述 | -| ------ | ---- | --- | ------- | ---------------- | -| bundle | 是 | 否 | string | 应用的包名。 | -| uid | 是 | 否 | number | 应用的uid。 | -| enable | 是 | 否 | boolean | 应用通知使能状态。 | +| 名称 | 类型 | 可读 | 可写 | 描述 | +| ------ | ------- | ---------------- | ---------------- | ---------------- | +| bundle | string | 是 | 否 | 应用的包名。 | +| uid | number | 是 | 否 | 应用的uid。 | +| enable | boolean | 是 | 否 | 应用通知使能状态。 | ## NotificationSorting @@ -1006,11 +1017,11 @@ NotificationSubscribe.subscribe(subscriber, subscribeCallback); **系统API**: 此接口为系统接口,三方应用不支持调用。 -| 名称 | 可读 | 可写 | 类型 | 说明 | -| -------- | ---- | --- | ------------------------------------- | ------------ | -| slot | 是 | 否 | [NotificationSlot](js-apis-notificationManager.md#notificationslot) | 通知通道内容。 | -| hashCode | 是 | 否 | string | 通知唯一标识。 | -| ranking | 是 | 否 | number | 通知排序序号。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| -------- | ------------------------------------- | ---- | --- | ------------ | +| slot | [NotificationSlot](js-apis-notificationManager.md#notificationslot) | 是 | 否 | 通知通道内容。 | +| hashCode | string | 是 | 否 | 通知唯一标识。 | +| ranking | number | 是 | 否 | 通知排序序号。 | ## NotificationSortingMap @@ -1021,10 +1032,10 @@ NotificationSubscribe.subscribe(subscriber, subscribeCallback); **系统API**:此接口为系统接口,三方应用不支持调用。 -| 名称 | 可读 | 可写 | 类型 | 说明 | -| -------------- | ---- | --- | ------------------------------------------------------------ | ---------------- | -| sortings | 是 | 否 | {[key: string]: [NotificationSorting](#notificationsorting)} | 通知排序信息数组。 | -| sortedHashCode | 是 | 否 | Array\ | 通知唯一标识数组。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| -------------- | ------------------------------------------------------------ | ---- | --- | ---------------- | +| sortings | {[key: string]: [NotificationSorting](#notificationsorting)} | 是 | 否 | 通知排序信息数组。 | +| sortedHashCode | Array\ | 是 | 否 | 通知唯一标识数组。 | ## NotificationSubscribeInfo @@ -1035,10 +1046,10 @@ NotificationSubscribe.subscribe(subscriber, subscribeCallback); **系统API**: 此接口为系统接口,三方应用不支持调用。 -| 名称 | 可读 | 可写 | 类型 | 描述 | -| ----------- | --- | ---- | --------------- | ------------------------------- | -| bundleNames | 是 | 是 | Array\ | 指定订阅哪些包名的APP发来的通知。 | -| userId | 是 | 是 | number | 指定订阅哪个用户下发来的通知。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ----------- | --------------- | --- | ---- | ------------------------------- | +| bundleNames | Array\ | 是 | 是 | 指定订阅哪些包名的APP发来的通知。 | +| userId | number | 是 | 是 | 指定订阅哪个用户下发来的通知。 | ## NotificationUserInput @@ -1047,9 +1058,9 @@ NotificationSubscribe.subscribe(subscriber, subscribeCallback); **系统能力**:SystemCapability.Notification.Notification -| 名称 | 可读 | 可写 | 类型 | 描述 | -| -------- | --- | ---- | ------ | ----------------------------- | -| inputKey | 是 | 是 | string | 用户输入时用于标识此输入的key。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| -------- | ------ | --- | ---- | ----------------------------- | +| inputKey | string | 是 | 是 | 用户输入时用于标识此输入的key。 | ## RemoveReason @@ -1057,7 +1068,7 @@ NotificationSubscribe.subscribe(subscriber, subscribeCallback); **系统API**: 此接口为系统接口,三方应用不支持调用。 -| 名称 | 值 | 描述 | +| 名称 | 值 | 说明 | | -------------------- | --- | -------------------- | | CLICK_REASON_REMOVE | 1 | 点击通知后删除通知。 | | CANCEL_REASON_REMOVE | 2 | 用户删除通知。 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-permissionrequestresult.md b/zh-cn/application-dev/reference/apis/js-apis-permissionrequestresult.md new file mode 100644 index 0000000000000000000000000000000000000000..d65424254e1d0ae8c02899c441b5fb0c96fd3296 --- /dev/null +++ b/zh-cn/application-dev/reference/apis/js-apis-permissionrequestresult.md @@ -0,0 +1,38 @@ +# PermissionRequestResult + +权限请求结果对象,在调用[requestPermissionsFromUser](js-apis-abilityAccessCtrl.md#requestpermissionsfromuser9)申请权限时返回此对象表明此次权限申请的结果。 + +> **说明:** +> +> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> 本模块接口仅可在Stage模型下使用。 + +## 属性 + +**系统能力**:以下各项对应的系统能力均为SystemCapability.Security.AccessToken + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| -------- | -------- | -------- | -------- | -------- | +| permissions | Array<string> | 是 | 否 | 用户传入的权限。| +| authResults | Array<number> | 是 | 否 | 相应请求权限的结果:0表示授权成功,非0表示失败。 | + +## 使用说明 + +通过atManager实例来获取。 + +**示例:** +```ts +import abilityAccessCtrl from '@ohos.abilityAccessCtrl'; +let atManager = abilityAccessCtrl.createAtManager(); +try { + atManager.requestPermissionsFromUser(this.context, ["ohos.permission.MANAGE_DISPOSED_APP_STATUS"]).then((data) => { + console.info("data:" + JSON.stringify(data)); + console.info("data permissions:" + data.permissions); + console.info("data authResults:" + data.authResults); + }).catch((err) => { + console.info("data:" + JSON.stringify(err)); + }) +} catch(err) { + console.log(`catch err->${JSON.stringify(err)}`); +} +``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-plainarray.md b/zh-cn/application-dev/reference/apis/js-apis-plainarray.md index 8fe09c24839ba17856f98cbae632af31b584b01f..fc77c0039193bd8988b6045c2b8d0837405df710 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-plainarray.md +++ b/zh-cn/application-dev/reference/apis/js-apis-plainarray.md @@ -1,6 +1,6 @@ # @ohos.util.PlainArray (非线性容器PlainArray) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 PlainArray可用于存储具有关联关系的key-value键值对集合,存储元素中key值唯一,key值类型为number类型,每个key对应一个value。 @@ -43,7 +43,7 @@ PlainArray的构造函数。 **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -72,7 +72,7 @@ isEmpty(): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -108,7 +108,7 @@ has(key: number): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -146,7 +146,7 @@ get(key: number): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -184,7 +184,7 @@ getIndexOfKey(key: number): number **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -222,7 +222,7 @@ getIndexOfValue(value: T): number **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -260,7 +260,7 @@ getKeyAt(index: number): number **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -297,7 +297,7 @@ getValueAt(index: number): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -329,7 +329,7 @@ clone(): PlainArray<T> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -362,7 +362,7 @@ add(key: number, value: T): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -398,7 +398,7 @@ remove(key: number): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -436,7 +436,7 @@ removeAt(index: number): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -475,7 +475,7 @@ removeRangeFrom(index: number, size: number): number **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -509,7 +509,7 @@ setValueAt(index: number, value: T): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -542,7 +542,7 @@ toString(): String **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -568,7 +568,7 @@ clear(): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -608,7 +608,7 @@ callbackfn的参数说明: **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -642,7 +642,7 @@ plainArray.forEach((value, index) => { **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-pointer.md b/zh-cn/application-dev/reference/apis/js-apis-pointer.md index 97eac7d233ccd4b8cafe3b9ec017b83a3db4aa7c..cb8bab502a388bba94fceba5a648cbb8788cc842 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-pointer.md +++ b/zh-cn/application-dev/reference/apis/js-apis-pointer.md @@ -276,7 +276,7 @@ import window from '@ohos.window'; window.getTopWindow((error, win) => { win.getProperties((error, properties) => { - var windowId = properties.id; + let windowId = properties.id; if (windowId < 0) { console.log(`Invalid windowId`); return; @@ -319,7 +319,7 @@ import window from '@ohos.window'; window.getTopWindow((error, win) => { win.getProperties((error, properties) => { - var windowId = properties.id; + let windowId = properties.id; if (windowId < 0) { console.log(`Invalid windowId`); return; @@ -358,7 +358,7 @@ import window from '@ohos.window'; window.getTopWindow((error, win) => { win.getProperties((error, properties) => { - var windowId = properties.id; + let windowId = properties.id; if (windowId < 0) { console.log(`Invalid windowId`); return; @@ -396,7 +396,7 @@ import window from '@ohos.window'; window.getTopWindow((error, win) => { win.getProperties((error, properties) => { - var windowId = properties.id; + let windowId = properties.id; if (windowId < 0) { console.log(`Invalid windowId`); return; diff --git a/zh-cn/application-dev/reference/apis/js-apis-queue.md b/zh-cn/application-dev/reference/apis/js-apis-queue.md index 1ba5638e28fc37429639276698d8cd1eeb5a2a3e..16de01a60ca82cc5c37435924b2dd7f1fcbe9c8d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-queue.md +++ b/zh-cn/application-dev/reference/apis/js-apis-queue.md @@ -1,6 +1,6 @@ # @ohos.util.Queue (线性容器Queue) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 Queue的特点是先进先出,在尾部增加元素,在头部删除元素。根据循环队列的数据结构实现。 @@ -40,7 +40,7 @@ Queue的构造函数。 **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -75,7 +75,7 @@ add(element: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -109,7 +109,7 @@ pop(): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -143,7 +143,7 @@ getFirst(): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -186,7 +186,7 @@ callbackfn的参数说明: **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -221,7 +221,7 @@ queue.forEach((value, index) => { **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-reminderAgent.md b/zh-cn/application-dev/reference/apis/js-apis-reminderAgent.md index 659a4c964d96ff94d0d57085d6571d2b84282ebd..8092ac7b926a187f7067b4c7fc79bb480f5e6056 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-reminderAgent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-reminderAgent.md @@ -431,7 +431,7 @@ reminderAgent.removeNotificationSlot(notification.SlotType.CONTENT_INFORMATION). | 名称 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| pkgName | string | 是 | 指明点击提醒通知栏后跳转的目标hap包名。 | +| pkgName | string | 是 | 指明点击提醒通知栏后跳转的目标HAP名。 | | abilityName | string | 是 | 指明点击提醒通知栏后跳转的目标ability名称。 | @@ -443,7 +443,7 @@ reminderAgent.removeNotificationSlot(notification.SlotType.CONTENT_INFORMATION). | 名称 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| pkgName | string | 是 | 指明提醒到达时自动拉起的目标hap包名(如果设备在使用中,则只弹出通知横幅框)。 | +| pkgName | string | 是 | 指明提醒到达时自动拉起的目标HAP名(如果设备在使用中,则只弹出通知横幅框)。 | | abilityName | string | 是 | 指明提醒到达时自动拉起的目标ability名(如果设备在使用中,则只弹出通知横幅框)。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-reminderAgentManager.md b/zh-cn/application-dev/reference/apis/js-apis-reminderAgentManager.md index 6613c23ad51cc7e9be4ef086e8a5025c1755b34d..bc10d5d090c7463b4bc75c5e2fc420385e560718 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-reminderAgentManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-reminderAgentManager.md @@ -580,7 +580,7 @@ try { | 名称 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| pkgName | string | 是 | 指明点击提醒通知栏后跳转的目标hap包名。 | +| pkgName | string | 是 | 指明点击提醒通知栏后跳转的目标HAP名。 | | abilityName | string | 是 | 指明点击提醒通知栏后跳转的目标ability名称。 | @@ -592,7 +592,7 @@ try { | 名称 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| pkgName | string | 是 | 指明提醒到达时自动拉起的目标hap包名(如果设备在使用中,则只弹出通知横幅框)。 | +| pkgName | string | 是 | 指明提醒到达时自动拉起的目标HAP名(如果设备在使用中,则只弹出通知横幅框)。 | | abilityName | string | 是 | 指明提醒到达时自动拉起的目标ability名(如果设备在使用中,则只弹出通知横幅框)。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-request.md b/zh-cn/application-dev/reference/apis/js-apis-request.md index a9e649ed9f9ac8f5f92a10764beaf0f94d0162d6..e46673c4ea8afaed51a16428f2c9d59e31658486 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-request.md +++ b/zh-cn/application-dev/reference/apis/js-apis-request.md @@ -112,11 +112,15 @@ uploadFile(context: BaseContext, config: UploadConfig): Promise<UploadTask> files: [{ filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" }], data: [{ name: "name123", value: "123" }], }; - request.uploadFile(globalThis.abilityContext, uploadConfig).then((data) => { + try { + request.uploadFile(globalThis.abilityContext, uploadConfig).then((data) => { uploadTask = data; - }).catch((err) => { - console.error('Failed to request the upload. Cause: ' + JSON.stringify(err)); - }); + }).catch((err) => { + console.error('Failed to request the upload. Cause: ' + JSON.stringify(err)); + }); + } catch (err) { + console.error('err.code : ' + err.code + ', err.message : ' + err.message); + } ``` @@ -156,13 +160,17 @@ uploadFile(context: BaseContext, config: UploadConfig, callback: AsyncCallback&l files: [{ filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" }], data: [{ name: "name123", value: "123" }], }; - request.uploadFile(globalThis.abilityContext, uploadConfig, (err, data) => { + try { + request.uploadFile(globalThis.abilityContext, uploadConfig, (err, data) => { if (err) { console.error('Failed to request the upload. Cause: ' + JSON.stringify(err)); return; } uploadTask = data; - }); + }); + } catch (err) { + console.error('err.code : ' + err.code + ', err.message : ' + err.message); + } ``` ## request.upload(deprecated) @@ -363,8 +371,8 @@ on(type: 'progress', callback:(uploadedSize: number, totalSize: number) => vo | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| uploadedSize | number | 是 | 当前已上传文件大小,单位为KB。 | -| totalSize | number | 是 | 上传文件的总大小,单位为KB。 | +| uploadedSize | number | 是 | 当前已上传文件大小,单位为B。 | +| totalSize | number | 是 | 上传文件的总大小,单位为B。 | **示例:** @@ -472,8 +480,8 @@ off(type: 'progress', callback?: (uploadedSize: number, totalSize: number) =&g | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| uploadedSize | number | 是 | 当前已上传文件的大小,单位为KB。 | -| totalSize | number | 是 | 上传文件的总大小,单位为KB。 | +| uploadedSize | number | 是 | 当前已上传文件的大小,单位为B。 | +| totalSize | number | 是 | 上传文件的总大小,单位为B。 | **示例:** @@ -775,11 +783,15 @@ downloadFile(context: BaseContext, config: DownloadConfig): Promise<DownloadT ```js let downloadTask; - request.downloadFile(globalThis.abilityContext, { url: 'https://xxxx/xxxx.hap' }).then((data) => { - downloadTask = data; - }).catch((err) => { - console.error('Failed to request the download. Cause: ' + JSON.stringify(err)); - }) + try { + request.downloadFile(globalThis.abilityContext, { url: 'https://xxxx/xxxx.hap' }).then((data) => { + downloadTask = data; + }).catch((err) => { + console.error('Failed to request the download. Cause: ' + JSON.stringify(err)); + }) + } catch (err) { + console.error('err.code : ' + err.code + ', err.message : ' + err.message); + } ``` @@ -814,14 +826,18 @@ downloadFile(context: BaseContext, config: DownloadConfig, callback: AsyncCallba ```js let downloadTask; - request.downloadFile(globalThis.abilityContext, { url: 'https://xxxx/xxxxx.hap', - filePath: 'xxx/xxxxx.hap'}, (err, data) => { - if (err) { - console.error('Failed to request the download. Cause: ' + JSON.stringify(err)); - return; - } - downloadTask = data; - }); + try { + request.downloadFile(globalThis.abilityContext, { url: 'https://xxxx/xxxxx.hap', + filePath: 'xxx/xxxxx.hap'}, (err, data) => { + if (err) { + console.error('Failed to request the download. Cause: ' + JSON.stringify(err)); + return; + } + downloadTask = data; + }); + } catch (err) { + console.error('err.code : ' + err.code + ', err.message : ' + err.message); + } ``` ## request.download(deprecated) @@ -995,8 +1011,8 @@ on(type: 'progress', callback:(receivedSize: number, totalSize: number) => vo | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| receivedSize | number | 是 | 当前下载的进度,单位为KB。 | -| totalSize | number | 是 | 下载文件的总大小,单位为KB。 | +| receivedSize | number | 是 | 当前下载的进度,单位为B。 | +| totalSize | number | 是 | 下载文件的总大小,单位为B。 | **示例:** @@ -1029,8 +1045,8 @@ off(type: 'progress', callback?: (receivedSize: number, totalSize: number) => | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| receivedSize | number | 是 | 当前下载的进度。 | -| totalSize | number | 是 | 下载文件的总大小。 | +| receivedSize | number | 是 | 当前下载的进度,单位为B。| +| totalSize | number | 是 | 下载文件的总大小,单位为B。| **示例:** @@ -1805,7 +1821,7 @@ resume(callback: AsyncCallback<void>): void | enableMetered | boolean | 否 | 设置是否允许在按流量计费的连接下下载。
- true:是
- false:否 | | enableRoaming | boolean | 否 | 设置是否允许在漫游网络中下载。
- true:是
- false:否| | description | string | 否 | 设置下载会话的描述。 | -| filePath7+ | string | 否 | 设置下载路径(默认在'internal://cache/'路径下)。
- filePath:'workspace/test.txt':默认路径下创建workspace路径,并将文件存储在workspace路径下。
- filePath:'test.txt':将文件存储在默认路径下。
- filePath:'workspace/':默认路径下创建workspace路径,并将文件存储在workspace路径下。 | +| filePath7+ | string | 否 | 设置下载路径。
- filePath:'/data/storage/el2/base/haps/entry/files/test.txt':将文件存储在绝对路径下。
- FA模型下使用[context](js-apis-inner-app-context.md#contextgetcachedir) 获取应用存储路径,比如:'${featureAbility.getContext().getFilesDir()}/test.txt',并将文件存储在此路径下。
- Stage模型下使用[AbilityContext](js-apis-inner-application-context.md) 类获取文件路径,比如:'${globalThis.abilityContext.tempDir}/test.txt'并将文件存储在此路径下。| | networkType | number | 否 | 设置允许下载的网络类型。
- NETWORK_MOBILE:0x00000001
- NETWORK_WIFI:0x00010000| | title | string | 否 | 设置下载会话标题。 | | background9+ | boolean | 否 | 后台任务通知开关,开启后可在通知中显示下载状态。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-resource-manager.md b/zh-cn/application-dev/reference/apis/js-apis-resource-manager.md index 22c9ffa2943a5bbd515cee7b8155b0012d358552..0cd7c52b268043c928bba602b68423d10f487bec 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-resource-manager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-resource-manager.md @@ -19,8 +19,9 @@ import resourceManager from '@ohos.resourceManager'; Stage模型下Context的引用方法请参考[Stage模型的Context详细介绍](../../application-models/application-context-stage.md)。 ```ts -import Ability from '@ohos.application.Ability'; -class MainAbility extends Ability { +import UIAbility from '@ohos.app.ability.UIAbility'; + +export default class EntryAbility extends UIAbility { onWindowStageCreate(windowStage) { let context = this.context; let resourceManager = context.resourceManager; diff --git a/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md b/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md index a9b0d71a042853ab4198ac9e72f9322d040b4584..266497bac93f50fe51651ab7d9576e2967de20e5 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md @@ -235,7 +235,7 @@ startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: Want | --------- | ---------------------------------- | ---- | ---------------------------------------- | | context | Context | 是 | 应用运行的上下文。
FA模型的应用Context定义见[Context](js-apis-inner-app-context.md)。
Stage模型的应用Context定义见[Context](js-apis-ability-context.md)。 | | bgMode | [BackgroundMode](#backgroundmode) | 是 | 向系统申请的后台模式。 | -| wantAgent | [WantAgent](js-apis-wantAgent.md) | 是 | 通知参数,用于指定长时任务通知点击后跳转的界面。 | +| wantAgent | [WantAgent](js-apis-app-ability-wantAgent.md) | 是 | 通知参数,用于指定长时任务通知点击后跳转的界面。 | | callback | AsyncCallback<void> | 是 | callback形式返回启动长时任务的结果。 | **错误码**: @@ -309,7 +309,7 @@ startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: Want | --------- | ---------------------------------- | ---- | ---------------------------------------- | | context | Context | 是 | 应用运行的上下文。
FA模型的应用Context定义见[Context](js-apis-inner-app-context.md)。
Stage模型的应用Context定义见[Context](js-apis-ability-context.md)。 | | bgMode | [BackgroundMode](#backgroundmode) | 是 | 向系统申请的后台模式。 | -| wantAgent | [WantAgent](js-apis-wantAgent.md) | 是 | 通知参数,用于指定长时任务通知点击跳转的界面。 | +| wantAgent | [WantAgent](js-apis-app-ability-wantAgent.md) | 是 | 通知参数,用于指定长时任务通知点击跳转的界面。 | **返回值**: diff --git a/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md b/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md index 755448c20de4df77b2be331db75132aadd8b34de..dc6ab63d6b99021d6f1c20e89a5ed18fc9460d2b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md +++ b/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md @@ -1476,7 +1476,7 @@ FA的使用信息的属性集合。 | 名称 | 类型 | 必填 | 说明 | | -------------------- | ---------------------------------------- | ---- | ----------------------------- | | deviceId | string | 否 | FA所属deviceId。 | -| bundleName | string | 是 | FA所属应用包名。 | +| bundleName | string | 是 | FA所属应用Bundle名称。 | | moduleName | string | 是 | FA所属module名。 | | abilityName | string | 否 | FA的MainAbility名。 | | appLabelId | number | 否 | FA的应用labelId。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-router.md b/zh-cn/application-dev/reference/apis/js-apis-router.md index caed182678ce01683e5ab8a3b95c296a26780c35..607bf89cf8aff6bb287a87414faa98c5290ebee3 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-router.md +++ b/zh-cn/application-dev/reference/apis/js-apis-router.md @@ -54,8 +54,8 @@ try { data1: 'message', data2: { data3: [123, 456, 789] - }, - }, + } + } }) .then(() => { // success @@ -103,8 +103,8 @@ try { data1: 'message', data2: { data3: [123, 456, 789] - }, - }, + } + } }, (err) => { if (err) { console.error(`pushUrl failed, code is ${err.code}, message is ${err.message}`); @@ -157,8 +157,8 @@ try { data1: 'message', data2: { data3: [123, 456, 789] - }, - }, + } + } }, router.RouterMode.Standard) .then(() => { // success @@ -207,8 +207,8 @@ try { data1: 'message', data2: { data3: [123, 456, 789] - }, - }, + } + } }, router.RouterMode.Standard, (err) => { if (err) { console.error(`pushUrl failed, code is ${err.code}, message is ${err.message}`); @@ -257,8 +257,8 @@ try { router.replaceUrl({ url: 'pages/detail', params: { - data1: 'message', - }, + data1: 'message' + } }) .then(() => { // success @@ -302,8 +302,8 @@ try { router.replaceUrl({ url: 'pages/detail', params: { - data1: 'message', - }, + data1: 'message' + } }, (err) => { if (err) { console.error(`replaceUrl failed, code is ${err.code}, message is ${err.message}`); @@ -354,8 +354,8 @@ try { router.replaceUrl({ url: 'pages/detail', params: { - data1: 'message', - }, + data1: 'message' + } }, router.RouterMode.Standard) .then(() => { // success @@ -400,8 +400,8 @@ try { router.replaceUrl({ url: 'pages/detail', params: { - data1: 'message', - }, + data1: 'message' + } }, router.RouterMode.Standard, (err) => { if (err) { console.error(`replaceUrl failed, code is ${err.code}, message is ${err.message}`); @@ -465,7 +465,7 @@ getLength(): string **示例:** ```js -var size = router.getLength(); +let size = router.getLength(); console.log('pages stack size = ' + size); ``` @@ -486,7 +486,7 @@ getState(): RouterState **示例:** ```js -var page = router.getState(); +let page = router.getState(); console.log('current index = ' + page.index); console.log('current name = ' + page.name); console.log('current path = ' + page.path); @@ -618,8 +618,8 @@ export default { router.push({ url: 'pages/detail/detail', params: { - data1: 'message', - }, + data1: 'message' + } }); } } @@ -649,7 +649,7 @@ struct Index { text: '这是第一页的值', data: { array: [12, 45, 78] - }, + } } } try { @@ -741,8 +741,8 @@ router.push({ data1: 'message', data2: { data3: [123, 456, 789] - }, - }, + } + } }); ``` ## router.push(deprecated) @@ -772,8 +772,8 @@ router.push({ data1: 'message', data2: { data3: [123, 456, 789] - }, - }, + } + } },router.RouterMode.Standard); ``` @@ -799,8 +799,8 @@ replace(options: RouterOptions): void router.replace({ url: 'pages/detail', params: { - data1: 'message', - }, + data1: 'message' + } }); ``` @@ -827,8 +827,8 @@ replace(options: RouterOptions, mode: RouterMode): void router.replace({ url: 'pages/detail/detail', params: { - data1: 'message', - }, + data1: 'message' + } }, router.RouterMode.Standard); ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-securityLabel.md b/zh-cn/application-dev/reference/apis/js-apis-securityLabel.md index c221b64c540e94da3b3d9bcc24980f51c823a551..f19eb82021817eeebebd86c77d4c01cb0ab46183 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-securityLabel.md +++ b/zh-cn/application-dev/reference/apis/js-apis-securityLabel.md @@ -2,7 +2,7 @@ 该模块提供文件数据安全等级的相关功能:向应用程序提供查询、设置文件数据安全等级的JS接口。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 ## 导入模块 diff --git a/zh-cn/application-dev/reference/apis/js-apis-stack.md b/zh-cn/application-dev/reference/apis/js-apis-stack.md index 944abccaf1cc7d838d67dd3f56b4f8235c001c79..bd30e4fc90703ec49f4392afc77e230064f9aefa 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-stack.md +++ b/zh-cn/application-dev/reference/apis/js-apis-stack.md @@ -1,6 +1,6 @@ # @ohos.util.Stack (线性容器Stack) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 Stack基于数组的数据结构实现,特点是先进后出,只能在一端进行数据的插入和删除。 @@ -39,7 +39,7 @@ Stack的构造函数。 **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -74,7 +74,7 @@ push(item: T): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -108,7 +108,7 @@ pop(): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -142,7 +142,7 @@ peek(): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -181,7 +181,7 @@ locate(element: T): number **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -224,7 +224,7 @@ callbackfn的参数说明: **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -259,7 +259,7 @@ isEmpty(): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -292,7 +292,7 @@ let result = stack.isEmpty(); **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-statfs.md b/zh-cn/application-dev/reference/apis/js-apis-statfs.md index e6f51899a61edfee7487cb373eb85e1394f4fb99..fcc6cf6a1ac53672ba40514403ef0b855a83815e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-statfs.md +++ b/zh-cn/application-dev/reference/apis/js-apis-statfs.md @@ -2,7 +2,7 @@ 该模块提供文件系统相关存储信息的功能,向应用程序提供获取文件系统总字节数、空闲字节数的JS接口。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 ## 导入模块 diff --git a/zh-cn/application-dev/reference/apis/js-apis-storage-statistics.md b/zh-cn/application-dev/reference/apis/js-apis-storage-statistics.md index 84bca648712cdc5f406af94beb745e0fb5c7f8b8..e86470534bc793102875be82b4afa91a333cb35b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-storage-statistics.md +++ b/zh-cn/application-dev/reference/apis/js-apis-storage-statistics.md @@ -2,7 +2,7 @@ 该模块提供空间查询相关的常用功能:包括对内外卡的空间查询,对应用分类数据统计的查询,对应用数据的查询等。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-app.md b/zh-cn/application-dev/reference/apis/js-apis-system-app.md index 444ecdd8032ae6f8f233868a98b233e374aaecbf..f7fab7f597de0c4da6359f8afc191d7927f373b4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-app.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-app.md @@ -1,6 +1,6 @@ # @system.app (应用上下文) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 从API Version 7 开始,该接口不再维护,推荐使用新接口。 > > - 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-battery.md b/zh-cn/application-dev/reference/apis/js-apis-system-battery.md index 17967892eb76429700751046bc18e32a5aa25c88..f56300b43ae741066b0f693c16eb652fa02dbb62 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-battery.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-battery.md @@ -2,7 +2,7 @@ 该模块提供充电状态及剩余电量的查询功能。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 从API Version 6开始不再维护,建议使用[`@ohos.batteryInfo`](js-apis-battery-info.md)替代。 > - 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-bluetooth.md b/zh-cn/application-dev/reference/apis/js-apis-system-bluetooth.md index e2ef4e666ff66899a8273c4b1996b9064d6e3fb3..7e4043be8c4c7b55404274d2c931e897324eeefb 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-bluetooth.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-bluetooth.md @@ -1,7 +1,7 @@ # @system.bluetooth (蓝牙) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > > - 从API Version 7 开始,该接口不再维护,推荐使用新接口[`@ohos.bluetooth`](js-apis-bluetooth.md)。 > diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-brightness.md b/zh-cn/application-dev/reference/apis/js-apis-system-brightness.md index e9039e94424ca59f0acb972f3bf15e5156ba5aee..2f019ad51b018cbde409f27d59c69b904f123aa9 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-brightness.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-brightness.md @@ -2,7 +2,7 @@ 该模块提供屏幕亮度和模式的查询、调节接口。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 从API Version 7 开始不再维护,建议使用[`@ohos.brightness`](js-apis-brightness.md)替代。 > - 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-cipher.md b/zh-cn/application-dev/reference/apis/js-apis-system-cipher.md index fe5ae40dff9cd7e29ab3b523864d2dbb66dacba0..766b981ad11d3891b1b7e366f6c0c9c4cdd1157e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-cipher.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-cipher.md @@ -1,6 +1,6 @@ # @system.cipher (加密算法) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > > 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-configuration.md b/zh-cn/application-dev/reference/apis/js-apis-system-configuration.md index f41b78e15b0fa85f0e983acab1990c31f05f0a75..8d8cb562baa47c2bf9d8c988701de9c3baf0803a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-configuration.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-configuration.md @@ -1,6 +1,6 @@ # @system.configuration (应用配置) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 从API Version 7 开始,该接口不再维护,推荐使用新接口[`@ohos.i18n`](js-apis-i18n.md)和[`@ohos.intl`](js-apis-intl.md)。 > > diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-device.md b/zh-cn/application-dev/reference/apis/js-apis-system-device.md index 540604926ed2d7cc96cad11b6eda81ee7708a3f3..4215cce99d6414f55b0a047139273a5c87a573a3 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-device.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-device.md @@ -2,14 +2,15 @@ 本模块提供当前设备的信息。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** +> > - 从API Version 6开始,该接口不再维护,推荐使用新接口[`@ohos.deviceInfo`](js-apis-device-info.md)进行设备信息查询。 -> +> > - 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 ## 导入模块 -``` +```typescript import device from '@system.device'; ``` @@ -19,7 +20,7 @@ getInfo(Object): void 获取当前设备的信息。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 在首页的onShow生命周期之前不建议调用device.getInfo接口。 **系统能力:** SystemCapability.Startup.SystemInfo @@ -58,7 +59,7 @@ fail返回错误代码: **示例:** -``` +```typescript export default { getInfo() { device.getInfo({ diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-fetch.md b/zh-cn/application-dev/reference/apis/js-apis-system-fetch.md index 8a16136adffcacf8ca747af1ef4d502bdd622edc..a9448693b273ae3b3869747342b580e012f7d0c5 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-fetch.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-fetch.md @@ -1,6 +1,6 @@ # @system.fetch (数据请求) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 从API Version 6开始,该接口不再维护,推荐使用新接口[`@ohos.net.http`](js-apis-http.md)。 > > - 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 @@ -86,7 +86,7 @@ export default { ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 默认支持https,如果要支持http,需要在config.json里增加network标签,属性标识 "cleartextTraffic": true。即: > > ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-file.md b/zh-cn/application-dev/reference/apis/js-apis-system-file.md index 4888a361fa3d757d22361b502cb7b1172cda5563..6179b631024777df9525badae8a0ce86f9d52727 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-file.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-file.md @@ -1,6 +1,6 @@ # @system.file (文件存储) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 从API Version 6开始,该接口不再维护,推荐使用新接口[`@ohos.fileio`](js-apis-fileio.md)。 > > - 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-location.md b/zh-cn/application-dev/reference/apis/js-apis-system-location.md index 58634c22b219d7c455e3c4586fb6a3b79da80b08..a0eef27362da1a659eafcb6f4211dfc6c116a73c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-location.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-location.md @@ -1,6 +1,6 @@ # @system.geolocation (地理位置) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > - 从API Version 9开始,该接口不再维护,推荐使用新接口[geoLocationManager](js-apis-geoLocationManager.md)。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-mediaquery.md b/zh-cn/application-dev/reference/apis/js-apis-system-mediaquery.md index 6a3f6c25fb4b703df432ba81243ea19ad1726255..8b57bdb2feae8b384b05003b4ce5440bc85ad721 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-mediaquery.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-mediaquery.md @@ -3,7 +3,7 @@ 提供根据不同媒体类型定义不同的样式。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > > - 从API Version 7 开始,该接口不再维护,推荐使用新接口[`@ohos.mediaquery`](js-apis-mediaquery.md)。 > - 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-network.md b/zh-cn/application-dev/reference/apis/js-apis-system-network.md index 83a56198095b4d2690725e9509fb2a6dfa897bb0..f269ebc2d45d845eb1ddd7c8274598ac6476eb29 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-network.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-network.md @@ -1,6 +1,6 @@ # @system.network (网络状态) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 从API Version 7 开始,该接口不再维护,推荐使用新接口[`@ohos.telephony.observer`](js-apis-observer.md)。 > > - 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-notification.md b/zh-cn/application-dev/reference/apis/js-apis-system-notification.md index db00c4997350484ffb9fa17e72259205272b24e8..dc72936c1bf92decc894bc4c44dd5207a4dc6c79 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-notification.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-notification.md @@ -1,6 +1,6 @@ # @system.notification (通知消息) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 从API Version 7 开始,该接口不再维护,推荐使用新接口[`@ohos.notification`](js-apis-notification.md)。 > > - 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 @@ -17,22 +17,22 @@ import notification from '@system.notification'; **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification -| 名称 | 可读 | 可写 | 类型 | 必填 | 描述 | -| ----------- | --- | ---- | ---------------------------------------------- | ---- | ------------------------- | -| bundleName | 是 | 是 | string | 是 | 单击通知后要重定向到的应用程序的Bundle名。 | -| abilityName | 是 | 是 | string | 是 | 单击通知后要重定向到的应用程序的Ability名称。 | -| uri | 是 | 是 | string | 否 | 要重定向到的页面的uri。 | +| 名称 | 类型 | 可读 | 可写 | 必填 | 描述 | +| ----------- | ---------------------------------------------- | ---- | ------------------------- | ------------------------- | ------------------------- | +| bundleName | string | 是 | 是 | 是 | 单击通知后要重定向到的应用程序的Bundle名。 | +| abilityName | string | 是 | 是 | 是 | 单击通知后要重定向到的应用程序的Ability名称。 | +| uri | string | 是 | 是 | 否 | 要重定向到的页面的uri。 | ## ShowNotificationOptions **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification -| 名称 | 可读 | 可写 | 类型 | 必填 | 描述 | -| ------------- | --- | ---- | ---------------------------------------------- | ---- | ------------------------- | -| contentTitle | 是 | 是 | string | 否 | 通知标题。 | -| contentText | 是 | 是 | string | 否 | 通知内容。 | -| clickAction | 是 | 是 | ActionResult | 否 | 通知被点击后触发的行为。 | +| 名称 | 类型 | 可读 | 可写 | 必填 | 描述 | +| ------------- | ---------------------------------------------- | ---- | ------------------------- | ------------------------- | ------------------------- | +| contentTitle | string | 是 | 是 | 否 | 通知标题。 | +| contentText | string | 是 | 是 | 否 | 通知内容。 | +| clickAction | ActionResult | 是 | 是 | 否 | 通知被点击后触发的行为。 | ## notification.show diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-package.md b/zh-cn/application-dev/reference/apis/js-apis-system-package.md index 4369b30fd95a03067e618cd76200abcdd09b4d1f..d5723d98d044a465a2c02c8cd67eb05bb632a42f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-package.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-package.md @@ -1,7 +1,7 @@ # @system.package (应用管理) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > > - 从API version 9开始不再维护,推荐使用该模块[@ohos.bundle.bundleManager](js-apis-bundleManager.md)。 > @@ -77,7 +77,7 @@ export default { | 名称 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| bundleName | string | 是 | 应用包名。 | +| bundleName | string | 是 | 应用Bundle名称。 | | success | Function | 否 | 接口调用成功的回调函数。 | | fail | Function | 否 | 接口调用失败的回调函数。 | | complete | Function | 否 | 接口调用结束的回调函数。 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-parameter.md b/zh-cn/application-dev/reference/apis/js-apis-system-parameter.md index 145c978a7b6fd508ebdc774edbbab5587a64e696..d7a6269fca2d55fce28433cb4bf7a35a8a8d917d 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-system-parameter.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-parameter.md @@ -4,7 +4,7 @@ 详细的系统参数设计原理及定义可参考 [系统参数](../../../device-dev/subsystems/subsys-boot-init-sysparam.md)。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 本模块接口从API version 9开始不再维护,建议使用新接口[`@ohos.systemParameterV9`](js-apis-system-parameterV9.md)替代。 > - 本模块首批接口从API version 6开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > - 本模块接口为系统接口。 @@ -162,7 +162,7 @@ setSync(key: string, value: string): void | key | string | 是 | 待设置的系统参数Key。 | | value | string | 是 | 待设置的系统参数值。 | -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 此接口只能用于系统应用的参数设置。 > - 所授权的系统应用需要配置对应selinux和dac规则,具体配置方法请参照系统参数指导文档:[系统参数](../../../device-dev/subsystems/subsys-boot-init-sysparam.md)。 @@ -193,7 +193,7 @@ set(key: string, value: string, callback: AsyncCallback<void>): void | value | string | 是 | 待设置的系统参数值。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 此接口只能用于系统应用的参数设置。 > - 所授权的系统应用需要配置对应selinux和dac规则,具体配置方法请参照系统参数指导文档:[系统参数](../../../device-dev/subsystems/subsys-boot-init-sysparam.md)。 @@ -233,7 +233,7 @@ set(key: string, value: string): Promise<void> | -------- | -------- | | Promise<void> | Promise示例,用于异步获取结果。 | -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 此接口只能用于系统应用的参数设置。 > - 所授权的系统应用需要配置对应selinux和dac规则,具体配置方法请参照系统参数指导文档:[系统参数](../../../device-dev/subsystems/subsys-boot-init-sysparam.md) diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-prompt.md b/zh-cn/application-dev/reference/apis/js-apis-system-prompt.md index 670148a734b120ace91ff4c42509ce9123395747..a79170a9ff826d0cab1199ef9869f0b663e91edc 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-prompt.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-prompt.md @@ -2,7 +2,7 @@ 创建并显示文本提示框、对话框和操作菜单。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > > - 从API Version 8 开始,该接口不再维护,推荐使用新接口[`@ohos.prompt`](js-apis-prompt.md)。 > diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-request.md b/zh-cn/application-dev/reference/apis/js-apis-system-request.md index a0af5a2680c52ec2d2cd60badd5b0249d41c41de..f1e799e9caf4d8845dbd8ade3f6624e312bb0079 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-request.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-request.md @@ -2,7 +2,7 @@ system.request部件主要给应用提供上传下载文件的基础能力。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 从API Version 9开始所有接口不再维护,推荐使用新接口[`@ohos.request`](js-apis-request.md)。 > > - 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 @@ -54,7 +54,7 @@ upload(options: UploadRequestOptions): void console.info(' upload err:' + err); } ``` - + ## UploadRequestOptions diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-router.md b/zh-cn/application-dev/reference/apis/js-apis-system-router.md index 1c4cf633e8dacc1000b2ddac850a801b430432d2..656a5052f7b8805577fb7c591bc7f9081046e7e2 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-router.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-router.md @@ -67,7 +67,7 @@ export default { } ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 页面路由栈支持的最大Page数量为32。 @@ -183,7 +183,7 @@ export default { } ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 示例中的uri字段是页面路由,由配置文件中的pages列表指定。 ## router.getParams diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-sensor.md b/zh-cn/application-dev/reference/apis/js-apis-system-sensor.md index 545e00496d9d495c1421544bc2808a7f9c5936da..3ad1ecd1983a0849dca0c47b44303ae31b62c7da 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-sensor.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-sensor.md @@ -7,7 +7,7 @@ sensor模块提供订阅传感器数据基本能力,主要包含查询传感 根据传感器的用途,可以将传感器分为六大类:运动类传感器、环境类传感器、方向类传感器、光线类传感器、健康类传感器、其他类传感器(如霍尔传感器),每一大类传感器包含不同类型的传感器,某种类型的传感器可能是单一的物理传感器,也可能是由多个物理传感器复合而成。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > > - 从API Version 8开始,该接口不再维护,推荐使用新接口[`@ohos.sensor`](js-apis-sensor.md)。 > - 本模块首批接口从API version 4开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 @@ -69,7 +69,7 @@ sensor.subscribeAccelerometer({ }); ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 建议在页面销毁时,即onDestory回调中,取消数据订阅,避免不必要的性能开销。 ## sensor.unsubscribeAccelerometer @@ -122,7 +122,7 @@ sensor.subscribeCompass({ }); ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 建议在页面销毁时,即onDestory回调中,取消数据订阅,避免不必要的性能开销。 ## sensor.unsubscribeCompass @@ -173,7 +173,7 @@ sensor.subscribeProximity({ }); ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 建议在页面销毁时,即onDestory回调中,取消数据订阅,避免不必要的性能开销。 ## sensor.unsubscribeProximity @@ -224,7 +224,7 @@ sensor.subscribeLight({ }); ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 建议在页面销毁时,即onDestory回调中,取消数据订阅,避免不必要的性能开销。 ## sensor.unsubscribeLight @@ -277,7 +277,7 @@ sensor.subscribeStepCounter({ }); ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 建议在页面销毁时,即onDestory回调中,取消数据订阅,避免不必要的性能开销。 ## sensor.unsubscribeStepCounter @@ -331,7 +331,7 @@ sensor.subscribeBarometer({ }); ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 建议在页面销毁时,即onDestory回调中,取消数据订阅,避免不必要的性能开销。 @@ -386,7 +386,7 @@ sensor.subscribeHeartRate({ }); ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 建议在页面销毁时,即onDestory回调中,取消数据订阅,避免不必要的性能开销。 @@ -440,7 +440,7 @@ sensor.subscribeOnBodyState({ }); ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 建议在页面销毁时,即onDestory回调中,取消数据订阅,避免不必要的性能开销。 ## sensor.unsubscribeOnBodyState @@ -533,7 +533,7 @@ sensor.subscribeDeviceOrientation({ }); ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 建议在页面销毁时,即onDestory回调中,取消数据订阅,避免不必要的性能开销。 ## sensor.unsubscribeDeviceOrientation6+ @@ -594,7 +594,7 @@ sensor.subscribeGyroscope({ }); ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 建议在页面销毁时,即onDestory回调中,取消数据订阅,避免不必要的性能开销。 ## sensor.unsubscribeGyroscope6+ diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-timer.md b/zh-cn/application-dev/reference/apis/js-apis-system-timer.md index f1cec2767a38bc5aaac708ff18a877054b09764a..05105ecb1c6b298b97d2dd14468982050724c13b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-timer.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-timer.md @@ -33,13 +33,13 @@ import systemTimer from '@ohos.systemTimer'; **系统能力:** SystemCapability.MiscServices.Time -| 名称 | 类型 | 必填 | 说明 | -| --------- | --------------------------------- | ---- | ------------------------------------------------------------ | -| type | number | 是 | 定时器类型。
取值为1时,表示为系统启动时间定时器(定时器启动时间不能晚于当前设置的系统时间) ;
取值为2时,表示为唤醒定时器;
取值为4时,表示为精准定时器;
取值为5时,表示为IDLE模式定时器(暂不支持)。 | -| repeat | boolean | 是 | true为循环定时器,false为单次定时器。 | -| interval | number | 否 | 如果是循环定时器,repeat值应大于5000毫秒,非重复定时器置为0。 | -| wantAgent | [WantAgent](js-apis-wantAgent.md) | 否 | 设置通知的WantAgent,定时器到期后通知。(支持拉起应用MainAbility,暂不支持拉起ServiceAbility。) | -| callback | number | 是 | 以回调函数的形式返回定时器的ID。 | +| 名称 | 类型 | 必填 | 说明 | +| --------- | --------------------------------------------- | ---- | ------------------------------------------------------------ | +| type | number | 是 | 定时器类型。
取值为1时,表示为系统启动时间定时器(定时器启动时间不能晚于当前设置的系统时间) ;
取值为2时,表示为唤醒定时器;
取值为4时,表示为精准定时器;
取值为5时,表示为IDLE模式定时器(暂不支持)。 | +| repeat | boolean | 是 | true为循环定时器,false为单次定时器。 | +| interval | number | 否 | 如果是循环定时器,repeat值应大于5000毫秒,非重复定时器置为0。 | +| wantAgent | [WantAgent](js-apis-app-ability-wantAgent.md) | 否 | 设置通知的WantAgent,定时器到期后通知。(支持拉起应用MainAbility,暂不支持拉起ServiceAbility。) | +| callback | number | 是 | 以回调函数的形式返回定时器的ID。 | ## systemTimer.createTimer diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-vibrate.md b/zh-cn/application-dev/reference/apis/js-apis-system-vibrate.md index c77faf7b3978c263e41591c796e7bbb8fec4b8f5..0d8e3958c0847d20639ed13991919981a6bdcb84 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-vibrate.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-vibrate.md @@ -7,7 +7,7 @@ vibrator模块提供控制马达振动的能力,主要包含灯的列表查询 控制类小器件指的是设备上的LED灯和振动器。其中,LED灯主要用作指示(如充电状态)、闪烁功能(如三色灯)等;振动器主要用于闹钟、开关机振动、来电振动等场景。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > - 本模块首批接口从API version 4开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > - 从API Version 8开始,该接口不再维护,推荐使用新接口[`@ohos.vibrator`](js-apis-vibrator.md)。 > - 该功能使用需要对应硬件支持,仅支持真机调试。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-tagSession.md b/zh-cn/application-dev/reference/apis/js-apis-tagSession.md index 4d6b27f3473aeaea9b0bd2fb09fa6a45a13b61f6..8677dd02863676b4bf8296bd75396eab7bc096eb 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-tagSession.md +++ b/zh-cn/application-dev/reference/apis/js-apis-tagSession.md @@ -28,7 +28,7 @@ getTagInfo(): tag.TagInfo **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -56,7 +56,7 @@ connectTag(): boolean; **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -84,7 +84,7 @@ reset(): void **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **示例:** @@ -105,7 +105,7 @@ isTagConnected(): boolean **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -133,7 +133,7 @@ getMaxSendLength(): number **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -160,7 +160,7 @@ getSendDataTimeout(): number **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **返回值:** @@ -188,7 +188,7 @@ setSendDataTimeout(timeout: number): boolean **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -223,7 +223,7 @@ sendData(data: number[]): Promise **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** @@ -269,7 +269,7 @@ sendData(data: number[], callback: AsyncCallback): void **需要权限:** ohos.permission.NFC_TAG -**系统能力:** SystemCapability.Communication.NFC.Core +**系统能力:** SystemCapability.Communication.NFC.Tag **参数:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-treemap.md b/zh-cn/application-dev/reference/apis/js-apis-treemap.md index 754b06b74c0fca2ae251bf0614eca7447b25cdcc..88172bf388a5c8a9b053e9a4ef7282e7e5c129cd 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-treemap.md +++ b/zh-cn/application-dev/reference/apis/js-apis-treemap.md @@ -1,6 +1,6 @@ # @ohos.util.TreeMap (非线性容器TreeMap) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 TreeMap可用于存储具有关联关系的key-value键值对集合,存储元素中key值唯一,每个key对应一个value。 @@ -48,7 +48,7 @@ TreeMap的构造函数。 **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -77,7 +77,7 @@ isEmpty(): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -113,7 +113,7 @@ hasKey(key: K): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -151,7 +151,7 @@ hasValue(value: V): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -189,7 +189,7 @@ get(key: K): V **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -221,7 +221,7 @@ getFirstKey(): K **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -253,7 +253,7 @@ getLastKey(): K **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -285,7 +285,7 @@ setAll(map: TreeMap): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -325,7 +325,7 @@ set(key: K, value: V): Object **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -361,7 +361,7 @@ remove(key: K): V **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -399,7 +399,7 @@ getLowerKey(key: K): K **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -438,7 +438,7 @@ getHigherKey(key: K): K **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -477,7 +477,7 @@ replace(key: K, newValue: V): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -502,7 +502,7 @@ clear(): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -534,7 +534,7 @@ keys(): IterableIterator<K> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -571,7 +571,7 @@ values(): IterableIterator<V> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -616,7 +616,7 @@ callbackfn的参数说明: **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -650,7 +650,7 @@ entries(): IterableIterator<[K, V]> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -687,7 +687,7 @@ while(temp != undefined) { **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-treeset.md b/zh-cn/application-dev/reference/apis/js-apis-treeset.md index 14eb865f921eb3f7338bd81705de3826193eaa10..402ea10225fcdc632960f1fb35c4845b267f408b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-treeset.md +++ b/zh-cn/application-dev/reference/apis/js-apis-treeset.md @@ -1,6 +1,6 @@ # @ohos.util.TreeSet (非线性容器TreeSet) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 TreeSet基于[TreeMap](js-apis-treemap.md)实现,在TreeSet中,只对value对象进行处理。TreeSet可用于存储一系列值的集合,元素中value唯一且有序。 @@ -45,7 +45,7 @@ TreeSet的构造函数。 **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -74,7 +74,7 @@ isEmpty(): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -110,7 +110,7 @@ has(value: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -142,7 +142,7 @@ getFirstValue(): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -174,7 +174,7 @@ getLastValue(): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -212,7 +212,7 @@ add(value: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -248,7 +248,7 @@ remove(value: T): boolean **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -286,7 +286,7 @@ getLowerValue(key: T): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -325,7 +325,7 @@ getHigherValue(key: T): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -358,7 +358,7 @@ popFirst(): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -390,7 +390,7 @@ popLast(): T **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -416,7 +416,7 @@ clear(): void **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -448,7 +448,7 @@ values(): IterableIterator<T> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -493,7 +493,7 @@ callbackfn的参数说明: **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -527,7 +527,7 @@ entries(): IterableIterator<[T, T]> **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | @@ -565,7 +565,7 @@ while(temp != undefined) { **错误码:** -以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)。 +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 | 错误码ID | 错误信息 | | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-uri.md b/zh-cn/application-dev/reference/apis/js-apis-uri.md index cdb616b74c7b403cf0993c98df71bb38bac37eee..0bdbebdcc84d95de7863b84f5a5e7204c0d9b44f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-uri.md +++ b/zh-cn/application-dev/reference/apis/js-apis-uri.md @@ -44,6 +44,14 @@ constructor是URI的构造函数。 | -------- | -------- | -------- | -------- | | uri | string | 是 | 入参对象。 | +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------- | +| 10200002 | Invalid uri string. | + **示例:** ```js @@ -79,14 +87,14 @@ result.toString() ### equals(deprecated) -> **说明:** -> -> 从API version 8开始支持,从API version 9开始废弃,建议使用[equalsTo9+](#equalsto9)替代。 - equals(other: URI): boolean 判断此URI是否与其他URI对象相等。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[equalsTo9+](#equalsto9)替代。 + **系统能力:** SystemCapability.Utils.Lang **参数:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-url.md b/zh-cn/application-dev/reference/apis/js-apis-url.md index 845d9725007a48286fa64a7033cf56944c4c6329..f539153758e66eeb42cd3f69abb8e76e8fd964f8 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-url.md +++ b/zh-cn/application-dev/reference/apis/js-apis-url.md @@ -366,18 +366,148 @@ params.append('fod', '3'); console.log(params.toString()); ``` -## URLSearchParams(deprecated) +## URL + +### 属性 + +**系统能力:** 以下各项对应的系统能力均为SystemCapability.Utils.Lang + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| -------- | -------- | -------- | -------- | -------- | +| hash | string | 是 | 是 | 获取和设置URL的片段部分。 | +| host | string | 是 | 是 | 获取和设置URL的主机部分。 | +| hostname | string | 是 | 是 | 获取和设置URL的主机名部分,不带端口。 | +| href | string | 是 | 是 | 获取和设置序列化的URL。 | +| origin | string | 是 | 否 | 获取URL源的只读序列化。 | +| password | string | 是 | 是 | 获取和设置URL的密码部分。 | +| pathname | string | 是 | 是 | 获取和设置URL的路径部分。 | +| port | string | 是 | 是 | 获取和设置URL的端口部分。 | +| protocol | string | 是 | 是 | 获取和设置URL的协议部分。 | +| search | string | 是 | 是 | 获取和设置URL的序列化查询部分。 | +| searchParams | URLSearchParams | 是 | 否 | 获取URLSearchParams表示URL查询参数的对象。 | +| URLParams | URLParams | 是 | 否 | 获取URLParams表示URL查询参数的对象。 | +| username | string | 是 | 是 | 获取和设置URL的用户名部分。 | ### constructor(deprecated) +constructor(url: string, base?: string | URL) + +URL的构造函数。 + > **说明:** > -> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+](#constructor9+)替代。 +> 从API version 7开始支持,从API version 9开始废弃,建议使用[parseURL9+](#parseurl9)替代。 + +**系统能力:** SystemCapability.Utils.Lang + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| url | string | 是 | 入参对象。 | +| base | string \| URL | 否 | 入参字符串或者对象。
- string:字符串
- URL:字符串或对象 | + +**示例:** + +```js +let mm = 'http://username:password@host:8080'; +let a = new Url.URL("/", mm); // Output 'http://username:password@host:8080/'; +let b = new Url.URL(mm); // Output 'http://username:password@host:8080/'; +new Url.URL('path/path1', b); // Output 'http://username:password@host:8080/path/path1'; +let c = new Url.URL('/path/path1', b); // Output 'http://username:password@host:8080/path/path1'; +new Url.URL('/path/path1', c); // Output 'http://username:password@host:8080/path/path1'; +new Url.URL('/path/path1', a); // Output 'http://username:password@host:8080/path/path1'; +new Url.URL('/path/path1', "https://www.exampleUrl/fr-FR/toto"); // Output https://www.exampleUrl/path/path1 +new Url.URL('/path/path1', ''); // Raises a TypeError exception as '' is not a valid URL +new Url.URL('/path/path1'); // Raises a TypeError exception as '/path/path1' is not a valid URL +new Url.URL('https://www.example.com', ); // Output https://www.example.com/ +new Url.URL('https://www.example.com', b); // Output https://www.example.com/ +``` + +### parseURL9+ + +static parseURL(url : string, base?: string | URL): URL + +URL静态成员函数。 + +**系统能力:** SystemCapability.Utils.Lang + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| url | string | 是 | 入参对象。 | +| base | string \| URL | 否 | 入参字符串或者对象。
- string:字符串
- URL:字符串或对象 | + +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------- | +| 10200002 | Invalid url string. | + +**示例:** + +```js +let mm = 'http://username:password@host:8080'; +Url.URL.parseURL(mm); // Output 'http://username:password@host:8080/'; +``` + +### tostring + +toString(): string + +将解析过后的URL转化为字符串。 + +**系统能力:** SystemCapability.Utils.Lang + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| string | 用于返回网址的字符串序列化。 | + +**示例:** + +```js +const url = new Url.URL('http://username:password@host:8080/directory/file?query=pppppp#qwer=da'); +url.toString(); +``` + + +### toJSON + +toJSON(): string + +将解析过后的URL转化为JSON字符串。 + +**系统能力:** SystemCapability.Utils.Lang + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| string | 用于返回网址的字符串序列化。 | + +**示例:** +```js +const url = new Url.URL('http://username:password@host:8080/directory/file?query=pppppp#qwer=da'); +url.toJSON(); +``` + +## URLSearchParams(deprecated) + +### constructor(deprecated) constructor(init?: string[][] | Record<string, string> | string | URLSearchParams) URLSearchParams的构造函数。 +> **说明:** +> +> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+](#constructor9)替代。 + **系统能力:** SystemCapability.Utils.Lang **参数:** @@ -398,14 +528,14 @@ let params = new Url.URLSearchParams(urlObject.search); ### append(deprecated) -> **说明:** -> -> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.append9+](#append9)替代。 - append(name: string, value: string): void 将新的键值对插入到查询字符串。 +> **说明:** +> +> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.append9+](#append9)替代。 + **系统能力:** SystemCapability.Utils.Lang **参数:** @@ -425,14 +555,14 @@ paramsObject.append('fod', '3'); ### delete(deprecated) -> **说明:** -> -> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.delete9+](#delete9)替代。 - delete(name: string): void 删除指定名称的键值对。 +> **说明:** +> +> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.delete9+](#delete9)替代。 + **系统能力:** SystemCapability.Utils.Lang **参数:** @@ -451,14 +581,14 @@ paramsobject.delete('fod'); ### getAll(deprecated) -> **说明:** -> -> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.getAll9+](#getall9)替代。 - getAll(name: string): string[] 获取指定名称的所有键值对。 +> **说明:** +> +> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.getAll9+](#getall9)替代。 + **系统能力:** SystemCapability.Utils.Lang **参数:** @@ -484,14 +614,14 @@ console.log(params.getAll('fod').toString()) // Output ["1","3"]. ### entries(deprecated) -> **说明:** -> -> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.entries9+](#entries9)替代。 - entries(): IterableIterator<[string, string]> 返回一个ES6的迭代器,迭代器的每一项都是一个 JavaScript Array。Array的第一项是name,Array的第二项是value。 +> **说明:** +> +> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.entries9+](#entries9)替代。 + **系统能力:** SystemCapability.Utils.Lang **返回值:** @@ -511,14 +641,15 @@ for (var pair of searchParamsObject .entries()) { // Show keyName/valueName pair ### forEach(deprecated) -> **说明:** -> -> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.forEach9+](#foreach9)替代。 forEach(callbackFn: (value: string, key: string, searchParams: this) => void, thisArg?: Object): void 通过回调函数来遍历URLSearchParams实例对象上的键值对。 +> **说明:** +> +> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.forEach9+](#foreach9)替代。 + **系统能力:** SystemCapability.Utils.Lang **参数:** @@ -547,14 +678,15 @@ myURLObject.searchParams.forEach((value, name, searchParams) => { ### get(deprecated) -> **说明:** -> -> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.get9+](#get9)替代。 get(name: string): string | null 获取指定名称对应的第一个值。 +> **说明:** +> +> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.get9+](#get9)替代。 + **系统能力:** SystemCapability.Utils.Lang **参数:** @@ -580,14 +712,15 @@ let age = parseInt(paramsObject.get("age"), 10); // is the number 18 ### has(deprecated) -> **说明:** -> -> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.has9+](#has9)替代。 has(name: string): boolean 判断一个指定的键名对应的值是否存在。 +> **说明:** +> +> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.has9+](#has9)替代。 + **系统能力:** SystemCapability.Utils.Lang **参数:** @@ -612,14 +745,15 @@ paramsObject.has('bard') === true; ### set(deprecated) -> **说明:** -> -> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.set9+](#set9)替代。 set(name: string, value: string): void 将与name关联的URLSearchParams对象中的值设置为value。如果存在名称为name的键值对,请将第一个键值对的值设置为value并删除所有其他值。如果不是,则将键值对附加到查询字符串。 +> **说明:** +> +> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.set9+](#set9)替代。 + **系统能力:** SystemCapability.Utils.Lang **参数:** @@ -639,14 +773,15 @@ paramsObject.set('baz', '3'); // Add a third parameter. ### sort(deprecated) -> **说明:** -> -> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.sort9+](#sort9)替代。 sort(): void 对包含在此对象中的所有键值对进行排序,并返回undefined。排序顺序是根据键的Unicode代码点。该方法使用稳定的排序算法 (即,将保留具有相等键的键值对之间的相对顺序)。 +> **说明:** +> +> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.sort9+](#sort9)替代。 + **系统能力:** SystemCapability.Utils.Lang **示例:** @@ -659,14 +794,15 @@ console.log(searchParamsObject.toString()); // Display the sorted query string / ### keys(deprecated) -> **说明:** -> -> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.keys9+](#keys9)替代。 keys(): IterableIterator<string> 返回一个所有键值对的name的ES6迭代器。 +> **说明:** +> +> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.keys9+](#keys9)替代。 + **系统能力:** SystemCapability.Utils.Lang **返回值:** @@ -686,14 +822,15 @@ for (var key of searchParamsObject .keys()) { // Output key-value pairs ### values(deprecated) -> **说明:** -> -> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.values9+](#values9)替代。 values(): IterableIterator<string> 返回一个所有键值对的value的ES6迭代器。 +> **说明:** +> +> 从API version 7开始支持,从API version 9开始废弃,建议使用[URLParams9+.values9+](#values9)替代。 + **系统能力:** SystemCapability.Utils.Lang **返回值:** @@ -714,14 +851,14 @@ for (var value of searchParams.values()) { ### [Symbol.iterator](deprecated) -> **说明:** -> -> 从API version 7开始支持,从API version 9开始废弃,建议使用[[Symbol.iterator]9+](#symboliterator9)替代。 - [Symbol.iterator]\(): IterableIterator<[string, string]> 返回一个ES6的迭代器,迭代器的每一项都是一个 JavaScript Array。Array的第一项是name,Array的第二项是value。 +> **说明:** +> +> 从API version 7开始支持,从API version 9开始废弃,建议使用[[Symbol.iterator]9+](#symboliterator9)替代。 + **系统能力:** SystemCapability.Utils.Lang **返回值:** @@ -740,14 +877,15 @@ for (const [name, value] of paramsObject) { ``` ### tostring(deprecated) -> **说明:** -> -> 从API version 7开始支持,从API version 9开始废弃,建议使用[tostring9+](#tostring9)替代。 toString(): string 返回序列化为字符串的搜索参数,必要时对字符进行百分比编码。 +> **说明:** +> +> 从API version 7开始支持,从API version 9开始废弃,建议使用[tostring9+](#tostring9)替代。 + **系统能力:** SystemCapability.Utils.Lang **返回值:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-usb.md b/zh-cn/application-dev/reference/apis/js-apis-usb.md index a13cf744214736e0ad77171211683579e6f1ba24..d0331a03cdd608b1dd7bd467af0ff552e9e51ab5 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-usb.md +++ b/zh-cn/application-dev/reference/apis/js-apis-usb.md @@ -87,7 +87,7 @@ console.log(`devicesList = ${JSON.stringify(devicesList)}`); connectDevice(device: USBDevice): Readonly<USBDevicePipe> -打开USB设备。 +根据getDevices()返回的设备信息打开USB设备。 需要调用[usb.getDevices](#usbgetdevices)获取设备信息以及device,再调用[usb.requestRight](#usbrequestright)请求使用该设备的权限。 @@ -134,6 +134,8 @@ hasRight(deviceName: string): boolean 判断是否有权访问该设备。 +如果“使用者”(如各种App或系统)有权访问设备则返回true;无权访问设备则返回false。 + **系统能力:** SystemCapability.USB.USBManager **参数:** @@ -187,7 +189,7 @@ usb.requestRight(devicesName).then((ret) => { ## usb.removeRight -removeRight(deviceName: string): boolean; +removeRight(deviceName: string): boolean 移除软件包访问设备的权限。 @@ -216,7 +218,7 @@ if (usb.removeRight(devicesName) { ## usb.addRight -addRight(bundleName: string, deviceName: string): boolean; +addRight(bundleName: string, deviceName: string): boolean 添加软件包访问设备的权限。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-userFileManager.md b/zh-cn/application-dev/reference/apis/js-apis-userFileManager.md index cd29a284a88c4850609494477d769c2a77a2b272..bed88decc2c62c51f17cfac3e9b8ca1beccf12a5 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-userFileManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-userFileManager.md @@ -2,7 +2,7 @@ 该模块提供用户数据管理能力,包括访问、修改用户等用户公共媒体数据信息等常用功能。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > 本模块接口为系统接口。 @@ -19,14 +19,14 @@ getUserFileMgr(context: Context): UserFileManager 获取用户数据管理模块的实例,用于访问和修改用户等用户公共媒体数据信息(如音频、视频、图片、文档等)。 **模型约束:** 此接口仅可在Stage模型下使用。 - + **系统能力**:SystemCapability.FileManagement.UserFileManager.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | | ------- | ------- | ---- | -------------------------- | -| context | [Context](js-apis-inner-app-context.md) | 是 | 传入Ability实例的Context。 | +| context | [Context](js-apis-inner-app-context.md) | 是 | 传入Ability实例的Context | **返回值:** @@ -86,7 +86,7 @@ async function example() { } else { console.info('fetchResult fail' + err); } - }) + }); } ``` @@ -126,7 +126,7 @@ async function example() { predicates: predicates }; try { - var fetchResult = await mgr.getPhotoAssets(fetchOptions) + var fetchResult = await mgr.getPhotoAssets(fetchOptions); if (fetchResult != undefined) { console.info('fetchResult success'); let fileAsset = await fetchResult.getFirstObject(); @@ -163,13 +163,13 @@ createPhotoAsset(displayName: string, albumUri: string, callback: AsyncCallback& import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('createPhotoAssetDemo') + console.info('createPhotoAssetDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOptions = { predicates: predicates }; - let albums = await mgr.getPhotoAlbums(fetchOptions) - let album = await albums.getFirstObject() + let albums = await mgr.getPhotoAlbums(fetchOptions); + let album = await albums.getFirstObject(); let testFileName = "testFile" + Date.now() + ".jpg"; mgr.createPhotoAsset(testFileName, album.albumUri, (err, fileAsset) => { if (fileAsset != undefined) { @@ -178,7 +178,7 @@ async function example() { } else { console.info('createPhotoAsset failed, message = ', err); } - }) + }); } ``` @@ -203,7 +203,7 @@ createPhotoAsset(displayName: string, callback: AsyncCallback<FileAsset>): ```ts async function example() { - console.info('createPhotoAssetDemo') + console.info('createPhotoAssetDemo'); let testFileName = "testFile" + Date.now() + ".jpg"; mgr.createPhotoAsset(testFileName, (err, fileAsset) => { if (fileAsset != undefined) { @@ -212,7 +212,7 @@ async function example() { } else { console.info('createPhotoAsset failed, message = ', err); } - }) + }); } ``` @@ -243,10 +243,10 @@ createPhotoAsset(displayName: string, albumUri?: string): Promise<FileAsset&g ```ts async function example() { - console.info('createPhotoAssetDemo') + console.info('createPhotoAssetDemo'); try { let testFileName = "testFile" + Date.now() + ".jpg"; - let fileAsset = await mgr.createPhotoAsset(testFileName) + let fileAsset = await mgr.createPhotoAsset(testFileName); console.info('createPhotoAsset file displayName' + fileAsset.displayName); console.info('createPhotoAsset successfully'); } catch (err) { @@ -279,7 +279,7 @@ getPhotoAlbums(options: AlbumFetchOptions, callback: AsyncCallback<FetchResul import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('getPhotoAlbumsDemo') + console.info('getPhotoAlbumsDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let albumFetchOptions = { predicates: predicates @@ -294,11 +294,11 @@ async function example() { } else { console.info('album is undefined, err = ', err); } - }) + }); } else { console.info('getPhotoAlbums fail, message = ', err); } - }) + }); } ``` @@ -330,7 +330,7 @@ getPhotoAlbums(options: AlbumFetchOptions): Promise<FetchResult<Album>& import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('getPhotoAlbumsDemo') + console.info('getPhotoAlbumsDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let albumFetchOptions = { predicates: predicates @@ -368,7 +368,7 @@ getPrivateAlbum(type: PrivateAlbumType, callback: AsyncCallback<FetchResult&l ```ts async function example() { - console.info('getPrivateAlbumDemo') + console.info('getPrivateAlbumDemo'); mgr.getPrivateAlbum(userFileManager.PrivateAlbumType.TYPE_TRASH, async (err, fetchResult) => { if (fetchResult != undefined) { let trashAlbum = await fetchResult.getFirstObject(); @@ -459,7 +459,7 @@ async function example() { } else { console.info('fetchFileResult fail' + err); } - }) + }); } ``` @@ -499,7 +499,7 @@ async function example() { predicates: predicates }; try { - var fetchResult = await mgr.getAudioAssets(fetchOptions) + var fetchResult = await mgr.getAudioAssets(fetchOptions); } catch (err) { console.info('getAudioAssets failed, message = ', err); } @@ -517,7 +517,7 @@ async function example() { delete(uri: string, callback: AsyncCallback<void>): void; -删除媒体文件,删除的文件进入到回收站。 +删除媒体文件,删除的文件进入到回收站。 **需要权限**:ohos.permission.READ_IMAGEVIDEO 和 ohos.permission.WRITE_IMAGEVIDEO 或 ohos.permission.READ_AUDIO 和 ohos.permission.WRITE_AUDIO @@ -536,7 +536,7 @@ delete(uri: string, callback: AsyncCallback<void>): void; import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('deleteAssetDemo') + console.info('deleteAssetDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOptions = { fetchColumns: [], @@ -546,11 +546,11 @@ async function example() { const fetchResult = await mgr.getPhotoAssets(fetchOptions); var asset = await fetchResult.getFirstObject(); } catch (err) { - console.info('fetch failed, message =', err) + console.info('fetch failed, message =', err); } if (asset == undefined) { - console.error('asset not exist') + console.error('asset not exist'); return; } mgr.delete(asset.uri, (err) => { @@ -590,7 +590,7 @@ delete(uri: string): Promise<void>; import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('deleteDemo') + console.info('deleteDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOptions = { fetchColumns: [], @@ -600,11 +600,11 @@ async function example() { const fetchResult = await mgr.getPhotoAssets(fetchOptions); var asset = await fetchResult.getFirstObject(); } catch (err) { - console.info('fetch failed, message =', err) + console.info('fetch failed, message =', err); } if (asset == undefined) { - console.error('asset not exist') + console.error('asset not exist'); return; } try { @@ -635,7 +635,7 @@ on(type: ChangeEvent, callback: Callback<void>): void ```ts async function example() { - console.info('onDemo') + console.info('onDemo'); let count = 0; mgr.on('imageChange', () => { count++; @@ -680,7 +680,7 @@ off(type: ChangeEvent, callback?: Callback<void>): void ```ts async function example() { - console.info('offDemo') + console.info('offDemo'); let count = 0; mgr.on('imageChange', () => { count++; @@ -726,15 +726,15 @@ getActivePeers(callback: AsyncCallback<Array<PeerInfo>>): void; ```ts async function example() { - console.info('getActivePeersDemo') + console.info('getActivePeersDemo'); mgr.getActivePeers((err, devicesInfo) => { if (devicesInfo != undefined) { - console.log('getActivePeers succeed.') + console.log('getActivePeers succeed.'); for (let i = 0; i < devicesInfo.length; i++) { console.info('get distributed info ' + devicesInfo[i].deviceName + devicesInfo[i].networkId); } } else { - console.info('getActivePeers failed. message = ', err) + console.info('getActivePeers failed. message = ', err); } }); } @@ -758,19 +758,19 @@ getActivePeers(): Promise<Array<PeerInfo>>; ```ts async function example() { - console.info('getActivePeersDemo') + console.info('getActivePeersDemo'); try { var devicesInfo = await mgr.getActivePeers(); } catch (err) { - console.info('getActivePeers failed. message = ', err) + console.info('getActivePeers failed. message = ', err); } if (devicesInfo != undefined) { - console.log('getActivePeers succeed.') + console.log('getActivePeers succeed.'); for (let i = 0; i < devicesInfo.length; i++) { console.info('get distributed info ' + devicesInfo[i].deviceName + devicesInfo[i].networkId); } } else { - console.info('get distributed fail') + console.info('get distributed fail'); } } ``` @@ -793,15 +793,15 @@ getAllPeers(callback: AsyncCallback<Array<PeerInfo>>): void; ```ts async function example() { - console.info('getAllPeersDemo') + console.info('getAllPeersDemo'); mgr.getAllPeers((err, devicesInfo) => { if (devicesInfo != undefined) { - console.log('getAllPeers succeed.') + console.log('getAllPeers succeed.'); for (let i = 0; i < devicesInfo.length; i++) { console.info('get distributed info ' + devicesInfo[i].deviceName + devicesInfo[i].networkId); } } else { - console.info('getAllPeers failed. message = ', err) + console.info('getAllPeers failed. message = ', err); } }); } @@ -825,19 +825,19 @@ getAllPeers(): Promise<Array<PeerInfo>>; ```ts async function example() { - console.info('getAllPeersDemo') + console.info('getAllPeersDemo'); try { var devicesInfo = await mgr.getAllPeers(); } catch (err) { - console.info('getAllPeers failed. message = ', err) + console.info('getAllPeers failed. message = ', err); } if (devicesInfo != undefined) { - console.log('getAllPeers succeed.') + console.log('getAllPeers succeed.'); for (let i = 0; i < devicesInfo.length; i++) { console.info('get distributed info ' + devicesInfo[i].deviceName + devicesInfo[i].networkId); } } else { - console.info('get distributed fail') + console.info('get distributed fail'); } } ``` @@ -868,7 +868,7 @@ async function example() { } else { console.info('release ok.'); } - }) + }); } ``` @@ -920,7 +920,7 @@ async function example() { get(member: string): MemberType; -获取FileAsset成员参数 +获取FileAsset成员参数。 **系统能力**:SystemCapability.FileManagement.UserFileManager.Core @@ -936,7 +936,7 @@ get(member: string): MemberType; import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('fileAssetGetDemo') + console.info('fileAssetGetDemo'); try { let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { @@ -945,8 +945,8 @@ async function example() { }; let fetchResult = await mgr.getPhotoAssets(fetchOption); let fileAsset = await fetchResult.getFirstObject(); - let title = userFileManager.ImageVideoKey.TITLE - let fileAssetTitle = fileAsset.get(title.toString()) + let title = userFileManager.ImageVideoKey.TITLE; + let fileAssetTitle = fileAsset.get(title.toString()); console.info('fileAsset Get fileAssetTitle = ', fileAssetTitle); } catch (err) { console.info('release failed. message = ', err); @@ -958,7 +958,7 @@ async function example() { set(member: string, value: string): void; -设置FileAsset成员参数 +设置FileAsset成员参数。 **系统能力**:SystemCapability.FileManagement.UserFileManager.Core @@ -975,7 +975,7 @@ set(member: string, value: string): void; import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('fileAssetSetDemo') + console.info('fileAssetSetDemo'); try { let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { @@ -984,8 +984,8 @@ async function example() { }; let fetchResult = await mgr.getPhotoAssets(fetchOption); let fileAsset = await fetchResult.getFirstObject(); - let title = userFileManager.ImageVideoKey.TITLE - fileAsset.set(title.toString(), "newTitle") + let title = userFileManager.ImageVideoKey.TITLE; + fileAsset.set(title.toString(), "newTitle"); } catch (err) { console.info('release failed. message = ', err); } @@ -1014,7 +1014,7 @@ commitModify(callback: AsyncCallback<void>): void import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('commitModifyDemo') + console.info('commitModifyDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { fetchColumns: [], @@ -1022,13 +1022,13 @@ async function example() { }; let fetchResult = await mgr.getPhotoAssets(fetchOption); let fileAsset = await fetchResult.getFirstObject(); - let title = userFileManager.ImageVideoKey.TITLE - let fileAssetTitle = fileAsset.get(title.toString()) + let title = userFileManager.ImageVideoKey.TITLE; + let fileAssetTitle = fileAsset.get(title.toString()); console.info('fileAsset Get fileAssetTitle = ', fileAssetTitle); - fileAsset.set(title.toString(), "newTitle") + fileAsset.set(title.toString(), "newTitle"); fileAsset.commitModify((err) => { if (err == undefined) { - let newFileAssetTitle = fileAsset.get(title.toString()) + let newFileAssetTitle = fileAsset.get(title.toString()); console.info('fileAsset Get newFileAssetTitle = ', newFileAssetTitle); } else { console.info('commitModify failed, message =', err); @@ -1059,7 +1059,7 @@ commitModify(): Promise<void> import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('commitModifyDemo') + console.info('commitModifyDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { fetchColumns: [], @@ -1067,13 +1067,13 @@ async function example() { }; let fetchResult = await mgr.getPhotoAssets(fetchOption); let fileAsset = await fetchResult.getFirstObject(); - let title = userFileManager.ImageVideoKey.TITLE - let fileAssetTitle = fileAsset.get(title.toString()) + let title = userFileManager.ImageVideoKey.TITLE; + let fileAssetTitle = fileAsset.get(title.toString()); console.info('fileAsset Get fileAssetTitle = ', fileAssetTitle); - fileAsset.set(title.toString(), "newTitle") + fileAsset.set(title.toString(), "newTitle"); try { - await fileAsset.commitModify() - let newFileAssetTitle = fileAsset.get(title.toString()) + await fileAsset.commitModify(); + let newFileAssetTitle = fileAsset.get(title.toString()); console.info('fileAsset Get newFileAssetTitle = ', newFileAssetTitle); } catch (err) { console.info('release failed. message = ', err); @@ -1087,7 +1087,7 @@ open(mode: string, callback: AsyncCallback<number>): void 打开当前文件,使用callback方式返回异步结果。 -**注意**:当前写操作是互斥的操作,写操作完成后需要调用close进行释放 +**注意**:当前写操作是互斥的操作,写操作完成后需要调用close进行释放。 **需要权限**:ohos.permission.READ_IMAGEVIDEO 或 ohos.permission.READ_AUDIO 或 ohos.permission.WRITE_IMAGEVIDEO 或 ohos.permission.WRITE_AUDIO @@ -1105,13 +1105,13 @@ open(mode: string, callback: AsyncCallback<number>): void ```ts async function example() { - console.info('openDemo') + console.info('openDemo'); let testFileName = "testFile" + Date.now() + ".jpg"; const fileAsset = await mgr.createPhotoAsset(testFileName); fileAsset.open('rw', (err, fd) => { if (fd != undefined) { console.info('File fd' + fd); - fileAsset.close(fd) + fileAsset.close(fd); } else { console.info('File err' + err); } @@ -1125,7 +1125,7 @@ open(mode: string): Promise<number> 打开当前文件,使用promise方式返回异步结果。 -**注意**:当前写操作是互斥的操作,写操作完成后需要调用close进行释放 +**注意**:当前写操作是互斥的操作,写操作完成后需要调用close进行释放。 **需要权限**:ohos.permission.READ_IMAGEVIDEO 或 ohos.permission.READ_AUDIO 或 ohos.permission.WRITE_IMAGEVIDEO 或 ohos.permission.WRITE_AUDIO @@ -1147,14 +1147,14 @@ open(mode: string): Promise<number> ```ts async function example() { - console.info('openDemo') + console.info('openDemo'); try { let testFileName = "testFile" + Date.now() + ".jpg"; const fileAsset = await mgr.createPhotoAsset(testFileName); - let fd = await fileAsset.open('rw') + let fd = await fileAsset.open('rw'); if (fd != undefined) { console.info('File fd' + fd); - fileAsset.close(fd) + fileAsset.close(fd); } else { console.info(' open File fail'); } @@ -1185,7 +1185,7 @@ close(fd: number, callback: AsyncCallback<void>): void import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('closeDemo') + console.info('closeDemo'); try { let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { @@ -1235,7 +1235,7 @@ close(fd: number): Promise<void> import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('closeDemo') + console.info('closeDemo'); try { let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { @@ -1246,7 +1246,7 @@ async function example() { const asset = await fetchResult.getFirstObject(); let fd = await asset.open('rw'); console.info('file fd', fd); - await asset.close(fd) + await asset.close(fd); console.info('asset close succeed.'); } catch (err) { console.info('close failed, message = ' + err); @@ -1276,7 +1276,7 @@ getThumbnail(callback: AsyncCallback<image.PixelMap>): void import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('getThumbnailDemo') + console.info('getThumbnailDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { fetchColumns: [], @@ -1284,7 +1284,7 @@ async function example() { }; let fetchResult = await mgr.getPhotoAssets(fetchOption); const asset = await fetchResult.getFirstObject(); - console.info('asset displayName = ', asset.displayName) + console.info('asset displayName = ', asset.displayName); asset.getThumbnail((err, pixelMap) => { if (err == undefined) { console.info('getThumbnail successful ' + pixelMap); @@ -1318,7 +1318,7 @@ getThumbnail(size: image.Size, callback: AsyncCallback<image.PixelMap>): v import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('getThumbnailDemo') + console.info('getThumbnailDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { fetchColumns: [], @@ -1327,7 +1327,7 @@ async function example() { let size = { width: 720, height: 720 }; let fetchResult = await mgr.getPhotoAssets(fetchOption); const asset = await fetchResult.getFirstObject(); - console.info('asset displayName = ', asset.displayName) + console.info('asset displayName = ', asset.displayName); asset.getThumbnail(size, (err, pixelMap) => { if (err == undefined) { console.info('getThumbnail successful ' + pixelMap); @@ -1366,7 +1366,7 @@ getThumbnail(size?: image.Size): Promise<image.PixelMap> import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('getThumbnailDemo') + console.info('getThumbnailDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { fetchColumns: [], @@ -1375,7 +1375,7 @@ async function example() { let size = { width: 720, height: 720 }; let fetchResult = await mgr.getPhotoAssets(fetchOption); const asset = await fetchResult.getFirstObject(); - console.info('asset displayName = ', asset.displayName) + console.info('asset displayName = ', asset.displayName); asset.getThumbnail(size).then((pixelMap) => { console.info('getThumbnail successful ' + pixelMap); }).catch((err) => { @@ -1407,7 +1407,7 @@ favorite(isFavorite: boolean, callback: AsyncCallback<void>): void import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('favoriteDemo') + console.info('favoriteDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { fetchColumns: [], @@ -1453,7 +1453,7 @@ favorite(isFavorite: boolean): Promise<void> import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('favoriteDemo') + console.info('favoriteDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { fetchColumns: [], @@ -1493,7 +1493,7 @@ getCount(): number import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('getCountDemo') + console.info('getCountDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { fetchColumns: [], @@ -1501,7 +1501,7 @@ async function example() { }; let fetchResult = await mgr.getPhotoAssets(fetchOption); const fetchCount = fetchResult.getCount(); - console.info('fetchCount = ', fetchCount) + console.info('fetchCount = ', fetchCount); } ``` @@ -1556,7 +1556,7 @@ close(): void import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('fetchResultCloseDemo') + console.info('fetchResultCloseDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { fetchColumns: [], @@ -1592,7 +1592,7 @@ getFirstObject(callback: AsyncCallback<T>): void import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('getFirstObjectDemo') + console.info('getFirstObjectDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { fetchColumns: [], @@ -1601,7 +1601,7 @@ async function example() { let fetchResult = await mgr.getPhotoAssets(fetchOption); fetchResult.getFirstObject((err, fileAsset) => { if (fileAsset != undefined) { - console.info('fileAsset displayName: ', fileAsset.displayName) + console.info('fileAsset displayName: ', fileAsset.displayName); } else { console.info("fileAsset failed with err:" + err); } @@ -1621,7 +1621,7 @@ getFirstObject(): Promise<T> | 类型 | 说明 | | --------------------------------------- | -------------------------- | -| Promise<T> | Promise方式返回。 | +| Promise<T> | Promise方式返回 | **示例**: @@ -1629,7 +1629,7 @@ getFirstObject(): Promise<T> import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('getFirstObjectDemo') + console.info('getFirstObjectDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { fetchColumns: [], @@ -1637,7 +1637,7 @@ async function example() { }; let fetchResult = await mgr.getPhotoAssets(fetchOption); let fileAsset = await fetchResult.getFirstObject(); - console.info('fileAsset displayName: ', fileAsset.displayName) + console.info('fileAsset displayName: ', fileAsset.displayName); } ``` @@ -1661,7 +1661,7 @@ async function example() { import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('getNextObjectDemo') + console.info('getNextObjectDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { fetchColumns: [], @@ -1672,7 +1672,7 @@ async function example() { if (fetchResult.isAfterLast()) { fetchResult.getNextObject((err, fileAsset) => { if (fileAsset != undefined) { - console.info('fileAsset displayName: ', fileAsset.displayName) + console.info('fileAsset displayName: ', fileAsset.displayName); } else { console.info("fileAsset failed with err:" + err); } @@ -1701,7 +1701,7 @@ async function example() { import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('getNextObjectDemo') + console.info('getNextObjectDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { fetchColumns: [], @@ -1711,7 +1711,7 @@ async function example() { await fetchResult.getFirstObject(); if (fetchResult.isAfterLast()) { let fileAsset = await fetchResult.getNextObject(); - console.info('fileAsset displayName: ', fileAsset.displayName) + console.info('fileAsset displayName: ', fileAsset.displayName); } } ``` @@ -1736,7 +1736,7 @@ getLastObject(callback: AsyncCallback<T>): void import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('getLastObjectDemo') + console.info('getLastObjectDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { fetchColumns: [], @@ -1745,7 +1745,7 @@ async function example() { let fetchResult = await mgr.getPhotoAssets(fetchOption); fetchResult.getLastObject((err, fileAsset) => { if (fileAsset != undefined) { - console.info('fileAsset displayName: ', fileAsset.displayName) + console.info('fileAsset displayName: ', fileAsset.displayName); } else { console.info("fileAsset failed with err:" + err); } @@ -1773,7 +1773,7 @@ getLastObject(): Promise<T> import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('getLastObjectDemo') + console.info('getLastObjectDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { fetchColumns: [], @@ -1781,7 +1781,7 @@ async function example() { }; let fetchResult = await mgr.getPhotoAssets(fetchOption); let fileAsset = await fetchResult.getLastObject(); - console.info('fileAsset displayName: ', fileAsset.displayName) + console.info('fileAsset displayName: ', fileAsset.displayName); } ``` @@ -1806,7 +1806,7 @@ getPositionObject(index: number, callback: AsyncCallback<T>): void import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('getPositionObjectDemo') + console.info('getPositionObjectDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { fetchColumns: [], @@ -1815,7 +1815,7 @@ async function example() { let fetchResult = await mgr.getPhotoAssets(fetchOption); fetchResult.getPositionObject(0, (err, fileAsset) => { if (fileAsset != undefined) { - console.info('fileAsset displayName: ', fileAsset.displayName) + console.info('fileAsset displayName: ', fileAsset.displayName); } else { console.info("fileAsset failed with err:" + err); } @@ -1849,7 +1849,7 @@ getPositionObject(index: number): Promise<T> import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('getPositionObjectDemo') + console.info('getPositionObjectDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { fetchColumns: [], @@ -1857,7 +1857,7 @@ async function example() { }; let fetchResult = await mgr.getPhotoAssets(fetchOption); let fileAsset = await fetchResult.getPositionObject(0); - console.info('fileAsset displayName: ', fileAsset.displayName) + console.info('fileAsset displayName: ', fileAsset.displayName); } ``` @@ -1881,7 +1881,7 @@ async function example() { getPhotoAssets(options: FetchOptions, callback: AsyncCallback<FetchResult<FileAsset>>): void; -获取相册中的文件。该方法使用callback形式来返回文件 +获取相册中的文件。该方法使用callback形式来返回文件。 **需要权限**:ohos.permission.READ_IMAGEVIDEO @@ -1900,7 +1900,7 @@ getPhotoAssets(options: FetchOptions, callback: AsyncCallback<FetchResult< import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('albumGetFileAssetsDemoCallback') + console.info('albumGetFileAssetsDemoCallback'); let predicates = new dataSharePredicates.DataSharePredicates(); let albumFetchOptions = { @@ -1925,7 +1925,7 @@ async function example() { getPhotoAssets(options: FetchOptions): Promise<FetchResult<FileAsset>>; -获取相册中的文件。该方法使用Promise来返回文件 +获取相册中的文件。该方法使用Promise来返回文件。 **需要权限**:ohos.permission.READ_IMAGEVIDEO @@ -1944,7 +1944,7 @@ getPhotoAssets(options: FetchOptions): Promise<FetchResult<FileAsset>&g import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('albumGetFileAssetsDemoPromise') + console.info('albumGetFileAssetsDemoPromise'); let predicates = new dataSharePredicates.DataSharePredicates(); let albumFetchOptions = { @@ -1986,7 +1986,7 @@ commitModify(callback: AsyncCallback<void>): void; import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('albumCommitModifyDemo') + console.info('albumCommitModifyDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let albumFetchOptions = { predicates: predicates @@ -2026,7 +2026,7 @@ commitModify(): Promise<void>; import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('albumCommitModifyDemo') + console.info('albumCommitModifyDemo'); let predicates = new dataSharePredicates.DataSharePredicates(); let albumFetchOptions = { predicates: predicates @@ -2047,7 +2047,8 @@ async function example() { ``` ## PrivateAlbum -系统相册 + +系统相册。 ### 属性 @@ -2065,7 +2066,7 @@ async function example() { getPhotoAssets(options: FetchOptions, callback: AsyncCallback<FetchResult<FileAsset>>): void; -获取系统相册中的文件。该方法使用callback形式来返回文件 +获取系统相册中的文件。该方法使用callback形式来返回文件。 **需要权限**:ohos.permission.READ_IMAGEVIDEO @@ -2084,7 +2085,7 @@ getPhotoAssets(options: FetchOptions, callback: AsyncCallback<FetchResult< import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('privateAlbumGetFileAssetsDemoCallback') + console.info('privateAlbumGetFileAssetsDemoCallback'); let albumList = await mgr.getPrivateAlbum(userFileManager.PrivateAlbumType.TYPE_TRASH); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { @@ -2107,7 +2108,7 @@ async function example() { getPhotoAssets(options: FetchOptions): Promise<FetchResult<FileAsset>>; -获取系统相册中的文件。该方法使用Promise来返回文件 +获取系统相册中的文件。该方法使用Promise来返回文件。 **需要权限**:ohos.permission.READ_IMAGEVIDEO @@ -2131,7 +2132,7 @@ getPhotoAssets(options: FetchOptions): Promise<FetchResult<FileAsset>&g import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('privateAlbumGetFileAssetsDemoPromise') + console.info('privateAlbumGetFileAssetsDemoPromise'); let albumList = await mgr.getPrivateAlbum(userFileManager.PrivateAlbumType.TYPE_TRASH); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { @@ -2148,7 +2149,7 @@ async function example() { delete(uri: string, callback: AsyncCallback<void>): void; -删除系统相册中的文件 +删除系统相册中的文件。 **需要权限**:ohos.permission.READ_IMAGEVIDEO 和 ohos.permission.WRITE_IMAGEVIDEO 或 ohos.permission.READ_AUDIO 和 ohos.permission.WRITE_AUDIO @@ -2191,7 +2192,7 @@ async function example() { delete(uri: string): Promise<void>; -删除系统相册中的文件 +删除系统相册中的文件。 **需要权限**:ohos.permission.READ_IMAGEVIDEO 和 ohos.permission.WRITE_IMAGEVIDEO 或 ohos.permission.READ_AUDIO 和 ohos.permission.WRITE_AUDIO @@ -2215,7 +2216,7 @@ delete(uri: string): Promise<void>; import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('privateAlbumDeleteDemoPromise') + console.info('privateAlbumDeleteDemoPromise'); let albumList = await mgr.getPrivateAlbum(userFileManager.PrivateAlbumType.TYPE_TRASH); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { @@ -2238,7 +2239,7 @@ async function example() { recover(uri: string, callback: AsyncCallback<void>): void; -恢复系统相册中的文件 +恢复系统相册中的文件。 **需要权限**:ohos.permission.READ_IMAGEVIDEO 和 ohos.permission.WRITE_IMAGEVIDEO 或 ohos.permission.READ_AUDIO 和 ohos.permission.WRITE_AUDIO @@ -2281,7 +2282,7 @@ async function example() { recover(uri: string): Promise<void>; -恢复系统相册中的文件 +恢复系统相册中的文件。 **需要权限**:ohos.permission.READ_IMAGEVIDEO 和 ohos.permission.WRITE_IMAGEVIDEO 或 ohos.permission.READ_AUDIO 和 ohos.permission.WRITE_AUDIO @@ -2305,7 +2306,7 @@ recover(uri: string): Promise<void>; import dataSharePredicates from '@ohos.data.dataSharePredicates'; async function example() { - console.info('privateAlbumRecoverDemoPromise') + console.info('privateAlbumRecoverDemoPromise'); let albumList = await mgr.getPrivateAlbum(userFileManager.PrivateAlbumType.TYPE_TRASH); let predicates = new dataSharePredicates.DataSharePredicates(); let fetchOption = { @@ -2329,7 +2330,7 @@ async function example() { 成员类型。 **系统能力:** 以下各项对应的系统能力均为SystemCapability.FileManagement.UserFileManager.Core - + | 名称 | 类型 | 可读 | 可写 | 说明 | | ----- | ---- | ---- | ---- | ---- | | number | number | 是 | 是 | number类型 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-useriam-userauth.md b/zh-cn/application-dev/reference/apis/js-apis-useriam-userauth.md index cdd93e38b72906886abad424509249a0f4890168..40aa943c1b9127d0ed5aea4bb6b5a824204d9227 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-useriam-userauth.md +++ b/zh-cn/application-dev/reference/apis/js-apis-useriam-userauth.md @@ -277,9 +277,14 @@ start : () => void | -------- | ------- | | 201 | Permission verification failed. | | 401 | Incorrect parameters. | +| 12500001 | Execution failed. | | 12500002 | General operation error. | +| 12500003 | The operation is canceled. | +| 12500004 | The operation is time-out. | | 12500005 | The authentication type is not supported. | | 12500006 | The authentication trust level is not supported. | +| 12500007 | The authentication task is busy. | +| 12500009 | The authenticator is locked. | | 12500010 | The type of credential has not been enrolled. | **示例:** @@ -813,6 +818,7 @@ auth.auth(null, userIAM_userAuth.UserAuthType.FACE, userIAM_userAuth.AuthTrustLe | TYPE_NOT_SUPPORT | 5 | 不支持的认证类型。 | | TRUST_LEVEL_NOT_SUPPORT | 6 | 不支持的认证等级。 | | BUSY | 7 | 忙碌状态。 | +| INVALID_PARAMETERS | 8 | 无效参数。 | | LOCKED | 9 | 认证器已锁定。 | | NOT_ENROLLED | 10 | 用户未录入认证信息。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-util.md b/zh-cn/application-dev/reference/apis/js-apis-util.md index 18988029313b122955f9a4b4429f09aadda67c6e..5ce015beec6af2e213f2ad20efb7753152a9035a 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-util.md +++ b/zh-cn/application-dev/reference/apis/js-apis-util.md @@ -41,38 +41,6 @@ let res = util.format("%s", "hello world!"); console.log(res); ``` -## util.printf(deprecated) - -printf(format: string, ...args: Object[]): string - -通过式样化字符串对输入的内容按特定格式输出。 - -> **说明:** -> -> 从API Version 7开始支持,从API Version 9开始废弃,建议使用[util.format9+](#utilformat9)替代。 - -**系统能力:** SystemCapability.Utils.Lang - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| format | string | 是 | 式样化字符串。 | -| ...args | Object[] | 否 | 替换式样化字符串通配符的数据。 | - -**返回值:** - -| 类型 | 说明 | -| -------- | -------- | -| string | 按特定格式式样化后的字符串。 | - -**示例:** - - ```js - let res = util.printf("%s", "hello world!"); - console.log(res); - ``` - ## util.errnoToString9+ errnoToString(errno: number): string @@ -101,38 +69,6 @@ let result = util.errnoToString(errnum); console.log("result = " + result); ``` -## util.getErrorString(deprecated) - -getErrorString(errno: number): string - -获取系统错误码对应的详细信息。 - -> **说明:** -> -> 从API Version 7开始支持,从API Version 9开始废弃,建议使用[util.errnoToString9+](#utilerrnotostring9)替代。 - -**系统能力:** SystemCapability.Utils.Lang - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| errno | number | 是 | 系统发生错误产生的错误码。 | - -**返回值:** - -| 类型 | 说明 | -| -------- | -------- | -| string | 错误码对应的详细信息。 | - -**示例:** - - ```js - let errnum = 10; // 10 : a system error number - let result = util.getErrorString(errnum); - console.log("result = " + result); - ``` - ## util.callbackWrapper callbackWrapper(original: Function): (err: Object, value: Object )=>void @@ -203,30 +139,6 @@ promisify(original: (err: Object, value: Object) => void): Function }) ``` -## util.promiseWrapper(deprecated) - -promiseWrapper(original: (err: Object, value: Object) => void): Object - -对异步函数处理并返回一个promise的版本。 - -> **说明:** -> -> 此接口不可用,建议使用[util.promisify9+](#utilpromisify9)替代。 - -**系统能力:** SystemCapability.Utils.Lang - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| original | Function | 是 | 异步函数。 | - -**返回值:** - -| 类型 | 说明 | -| -------- | -------- | -| Function | 采用遵循常见的错误优先的回调风格的函数(也就是将 (err, value) => ... 回调作为最后一个参数),并返回一个返回 promise 的版本。 | - ## util.randomUUID9+ randomUUID(entropyCache?: boolean): string @@ -314,6 +226,96 @@ parseUUID(uuid: string): Uint8Array // 132,189,247,150,102,204,70,85,155,137,214,33,141,16,15,156 ``` +## util.printf(deprecated) + +printf(format: string, ...args: Object[]): string + +通过式样化字符串对输入的内容按特定格式输出。 + +> **说明:** +> +> 从API version 7开始支持,从API version 9开始废弃,建议使用[util.format9+](#utilformat9)替代。 + +**系统能力:** SystemCapability.Utils.Lang + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| format | string | 是 | 式样化字符串。 | +| ...args | Object[] | 否 | 替换式样化字符串通配符的数据。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| string | 按特定格式式样化后的字符串。 | + +**示例:** + + ```js + let res = util.printf("%s", "hello world!"); + console.log(res); + ``` + + +## util.getErrorString(deprecated) + +getErrorString(errno: number): string + +获取系统错误码对应的详细信息。 + +> **说明:** +> +> 从API version 7开始支持,从API version 9开始废弃,建议使用[util.errnoToString9+](#utilerrnotostring9)替代。 + +**系统能力:** SystemCapability.Utils.Lang + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| errno | number | 是 | 系统发生错误产生的错误码。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| string | 错误码对应的详细信息。 | + +**示例:** + + ```js + let errnum = 10; // 10 : a system error number + let result = util.getErrorString(errnum); + console.log("result = " + result); + ``` + +## util.promiseWrapper(deprecated) + +promiseWrapper(original: (err: Object, value: Object) => void): Object + +对异步函数处理并返回一个promise的版本。 + +> **说明:** +> +> 此接口不可用,建议使用[util.promisify9+](#utilpromisify9)替代。 + +**系统能力:** SystemCapability.Utils.Lang + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| original | Function | 是 | 异步函数。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| Function | 采用遵循常见的错误优先的回调风格的函数(也就是将 (err, value) => ... 回调作为最后一个参数),并返回一个返回 promise 的版本。 | + + ## TextDecoder ### 属性 @@ -363,38 +365,6 @@ let textDecoder = new util.TextDecoder() textDecoder.create('utf-8', { ignoreBOM : true }); ``` -### constructor(deprecated) - -constructor(encoding?: string, options?: { fatal?: boolean; ignoreBOM?: boolean },) - -TextDecoder的构造函数。 - -> **说明:** -> -> 从API Version 7开始支持,从API Version 9开始废弃,建议使用[constructor9+](#constructor9)替代。 - -**系统能力:** SystemCapability.Utils.Lang - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| encoding | string | 否 | 编码格式。 | -| options | Object | 否 | 编码相关选项参数,存在两个属性fatal和ignoreBOM。 | - - **表1** options - -| 名称 | 参数类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| fatal | boolean | 否 | 是否显示致命错误。 | -| ignoreBOM | boolean | 否 | 是否忽略BOM标记。 | - -**示例:** - - ```js - let textDecoder = new util.TextDecoder("utf-8",{ignoreBOM: true}); - ``` - ### decode decode(input: Uint8Array, options?: { stream?: false }): string @@ -482,6 +452,37 @@ decodeWithStream(input: Uint8Array, options?: { stream?: boolean }): string console.log("retStr = " + retStr); ``` +### constructor(deprecated) + +constructor(encoding?: string, options?: { fatal?: boolean; ignoreBOM?: boolean },) + +TextDecoder的构造函数。 + +> **说明:** +> +> 从API version 7开始支持,从API version 9开始废弃,建议使用[constructor9+](#constructor9)替代。 + +**系统能力:** SystemCapability.Utils.Lang + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| encoding | string | 否 | 编码格式。 | +| options | Object | 否 | 编码相关选项参数,存在两个属性fatal和ignoreBOM。 | + + **表1** options + +| 名称 | 参数类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| fatal | boolean | 否 | 是否显示致命错误。 | +| ignoreBOM | boolean | 否 | 是否忽略BOM标记。 | + +**示例:** + + ```js + let textDecoder = new util.TextDecoder("utf-8",{ignoreBOM: true}); + ``` ## TextEncoder @@ -537,78 +538,80 @@ let result = new Uint8Array(buffer); result = textEncoder.encodeInto("\uD800¥¥"); ``` -### encode(deprecated) - -encode(input?: string): Uint8Array +### encodeIntoUint8Array9+ -通过输入参数编码后输出对应文本。 +encodeIntoUint8Array(input: string, dest: Uint8Array, ): { read: number; written: number } -> **说明:** -> -> 从API Version 7开始支持,从API Version 9开始废弃,建议使用[encodeInto9+](#encodeinto9)替代。 +放置生成的UTF-8编码文本。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| input | string | 否 | 需要编码的字符串。 | +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ---------- | ---- | ------------------------------------------------------- | +| input | string | 是 | 需要编码的字符串。 | +| dest | Uint8Array | 是 | Uint8Array对象实例,用于将生成的UTF-8编码文本放入其中。 | **返回值:** -| 类型 | 说明 | -| -------- | -------- | +| 类型 | 说明 | +| ---------- | ------------------ | | Uint8Array | 返回编码后的文本。 | **示例:** + ```js - let textEncoder = new util.TextEncoder(); - let buffer = new ArrayBuffer(20); - let result = new Uint8Array(buffer); - result = textEncoder.encode("\uD800¥¥"); +let that = new util.TextEncoder() +let buffer = new ArrayBuffer(4) +let dest = new Uint8Array(buffer) +let result = new Object() +result = that.encodeInto('abcd', dest) ``` -### encodeIntoUint8Array9+ +### encodeInto(deprecated) -encodeIntoUint8Array(input: string, dest: Uint8Array, ): { read: number; written: number } +encodeInto(input: string, dest: Uint8Array, ): { read: number; written: number } 放置生成的UTF-8编码文本。 +> **说明:** +> +> 从API version 7开始支持,从API version 9开始废弃,建议使用[encodeIntoUint8Array9+](#encodeintouint8array9)替代。 + **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ---------- | ---- | ------------------------------------------------------- | -| input | string | 是 | 需要编码的字符串。 | -| dest | Uint8Array | 是 | Uint8Array对象实例,用于将生成的UTF-8编码文本放入其中。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| input | string | 是 | 需要编码的字符串。 | +| dest | Uint8Array | 是 | Uint8Array对象实例,用于将生成的UTF-8编码文本放入其中。 | **返回值:** -| 类型 | 说明 | -| ---------- | ------------------ | +| 类型 | 说明 | +| -------- | -------- | | Uint8Array | 返回编码后的文本。 | **示例:** - ```js -let that = new util.TextEncoder() -let buffer = new ArrayBuffer(4) -let dest = new Uint8Array(buffer) -let result = new Object() -result = that.encodeInto('abcd', dest) + let that = new util.TextEncoder() + let buffer = new ArrayBuffer(4) + let dest = new Uint8Array(buffer) + let result = new Object() + result = that.encodeInto('abcd', dest) ``` -### encodeInto(deprecated) +### encode(deprecated) -encodeInto(input: string, dest: Uint8Array, ): { read: number; written: number } +encode(input?: string): Uint8Array -放置生成的UTF-8编码文本。 +通过输入参数编码后输出对应文本。 > **说明:** > -> 从API Version 7开始支持,从API Version 9开始废弃,建议使用[encodeIntoUint8Array9+](#encodeintouint8array9)替代。 +> 从API version 7开始支持,从API version 9开始废弃,建议使用[encodeInto9+](#encodeinto9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -616,8 +619,7 @@ encodeInto(input: string, dest: Uint8Array, ): { read: number; written: number } | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| input | string | 是 | 需要编码的字符串。 | -| dest | Uint8Array | 是 | Uint8Array对象实例,用于将生成的UTF-8编码文本放入其中。 | +| input | string | 否 | 需要编码的字符串。 | **返回值:** @@ -627,11 +629,10 @@ encodeInto(input: string, dest: Uint8Array, ): { read: number; written: number } **示例:** ```js - let that = new util.TextEncoder() - let buffer = new ArrayBuffer(4) - let dest = new Uint8Array(buffer) - let result = new Object() - result = that.encodeInto('abcd', dest) + let textEncoder = new util.TextEncoder(); + let buffer = new ArrayBuffer(20); + let result = new Uint8Array(buffer); + result = textEncoder.encode("\uD800¥¥"); ``` ## RationalNumber8+ @@ -671,31 +672,6 @@ parseRationalNumber(numerator: number,denominator: number): RationalNumber let rationalNumber = util.RationalNumber.parseRationalNumber(1,2) ``` -### constructor(deprecated) - -constructor(numerator: number,denominator: number) - -RationalNumber的构造函数。 - -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[constructor9+](#constructor9)替代。 - -**系统能力:** SystemCapability.Utils.Lang - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| numerator | number | 是 | 分子,整数类型。 | -| denominator | number | 是 | 分母,整数类型。 | - -**示例:** - -```js -let rationalNumber = new util.RationalNumber(1,2); -``` - ### createRationalFromString8+ static createRationalFromString​(rationalString: string): RationalNumber​ @@ -751,38 +727,6 @@ let rational = util.RationalNumber.createRationalFromString("3/4"); let result = rationalNumber.compare(rational); ``` -### compareTo(deprecated) - -compareTo​(another: RationalNumber): number​ - -将当前的RationalNumber对象与给定的对象进行比较。 - -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[compare9+](#compare9)替代。 - -**系统能力:** SystemCapability.Utils.Lang - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| another | RationalNumber | 是 | 其他的有理数对象。 | - -**返回值:** - -| 类型 | 说明 | -| -------- | -------- | -| number | 如果两个对象相等,则返回0;如果给定对象小于当前对象,则返回1;如果给定对象大于当前对象,则返回-1。 | - -**示例:** - -```js -let rationalNumber = new util.RationalNumber(1,2); -let rational = util.RationalNumber.createRationalFromString("3/4"); -let result = rationalNumber.compareTo(rational); -``` - ### valueOf8+ valueOf(): number @@ -860,38 +804,6 @@ let rationalNumber = new util.RationalNumber(1,2); let result = util.RationalNumber.getCommonFactor(4,6); ``` -### getCommonDivisor(deprecated) - -static getCommonDivisor​(number1: number,number2: number): number - -获取两个指定整数的最大公约数。 - -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[getCommonFactor9+](#getcommonfactor9)替代。 - -**系统能力:** SystemCapability.Utils.Lang - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| number1 | number | 是 | 整数类型。 | -| number2 | number | 是 | 整数类型。 | - -**返回值:** - -| 类型 | 说明 | -| -------- | -------- | -| number | 返回两个给定数字的最大公约数。 | - -**示例:** - -```js -let rationalNumber = new util.RationalNumber(1,2); -let result = util.RationalNumber.getCommonDivisor(4,6); -``` - ### getNumerator8+ getNumerator​(): number @@ -1018,6 +930,94 @@ let rationalNumber = new util.RationalNumber(1,2); let result = rationalNumber.toString(); ``` +### constructor(deprecated) + +constructor(numerator: number,denominator: number) + +RationalNumber的构造函数。 + +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[constructor9+](#constructor9)替代。 + +**系统能力:** SystemCapability.Utils.Lang + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| numerator | number | 是 | 分子,整数类型。 | +| denominator | number | 是 | 分母,整数类型。 | + +**示例:** + +```js +let rationalNumber = new util.RationalNumber(1,2); +``` + +### compareTo(deprecated) + +compareTo​(another: RationalNumber): number​ + +将当前的RationalNumber对象与给定的对象进行比较。 + +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[compare9+](#compare9)替代。 + +**系统能力:** SystemCapability.Utils.Lang + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| another | RationalNumber | 是 | 其他的有理数对象。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| number | 如果两个对象相等,则返回0;如果给定对象小于当前对象,则返回1;如果给定对象大于当前对象,则返回-1。 | + +**示例:** + +```js +let rationalNumber = new util.RationalNumber(1,2); +let rational = util.RationalNumber.createRationalFromString("3/4"); +let result = rationalNumber.compareTo(rational); +``` + +### getCommonDivisor(deprecated) + +static getCommonDivisor​(number1: number,number2: number): number + +获取两个指定整数的最大公约数。 + +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[getCommonFactor9+](#getcommonfactor9)替代。 + +**系统能力:** SystemCapability.Utils.Lang + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| number1 | number | 是 | 整数类型。 | +| number2 | number | 是 | 整数类型。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| number | 返回两个给定数字的最大公约数。 | + +**示例:** + +```js +let rationalNumber = new util.RationalNumber(1,2); +let result = util.RationalNumber.getCommonDivisor(4,6); +``` ## LRUCache9+ @@ -1564,619 +1564,564 @@ pro.put(2,10); let result = pro[Symbol.iterator](); ``` -## LruBuffer(deprecated) -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[LRUCache9+](#lrucache9)替代。 +## ScopeHelper9+ -### 属性 +### constructor9+ -**系统能力:** 以下各项对应的系统能力均为SystemCapability.Utils.Lang。 +constructor(lowerObj: ScopeType, upperObj: ScopeType) -| 名称 | 类型 | 可读 | 可写 | 说明 | -| -------- | -------- | -------- | -------- | -------- | -| length | number | 是 | 否 | 当前缓冲区中值的总数。 | +用于创建指定下限和上限的作用域实例的构造函数,返回一个ScopeHelper对象。 + +**系统能力:** SystemCapability.Utils.Lang + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------ | ---- | ---------------------- | +| lowerObj | [ScopeType](#scopetype8) | 是 | 指定作用域实例的下限。 | +| upperObj | [ScopeType](#scopetype8) | 是 | 指定作用域实例的上限。 | **示例:** ```js - let pro = new util.LruBuffer(); - pro.put(2,10); - pro.put(1,8); - let result = pro.length; +let tempLower = new Temperature(30); +let tempUpper = new Temperature(40); +let range = new util.ScopeHelper(tempLower, tempUpper); ``` -### constructor(deprecated) -constructor(capacity?: number) +### toString9+ -默认构造函数用于创建一个新的LruBuffer实例,默认容量为64。 +toString(): string -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[constructor9+](#constructor9)替代。 +该字符串化方法返回一个包含当前范围的字符串表示形式。 **系统能力:** SystemCapability.Utils.Lang -**参数:** +**返回值:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| capacity | number | 否 | 指示要为缓冲区自定义的容量。 | +| 类型 | 说明 | +| ------ | -------------------------------------- | +| string | 返回包含当前范围对象的字符串表示形式。 | **示例:** ```js - let lrubuffer= new util.LruBuffer(); +let tempLower = new Temperature(30); +let tempUpper = new Temperature(40); +let range = new util.ScopeHelper(tempLower, tempUpper); +let result = range.toString(); ``` -### updateCapacity(deprecated) -updateCapacity(newCapacity: number): void +### intersect9+ -将缓冲区容量更新为指定容量,如果newCapacity小于或等于0,则抛出异常。 +intersect(range: ScopeHelper): ScopeHelper -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[updateCapacity9+](#updatecapacity9)替代。 +获取给定范围和当前范围的交集。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| newCapacity | number | 是 | 指示要为缓冲区自定义的容量。 | - -**示例:** - - ```js - let pro = new util.LruBuffer(); - let result = pro.updateCapacity(100); - ``` - -### toString(deprecated) - -toString(): string - -返回对象的字符串表示形式。 - -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[toString9+](#tostring9)替代。 - -**系统能力:** SystemCapability.Utils.Lang +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ---------------------------- | ---- | ------------------ | +| range | [ScopeHelper](#scopehelper9) | 是 | 传入一个给定范围。 | **返回值:** -| 类型 | 说明 | -| -------- | -------- | -| string | 返回对象的字符串表示形式。 | +| 类型 | 说明 | +| ------------------------------ | ------------------------------ | +| [ScopeHelper9+](#scopehelper9) | 返回给定范围和当前范围的交集。 | **示例:** ```js - let pro = new util.LruBuffer(); - pro.put(2,10); - pro.get(2); - pro.remove(20); - let result = pro.toString(); +let tempLower = new Temperature(30); +let tempUpper = new Temperature(40); +let range = new util.ScopeHelper(tempLower, tempUpper); +let tempMiDF = new Temperature(35); +let tempMidS = new Temperature(39); +let rangeFir = new util.ScopeHelper(tempMiDF, tempMidS); +range.intersect(rangeFir ); ``` -### getCapacity(deprecated) -getCapacity(): number +### intersect9+ -获取当前缓冲区的容量。 +intersect(lowerObj:ScopeType,upperObj:ScopeType):ScopeHelper -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[getCapacity9+](#getcapacity9)替代。 +获取当前范围与给定下限和上限范围的交集。 **系统能力:** SystemCapability.Utils.Lang -**返回值:** - -| 类型 | 说明 | -| -------- | -------- | -| number | 返回当前缓冲区的容量。 | - -**示例:** - ```js - let pro = new util.LruBuffer(); - let result = pro.getCapacity(); - ``` - -### clear(deprecated) - -clear(): void +**参数:** -从当前缓冲区清除键值对。后续会调用afterRemoval()方法执行后续操作。 +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------ | ---- | ---------------- | +| lowerObj | [ScopeType](#scopetype8) | 是 | 给定范围的下限。 | +| upperObj | [ScopeType](#scopetype8) | 是 | 给定范围的上限。 | -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[clear9+](#clear9)替代。 +**返回值:** -**系统能力:** SystemCapability.Utils.Lang +| 类型 | 说明 | +| ---------------------------- | ---------------------------------------- | +| [ScopeHelper](#scopehelper9) | 返回当前范围与给定下限和上限范围的交集。 | **示例:** ```js - let pro = new util.LruBuffer(); - pro.put(2,10); - let result = pro.length; - pro.clear(); +let tempLower = new Temperature(30); +let tempUpper = new Temperature(40); +let tempMiDF = new Temperature(35); +let tempMidS = new Temperature(39); +let range = new util.ScopeHelper(tempLower, tempUpper); +let result = range.intersect(tempMiDF, tempMidS); ``` -### getCreateCount(deprecated) -getCreateCount(): number +### getUpper9+ -获取createDefault()返回值的次数。 +getUpper(): ScopeType -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[getCreateCount9+](#getcreatecount9)替代。 +获取当前范围的上限。 **系统能力:** SystemCapability.Utils.Lang **返回值:** -| 类型 | 说明 | -| -------- | -------- | -| number | 返回createDefault()返回值的次数。 | +| 类型 | 说明 | +| ------------------------ | ---------------------- | +| [ScopeType](#scopetype8) | 返回当前范围的上限值。 | **示例:** ```js - let pro = new util.LruBuffer(); - pro.put(1,8); - let result = pro.getCreateCount(); +let tempLower = new Temperature(30); +let tempUpper = new Temperature(40); +let range = new util.ScopeHelper(tempLower, tempUpper); +let result = range.getUpper(); ``` -### getMissCount(deprecated) -getMissCount(): number +### getLower9+ -获取查询值不匹配的次数。 +getLower(): ScopeType -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[getMissCount9+](#getmisscount9)替代。 +获取当前范围的下限。 **系统能力:** SystemCapability.Utils.Lang **返回值:** -| 类型 | 说明 | -| -------- | -------- | -| number | 返回查询值不匹配的次数。 | +| 类型 | 说明 | +| ------------------------ | ---------------------- | +| [ScopeType](#scopetype8) | 返回当前范围的下限值。 | **示例:** ```js - let pro = new util.LruBuffer(); - pro.put(2,10); - pro.get(2); - let result = pro.getMissCount(); +let tempLower = new Temperature(30); +let tempUpper = new Temperature(40); +let range = new util.ScopeHelper(tempLower, tempUpper); +let result = range.getLower(); ``` -### getRemovalCount(deprecated) -getRemovalCount(): number +### expand9+ -获取从缓冲区中逐出值的次数。 +expand(lowerObj: ScopeType,upperObj: ScopeType): ScopeHelper -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[getRemovalCount9+](#getremovalcount9)替代。 +创建并返回包括当前范围和给定下限和上限的并集。 **系统能力:** SystemCapability.Utils.Lang -**返回值:** - -| 类型 | 说明 | -| -------- | -------- | -| number | 返回从缓冲区中驱逐的次数。 | - -**示例:** - - ```js - let pro = new util.LruBuffer(); - pro.put(2,10); - pro.updateCapacity(2); - pro.put(50,22); - let result = pro.getRemovalCount(); - ``` - -### getMatchCount(deprecated) - -getMatchCount(): number - -获取查询值匹配成功的次数。 - -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[getMatchCount9+](#getmatchcount9)替代。 +**参数:** -**系统能力:** SystemCapability.Utils.Lang +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------ | ---- | ---------------- | +| lowerObj | [ScopeType](#scopetype8) | 是 | 给定范围的下限。 | +| upperObj | [ScopeType](#scopetype8) | 是 | 给定范围的上限。 | **返回值:** -| 类型 | 说明 | -| -------- | -------- | -| number | 返回查询值匹配成功的次数。 | +| 类型 | 说明 | +| ---------------------------- | ------------------------------------ | +| [ScopeHelper](#scopehelper9) | 返回当前范围和给定下限和上限的并集。 | **示例:** ```js - let pro = new util.LruBuffer(); - pro.put(2,10); - pro.get(2); - let result = pro.getMatchCount(); +let tempLower = new Temperature(30); +let tempUpper = new Temperature(40); +let tempMiDF = new Temperature(35); +let tempMidS = new Temperature(39); +let range = new util.ScopeHelper(tempLower, tempUpper); +let result = range.expand(tempMiDF, tempMidS); ``` -### getPutCount(deprecated) -getPutCount(): number +### expand9+ -获取将值添加到缓冲区的次数。 +expand(range: ScopeHelper): ScopeHelper -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[getPutCount9+](#getputcount9)替代。 +创建并返回包括当前范围和给定范围的并集。 **系统能力:** SystemCapability.Utils.Lang +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ---------------------------- | ---- | ------------------ | +| range | [ScopeHelper](#scopehelper9) | 是 | 传入一个给定范围。 | + **返回值:** -| 类型 | 说明 | -| -------- | -------- | -| number | 返回将值添加到缓冲区的次数。 | +| 类型 | 说明 | +| ---------------------------- | ---------------------------------- | +| [ScopeHelper](#scopehelper9) | 返回包括当前范围和给定范围的并集。 | **示例:** ```js - let pro = new util.LruBuffer(); - pro.put(2,10); - let result = pro.getPutCount(); +let tempLower = new Temperature(30); +let tempUpper = new Temperature(40); +let tempMiDF = new Temperature(35); +let tempMidS = new Temperature(39); +let range = new util.ScopeHelper(tempLower, tempUpper); +let rangeFir = new util.ScopeHelper(tempMiDF, tempMidS); +let result = range.expand(rangeFir); ``` -### isEmpty(deprecated) -isEmpty(): boolean +### expand9+ -检查当前缓冲区是否为空。 +expand(value: ScopeType): ScopeHelper -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[isEmpty9+](#isempty9)替代。 +创建并返回包括当前范围和给定值的并集。 **系统能力:** SystemCapability.Utils.Lang +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------------------------ | ---- | ---------------- | +| value | [ScopeType](#scopetype8) | 是 | 传入一个给定值。 | + **返回值:** -| 类型 | 说明 | -| -------- | -------- | -| boolean | 如果当前缓冲区不包含任何值,则返回true。 | +| 类型 | 说明 | +| ---------------------------- | -------------------------------- | +| [ScopeHelper](#scopehelper9) | 返回包括当前范围和给定值的并集。 | **示例:** ```js - let pro = new util.LruBuffer(); - pro.put(2,10); - let result = pro.isEmpty(); +let tempLower = new Temperature(30); +let tempUpper = new Temperature(40); +let tempMiDF = new Temperature(35); +let range = new util.ScopeHelper(tempLower, tempUpper); +let result = range.expand(tempMiDF); ``` -### get(deprecated) -get(key: K): V | undefined +### contains9+ -表示要查询的键。 +contains(value: ScopeType): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[get9+](#get9)替代。 +检查给定value是否包含在当前范围内。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| key | K | 是 | 要查询的键。 | +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------------------------ | ---- | ---------------- | +| value | [ScopeType](#scopetype8) | 是 | 传入一个给定值。 | **返回值:** -| 类型 | 说明 | -| -------- | -------- | -| V \| undefined | 如果指定的键存在于缓冲区中,则返回与键关联的值;否则返回undefined。 | +| 类型 | 说明 | +| ------- | --------------------------------------------------- | +| boolean | 如果给定值包含在当前范围内返回true,否则返回false。 | **示例:** ```js - let pro = new util.LruBuffer(); - pro.put(2,10); - let result = pro.get(2); +let tempLower = new Temperature(30); +let tempUpper = new Temperature(40); +let tempMiDF = new Temperature(35); +let range = new util.ScopeHelper(tempLower, tempUpper); +range.contains(tempMiDF); ``` -### put(deprecated) -put(key: K,value: V): V +### contains9+ -将键值对添加到缓冲区。 +contains(range: ScopeHelper): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[put9+](#put9)替代。 +检查给定range是否在当前范围内。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| key | K | 是 | 要添加的密钥。 | -| value | V | 是 | 指示与要添加的键关联的值。 | +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ---------------------------- | ---- | ------------------ | +| range | [ScopeHelper](#scopehelper9) | 是 | 传入一个给定范围。 | **返回值:** -| 类型 | 说明 | -| -------- | -------- | -| V | 返回与添加的键关联的值;如果要添加的键已经存在,则返回原始值,如果键或值为空,则抛出此异常。 | +| 类型 | 说明 | +| ------- | ----------------------------------------------------- | +| boolean | 如果给定范围包含在当前范围内返回true,否则返回false。 | **示例:** ```js - let pro = new util.LruBuffer(); - let result = pro.put(2,10); +let tempLower = new Temperature(30); +let tempUpper = new Temperature(40); +let range = new util.ScopeHelper(tempLower, tempUpper); +let tempLess = new Temperature(20); +let tempMore = new Temperature(45); +let rangeSec = new util.ScopeHelper(tempLess, tempMore); +let result = range.contains(rangeSec); ``` -### values(deprecated) -values(): V[] +### clamp9+ -获取当前缓冲区中所有值从最近访问到最近最少访问的顺序列表。 +clamp(value: ScopeType): ScopeType -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[values9+](#values9)替代。 +将给定值限定到当前范围内。 **系统能力:** SystemCapability.Utils.Lang +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------------------------ | ---- | -------------- | +| value | [ScopeType](#scopetype8) | 是 | 传入的给定值。 | + **返回值:** -| 类型 | 说明 | -| -------- | -------- | -| V [] | 按从最近访问到最近最少访问的顺序返回当前缓冲区中所有值的列表。 | +| 类型 | 说明 | +| ------------------------ | ------------------------------------------------------------ | +| [ScopeType](#scopetype8) | 如果传入的value小于下限,则返回lowerObj;如果大于上限值则返回upperObj;如果在当前范围内,则返回value。 | **示例:** ```js - let pro = new util.LruBuffer(); - pro.put(2,10); - pro.put(2,"anhu"); - pro.put("afaf","grfb"); - let result = pro.values(); +let tempLower = new Temperature(30); +let tempUpper = new Temperature(40); +let tempMiDF = new Temperature(35); +let range = new util.ScopeHelper(tempLower, tempUpper); +let result = range.clamp(tempMiDF); ``` -### keys(deprecated) +## Base64Helper9+ -keys(): K[] +### constructor9+ -获取当前缓冲区中所有键从最近访问到最近最少访问的升序列表。 +constructor() -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[keys9+](#keys9)替代。 +Base64Helper的构造函数。 **系统能力:** SystemCapability.Utils.Lang -**返回值:** - -| 类型 | 说明 | -| -------- | -------- | -| K [] | 按升序返回当前缓冲区中所有键的列表,从最近访问到最近最少访问。 | - **示例:** + ```js - let pro = new util.LruBuffer(); - pro.put(2,10); - let result = pro.keys(); +let base64 = new util.Base64Helper(); ``` -### remove(deprecated) - -remove(key: K): V | undefined +### encodeSync9+ -从当前缓冲区中删除指定的键及其关联的值。 +encodeSync(src: Uint8Array): Uint8Array -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[remove9+](#remove9)替代。 +通过输入参数编码后输出对应文本。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| key | K | 是 | 要删除的密钥。 | +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ---------- | ---- | ------------------- | +| src | Uint8Array | 是 | 编码输入Uint8数组。 | **返回值:** -| 类型 | 说明 | -| -------- | -------- | -| V \| undefined | 返回一个包含已删除键值对的Optional对象;如果key不存在,则返回一个空的Optional对象,如果key为null,则抛出异常。 | +| 类型 | 说明 | +| ---------- | ----------------------------- | +| Uint8Array | 返回编码后新分配的Uint8数组。 | **示例:** + ```js - let pro = new util.LruBuffer(); - pro.put(2,10); - let result = pro.remove(20); +let that = new util.Base64Helper(); +let array = new Uint8Array([115,49,51]); +let result = that.encodeSync(array); ``` -### afterRemoval(deprecated) -afterRemoval(isEvict: boolean,key: K,value: V,newValue: V): void +### encodeToStringSync9+ -删除值后执行后续操作。 +encodeToStringSync(src: Uint8Array): string -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[afterRemoval9+](#afterremoval9)替代。 +通过输入参数编码后输出对应文本。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| isEvict | boolean | 是 | 因容量不足而调用该方法时,参数值为true,其他情况为false。 | -| key | K | 是 | 表示删除的键。 | -| value | V | 是 | 表示删除的值。 | -| newValue | V | 是 | 如果已调用put方法并且要添加的键已经存在,则参数值是关联的新值。其他情况下参数值为空。 | +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ---------- | ---- | ------------------- | +| src | Uint8Array | 是 | 编码输入Uint8数组。 | + +**返回值:** + +| 类型 | 说明 | +| ------ | -------------------- | +| string | 返回编码后的字符串。 | **示例:** ```js - let arr = []; - class ChildLruBuffer extends util.LruBuffer - { - constructor() - { - super(); - } - afterRemoval(isEvict, key, value, newValue) - { - if (isEvict === false) - { - arr = [key, value, newValue]; - } - } - } - let lru = new ChildLruBuffer(); - lru.afterRemoval(false,10,30,null); +let that = new util.Base64Helper(); +let array = new Uint8Array([115,49,51]); +let result = that.encodeToStringSync(array); ``` -### contains(deprecated) - -contains(key: K): boolean -检查当前缓冲区是否包含指定的键。 +### decodeSync9+ +decodeSync(src: Uint8Array | string): Uint8Array -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[contains9+](#contains9)替代。 +通过输入参数解码后输出对应文本。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| key | K | 是 | 表示要检查的键。 | +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------------------------------ | ---- | ----------------------------- | +| src | Uint8Array \| string | 是 | 解码输入Uint8数组或者字符串。 | **返回值:** -| 类型 | 说明 | -| -------- | -------- | -| boolean | 如果缓冲区包含指定的键,则返回 true。 | +| 类型 | 说明 | +| ---------- | ----------------------------- | +| Uint8Array | 返回解码后新分配的Uint8数组。 | **示例:** ```js - let pro = new util.LruBuffer(); - pro.put(2,10); - let result = pro.contains(20); +let that = new util.Base64Helper(); +let buff = 'czEz'; +let result = that.decodeSync(buff); ``` -### createDefault(deprecated) -createDefault(key: K): V +### encode9+ -如果未计算特定键的值,则执行后续操作,参数表示丢失的键,返回与键关联的值。 +encode(src: Uint8Array): Promise<Uint8Array> -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[createDefault9+](#createdefault9)替代。 +通过输入参数异步编码后输出对应文本。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| key | K | 是 | 表示丢失的键。 | +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ---------- | ---- | ----------------------- | +| src | Uint8Array | 是 | 异步编码输入Uint8数组。 | **返回值:** -| 类型 | 说明 | -| -------- | -------- | -| V | 返回与键关联的值。 | +| 类型 | 说明 | +| ------------------------- | --------------------------------- | +| Promise<Uint8Array> | 返回异步编码后新分配的Uint8数组。 | **示例:** ```js - let pro = new util.LruBuffer(); - let result = pro.createDefault(50); +let that = new util.Base64Helper(); +let array = new Uint8Array([115,49,51]); +let rarray = new Uint8Array([99,122,69,122]); +that.encode(array).then(val=>{ + for (var i = 0; i < rarray.length; i++) { + console.log(val[i].toString()) + } +}) ``` -### entries(deprecated) -entries(): IterableIterator<[K,V]> +### encodeToString9+ -允许迭代包含在这个对象中的所有键值对。 +encodeToString(src: Uint8Array): Promise<string> -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[entries9+](#entries9)替代。 +通过输入参数异步编码后输出对应文本。 **系统能力:** SystemCapability.Utils.Lang +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ---------- | ---- | ----------------------- | +| src | Uint8Array | 是 | 异步编码输入Uint8数组。 | + **返回值:** -| 类型 | 说明 | -| -------- | -------- | -| [K, V] | 返回一个可迭代数组。 | +| 类型 | 说明 | +| --------------------- | ------------------------ | +| Promise<string> | 返回异步编码后的字符串。 | **示例:** ```js - let pro = new util.LruBuffer(); - pro.put(2,10); - let result = pro.entries(); +let that = new util.Base64Helper(); +let array = new Uint8Array([115,49,51]); +that.encodeToString(array).then(val=>{ + console.log(val) +}) ``` -### [Symbol.iterator](deprecated) -[Symbol.iterator]\(): IterableIterator<[K, V]> +### decode9+ -返回一个键值对形式的二维数组。 +decode(src: Uint8Array | string): Promise<Uint8Array> -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[Symbol.iterator9+](#symboliterator9)替代。 +通过输入参数异步解码后输出对应文本。 **系统能力:** SystemCapability.Utils.Lang +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------------------------------ | ---- | --------------------------------- | +| src | Uint8Array \| string | 是 | 异步解码输入Uint8数组或者字符串。 | + **返回值:** -| 类型 | 说明 | -| -------- | -------- | -| [K, V] | 返回一个键值对形式的二维数组。 | +| 类型 | 说明 | +| ------------------------- | --------------------------------- | +| Promise<Uint8Array> | 返回异步解码后新分配的Uint8数组。 | **示例:** ```js - let pro = new util.LruBuffer(); - pro.put(2,10); - let result = pro[Symbol.iterator](); +let that = new util.Base64Helper(); +let array = new Uint8Array([99,122,69,122]); +let rarray = new Uint8Array([115,49,51]); +that.decode(array).then(val=>{ + for (var i = 0; i < rarray.length; i++) { + console.log(val[i].toString()) + } +}) ``` -### ScopeType8+ +## ScopeType8+ 用于表示范围中的值的类型。该类型的值,类型可以为ScopeComparable或number。 @@ -2213,377 +2158,399 @@ class Temperature{ } ``` -## ScopeHelper9+ +## types8+ + + +### constructor8+ + +constructor() + +Types的构造函数。 + +**系统能力:** SystemCapability.Utils.Lang + +**示例:** + + ```js + let type = new util.types(); + ``` + + +### isAnyArrayBuffer8+ + +isAnyArrayBuffer(value: Object): boolean + +检查输入的value是否是ArrayBuffer类型。 + +**系统能力:** SystemCapability.Utils.Lang + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | + +**返回值:** -### constructor9+ +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是ArrayBuffer类型为true,反之为false。 | -constructor(lowerObj: ScopeType, upperObj: ScopeType) +**示例:** -用于创建指定下限和上限的作用域实例的构造函数,返回一个ScopeHelper对象。 + ```js + let that = new util.types(); + let result = that.isAnyArrayBuffer(new ArrayBuffer(0)); + ``` + + +### isArrayBufferView8+ + +isArrayBufferView(value: Object): boolean + +检查输入的value是否是内置ArrayBufferView辅助类型。 + +ArrayBufferView辅助类型包括:Int8Array、Int16Array、Int32Array、Uint8Array、Uint8ClampedArray、Uint32Array、Float32Array、Float64Array、DataView。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ------------------------ | ---- | ---------------------- | -| lowerObj | [ScopeType](#scopetype8) | 是 | 指定作用域实例的下限。 | -| upperObj | [ScopeType](#scopetype8) | 是 | 指定作用域实例的上限。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的ArrayBufferView辅助类型为true,反之为false。 | **示例:** ```js -let tempLower = new Temperature(30); -let tempUpper = new Temperature(40); -let range = new util.ScopeHelper(tempLower, tempUpper); + let that = new util.types(); + let result = that.isArrayBufferView(new Int8Array([])); ``` -### toString9+ +### isArgumentsObject8+ -toString(): string +isArgumentsObject(value: Object): boolean -该字符串化方法返回一个包含当前范围的字符串表示形式。 +检查输入的value是否是一个arguments对象类型。 **系统能力:** SystemCapability.Utils.Lang +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | + **返回值:** -| 类型 | 说明 | -| ------ | -------------------------------------- | -| string | 返回包含当前范围对象的字符串表示形式。 | +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的arguments类型为true,反之为false。 | **示例:** ```js -let tempLower = new Temperature(30); -let tempUpper = new Temperature(40); -let range = new util.ScopeHelper(tempLower, tempUpper); -let result = range.toString(); + let that = new util.types(); + function foo() { + var result = that.isArgumentsObject(arguments); + } + let f = foo(); ``` -### intersect9+ +### isArrayBuffer8+ -intersect(range: ScopeHelper): ScopeHelper +isArrayBuffer(value: Object): boolean -获取给定范围和当前范围的交集。 +检查输入的value是否是ArrayBuffer类型。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ---------------------------- | ---- | ------------------ | -| range | [ScopeHelper](#scopehelper9) | 是 | 传入一个给定范围。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | **返回值:** -| 类型 | 说明 | -| ------------------------------ | ------------------------------ | -| [ScopeHelper9+](#scopehelper9) | 返回给定范围和当前范围的交集。 | +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的ArrayBuffer类型为true,反之为false。 | **示例:** ```js -let tempLower = new Temperature(30); -let tempUpper = new Temperature(40); -let range = new util.ScopeHelper(tempLower, tempUpper); -let tempMiDF = new Temperature(35); -let tempMidS = new Temperature(39); -let rangeFir = new util.ScopeHelper(tempMiDF, tempMidS); -range.intersect(rangeFir ); + let that = new util.types(); + let result = that.isArrayBuffer(new ArrayBuffer(0)); ``` -### intersect9+ +### isAsyncFunction8+ -intersect(lowerObj:ScopeType,upperObj:ScopeType):ScopeHelper +isAsyncFunction(value: Object): boolean -获取当前范围与给定下限和上限范围的交集。 +检查输入的value是否是一个异步函数类型。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ------------------------ | ---- | ---------------- | -| lowerObj | [ScopeType](#scopetype8) | 是 | 给定范围的下限。 | -| upperObj | [ScopeType](#scopetype8) | 是 | 给定范围的上限。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | **返回值:** -| 类型 | 说明 | -| ---------------------------- | ---------------------------------------- | -| [ScopeHelper](#scopehelper9) | 返回当前范围与给定下限和上限范围的交集。 | +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的异步函数类型为true,反之为false。 | **示例:** ```js -let tempLower = new Temperature(30); -let tempUpper = new Temperature(40); -let tempMiDF = new Temperature(35); -let tempMidS = new Temperature(39); -let range = new util.ScopeHelper(tempLower, tempUpper); -let result = range.intersect(tempMiDF, tempMidS); + let that = new util.types(); + let result = that.isAsyncFunction(async function foo() {}); ``` -### getUpper9+ +### isBooleanObject8+ -getUpper(): ScopeType +isBooleanObject(value: Object): boolean -获取当前范围的上限。 +检查输入的value是否是一个Boolean对象类型。 **系统能力:** SystemCapability.Utils.Lang +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | + **返回值:** -| 类型 | 说明 | -| ------------------------ | ---------------------- | -| [ScopeType](#scopetype8) | 返回当前范围的上限值。 | +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的Boolean对象类型为true,反之为false。 | **示例:** ```js -let tempLower = new Temperature(30); -let tempUpper = new Temperature(40); -let range = new util.ScopeHelper(tempLower, tempUpper); -let result = range.getUpper(); + let that = new util.types(); + let result = that.isBooleanObject(new Boolean(true)); ``` -### getLower9+ +### isBoxedPrimitive8+ -getLower(): ScopeType +isBoxedPrimitive(value: Object): boolean -获取当前范围的下限。 +检查输入的value是否是Boolean或Number或String或Symbol对象类型。 **系统能力:** SystemCapability.Utils.Lang +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | + **返回值:** -| 类型 | 说明 | -| ------------------------ | ---------------------- | -| [ScopeType](#scopetype8) | 返回当前范围的下限值。 | +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的Boolean或Number或String或Symbol对象类型为true,反之为false。 | **示例:** ```js -let tempLower = new Temperature(30); -let tempUpper = new Temperature(40); -let range = new util.ScopeHelper(tempLower, tempUpper); -let result = range.getLower(); + let that = new util.types(); + let result = that.isBoxedPrimitive(new Boolean(false)); ``` -### expand9+ +### isDataView8+ -expand(lowerObj: ScopeType,upperObj: ScopeType): ScopeHelper +isDataView(value: Object): boolean -创建并返回包括当前范围和给定下限和上限的并集。 +检查输入的value是否是DataView类型。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ------------------------ | ---- | ---------------- | -| lowerObj | [ScopeType](#scopetype8) | 是 | 给定范围的下限。 | -| upperObj | [ScopeType](#scopetype8) | 是 | 给定范围的上限。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | **返回值:** -| 类型 | 说明 | -| ---------------------------- | ------------------------------------ | -| [ScopeHelper](#scopehelper9) | 返回当前范围和给定下限和上限的并集。 | +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的DataView对象类型为true,反之为false。 | **示例:** ```js -let tempLower = new Temperature(30); -let tempUpper = new Temperature(40); -let tempMiDF = new Temperature(35); -let tempMidS = new Temperature(39); -let range = new util.ScopeHelper(tempLower, tempUpper); -let result = range.expand(tempMiDF, tempMidS); + let that = new util.types(); + const ab = new ArrayBuffer(20); + let result = that.isDataView(new DataView(ab)); ``` -### expand9+ +### isDate8+ -expand(range: ScopeHelper): ScopeHelper +isDate(value: Object): boolean -创建并返回包括当前范围和给定范围的并集。 +检查输入的value是否是Date类型。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ---------------------------- | ---- | ------------------ | -| range | [ScopeHelper](#scopehelper9) | 是 | 传入一个给定范围。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | **返回值:** -| 类型 | 说明 | -| ---------------------------- | ---------------------------------- | -| [ScopeHelper](#scopehelper9) | 返回包括当前范围和给定范围的并集。 | +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的Date对象类型为true,反之为false。 | **示例:** ```js -let tempLower = new Temperature(30); -let tempUpper = new Temperature(40); -let tempMiDF = new Temperature(35); -let tempMidS = new Temperature(39); -let range = new util.ScopeHelper(tempLower, tempUpper); -let rangeFir = new util.ScopeHelper(tempMiDF, tempMidS); -let result = range.expand(rangeFir); + let that = new util.types(); + let result = that.isDate(new Date()); ``` -### expand9+ +### isExternal8+ -expand(value: ScopeType): ScopeHelper +isExternal(value: Object): boolean -创建并返回包括当前范围和给定值的并集。 +检查输入的value是否是native External类型。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------------------------ | ---- | ---------------- | -| value | [ScopeType](#scopetype8) | 是 | 传入一个给定值。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | **返回值:** -| 类型 | 说明 | -| ---------------------------- | -------------------------------- | -| [ScopeHelper](#scopehelper9) | 返回包括当前范围和给定值的并集。 | +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含native External类型为true,反之为false。 | **示例:** ```js -let tempLower = new Temperature(30); -let tempUpper = new Temperature(40); -let tempMiDF = new Temperature(35); -let range = new util.ScopeHelper(tempLower, tempUpper); -let result = range.expand(tempMiDF); + let that = new util.types(); + let result = that.isExternal(true); ``` -### contains9+ +### isFloat32Array8+ -contains(value: ScopeType): boolean +isFloat32Array(value: Object): boolean -检查给定value是否包含在当前范围内。 +检查输入的value是否是Float32Array数组类型。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------------------------ | ---- | ---------------- | -| value | [ScopeType](#scopetype8) | 是 | 传入一个给定值。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | **返回值:** -| 类型 | 说明 | -| ------- | --------------------------------------------------- | -| boolean | 如果给定值包含在当前范围内返回true,否则返回false。 | +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的Float32Array数组类型为true,反之为false。 | **示例:** ```js -let tempLower = new Temperature(30); -let tempUpper = new Temperature(40); -let tempMiDF = new Temperature(35); -let range = new util.ScopeHelper(tempLower, tempUpper); -range.contains(tempMiDF); + let that = new util.types(); + let result = that.isFloat32Array(new Float32Array()); ``` -### contains9+ +### isFloat64Array8+ -contains(range: ScopeHelper): boolean +isFloat64Array(value: Object): boolean -检查给定range是否在当前范围内。 +检查输入的value是否是Float64Array数组类型。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ---------------------------- | ---- | ------------------ | -| range | [ScopeHelper](#scopehelper9) | 是 | 传入一个给定范围。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | **返回值:** -| 类型 | 说明 | -| ------- | ----------------------------------------------------- | -| boolean | 如果给定范围包含在当前范围内返回true,否则返回false。 | +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的Float64Array数组类型为true,反之为false。 | **示例:** ```js -let tempLower = new Temperature(30); -let tempUpper = new Temperature(40); -let range = new util.ScopeHelper(tempLower, tempUpper); -let tempLess = new Temperature(20); -let tempMore = new Temperature(45); -let rangeSec = new util.ScopeHelper(tempLess, tempMore); -let result = range.contains(rangeSec); + let that = new util.types(); + let result = that.isFloat64Array(new Float64Array()); ``` -### clamp9+ +### isGeneratorFunction8+ -clamp(value: ScopeType): ScopeType +isGeneratorFunction(value: Object): boolean -将给定值限定到当前范围内。 +检查输入的value是否是generator函数类型。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------------------------ | ---- | -------------- | -| value | [ScopeType](#scopetype8) | 是 | 传入的给定值。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | **返回值:** -| 类型 | 说明 | -| ------------------------ | ------------------------------------------------------------ | -| [ScopeType](#scopetype8) | 如果传入的value小于下限,则返回lowerObj;如果大于上限值则返回upperObj;如果在当前范围内,则返回value。 | +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的generator函数类型为true,反之为false。 | **示例:** ```js -let tempLower = new Temperature(30); -let tempUpper = new Temperature(40); -let tempMiDF = new Temperature(35); -let range = new util.ScopeHelper(tempLower, tempUpper); -let result = range.clamp(tempMiDF); + let that = new util.types(); + let result = that.isGeneratorFunction(function* foo() {}); ``` -## Scope(deprecated) - -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[ScopeHelper9+](#scopehelper9)替代。 - -### constructor(deprecated) - -constructor(lowerObj: ScopeType, upperObj: ScopeType) -用于创建指定下限和上限的作用域实例的构造函数,返回一个Scope对象。 +### isGeneratorObject8+ -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[constructor9+](#constructor9)替代。 +isGeneratorObject(value: Object): boolean +检查输入的value是否是generator对象类型。 **系统能力:** SystemCapability.Utils.Lang @@ -2591,52 +2558,57 @@ constructor(lowerObj: ScopeType, upperObj: ScopeType) | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| lowerObj | [ScopeType](#scopetype8) | 是 | 指定作用域实例的下限。 | -| upperObj | [ScopeType](#scopetype8) | 是 | 指定作用域实例的上限。 | +| value | Object | 是 | 待检测对象。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的generator对象类型为true,反之为false。 | **示例:** + ```js - let tempLower = new Temperature(30); - let tempUpper = new Temperature(40); - let range = new util.Scope(tempLower, tempUpper); + let that = new util.types(); + function* foo() {} + const generator = foo(); + let result = that.isGeneratorObject(generator); ``` -### toString(deprecated) -toString(): string +### isInt8Array8+ -该字符串化方法返回一个包含当前范围的字符串表示形式。 +isInt8Array(value: Object): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[toString9+](#tostring9)替代。 +检查输入的value是否是Int8Array数组类型。 **系统能力:** SystemCapability.Utils.Lang +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | + **返回值:** | 类型 | 说明 | | -------- | -------- | -| string | 返回包含当前范围对象的字符串表示形式。 | +| boolean | 判断的结果,如果是内置包含的Int8Array数组类型为true,反之为false。 | **示例:** ```js - let tempLower = new Temperature(30); - let tempUpper = new Temperature(40); - let range = new util.Scope(tempLower, tempUpper); - let result = range.toString(); + let that = new util.types(); + let result = that.isInt8Array(new Int8Array([])); ``` -### intersect(deprecated) -intersect(range: Scope): Scope +### isInt16Array8+ -获取给定范围和当前范围的交集。 +isInt16Array(value: Object): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[intersect9+](#intersect9)替代。 +检查输入的value是否是Int16Array数组类型。 **系统能力:** SystemCapability.Utils.Lang @@ -2644,35 +2616,27 @@ intersect(range: Scope): Scope | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| range | [Scope](#scopedeprecated) | 是 | 传入一个给定范围。 | +| value | Object | 是 | 待检测对象。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| [Scope](#scopedeprecated) | 返回给定范围和当前范围的交集。 | +| boolean | 判断的结果,如果是内置包含的Int16Array数组类型为true,反之为false。 | **示例:** ```js - let tempLower = new Temperature(30); - let tempUpper = new Temperature(40); - let range = new util.Scope(tempLower, tempUpper); - let tempMiDF = new Temperature(35); - let tempMidS = new Temperature(39); - let rangeFir = new util.Scope(tempMiDF, tempMidS); - range.intersect(rangeFir ); + let that = new util.types(); + let result = that.isInt16Array(new Int16Array([])); ``` -### intersect(deprecated) -intersect(lowerObj:ScopeType,upperObj:ScopeType):Scope +### isInt32Array8+ -获取当前范围与给定下限和上限范围的交集。 +isInt32Array(value: Object): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[intersect9+](#intersect9)替代。 +检查输入的value是否是Int32Array数组类型。 **系统能力:** SystemCapability.Utils.Lang @@ -2680,89 +2644,85 @@ intersect(lowerObj:ScopeType,upperObj:ScopeType):Scope | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| lowerObj | [ScopeType](#scopetype8) | 是 | 给定范围的下限。 | -| upperObj | [ScopeType](#scopetype8) | 是 | 给定范围的上限。 | +| value | Object | 是 | 待检测对象。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| [Scope](#scopedeprecated) | 返回当前范围与给定下限和上限范围的交集。 | +| boolean | 判断的结果,如果是内置包含的Int32Array数组类型为true,反之为false。 | **示例:** ```js - let tempLower = new Temperature(30); - let tempUpper = new Temperature(40); - let tempMiDF = new Temperature(35); - let tempMidS = new Temperature(39); - let range = new util.Scope(tempLower, tempUpper); - let result = range.intersect(tempMiDF, tempMidS); + let that = new util.types(); + let result = that.isInt32Array(new Int32Array([])); ``` -### getUpper(deprecated) -getUpper(): ScopeType +### isMap8+ -获取当前范围的上限。 +isMap(value: Object): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[getUpper9+](#getupper9)替代。 +检查输入的value是否是Map类型。 **系统能力:** SystemCapability.Utils.Lang +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | + **返回值:** | 类型 | 说明 | | -------- | -------- | -| [ScopeType](#scopetype8) | 返回当前范围的上限值。 | +| boolean | 判断的结果,如果是内置包含的Map类型为true,反之为false。 | **示例:** ```js - let tempLower = new Temperature(30); - let tempUpper = new Temperature(40); - let range = new util.Scope(tempLower, tempUpper); - let result = range.getUpper(); + let that = new util.types(); + let result = that.isMap(new Map()); ``` -### getLower(deprecated) -getLower(): ScopeType +### isMapIterator8+ -获取当前范围的下限。 +isMapIterator(value: Object): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[getLower9+](#getlower9)替代。 +检查输入的value是否是Map的Iterator类型。 **系统能力:** SystemCapability.Utils.Lang +**参数:** + + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | + **返回值:** | 类型 | 说明 | | -------- | -------- | -| [ScopeType](#scopetype8) | 返回当前范围的下限值。 | +| boolean | 判断的结果,如果是内置包含的Map的Iterator类型为true,反之为false。 | **示例:** ```js - let tempLower = new Temperature(30); - let tempUpper = new Temperature(40); - let range = new util.Scope(tempLower, tempUpper); - let result = range.getLower(); + let that = new util.types(); + const map = new Map(); + let result = that.isMapIterator(map.keys()); ``` -### expand(deprecated) -expand(lowerObj: ScopeType,upperObj: ScopeType): Scope +### isNativeError8+ -创建并返回包括当前范围和给定下限和上限的并集。 +isNativeError(value: Object): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[expand9+](#expand9)替代。 +检查输入的value是否是Error类型。 **系统能力:** SystemCapability.Utils.Lang @@ -2770,35 +2730,27 @@ expand(lowerObj: ScopeType,upperObj: ScopeType): Scope | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| lowerObj | [ScopeType](#scopetype8) | 是 | 给定范围的下限。 | -| upperObj | [ScopeType](#scopetype8) | 是 | 给定范围的上限。 | +| value | Object | 是 | 待检测对象。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| [Scope](#scopedeprecated) | 返回当前范围和给定下限和上限的并集。 | +| boolean | 判断的结果,如果是内置包含的Error类型为true,反之为false。 | **示例:** ```js - let tempLower = new Temperature(30); - let tempUpper = new Temperature(40); - let tempMiDF = new Temperature(35); - let tempMidS = new Temperature(39); - let range = new util.Scope(tempLower, tempUpper); - let result = range.expand(tempMiDF, tempMidS); + let that = new util.types(); + let result = that.isNativeError(new TypeError()); ``` -### expand(deprecated) -expand(range: Scope): Scope +### isNumberObject8+ -创建并返回包括当前范围和给定范围的并集。 +isNumberObject(value: Object): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[expand9+](#expand9)替代。 +检查输入的value是否是Number对象类型。 **系统能力:** SystemCapability.Utils.Lang @@ -2806,35 +2758,27 @@ expand(range: Scope): Scope | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| range | [Scope](#scopedeprecated) | 是 | 传入一个给定范围。 | +| value | Object | 是 | 待检测对象。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| [Scope](#scopedeprecated) | 返回包括当前范围和给定范围的并集。 | +| boolean | 判断的结果,如果是内置包含的Number对象类型为true,反之为false。 | **示例:** ```js - let tempLower = new Temperature(30); - let tempUpper = new Temperature(40); - let tempMiDF = new Temperature(35); - let tempMidS = new Temperature(39); - let range = new util.Scope(tempLower, tempUpper); - let rangeFir = new util.Scope(tempMiDF, tempMidS); - let result = range.expand(rangeFir); + let that = new util.types(); + let result = that.isNumberObject(new Number(0)); ``` -### expand(deprecated) -expand(value: ScopeType): Scope +### isPromise8+ -创建并返回包括当前范围和给定值的并集。 +isPromise(value: Object): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[expand9+](#expand9)替代。 +检查输入的value是否是Promise类型。 **系统能力:** SystemCapability.Utils.Lang @@ -2842,33 +2786,27 @@ expand(value: ScopeType): Scope | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | [ScopeType](#scopetype8) | 是 | 传入一个给定值。 | +| value | Object | 是 | 待检测对象。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| [Scope](#scopedeprecated) | 返回包括当前范围和给定值的并集。 | +| boolean | 判断的结果,如果是内置包含的Promise类型为true,反之为false。 | **示例:** ```js - let tempLower = new Temperature(30); - let tempUpper = new Temperature(40); - let tempMiDF = new Temperature(35); - let range = new util.Scope(tempLower, tempUpper); - let result = range.expand(tempMiDF); + let that = new util.types(); + let result = that.isPromise(Promise.resolve(1)); ``` -### contains(deprecated) -contains(value: ScopeType): boolean +### isProxy8+ -检查给定value是否包含在当前范围内。 +isProxy(value: Object): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[contains9+](#contains9)替代。 +检查输入的value是否是Proxy类型。 **系统能力:** SystemCapability.Utils.Lang @@ -2876,33 +2814,29 @@ contains(value: ScopeType): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | [ScopeType](#scopetype8) | 是 | 传入一个给定值。 | +| value | Object | 是 | 待检测对象。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 如果给定值包含在当前范围内返回true,否则返回false。 | +| boolean | 判断的结果,如果是内置包含的Proxy类型为true,反之为false。 | **示例:** ```js - let tempLower = new Temperature(30); - let tempUpper = new Temperature(40); - let tempMiDF = new Temperature(35); - let range = new util.Scope(tempLower, tempUpper); - range.contains(tempMiDF); + let that = new util.types(); + const target = {}; + const proxy = new Proxy(target, {}); + let result = that.isProxy(proxy); ``` -### contains(deprecated) -contains(range: Scope): boolean +### isRegExp8+ -检查给定range是否在当前范围内。 +isRegExp(value: Object): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[contains9+](#contains9)替代。 +检查输入的value是否是RegExp类型。 **系统能力:** SystemCapability.Utils.Lang @@ -2910,36 +2844,27 @@ contains(range: Scope): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| range | [Scope](#scopedeprecated) | 是 | 传入一个给定范围。 | +| value | Object | 是 | 待检测对象。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 如果给定范围包含在当前范围内返回true,否则返回false。 | +| boolean | 判断的结果,如果是内置包含的RegExp类型为true,反之为false。 | **示例:** ```js - let tempLower = new Temperature(30); - let tempUpper = new Temperature(40); - let range = new util.Scope(tempLower, tempUpper); - let tempLess = new Temperature(20); - let tempMore = new Temperature(45); - let rangeSec = new util.Scope(tempLess, tempMore); - let result = range.contains(rangeSec); + let that = new util.types(); + let result = that.isRegExp(new RegExp('abc')); ``` -### clamp(deprecated) - -clamp(value: ScopeType): ScopeType +### isSet8+ -将给定值限定到当前范围内。 +isSet(value: Object): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[clamp9+](#clamp9)替代。 +检查输入的value是否是Set类型。 **系统能力:** SystemCapability.Utils.Lang @@ -2947,259 +2872,255 @@ clamp(value: ScopeType): ScopeType | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | [ScopeType](#scopetype8) | 是 | 传入的给定值。 | +| value | Object | 是 | 待检测对象。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| [ScopeType](#scopetype8) | 如果传入的value小于下限,则返回lowerObj;如果大于上限值则返回upperObj;如果在当前范围内,则返回value。 | +| boolean | 判断的结果,如果是内置包含的Set类型为true,反之为false。 | **示例:** ```js - let tempLower = new Temperature(30); - let tempUpper = new Temperature(40); - let tempMiDF = new Temperature(35); - let range = new util.Scope(tempLower, tempUpper); - let result = range.clamp(tempMiDF); + let that = new util.types(); + let result = that.isSet(new Set()); ``` -## Base64Helper9+ -### constructor9+ +### isSetIterator8+ -constructor() +isSetIterator(value: Object): boolean -Base64Helper的构造函数。 +检查输入的value是否是Set的Iterator类型。 **系统能力:** SystemCapability.Utils.Lang +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的Set的Iterator类型为true,反之为false。 | + **示例:** ```js -let base64 = new util.Base64Helper(); + let that = new util.types(); + const set = new Set(); + let result = that.isSetIterator(set.keys()); ``` -### encodeSync9+ -encodeSync(src: Uint8Array): Uint8Array +### isStringObject8+ -通过输入参数编码后输出对应文本。 +isStringObject(value: Object): boolean + +检查输入的value是否是String对象类型。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ---------- | ---- | ------------------- | -| src | Uint8Array | 是 | 编码输入Uint8数组。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | **返回值:** -| 类型 | 说明 | -| ---------- | ----------------------------- | -| Uint8Array | 返回编码后新分配的Uint8数组。 | +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的String对象类型为true,反之为false。 | **示例:** ```js -let that = new util.Base64Helper(); -let array = new Uint8Array([115,49,51]); -let result = that.encodeSync(array); + let that = new util.types(); + let result = that.isStringObject(new String('foo')); ``` -### encodeToStringSync9+ +### isSymbolObjec8+ -encodeToStringSync(src: Uint8Array): string +isSymbolObject(value: Object): boolean -通过输入参数编码后输出对应文本。 +检查输入的value是否是Symbol对象类型。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ---------- | ---- | ------------------- | -| src | Uint8Array | 是 | 编码输入Uint8数组。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | **返回值:** -| 类型 | 说明 | -| ------ | -------------------- | -| string | 返回编码后的字符串。 | +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的Symbol对象类型为true,反之为false。 | **示例:** ```js -let that = new util.Base64Helper(); -let array = new Uint8Array([115,49,51]); -let result = that.encodeToStringSync(array); + let that = new util.types(); + const symbols = Symbol('foo'); + let result = that.isSymbolObject(Object(symbols)); ``` -### decodeSync9+ +### isTypedArray8+ -decodeSync(src: Uint8Array | string): Uint8Array +isTypedArray(value: Object): boolean -通过输入参数解码后输出对应文本。 +检查输入的value是否是TypedArray类型的辅助类型。 + +TypedArray类型的辅助类型,包括Int8Array、Int16Array、Int32Array、Uint8Array、Uint8ClampedArray、Uint16Array、Uint32Array、Float32Array、Float64Array、DataView。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------------------------------ | ---- | ----------------------------- | -| src | Uint8Array \| string | 是 | 解码输入Uint8数组或者字符串。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | **返回值:** -| 类型 | 说明 | -| ---------- | ----------------------------- | -| Uint8Array | 返回解码后新分配的Uint8数组。 | +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的TypedArray包含的类型为true,反之为false。 | **示例:** ```js -let that = new util.Base64Helper(); -let buff = 'czEz'; -let result = that.decodeSync(buff); + let that = new util.types(); + let result = that.isTypedArray(new Float64Array([])); ``` -### encode9+ +### isUint8Array8+ -encode(src: Uint8Array): Promise<Uint8Array> +isUint8Array(value: Object): boolean -通过输入参数异步编码后输出对应文本。 +检查输入的value是否是Uint8Array数组类型。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ---------- | ---- | ----------------------- | -| src | Uint8Array | 是 | 异步编码输入Uint8数组。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | **返回值:** -| 类型 | 说明 | -| ------------------------- | --------------------------------- | -| Promise<Uint8Array> | 返回异步编码后新分配的Uint8数组。 | +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的Uint8Array数组类型为true,反之为false。 | **示例:** ```js -let that = new util.Base64Helper(); -let array = new Uint8Array([115,49,51]); -let rarray = new Uint8Array([99,122,69,122]); -that.encode(array).then(val=>{ - for (var i = 0; i < rarray.length; i++) { - console.log(val[i].toString()) - } -}) + let that = new util.types(); + let result = that.isUint8Array(new Uint8Array([])); ``` -### encodeToString9+ +### isUint8ClampedArray8+ -encodeToString(src: Uint8Array): Promise<string> +isUint8ClampedArray(value: Object): boolean -通过输入参数异步编码后输出对应文本。 +检查输入的value是否是Uint8ClampedArray数组类型。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ---------- | ---- | ----------------------- | -| src | Uint8Array | 是 | 异步编码输入Uint8数组。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | **返回值:** -| 类型 | 说明 | -| --------------------- | ------------------------ | -| Promise<string> | 返回异步编码后的字符串。 | +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的Uint8ClampedArray数组类型为true,反之为false。 | **示例:** ```js -let that = new util.Base64Helper(); -let array = new Uint8Array([115,49,51]); -that.encodeToString(array).then(val=>{ - console.log(val) -}) + let that = new util.types(); + let result = that.isUint8ClampedArray(new Uint8ClampedArray([])); ``` -### decode9+ +### isUint16Array8+ -decode(src: Uint8Array | string): Promise<Uint8Array> +isUint16Array(value: Object): boolean -通过输入参数异步解码后输出对应文本。 +检查输入的value是否是Uint16Array数组类型。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------------------------------ | ---- | --------------------------------- | -| src | Uint8Array \| string | 是 | 异步解码输入Uint8数组或者字符串。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | **返回值:** -| 类型 | 说明 | -| ------------------------- | --------------------------------- | -| Promise<Uint8Array> | 返回异步解码后新分配的Uint8数组。 | +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的Uint16Array数组类型为true,反之为false。 | **示例:** ```js -let that = new util.Base64Helper(); -let array = new Uint8Array([99,122,69,122]); -let rarray = new Uint8Array([115,49,51]); -that.decode(array).then(val=>{ - for (var i = 0; i < rarray.length; i++) { - console.log(val[i].toString()) - } -}) + let that = new util.types(); + let result = that.isUint16Array(new Uint16Array([])); ``` -## Base64(deprecated) +### isUint32Array8+ -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[Base64Helper9+](#base64helper9)替代。 +isUint32Array(value: Object): boolean -### constructor(deprecated) +检查输入的value是否是Uint32Array数组类型。 -constructor() +**系统能力:** SystemCapability.Utils.Lang -Base64的构造函数。 +**参数:** -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[constructor9+](#constructor9)替代。 +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| value | Object | 是 | 待检测对象。 | -**系统能力:** SystemCapability.Utils.Lang +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| boolean | 判断的结果,如果是内置包含的Uint32Array数组类型为true,反之为false。 | **示例:** ```js - let base64 = new util.Base64(); + let that = new util.types(); + let result = that.isUint32Array(new Uint32Array([])); ``` -### encodeSync(deprecated) -encodeSync(src: Uint8Array): Uint8Array +### isWeakMap8+ -通过输入参数编码后输出对应文本。 +isWeakMap(value: Object): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[encodeSync9+](#encodesync9)替代。 +检查输入的value是否是WeakMap类型。 **系统能力:** SystemCapability.Utils.Lang @@ -3207,31 +3128,27 @@ encodeSync(src: Uint8Array): Uint8Array | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| src | Uint8Array | 是 | 编码输入Uint8数组。 | +| value | Object | 是 | 待检测对象。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| Uint8Array | 返回编码后新分配的Uint8数组。 | +| boolean | 判断的结果,如果是内置包含的WeakMap类型为true,反之为false。 | **示例:** ```js - let that = new util.Base64(); - let array = new Uint8Array([115,49,51]); - let result = that.encodeSync(array); + let that = new util.types(); + let result = that.isWeakMap(new WeakMap()); ``` -### encodeToStringSync(deprecated) -encodeToStringSync(src: Uint8Array): string +### isWeakSet8+ -通过输入参数编码后输出对应文本。 +isWeakSet(value: Object): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[encodeToStringSync9+](#encodetostringsync9)替代。 +检查输入的value是否是WeakSet类型。 **系统能力:** SystemCapability.Utils.Lang @@ -3239,31 +3156,27 @@ encodeToStringSync(src: Uint8Array): string | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| src | Uint8Array | 是 | 编码输入Uint8数组。 | +| value | Object | 是 | 待检测对象。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| string | 返回编码后的字符串。 | +| boolean | 判断的结果,如果是内置包含的WeakSet类型为true,反之为false。 | **示例:** ```js - let that = new util.Base64(); - let array = new Uint8Array([115,49,51]); - let result = that.encodeToStringSync(array); + let that = new util.types(); + let result = that.isWeakSet(new WeakSet()); ``` -### decodeSync(deprecated) -decodeSync(src: Uint8Array | string): Uint8Array +### isBigInt64Array8+ -通过输入参数解码后输出对应文本。 +isBigInt64Array(value: Object): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[decodeSync9+](#decodesync9)替代。 +检查输入的value是否是BigInt64Array类型。 **系统能力:** SystemCapability.Utils.Lang @@ -3271,31 +3184,27 @@ decodeSync(src: Uint8Array | string): Uint8Array | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| src | Uint8Array \| string | 是 | 解码输入Uint8数组或者字符串。 | +| value | Object | 是 | 待检测对象。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| Uint8Array | 返回解码后新分配的Uint8数组。 | +| boolean | 判断的结果,如果是内置包含的BigInt64Array类型为true,反之为false。 | **示例:** ```js - let that = new util.Base64(); - let buff = 'czEz'; - let result = that.decodeSync(buff); + let that = new util.types(); + let result = that.isBigInt64Array(new BigInt64Array([])); ``` -### encode(deprecated) -encode(src: Uint8Array): Promise<Uint8Array> +### isBigUint64Array8+ -通过输入参数异步编码后输出对应文本。 +isBigUint64Array(value: Object): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[encode9+](#encode9)替代。 +检查输入的value是否是BigUint64Array类型。 **系统能力:** SystemCapability.Utils.Lang @@ -3303,36 +3212,27 @@ encode(src: Uint8Array): Promise<Uint8Array> | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| src | Uint8Array | 是 | 异步编码输入Uint8数组。 | +| value | Object | 是 | 待检测对象。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| Promise<Uint8Array> | 返回异步编码后新分配的Uint8数组。 | +| boolean | 判断的结果,如果是内置包含的BigUint64Array类型为true,反之为false。 | **示例:** ```js - let that = new util.Base64(); - let array = new Uint8Array([115,49,51]); - let rarray = new Uint8Array([99,122,69,122]); - that.encode(array).then(val=>{ - for (var i = 0; i < rarray.length; i++) { - console.log(val[i].toString()) - } - }) + let that = new util.types(); + let result = that.isBigUint64Array(new BigUint64Array([])); ``` -### encodeToString(deprecated) -encodeToString(src: Uint8Array): Promise<string> +### isModuleNamespaceObject8+ -通过输入参数异步编码后输出对应文本。 +isModuleNamespaceObject(value: Object): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[encodeToString9+](#encodetostring9)替代。 +检查输入的value是否是Module Namespace Object类型。 **系统能力:** SystemCapability.Utils.Lang @@ -3340,34 +3240,28 @@ encodeToString(src: Uint8Array): Promise<string> | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| src | Uint8Array | 是 | 异步编码输入Uint8数组。 | +| value | Object | 是 | 待检测对象。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| Promise<string> | 返回异步编码后的字符串。 | +| boolean | 判断的结果,如果是内置包含的Module Namespace Object类型为true,反之为false。 | **示例:** ```js - let that = new util.Base64(); - let array = new Uint8Array([115,49,51]); - that.encodeToString(array).then(val=>{ - console.log(val) - }) + import url from '@ohos.url' + let that = new util.types(); + let result = that.isModuleNamespaceObject(url); ``` -### decode(deprecated) - -decode(src: Uint8Array | string): Promise<Uint8Array> +### isSharedArrayBuffer8+ -通过输入参数异步解码后输出对应文本。 +isSharedArrayBuffer(value: Object): boolean -> **说明:** -> -> 从API Version 8开始支持,从API Version 9开始废弃,建议使用[decode9+](#decode9)替代。 +检查输入的value是否是SharedArrayBuffer类型。 **系统能力:** SystemCapability.Utils.Lang @@ -3375,50 +3269,53 @@ decode(src: Uint8Array | string): Promise<Uint8Array> | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| src | Uint8Array \| string | 是 | 异步解码输入Uint8数组或者字符串。 | +| value | Object | 是 | 待检测对象。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| Promise<Uint8Array> | 返回异步解码后新分配的Uint8数组。 | +| boolean | 判断的结果,如果是内置包含的SharedArrayBuffer类型为true,反之为false。 | **示例:** ```js - let that = new util.Base64(); - let array = new Uint8Array([99,122,69,122]); - let rarray = new Uint8Array([115,49,51]); - that.decode(array).then(val=>{ - for (var i = 0; i < rarray.length; i++) { - console.log(val[i].toString()) - } - }) + let that = new util.types(); + let result = that.isSharedArrayBuffer(new SharedArrayBuffer(0)); ``` -## types8+ - +## LruBuffer(deprecated) -### constructor8+ +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[LRUCache9+](#lrucache9)替代。 -constructor() +### 属性 -Types的构造函数。 +**系统能力:** 以下各项对应的系统能力均为SystemCapability.Utils.Lang。 -**系统能力:** SystemCapability.Utils.Lang +| 名称 | 类型 | 可读 | 可写 | 说明 | +| -------- | -------- | -------- | -------- | -------- | +| length | number | 是 | 否 | 当前缓冲区中值的总数。 | **示例:** ```js - let type = new util.types(); + let pro = new util.LruBuffer(); + pro.put(2,10); + pro.put(1,8); + let result = pro.length; ``` +### constructor(deprecated) -### isAnyArrayBuffer8+ +constructor(capacity?: number) -isAnyArrayBuffer(value: Object): boolean +默认构造函数用于创建一个新的LruBuffer实例,默认容量为64。 -检查输入的value是否是ArrayBuffer类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[constructor9+](#constructor9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -3426,29 +3323,23 @@ isAnyArrayBuffer(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | - -**返回值:** - -| 类型 | 说明 | -| -------- | -------- | -| boolean | 判断的结果,如果是ArrayBuffer类型为true,反之为false。 | +| capacity | number | 否 | 指示要为缓冲区自定义的容量。 | **示例:** ```js - let that = new util.types(); - let result = that.isAnyArrayBuffer(new ArrayBuffer(0)); + let lrubuffer= new util.LruBuffer(); ``` +### updateCapacity(deprecated) -### isArrayBufferView8+ - -isArrayBufferView(value: Object): boolean +updateCapacity(newCapacity: number): void -检查输入的value是否是内置ArrayBufferView辅助类型。 +将缓冲区容量更新为指定容量,如果newCapacity小于或等于0,则抛出异常。 -ArrayBufferView辅助类型包括:Int8Array、Int16Array、Int32Array、Uint8Array、Uint8ClampedArray、Uint32Array、Float32Array、Float64Array、DataView。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[updateCapacity9+](#updatecapacity9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -3456,255 +3347,257 @@ ArrayBufferView辅助类型包括:Int8Array、Int16Array、Int32Array、Uint8A | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | - -**返回值:** - -| 类型 | 说明 | -| -------- | -------- | -| boolean | 判断的结果,如果是内置包含的ArrayBufferView辅助类型为true,反之为false。 | +| newCapacity | number | 是 | 指示要为缓冲区自定义的容量。 | **示例:** ```js - let that = new util.types(); - let result = that.isArrayBufferView(new Int8Array([])); + let pro = new util.LruBuffer(); + let result = pro.updateCapacity(100); ``` +### toString(deprecated) -### isArgumentsObject8+ +toString(): string -isArgumentsObject(value: Object): boolean +返回对象的字符串表示形式。 -检查输入的value是否是一个arguments对象类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[toString9+](#tostring9)替代。 **系统能力:** SystemCapability.Utils.Lang -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | - **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的arguments类型为true,反之为false。 | +| string | 返回对象的字符串表示形式。 | **示例:** ```js - let that = new util.types(); - function foo() { - var result = that.isArgumentsObject(arguments); - } - let f = foo(); + let pro = new util.LruBuffer(); + pro.put(2,10); + pro.get(2); + pro.remove(20); + let result = pro.toString(); ``` +### getCapacity(deprecated) -### isArrayBuffer8+ +getCapacity(): number -isArrayBuffer(value: Object): boolean +获取当前缓冲区的容量。 -检查输入的value是否是ArrayBuffer类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[getCapacity9+](#getcapacity9)替代。 **系统能力:** SystemCapability.Utils.Lang -**参数:** +**返回值:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| 类型 | 说明 | +| -------- | -------- | +| number | 返回当前缓冲区的容量。 | -**返回值:** +**示例:** + ```js + let pro = new util.LruBuffer(); + let result = pro.getCapacity(); + ``` + +### clear(deprecated) + +clear(): void + +从当前缓冲区清除键值对。后续会调用afterRemoval()方法执行后续操作。 + +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[clear9+](#clear9)替代。 -| 类型 | 说明 | -| -------- | -------- | -| boolean | 判断的结果,如果是内置包含的ArrayBuffer类型为true,反之为false。 | +**系统能力:** SystemCapability.Utils.Lang **示例:** ```js - let that = new util.types(); - let result = that.isArrayBuffer(new ArrayBuffer(0)); + let pro = new util.LruBuffer(); + pro.put(2,10); + let result = pro.length; + pro.clear(); ``` +### getCreateCount(deprecated) -### isAsyncFunction8+ +getCreateCount(): number -isAsyncFunction(value: Object): boolean +获取createDefault()返回值的次数。 -检查输入的value是否是一个异步函数类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[getCreateCount9+](#getcreatecount9)替代。 **系统能力:** SystemCapability.Utils.Lang -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | - **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的异步函数类型为true,反之为false。 | +| number | 返回createDefault()返回值的次数。 | **示例:** ```js - let that = new util.types(); - let result = that.isAsyncFunction(async function foo() {}); + let pro = new util.LruBuffer(); + pro.put(1,8); + let result = pro.getCreateCount(); ``` +### getMissCount(deprecated) -### isBooleanObject8+ +getMissCount(): number -isBooleanObject(value: Object): boolean +获取查询值不匹配的次数。 -检查输入的value是否是一个Boolean对象类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[getMissCount9+](#getmisscount9)替代。 **系统能力:** SystemCapability.Utils.Lang -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | - **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Boolean对象类型为true,反之为false。 | +| number | 返回查询值不匹配的次数。 | **示例:** ```js - let that = new util.types(); - let result = that.isBooleanObject(new Boolean(true)); + let pro = new util.LruBuffer(); + pro.put(2,10); + pro.get(2); + let result = pro.getMissCount(); ``` +### getRemovalCount(deprecated) -### isBoxedPrimitive8+ +getRemovalCount(): number -isBoxedPrimitive(value: Object): boolean +获取从缓冲区中逐出值的次数。 -检查输入的value是否是Boolean或Number或String或Symbol对象类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[getRemovalCount9+](#getremovalcount9)替代。 **系统能力:** SystemCapability.Utils.Lang -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | - **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Boolean或Number或String或Symbol对象类型为true,反之为false。 | +| number | 返回从缓冲区中驱逐的次数。 | **示例:** ```js - let that = new util.types(); - let result = that.isBoxedPrimitive(new Boolean(false)); + let pro = new util.LruBuffer(); + pro.put(2,10); + pro.updateCapacity(2); + pro.put(50,22); + let result = pro.getRemovalCount(); ``` +### getMatchCount(deprecated) -### isDataView8+ +getMatchCount(): number -isDataView(value: Object): boolean +获取查询值匹配成功的次数。 -检查输入的value是否是DataView类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[getMatchCount9+](#getmatchcount9)替代。 **系统能力:** SystemCapability.Utils.Lang -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | - **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的DataView对象类型为true,反之为false。 | +| number | 返回查询值匹配成功的次数。 | **示例:** ```js - let that = new util.types(); - const ab = new ArrayBuffer(20); - let result = that.isDataView(new DataView(ab)); + let pro = new util.LruBuffer(); + pro.put(2,10); + pro.get(2); + let result = pro.getMatchCount(); ``` +### getPutCount(deprecated) -### isDate8+ +getPutCount(): number -isDate(value: Object): boolean +获取将值添加到缓冲区的次数。 -检查输入的value是否是Date类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[getPutCount9+](#getputcount9)替代。 **系统能力:** SystemCapability.Utils.Lang -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | - **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Date对象类型为true,反之为false。 | +| number | 返回将值添加到缓冲区的次数。 | **示例:** ```js - let that = new util.types(); - let result = that.isDate(new Date()); + let pro = new util.LruBuffer(); + pro.put(2,10); + let result = pro.getPutCount(); ``` +### isEmpty(deprecated) -### isExternal8+ +isEmpty(): boolean -isExternal(value: Object): boolean +检查当前缓冲区是否为空。 -检查输入的value是否是native External类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[isEmpty9+](#isempty9)替代。 **系统能力:** SystemCapability.Utils.Lang -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | - **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含native External类型为true,反之为false。 | +| boolean | 如果当前缓冲区不包含任何值,则返回true。 | **示例:** ```js - let that = new util.types(); - let result = that.isExternal(true); + let pro = new util.LruBuffer(); + pro.put(2,10); + let result = pro.isEmpty(); ``` +### get(deprecated) -### isFloat32Array8+ +get(key: K): V | undefined -isFloat32Array(value: Object): boolean +表示要查询的键。 -检查输入的value是否是Float32Array数组类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[get9+](#get9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -3712,27 +3605,31 @@ isFloat32Array(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| key | K | 是 | 要查询的键。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Float32Array数组类型为true,反之为false。 | +| V \| undefined | 如果指定的键存在于缓冲区中,则返回与键关联的值;否则返回undefined。 | **示例:** ```js - let that = new util.types(); - let result = that.isFloat32Array(new Float32Array()); + let pro = new util.LruBuffer(); + pro.put(2,10); + let result = pro.get(2); ``` +### put(deprecated) -### isFloat64Array8+ +put(key: K,value: V): V -isFloat64Array(value: Object): boolean +将键值对添加到缓冲区。 -检查输入的value是否是Float64Array数组类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[put9+](#put9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -3740,85 +3637,84 @@ isFloat64Array(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| key | K | 是 | 要添加的密钥。 | +| value | V | 是 | 指示与要添加的键关联的值。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Float64Array数组类型为true,反之为false。 | +| V | 返回与添加的键关联的值;如果要添加的键已经存在,则返回原始值,如果键或值为空,则抛出此异常。 | **示例:** ```js - let that = new util.types(); - let result = that.isFloat64Array(new Float64Array()); + let pro = new util.LruBuffer(); + let result = pro.put(2,10); ``` +### values(deprecated) -### isGeneratorFunction8+ +values(): V[] -isGeneratorFunction(value: Object): boolean +获取当前缓冲区中所有值从最近访问到最近最少访问的顺序列表。 -检查输入的value是否是generator函数类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[values9+](#values9)替代。 **系统能力:** SystemCapability.Utils.Lang -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | - **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的generator函数类型为true,反之为false。 | +| V [] | 按从最近访问到最近最少访问的顺序返回当前缓冲区中所有值的列表。 | **示例:** ```js - let that = new util.types(); - let result = that.isGeneratorFunction(function* foo() {}); + let pro = new util.LruBuffer(); + pro.put(2,10); + pro.put(2,"anhu"); + pro.put("afaf","grfb"); + let result = pro.values(); ``` +### keys(deprecated) -### isGeneratorObject8+ +keys(): K[] -isGeneratorObject(value: Object): boolean +获取当前缓冲区中所有键从最近访问到最近最少访问的升序列表。 -检查输入的value是否是generator对象类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[keys9+](#keys9)替代。 **系统能力:** SystemCapability.Utils.Lang -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | - **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的generator对象类型为true,反之为false。 | +| K [] | 按升序返回当前缓冲区中所有键的列表,从最近访问到最近最少访问。 | **示例:** - ```js - let that = new util.types(); - function* foo() {} - const generator = foo(); - let result = that.isGeneratorObject(generator); + let pro = new util.LruBuffer(); + pro.put(2,10); + let result = pro.keys(); ``` +### remove(deprecated) -### isInt8Array8+ +remove(key: K): V | undefined -isInt8Array(value: Object): boolean +从当前缓冲区中删除指定的键及其关联的值。 -检查输入的value是否是Int8Array数组类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[remove9+](#remove9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -3826,55 +3722,74 @@ isInt8Array(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| key | K | 是 | 要删除的密钥。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Int8Array数组类型为true,反之为false。 | +| V \| undefined | 返回一个包含已删除键值对的Optional对象;如果key不存在,则返回一个空的Optional对象,如果key为null,则抛出异常。 | **示例:** - ```js - let that = new util.types(); - let result = that.isInt8Array(new Int8Array([])); + let pro = new util.LruBuffer(); + pro.put(2,10); + let result = pro.remove(20); ``` +### afterRemoval(deprecated) -### isInt16Array8+ +afterRemoval(isEvict: boolean,key: K,value: V,newValue: V): void -isInt16Array(value: Object): boolean +删除值后执行后续操作。 -检查输入的value是否是Int16Array数组类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[afterRemoval9+](#afterremoval9)替代。 **系统能力:** SystemCapability.Utils.Lang **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | - -**返回值:** - -| 类型 | 说明 | -| -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Int16Array数组类型为true,反之为false。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| isEvict | boolean | 是 | 因容量不足而调用该方法时,参数值为true,其他情况为false。 | +| key | K | 是 | 表示删除的键。 | +| value | V | 是 | 表示删除的值。 | +| newValue | V | 是 | 如果已调用put方法并且要添加的键已经存在,则参数值是关联的新值。其他情况下参数值为空。 | **示例:** ```js - let that = new util.types(); - let result = that.isInt16Array(new Int16Array([])); + let arr = []; + class ChildLruBuffer extends util.LruBuffer + { + constructor() + { + super(); + } + afterRemoval(isEvict, key, value, newValue) + { + if (isEvict === false) + { + arr = [key, value, newValue]; + } + } + } + let lru = new ChildLruBuffer(); + lru.afterRemoval(false,10,30,null); ``` +### contains(deprecated) -### isInt32Array8+ +contains(key: K): boolean -isInt32Array(value: Object): boolean +检查当前缓冲区是否包含指定的键。 -检查输入的value是否是Int32Array数组类型。 + +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[contains9+](#contains9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -3882,27 +3797,31 @@ isInt32Array(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| key | K | 是 | 表示要检查的键。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Int32Array数组类型为true,反之为false。 | +| boolean | 如果缓冲区包含指定的键,则返回 true。 | **示例:** ```js - let that = new util.types(); - let result = that.isInt32Array(new Int32Array([])); + let pro = new util.LruBuffer(); + pro.put(2,10); + let result = pro.contains(20); ``` +### createDefault(deprecated) -### isMap8+ +createDefault(key: K): V -isMap(value: Object): boolean +如果未计算特定键的值,则执行后续操作,参数表示丢失的键,返回与键关联的值。 -检查输入的value是否是Map类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[createDefault9+](#createdefault9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -3910,85 +3829,89 @@ isMap(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| key | K | 是 | 表示丢失的键。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Map类型为true,反之为false。 | +| V | 返回与键关联的值。 | **示例:** ```js - let that = new util.types(); - let result = that.isMap(new Map()); + let pro = new util.LruBuffer(); + let result = pro.createDefault(50); ``` +### entries(deprecated) -### isMapIterator8+ +entries(): IterableIterator<[K,V]> -isMapIterator(value: Object): boolean +允许迭代包含在这个对象中的所有键值对。 -检查输入的value是否是Map的Iterator类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[entries9+](#entries9)替代。 **系统能力:** SystemCapability.Utils.Lang -**参数:** - - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | - **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Map的Iterator类型为true,反之为false。 | +| [K, V] | 返回一个可迭代数组。 | **示例:** ```js - let that = new util.types(); - const map = new Map(); - let result = that.isMapIterator(map.keys()); + let pro = new util.LruBuffer(); + pro.put(2,10); + let result = pro.entries(); ``` +### [Symbol.iterator](deprecated) -### isNativeError8+ +[Symbol.iterator]\(): IterableIterator<[K, V]> -isNativeError(value: Object): boolean +返回一个键值对形式的二维数组。 -检查输入的value是否是Error类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[Symbol.iterator9+](#symboliterator9)替代。 **系统能力:** SystemCapability.Utils.Lang -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | - **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Error类型为true,反之为false。 | +| [K, V] | 返回一个键值对形式的二维数组。 | **示例:** ```js - let that = new util.types(); - let result = that.isNativeError(new TypeError()); + let pro = new util.LruBuffer(); + pro.put(2,10); + let result = pro[Symbol.iterator](); ``` +## Scope(deprecated) -### isNumberObject8+ +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[ScopeHelper9+](#scopehelper9)替代。 -isNumberObject(value: Object): boolean +### constructor(deprecated) + +constructor(lowerObj: ScopeType, upperObj: ScopeType) + +用于创建指定下限和上限的作用域实例的构造函数,返回一个Scope对象。 + +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[constructor9+](#constructor9)替代。 -检查输入的value是否是Number对象类型。 **系统能力:** SystemCapability.Utils.Lang @@ -3996,55 +3919,52 @@ isNumberObject(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | - -**返回值:** - -| 类型 | 说明 | -| -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Number对象类型为true,反之为false。 | +| lowerObj | [ScopeType](#scopetype8) | 是 | 指定作用域实例的下限。 | +| upperObj | [ScopeType](#scopetype8) | 是 | 指定作用域实例的上限。 | **示例:** - ```js - let that = new util.types(); - let result = that.isNumberObject(new Number(0)); + let tempLower = new Temperature(30); + let tempUpper = new Temperature(40); + let range = new util.Scope(tempLower, tempUpper); ``` +### toString(deprecated) -### isPromise8+ +toString(): string -isPromise(value: Object): boolean +该字符串化方法返回一个包含当前范围的字符串表示形式。 -检查输入的value是否是Promise类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[toString9+](#tostring9)替代。 **系统能力:** SystemCapability.Utils.Lang -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | - **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Promise类型为true,反之为false。 | +| string | 返回包含当前范围对象的字符串表示形式。 | **示例:** ```js - let that = new util.types(); - let result = that.isPromise(Promise.resolve(1)); + let tempLower = new Temperature(30); + let tempUpper = new Temperature(40); + let range = new util.Scope(tempLower, tempUpper); + let result = range.toString(); ``` +### intersect(deprecated) -### isProxy8+ +intersect(range: Scope): Scope -isProxy(value: Object): boolean +获取给定范围和当前范围的交集。 -检查输入的value是否是Proxy类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[intersect9+](#intersect9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -4052,29 +3972,35 @@ isProxy(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| range | [Scope](#scopedeprecated) | 是 | 传入一个给定范围。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Proxy类型为true,反之为false。 | +| [Scope](#scopedeprecated) | 返回给定范围和当前范围的交集。 | **示例:** ```js - let that = new util.types(); - const target = {}; - const proxy = new Proxy(target, {}); - let result = that.isProxy(proxy); + let tempLower = new Temperature(30); + let tempUpper = new Temperature(40); + let range = new util.Scope(tempLower, tempUpper); + let tempMiDF = new Temperature(35); + let tempMidS = new Temperature(39); + let rangeFir = new util.Scope(tempMiDF, tempMidS); + range.intersect(rangeFir ); ``` +### intersect(deprecated) -### isRegExp8+ +intersect(lowerObj:ScopeType,upperObj:ScopeType):Scope -isRegExp(value: Object): boolean +获取当前范围与给定下限和上限范围的交集。 -检查输入的value是否是RegExp类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[intersect9+](#intersect9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -4082,84 +4008,89 @@ isRegExp(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| lowerObj | [ScopeType](#scopetype8) | 是 | 给定范围的下限。 | +| upperObj | [ScopeType](#scopetype8) | 是 | 给定范围的上限。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的RegExp类型为true,反之为false。 | +| [Scope](#scopedeprecated) | 返回当前范围与给定下限和上限范围的交集。 | **示例:** ```js - let that = new util.types(); - let result = that.isRegExp(new RegExp('abc')); + let tempLower = new Temperature(30); + let tempUpper = new Temperature(40); + let tempMiDF = new Temperature(35); + let tempMidS = new Temperature(39); + let range = new util.Scope(tempLower, tempUpper); + let result = range.intersect(tempMiDF, tempMidS); ``` +### getUpper(deprecated) -### isSet8+ +getUpper(): ScopeType -isSet(value: Object): boolean +获取当前范围的上限。 -检查输入的value是否是Set类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[getUpper9+](#getupper9)替代。 **系统能力:** SystemCapability.Utils.Lang -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | - **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Set类型为true,反之为false。 | +| [ScopeType](#scopetype8) | 返回当前范围的上限值。 | **示例:** ```js - let that = new util.types(); - let result = that.isSet(new Set()); + let tempLower = new Temperature(30); + let tempUpper = new Temperature(40); + let range = new util.Scope(tempLower, tempUpper); + let result = range.getUpper(); ``` +### getLower(deprecated) -### isSetIterator8+ +getLower(): ScopeType -isSetIterator(value: Object): boolean +获取当前范围的下限。 -检查输入的value是否是Set的Iterator类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[getLower9+](#getlower9)替代。 **系统能力:** SystemCapability.Utils.Lang -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | - **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Set的Iterator类型为true,反之为false。 | +| [ScopeType](#scopetype8) | 返回当前范围的下限值。 | **示例:** ```js - let that = new util.types(); - const set = new Set(); - let result = that.isSetIterator(set.keys()); + let tempLower = new Temperature(30); + let tempUpper = new Temperature(40); + let range = new util.Scope(tempLower, tempUpper); + let result = range.getLower(); ``` +### expand(deprecated) -### isStringObject8+ +expand(lowerObj: ScopeType,upperObj: ScopeType): Scope -isStringObject(value: Object): boolean +创建并返回包括当前范围和给定下限和上限的并集。 -检查输入的value是否是String对象类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[expand9+](#expand9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -4167,27 +4098,35 @@ isStringObject(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| lowerObj | [ScopeType](#scopetype8) | 是 | 给定范围的下限。 | +| upperObj | [ScopeType](#scopetype8) | 是 | 给定范围的上限。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的String对象类型为true,反之为false。 | +| [Scope](#scopedeprecated) | 返回当前范围和给定下限和上限的并集。 | **示例:** ```js - let that = new util.types(); - let result = that.isStringObject(new String('foo')); + let tempLower = new Temperature(30); + let tempUpper = new Temperature(40); + let tempMiDF = new Temperature(35); + let tempMidS = new Temperature(39); + let range = new util.Scope(tempLower, tempUpper); + let result = range.expand(tempMiDF, tempMidS); ``` +### expand(deprecated) -### isSymbolObjec8+ +expand(range: Scope): Scope -isSymbolObject(value: Object): boolean +创建并返回包括当前范围和给定范围的并集。 -检查输入的value是否是Symbol对象类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[expand9+](#expand9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -4195,30 +4134,35 @@ isSymbolObject(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| range | [Scope](#scopedeprecated) | 是 | 传入一个给定范围。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Symbol对象类型为true,反之为false。 | +| [Scope](#scopedeprecated) | 返回包括当前范围和给定范围的并集。 | **示例:** ```js - let that = new util.types(); - const symbols = Symbol('foo'); - let result = that.isSymbolObject(Object(symbols)); + let tempLower = new Temperature(30); + let tempUpper = new Temperature(40); + let tempMiDF = new Temperature(35); + let tempMidS = new Temperature(39); + let range = new util.Scope(tempLower, tempUpper); + let rangeFir = new util.Scope(tempMiDF, tempMidS); + let result = range.expand(rangeFir); ``` +### expand(deprecated) -### isTypedArray8+ - -isTypedArray(value: Object): boolean +expand(value: ScopeType): Scope -检查输入的value是否是TypedArray类型的辅助类型。 +创建并返回包括当前范围和给定值的并集。 -TypedArray类型的辅助类型,包括Int8Array、Int16Array、Int32Array、Uint8Array、Uint8ClampedArray、Uint16Array、Uint32Array、Float32Array、Float64Array、DataView。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[expand9+](#expand9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -4226,27 +4170,33 @@ TypedArray类型的辅助类型,包括Int8Array、Int16Array、Int32Array、Ui | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| value | [ScopeType](#scopetype8) | 是 | 传入一个给定值。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的TypedArray包含的类型为true,反之为false。 | +| [Scope](#scopedeprecated) | 返回包括当前范围和给定值的并集。 | **示例:** ```js - let that = new util.types(); - let result = that.isTypedArray(new Float64Array([])); + let tempLower = new Temperature(30); + let tempUpper = new Temperature(40); + let tempMiDF = new Temperature(35); + let range = new util.Scope(tempLower, tempUpper); + let result = range.expand(tempMiDF); ``` +### contains(deprecated) -### isUint8Array8+ +contains(value: ScopeType): boolean -isUint8Array(value: Object): boolean +检查给定value是否包含在当前范围内。 -检查输入的value是否是Uint8Array数组类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[contains9+](#contains9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -4254,27 +4204,33 @@ isUint8Array(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| value | [ScopeType](#scopetype8) | 是 | 传入一个给定值。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Uint8Array数组类型为true,反之为false。 | +| boolean | 如果给定值包含在当前范围内返回true,否则返回false。 | **示例:** ```js - let that = new util.types(); - let result = that.isUint8Array(new Uint8Array([])); + let tempLower = new Temperature(30); + let tempUpper = new Temperature(40); + let tempMiDF = new Temperature(35); + let range = new util.Scope(tempLower, tempUpper); + range.contains(tempMiDF); ``` +### contains(deprecated) -### isUint8ClampedArray8+ +contains(range: Scope): boolean -isUint8ClampedArray(value: Object): boolean +检查给定range是否在当前范围内。 -检查输入的value是否是Uint8ClampedArray数组类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[contains9+](#contains9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -4282,27 +4238,36 @@ isUint8ClampedArray(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| range | [Scope](#scopedeprecated) | 是 | 传入一个给定范围。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Uint8ClampedArray数组类型为true,反之为false。 | +| boolean | 如果给定范围包含在当前范围内返回true,否则返回false。 | **示例:** ```js - let that = new util.types(); - let result = that.isUint8ClampedArray(new Uint8ClampedArray([])); + let tempLower = new Temperature(30); + let tempUpper = new Temperature(40); + let range = new util.Scope(tempLower, tempUpper); + let tempLess = new Temperature(20); + let tempMore = new Temperature(45); + let rangeSec = new util.Scope(tempLess, tempMore); + let result = range.contains(rangeSec); ``` +### clamp(deprecated) -### isUint16Array8+ -isUint16Array(value: Object): boolean +clamp(value: ScopeType): ScopeType -检查输入的value是否是Uint16Array数组类型。 +将给定值限定到当前范围内。 + +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[clamp9+](#clamp9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -4310,55 +4275,58 @@ isUint16Array(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| value | [ScopeType](#scopetype8) | 是 | 传入的给定值。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Uint16Array数组类型为true,反之为false。 | +| [ScopeType](#scopetype8) | 如果传入的value小于下限,则返回lowerObj;如果大于上限值则返回upperObj;如果在当前范围内,则返回value。 | **示例:** ```js - let that = new util.types(); - let result = that.isUint16Array(new Uint16Array([])); + let tempLower = new Temperature(30); + let tempUpper = new Temperature(40); + let tempMiDF = new Temperature(35); + let range = new util.Scope(tempLower, tempUpper); + let result = range.clamp(tempMiDF); ``` -### isUint32Array8+ - -isUint32Array(value: Object): boolean +## Base64(deprecated) -检查输入的value是否是Uint32Array数组类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[Base64Helper9+](#base64helper9)替代。 -**系统能力:** SystemCapability.Utils.Lang +### constructor(deprecated) -**参数:** +constructor() -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +Base64的构造函数。 -**返回值:** +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[constructor9+](#constructor9)替代。 -| 类型 | 说明 | -| -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Uint32Array数组类型为true,反之为false。 | +**系统能力:** SystemCapability.Utils.Lang **示例:** ```js - let that = new util.types(); - let result = that.isUint32Array(new Uint32Array([])); + let base64 = new util.Base64(); ``` +### encodeSync(deprecated) -### isWeakMap8+ +encodeSync(src: Uint8Array): Uint8Array -isWeakMap(value: Object): boolean +通过输入参数编码后输出对应文本。 -检查输入的value是否是WeakMap类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[encodeSync9+](#encodesync9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -4366,27 +4334,31 @@ isWeakMap(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| src | Uint8Array | 是 | 编码输入Uint8数组。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的WeakMap类型为true,反之为false。 | +| Uint8Array | 返回编码后新分配的Uint8数组。 | **示例:** ```js - let that = new util.types(); - let result = that.isWeakMap(new WeakMap()); + let that = new util.Base64(); + let array = new Uint8Array([115,49,51]); + let result = that.encodeSync(array); ``` +### encodeToStringSync(deprecated) -### isWeakSet8+ +encodeToStringSync(src: Uint8Array): string -isWeakSet(value: Object): boolean +通过输入参数编码后输出对应文本。 -检查输入的value是否是WeakSet类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[encodeToStringSync9+](#encodetostringsync9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -4394,27 +4366,31 @@ isWeakSet(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| src | Uint8Array | 是 | 编码输入Uint8数组。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的WeakSet类型为true,反之为false。 | +| string | 返回编码后的字符串。 | **示例:** ```js - let that = new util.types(); - let result = that.isWeakSet(new WeakSet()); + let that = new util.Base64(); + let array = new Uint8Array([115,49,51]); + let result = that.encodeToStringSync(array); ``` +### decodeSync(deprecated) -### isBigInt64Array8+ +decodeSync(src: Uint8Array | string): Uint8Array -isBigInt64Array(value: Object): boolean +通过输入参数解码后输出对应文本。 -检查输入的value是否是BigInt64Array类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[decodeSync9+](#decodesync9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -4422,27 +4398,31 @@ isBigInt64Array(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| src | Uint8Array \| string | 是 | 解码输入Uint8数组或者字符串。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的BigInt64Array类型为true,反之为false。 | +| Uint8Array | 返回解码后新分配的Uint8数组。 | **示例:** ```js - let that = new util.types(); - let result = that.isBigInt64Array(new BigInt64Array([])); + let that = new util.Base64(); + let buff = 'czEz'; + let result = that.decodeSync(buff); ``` +### encode(deprecated) -### isBigUint64Array8+ +encode(src: Uint8Array): Promise<Uint8Array> -isBigUint64Array(value: Object): boolean +通过输入参数异步编码后输出对应文本。 -检查输入的value是否是BigUint64Array类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[encode9+](#encode9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -4450,27 +4430,36 @@ isBigUint64Array(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| src | Uint8Array | 是 | 异步编码输入Uint8数组。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的BigUint64Array类型为true,反之为false。 | +| Promise<Uint8Array> | 返回异步编码后新分配的Uint8数组。 | **示例:** ```js - let that = new util.types(); - let result = that.isBigUint64Array(new BigUint64Array([])); + let that = new util.Base64(); + let array = new Uint8Array([115,49,51]); + let rarray = new Uint8Array([99,122,69,122]); + that.encode(array).then(val=>{ + for (var i = 0; i < rarray.length; i++) { + console.log(val[i].toString()) + } + }) ``` +### encodeToString(deprecated) -### isModuleNamespaceObject8+ +encodeToString(src: Uint8Array): Promise<string> -isModuleNamespaceObject(value: Object): boolean +通过输入参数异步编码后输出对应文本。 -检查输入的value是否是Module Namespace Object类型。 +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[encodeToString9+](#encodetostring9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -4478,28 +4467,34 @@ isModuleNamespaceObject(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| src | Uint8Array | 是 | 异步编码输入Uint8数组。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的Module Namespace Object类型为true,反之为false。 | +| Promise<string> | 返回异步编码后的字符串。 | **示例:** ```js - import url from '@ohos.url' - let that = new util.types(); - let result = that.isModuleNamespaceObject(url); + let that = new util.Base64(); + let array = new Uint8Array([115,49,51]); + that.encodeToString(array).then(val=>{ + console.log(val) + }) ``` +### decode(deprecated) -### isSharedArrayBuffer8+ -isSharedArrayBuffer(value: Object): boolean +decode(src: Uint8Array | string): Promise<Uint8Array> -检查输入的value是否是SharedArrayBuffer类型。 +通过输入参数异步解码后输出对应文本。 + +> **说明:** +> +> 从API version 8开始支持,从API version 9开始废弃,建议使用[decode9+](#decode9)替代。 **系统能力:** SystemCapability.Utils.Lang @@ -4507,18 +4502,25 @@ isSharedArrayBuffer(value: Object): boolean | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | Object | 是 | 待检测对象。 | +| src | Uint8Array \| string | 是 | 异步解码输入Uint8数组或者字符串。 | **返回值:** | 类型 | 说明 | | -------- | -------- | -| boolean | 判断的结果,如果是内置包含的SharedArrayBuffer类型为true,反之为false。 | +| Promise<Uint8Array> | 返回异步解码后新分配的Uint8数组。 | **示例:** ```js - let that = new util.types(); - let result = that.isSharedArrayBuffer(new SharedArrayBuffer(0)); + let that = new util.Base64(); + let array = new Uint8Array([99,122,69,122]); + let rarray = new Uint8Array([115,49,51]); + that.decode(array).then(val=>{ + for (var i = 0; i < rarray.length; i++) { + console.log(val[i].toString()) + } + }) ``` + \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-vector.md b/zh-cn/application-dev/reference/apis/js-apis-vector.md index 01d6b9690fcf973d648fc66f06dcc7879305432e..dba118240389f2cd6df315f1410fb765fd8ab7a6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-vector.md +++ b/zh-cn/application-dev/reference/apis/js-apis-vector.md @@ -1,6 +1,6 @@ # @ohos.util.Vector (线性容器Vector) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 Vector是一种线性数据结构,底层基于数组实现。当Vector的内存用尽时,会自动分配更大的连续内存区,将原先的元素复制到新的内存区,并释放旧的内存区。使用Vector能够高效快速地访问元素。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-volumemanager.md b/zh-cn/application-dev/reference/apis/js-apis-volumemanager.md index a2d7595f0f0e2812c7667ef3fdf7b5a8590c1aeb..2199150d930523573e944d1720d9a10da69a30c9 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-volumemanager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-volumemanager.md @@ -2,7 +2,7 @@ 该模块提供卷、磁盘查询和管理的相关功能:包括查询卷信息,对卷的挂载卸载、对磁盘分区以及卷的格式化等功能。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > > - 本模块首批接口从API version 9开始支持。 > - 本模块接口为系统接口,三方应用不支持调用。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md b/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md index 45f290e0358618e1831a5f83d3f1aca24f9f8583..ad9dc69baca1dbaad80bd3d73d7b5ce067d9cc7b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md +++ b/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md @@ -63,7 +63,12 @@ getColorsSync(wallpaperType: WallpaperType): Array<RgbaColor> **示例**: ```js -let colors = wallpaper.getColorsSync(wallpaper.WallpaperType.WALLPAPER_SYSTEM); +try { + let colors = wallpaper.getColorsSync(wallpaper.WallpaperType.WALLPAPER_SYSTEM); + console.log(`success to getColorsSync: ${JSON.stringify(colors)}`); +} catch (error) { + console.error(`failed to getColorsSync because: ${JSON.stringify(error)}`); +} ``` ## wallpaper.getIdSync9+ @@ -84,12 +89,17 @@ getIdSync(wallpaperType: WallpaperType): number | 类型 | 说明 | | -------- | -------- | -| number | 返回壁纸的ID。如果配置了这种壁纸类型的壁纸就返回一个大于等于0的数,否则返回-1。取值范围是-1~2^31-1。 | +| number | 返回壁纸的ID。如果配置了这种壁纸类型的壁纸就返回一个大于等于0的数,否则返回-1。取值范围是-1到(2^31-1)。 | **示例**: ```js -let id = wallpaper.getIdSync(wallpaper.WallpaperType.WALLPAPER_SYSTEM); +try { + let id = wallpaper.getIdSync(wallpaper.WallpaperType.WALLPAPER_SYSTEM); + console.log(`success to getIdSync: ${JSON.stringify(id)}`); +} catch (error) { + console.error(`failed to getIdSync because: ${JSON.stringify(error)}`); +} ``` ## wallpaper.getMinHeightSync9+ @@ -365,7 +375,12 @@ getFileSync(wallpaperType: WallpaperType): number; **示例:** ```js -let file = wallpaper.getFileSync(wallpaper.WallpaperType.WALLPAPER_SYSTEM); +try { + let file = wallpaper.getFileSync(wallpaper.WallpaperType.WALLPAPER_SYSTEM); + console.log(`success to getFileSync: ${JSON.stringify(file)}`); +} catch (error) { + console.error(`failed to getFileSync because: ${JSON.stringify(error)}`); +} ``` ## wallpaper.getImage9+ @@ -385,7 +400,7 @@ getImage(wallpaperType: WallpaperType, callback: AsyncCallback<image.PixelMap | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | wallpaperType | [WallpaperType](#wallpapertype) | 是 | 壁纸类型。 | -| callback | AsyncCallback<[image.PixelMap](js-apis-image.md#pixelmap7)> | 是 | 回调函数,调用成功则返回壁纸图片的像素图大小,调用失败则返回error信息。 | +| callback | AsyncCallback<[image.PixelMap](js-apis-image.md#pixelmap7)> | 是 | 回调函数,调用成功则返回壁纸图片的像素图对象,调用失败则返回error信息。 | **示例:** @@ -422,7 +437,7 @@ getImage(wallpaperType: WallpaperType): Promise<image.PixelMap> | 类型 | 说明 | | -------- | -------- | -| Promise<[image.PixelMap](js-apis-image.md#pixelmap7)> | 调用成功则返回壁纸图片的像素图大小,调用失败则返回error信息。 | +| Promise<[image.PixelMap](js-apis-image.md#pixelmap7)> | 调用成功则返回壁纸图片的像素图对象,调用失败则返回error信息。 | **示例:** @@ -452,10 +467,14 @@ on(type: 'colorChange', callback: (colors: Array<RgbaColor>, wallpaperType **示例:** ```js -let listener = (colors, wallpaperType) => { - console.log(`wallpaper color changed.`); -}; -wallpaper.on('colorChange', listener); +try { + let listener = (colors, wallpaperType) => { + console.log(`wallpaper color changed.`); + }; + wallpaper.on('colorChange', listener); +} catch (error) { + console.error(`failed to on because: ${JSON.stringify(error)}`); +} ``` ## wallpaper.off('colorChange')9+ @@ -479,11 +498,25 @@ off(type: 'colorChange', callback?: (colors: Array<RgbaColor>, wallpaperTy let listener = (colors, wallpaperType) => { console.log(`wallpaper color changed.`); }; -wallpaper.on('colorChange', listener); -// 取消订阅listener -wallpaper.off('colorChange', listener); -// 取消所有'colorChange'类型的订阅 -wallpaper.off('colorChange'); +try { + wallpaper.on('colorChange', listener); +} catch (error) { + console.error(`failed to on because: ${JSON.stringify(error)}`); +} + +try { + // 取消订阅listener + wallpaper.off('colorChange', listener); +} catch (error) { + console.error(`failed to off because: ${JSON.stringify(error)}`); +} + +try { + // 取消所有'colorChange'类型的订阅 + wallpaper.off('colorChange'); +} catch (error) { + console.error(`failed to off because: ${JSON.stringify(error)}`); +} ``` ## wallpaper.getColors(deprecated) @@ -568,7 +601,7 @@ getId(wallpaperType: WallpaperType, callback: AsyncCallback<number>): void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | wallpaperType | [WallpaperType](#wallpapertype) | 是 | 壁纸类型。 | -| callback | AsyncCallback<number> | 是 | 回调函数,返回壁纸的ID。如果配置了指定类型的壁纸就返回一个大于等于0的数,否则返回-1。取值范围是-1~2^31-1。 | +| callback | AsyncCallback<number> | 是 | 回调函数,返回壁纸的ID。如果配置了指定类型的壁纸就返回一个大于等于0的数,否则返回-1。取值范围是-1到(2^31-1)。 | **示例:** @@ -604,7 +637,7 @@ getId(wallpaperType: WallpaperType): Promise<number> | 类型 | 说明 | | -------- | -------- | -| Promise<number> | 壁纸的ID。如果配置了这种壁纸类型的壁纸就返回一个大于等于0的数,否则返回-1。取值范围是-1~2^31-1。 | +| Promise<number> | 壁纸的ID。如果配置了这种壁纸类型的壁纸就返回一个大于等于0的数,否则返回-1。取值范围是-1到(2^31-1)。 | **示例:** @@ -1123,7 +1156,7 @@ getPixelMap(wallpaperType: WallpaperType, callback: AsyncCallback<image.Pixel | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | wallpaperType | [WallpaperType](#wallpapertype) | 是 | 壁纸类型。 | -| callback | AsyncCallback<image.PixelMap> | 是 | 回调函数,调用成功则返回壁纸图片的像素图大小,调用失败则返回error信息。 | +| callback | AsyncCallback<image.PixelMap> | 是 | 回调函数,调用成功则返回壁纸图片的像素图对象,调用失败则返回error信息。 | **示例:** @@ -1163,7 +1196,7 @@ getPixelMap(wallpaperType: WallpaperType): Promise<image.PixelMap> | 类型 | 说明 | | -------- | -------- | -| Promise<image.PixelMap> | 调用成功则返回壁纸图片的像素图大小,调用失败则返回error信息。 | +| Promise<image.PixelMap> | 调用成功则返回壁纸图片的像素图对象,调用失败则返回error信息。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-wantAgent.md b/zh-cn/application-dev/reference/apis/js-apis-wantAgent.md index 00eae0c2c49def55828413f925748b29b8feb893..7a67ad66eb81f3aca814479cbe1c3d2482f06295 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-wantAgent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-wantAgent.md @@ -1,6 +1,6 @@ # @ohos.wantAgent (WantAgent模块) -WantAgent模块提供了触发、取消、比较WantAgent实例和获取bundle名称的能力,包括创建WantAgent实例、获取实例的用户ID、获取want信息等。 +WantAgent模块提供了创建WantAgent实例、获取实例的用户ID、获取want信息、比较WantAgent实例和获取bundle名称等能力。 > **说明:** > @@ -8,7 +8,7 @@ WantAgent模块提供了触发、取消、比较WantAgent实例和获取bundle ## 导入模块 -```js +```ts import WantAgent from '@ohos.wantAgent'; ``` @@ -29,7 +29,7 @@ getWantAgent(info: WantAgentInfo, callback: AsyncCallback\): void **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; //getWantAgent回调 @@ -91,7 +91,7 @@ getWantAgent(info: WantAgentInfo): Promise\ **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; @@ -134,7 +134,7 @@ WantAgent.getWantAgent(wantAgentInfo).then((data) => { getBundleName(agent: WantAgent, callback: AsyncCallback\): void -获取WantAgent实例的包名(callback形式)。 +获取WantAgent实例的Bundle名称(callback形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -147,7 +147,7 @@ getBundleName(agent: WantAgent, callback: AsyncCallback\): void **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; @@ -206,7 +206,7 @@ WantAgent.getBundleName(wantAgent, getBundleNameCallback) getBundleName(agent: WantAgent): Promise\ -获取WantAgent实例的包名(Promise形式)。 +获取WantAgent实例的Bundle名称(Promise形式)。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core @@ -218,16 +218,15 @@ getBundleName(agent: WantAgent): Promise\ **返回值:** -| 类型 | 说明 | -| ----------------------------------------------------------- | ------------------------------------------------------------ | -| Promise\ | 以Promise形式返回获取WantAgent实例的包名。 | +| 类型 | 说明 | +| ----------------- | ------------------------------------------------ | +| Promise\ | 以Promise形式返回获取WantAgent实例的Bundle名称。 | **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; - //wantAgent对象 var wantAgent; @@ -288,7 +287,7 @@ getUid(agent: WantAgent, callback: AsyncCallback\): void **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; @@ -365,7 +364,7 @@ getUid(agent: WantAgent): Promise\ **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; @@ -431,7 +430,7 @@ getWant(agent: WantAgent, callback: AsyncCallback\): void **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; @@ -510,7 +509,7 @@ getWant(agent: WantAgent): Promise\ **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; @@ -574,7 +573,7 @@ cancel(agent: WantAgent, callback: AsyncCallback\): void **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; @@ -651,7 +650,7 @@ cancel(agent: WantAgent): Promise\ **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; @@ -711,12 +710,12 @@ trigger(agent: WantAgent, triggerInfo: TriggerInfo, callback?: Callback\ | 否 | 主动激发WantAgent实例的回调方法。 | **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; @@ -793,7 +792,7 @@ equal(agent: WantAgent, otherAgent: WantAgent, callback: AsyncCallback\ **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; @@ -937,7 +936,7 @@ getOperationType(agent: WantAgent, callback: AsyncCallback\): void; **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; //wantAgent对象 @@ -1003,7 +1002,7 @@ getOperationType(agent: WantAgent): Promise\; **示例:** -```js +```ts import WantAgent from '@ohos.wantAgent'; //wantAgent对象 diff --git a/zh-cn/application-dev/reference/apis/js-apis-wifiManager.md b/zh-cn/application-dev/reference/apis/js-apis-wifiManager.md index 0fc97a1c51125c25c0bd021458a53e2352cdf490..4d45951c2c928a087981d6b34e096f8289356d41 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-wifiManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-wifiManager.md @@ -1,7 +1,7 @@ # WLAN 该模块主要提供WLAN基础功能、P2P(peer-to-peer)功能和WLAN消息通知的相应服务,让应用可以通过WLAN和其他设备互联互通。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 6开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-wifiManagerExt.md b/zh-cn/application-dev/reference/apis/js-apis-wifiManagerExt.md index 53f20c258ec3d0fdeecaf69c55d788be0dcfc134..637f78a84d484b85fe27b31c49750b5d3eaab35a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-wifiManagerExt.md +++ b/zh-cn/application-dev/reference/apis/js-apis-wifiManagerExt.md @@ -1,7 +1,7 @@ # WLAN扩展接口 该模块主要提供WLAN扩展接口,供非通用类型产品使用。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 该文档中的接口只供非通用类型产品使用,如路由器等,对于常规类型产品,不应该使用这些接口。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-window.md b/zh-cn/application-dev/reference/apis/js-apis-window.md index 05548fba0405541c2986c97719a0a3fae90e3284..6fb39162efe913ac2f65843264619acd47f5838e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-window.md +++ b/zh-cn/application-dev/reference/apis/js-apis-window.md @@ -248,7 +248,7 @@ import window from '@ohos.window'; | 名称 | 值 | 说明 | | ---------- | ------ | -------------- | -| DEFAULT | 0 | 默认色域模式。 | +| DEFAULT | 0 | 默认SRGB色域模式。 | | WIDE_GAMUT | 1 | 广色域模式。 | ## ScaleOptions9+ @@ -1548,6 +1548,8 @@ moveWindowTo(x: number, y: number, callback: AsyncCallback<void>): void 移动窗口位置,使用callback异步回调。 +全屏模式窗口不支持该操作。 + **系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1589,6 +1591,8 @@ moveWindowTo(x: number, y: number): Promise<void> 移动窗口位置,使用Promise异步回调。 +全屏模式窗口不支持该操作。 + **系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1640,6 +1644,8 @@ resize(width: number, height: number, callback: AsyncCallback<void>): void 设置的宽度与高度受到此约束限制。 +全屏模式窗口不支持该操作。 + **系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1687,6 +1693,8 @@ resize(width: number, height: number): Promise<void> 设置的宽度与高度受到此约束限制。 +全屏模式窗口不支持该操作。 + **系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -4314,6 +4322,8 @@ moveTo(x: number, y: number, callback: AsyncCallback<void>): void 移动窗口位置,使用callback异步回调。 +全屏模式窗口不支持该操作。 + > **说明:** > > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[moveWindowTo()](#movewindowto9)。 @@ -4346,6 +4356,8 @@ moveTo(x: number, y: number): Promise<void> 移动窗口位置,使用Promise异步回调。 +全屏模式窗口不支持该操作。 + > **说明:** > > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[moveWindowTo()](#movewindowto9-1)。 @@ -4388,6 +4400,8 @@ resetSize(width: number, height: number, callback: AsyncCallback<void>): v 设置的宽度与高度受到此约束限制。 +全屏模式窗口不支持该操作。 + > **说明:** > > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[resize()](#resize9)。 @@ -4426,6 +4440,8 @@ resetSize(width: number, height: number): Promise<void> 设置的宽度与高度受到此约束限制。 +全屏模式窗口不支持该操作。 + > **说明:** > > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[resize()](#resize9-1)。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-worker.md b/zh-cn/application-dev/reference/apis/js-apis-worker.md index e8a8dec36902396f6db9d6dc1b5667f7df44a19b..9e98a5244869cf5fd48b55ee677f6b6a860e9949 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-worker.md +++ b/zh-cn/application-dev/reference/apis/js-apis-worker.md @@ -4,7 +4,9 @@ Worker是与主线程并行的独立线程。创建Worker的线程称之为宿 Worker主要作用是为应用程序提供一个多线程的运行环境,可满足应用程序在执行过程中与主线程分离,在后台线程中运行一个脚本操作耗时操作,极大避免类似于计算密集型或高延迟的任务阻塞主线程的运行。由于Worker一旦被创建则不会主动被销毁,若不处于任务状态一直运行,在一定程度上会造成资源的浪费,应及时关闭空闲的Worker。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
+Worker的上下文对象和主线程的上下文对象是不同的,Worker线程不支持UI操作。 + +> **说明:**
> 本模块首批接口从API version 7 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 ## 导入模块 @@ -39,13 +41,13 @@ Worker构造函数的选项信息,用于为Worker添加其他信息。 ## ThreadWorker9+ -使用以下方法前,均需先构造Worker实例,Worker类继承[WorkerEventTarget](#workereventtarget9)。 +使用以下方法前,均需先构造ThreadWorker实例,ThreadWorker类继承[WorkerEventTarget](#workereventtarget9)。 ### constructor9+ constructor(scriptURL: string, options?: WorkerOptions) -Worker构造函数。 +ThreadWorker构造函数。 **系统能力:** SystemCapability.Utils.Lang @@ -58,9 +60,20 @@ Worker构造函数。 **返回值:** -| 类型 | 说明 | -| ------ | --------------------------------------------------------- | -| Worker | 执行Worker构造函数生成的Worker对象,失败则返回undefined。 | +| 类型 | 说明 | +| ------------ | ------------------------------------------------------------ | +| ThreadWorker | 执行ThreadWorker构造函数生成的ThreadWorker对象,失败则返回undefined。 | + +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------- | +| 10200003 | Worker initialization failure. | +| 10200007 | The worker file patch is invalid path. | + + **示例:** @@ -137,6 +150,40 @@ Stage模型: } ``` +### postMessage9+ + +postMessage(message: Object, transfer: ArrayBuffer[]): void; + +向Worker线程发送数据,数据类型必须是序列化所支持的类型。序列化支持类型见其他说明。 + +**系统能力:** SystemCapability.Utils.Lang + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------- | ---- | ------------------------------------------------------------ | +| message | Object | 是 | 发送至Worker的数据。 | +| transfer | ArrayBuffer[] | 是 | 可传递 ArrayBuffer 的实例对象,数组中不可传入null。 | + +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | ----------------------------------------- | +| 10200004 | Worker instance is not running. | +| 10200006 | Serializing an uncaught exception failed. | + +**示例:** + +```js +const workerInstance = new worker.ThreadWorker("workers/worker.js"); + +workerInstance.postMessage("hello world"); + +var buffer = new ArrayBuffer(8); +workerInstance.postMessage(buffer, [buffer]); +``` ### postMessage9+ @@ -153,6 +200,15 @@ postMessage(message: Object, options?: PostMessageOptions): void | message | Object | 是 | 发送至Worker的数据。 | | options | [PostMessageOptions](#postmessageoptions) | 否 | 可转移对象是 ArrayBuffer 的实例对象。transferList数组中不可传入null。 | +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | ----------------------------------------- | +| 10200004 | Worker instance is not running. | +| 10200006 | Serializing an uncaught exception failed. | + **示例:** ```js @@ -164,7 +220,6 @@ var buffer = new ArrayBuffer(8); workerInstance.postMessage(buffer, [buffer]); ``` - ### on9+ on(type: string, listener: WorkerEventListener): void @@ -180,6 +235,15 @@ on(type: string, listener: WorkerEventListener): void | type | string | 是 | 监听的事件类型。 | | listener | [WorkerEventListener](#workereventlistener9) | 是 | 回调的事件。回调事件。 | +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 10200004 | Worker instance is not running. | +| 10200005 | The invoked API is not supported in workers. | + **示例:** ```js @@ -205,6 +269,15 @@ once(type: string, listener: WorkerEventListener): void | type | string | 是 | 监听的事件类型。 | | listener | [WorkerEventListener](#workereventlistener9) | 是 | 回调的事件。回调事件。 | +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 10200004 | Worker instance is not running. | +| 10200005 | The invoked API is not supported in workers. | + **示例:** ```js @@ -230,6 +303,15 @@ off(type: string, listener?: WorkerEventListener): void | type | string | 是 | 需要删除的事件类型。 | | listener | [WorkerEventListener](#workereventlistener9) | 否 | 回调的事件。删除的回调事件。 | +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 10200004 | Worker instance is not running. | +| 10200005 | The invoked API is not supported in workers. | + **示例:** ```js @@ -247,6 +329,14 @@ terminate(): void **系统能力:** SystemCapability.Utils.Lang +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------- | +| 10200004 | Worker instance is not running. | + **示例:** ```js @@ -269,6 +359,15 @@ Worker对象的onexit属性表示Worker销毁时被调用的事件处理程序 | ------ | ------ | ---- | ------------------ | | code | number | 是 | Worker退出的code。 | +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 10200004 | Worker instance is not running. | +| 10200005 | The invoked API is not supported in workers. | + **示例:** ```js @@ -300,6 +399,15 @@ Worker对象的onerror属性表示Worker在执行过程中发生异常被调用 | ------ | ------------------------- | ---- | ---------- | | err | [ErrorEvent](#errorevent) | 是 | 异常数据。 | +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 10200004 | Worker instance is not running. | +| 10200005 | The invoked API is not supported in workers. | + **示例:** ```js @@ -324,6 +432,15 @@ Worker对象的onmessage属性表示宿主线程接收到来自其创建的Worke | ------ | -------------------------------- | ---- | ---------------------- | | event | [MessageEvents](#messageevents9) | 是 | 收到的Worker消息数据。 | +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 10200004 | Worker instance is not running. | +| 10200005 | The invoked API is not supported in workers. | + **示例:** ```js @@ -350,6 +467,15 @@ Worker对象的onmessageerror属性表示当Worker对象接收到一条无法被 | ------ | -------------------------------- | ---- | ---------- | | event | [MessageEvents](#messageevents9) | 是 | 异常数据。 | +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 10200004 | Worker instance is not running. | +| 10200005 | The invoked API is not supported in workers. | + **示例:** ```js @@ -359,6 +485,169 @@ workerInstance.onmessageerror= function(e) { } ``` +### addEventListener9+ + +addEventListener(type: string, listener: WorkerEventListener): void + +向Worker添加一个事件监听,该接口与[on9+](#on9)接口功能一致。 + +**系统能力:** SystemCapability.Utils.Lang + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------------------------------------------- | ---- | ---------------- | +| type | string | 是 | 监听的事件类型。 | +| listener | [WorkerEventListener](#workereventlistener9) | 是 | 回调的事件。 | + +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 10200004 | Worker instance is not running. | +| 10200005 | The invoked API is not supported in workers. | + +**示例:** + +```js +const workerInstance = new worker.ThreadWorker("workers/worker.js"); +workerInstance.addEventListener("alert", (e)=>{ + console.log("alert listener callback"); +}) +``` + + +### removeEventListener9+ + +removeEventListener(type: string, callback?: WorkerEventListener): void + +删除Worker的事件监听,该接口与[off9+](#off9)接口功能一致。 + +**系统能力:** SystemCapability.Utils.Lang + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------------------------------------------- | ---- | ---------------------------- | +| type | string | 是 | 需要删除的监听事件类型。 | +| callback | [WorkerEventListener](#workereventlistener9) | 否 | 回调的事件。删除的回调事件。 | + +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------- | +| 10200004 | Worker instance is not running. | + +**示例:** + +```js +const workerInstance = new worker.ThreadWorker("workers/worker.js"); +workerInstance.addEventListener("alert", (e)=>{ + console.log("alert listener callback"); +}) +workerInstance.removeEventListener("alert"); +``` + + +### dispatchEvent9+ + +dispatchEvent(event: Event): boolean + +分发定义在Worker的事件。 + +**系统能力:** SystemCapability.Utils.Lang + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | --------------- | ---- | ---------------- | +| event | [Event](#event) | 是 | 需要分发的事件。 | + +**返回值:** + +| 类型 | 说明 | +| ------- | ------------------------------- | +| boolean | 分发的结果,false表示分发失败。 | + +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------- | +| 10200004 | Worker instance is not running. | + +**示例:** + +```js +const workerInstance = new worker.ThreadWorker("workers/worker.js"); +//用法一: +workerInstance.on("alert_on", (e)=>{ + console.log("alert listener callback"); +}) +workerInstance.once("alert_once", (e)=>{ + console.log("alert listener callback"); +}) +workerInstance.addEventListener("alert_add", (e)=>{ + console.log("alert listener callback"); +}) + +//once接口创建的事件执行一次便会删除。 +workerInstance.dispatchEvent({type:"alert_once", timeStamp:0});//timeStamp暂未支持。 +//on接口创建的事件可以一直被分发,不能主动删除。 +workerInstance.dispatchEvent({type:"alert_on", timeStamp:0}); +workerInstance.dispatchEvent({type:"alert_on", timeStamp:0}); +//addEventListener接口创建的事件可以一直被分发,不能主动删除。 +workerInstance.dispatchEvent({type:"alert_add", timeStamp:0}); +workerInstance.dispatchEvent({type:"alert_add", timeStamp:0}); + +//用法二: +//event类型的type支持自定义,同时存在"message"/"messageerror"/"error"特殊类型,如下所示 +//当type = "message",onmessage接口定义的方法同时会执行。 +//当type = "messageerror",onmessageerror接口定义的方法同时会执行。 +//当type = "error",onerror接口定义的方法同时会执行。 +//若调用removeEventListener接口或者off接口取消事件时,能且只能取消使用addEventListener/on/once创建的事件。 + +workerInstance.addEventListener("message", (e)=>{ + console.log("message listener callback"); +}) +workerInstance.onmessage = function(e) { + console.log("onmessage : message listener callback"); +} +//调用dispatchEvent分发“message”事件,addEventListener和onmessage中定义的方法都会被执行。 +workerInstance.dispatchEvent({type:"message", timeStamp:0}); +``` + + +### removeAllListener9+ + +removeAllListener(): void + +删除Worker所有的事件监听。 + +**系统能力:** SystemCapability.Utils.Lang + +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------- | +| 10200004 | Worker instance is not running. | + +**示例:** + +```js +const workerInstance = new worker.ThreadWorker("workers/worker.js"); +workerInstance.addEventListener("alert", (e)=>{ + console.log("alert listener callback"); +}) +workerInstance.removeAllListener(); +``` ## WorkerEventTarget9+ @@ -377,6 +666,15 @@ addEventListener(type: string, listener: WorkerEventListener): void | type | string | 是 | 监听的事件类型。 | | listener | [WorkerEventListener](#workereventlistener9) | 是 | 回调的事件。 | +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 10200004 | Worker instance is not running. | +| 10200005 | The invoked API is not supported in workers. | + **示例:** ```js @@ -402,6 +700,14 @@ removeEventListener(type: string, callback?: WorkerEventListener): void | type | string | 是 | 需要删除的监听事件类型。 | | callback | [WorkerEventListener](#workereventlistener9) | 否 | 回调的事件。删除的回调事件。 | +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------- | +| 10200004 | Worker instance is not running. | + **示例:** ```js @@ -433,6 +739,14 @@ dispatchEvent(event: Event): boolean | ------- | ------------------------------- | | boolean | 分发的结果,false表示分发失败。 | +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------- | +| 10200004 | Worker instance is not running. | + **示例:** ```js @@ -449,7 +763,7 @@ workerInstance.addEventListener("alert_add", (e)=>{ }) //once接口创建的事件执行一次便会删除。 -workerInstance.dispatchEvent({type:"alert_once", timeStamp:0}); +workerInstance.dispatchEvent({type:"alert_once", timeStamp:0});//timeStamp暂未支持。 //on接口创建的事件可以一直被分发,不能主动删除。 workerInstance.dispatchEvent({type:"alert_on", timeStamp:0}); workerInstance.dispatchEvent({type:"alert_on", timeStamp:0}); @@ -483,6 +797,14 @@ removeAllListener(): void **系统能力:** SystemCapability.Utils.Lang +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------- | +| 10200004 | Worker instance is not running. | + **示例:** ```js @@ -498,6 +820,53 @@ workerInstance.removeAllListener(); Worker线程用于与宿主线程通信的类,通过postMessage接口发送消息给宿主线程、close接口销毁Worker线程。ThreadWorkerGlobalScope类继承[GlobalScope9+](#globalscope9)。 +### postMessage9+ + +postMessage(messageObject: Object, transfer: ArrayBuffer[]): void; + +Worker线程向宿主线程发送消息。 + +**系统能力:** SystemCapability.Utils.Lang + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------- | ---- | ------------------------------------------------------- | +| message | Object | 是 | 发送至宿主线程的数据。 | +| transfer | ArrayBuffer[] | 是 | 可传输对象是ArrayBuffer的实例对象,数组中不可传入null。 | + +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | ----------------------------------------- | +| 10200004 | Worker instance is not running. | +| 10200006 | Serializing an uncaught exception failed. | + +**示例:** + +```js +// main.js +import worker from '@ohos.worker'; +const workerInstance = new worker.ThreadWorker("workers/worker.js"); +workerInstance.postMessage("hello world"); +workerInstance.onmessage = function(e) { + // let data = e.data; + console.log("receive data from worker.js"); +} +``` + +```js +// worker.js +import worker from '@ohos.worker'; +const workerPort = worker.workerPort; +workerPort.onmessage = function(e){ + // let data = e.data; + var buffer = new ArrayBuffer(8); + workerPort.postMessage(buffer, [buffer]); +} +``` ### postMessage9+ @@ -514,6 +883,15 @@ Worker线程向宿主线程发送消息。 | message | Object | 是 | 发送至宿主线程的数据。 | | options | [PostMessageOptions](#postmessageoptions) | 否 | 可转移对象是ArrayBuffer的实例对象。transferList数组中不可传入null。 | +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | ----------------------------------------- | +| 10200004 | Worker instance is not running. | +| 10200006 | Serializing an uncaught exception failed. | + **示例:** ```js @@ -530,10 +908,10 @@ workerInstance.onmessage = function(e) { ```js // worker.js import worker from '@ohos.worker'; -const parentPort = worker.workerPort; -parentPort.onmessage = function(e){ +const workerPort = worker.workerPort; +workerPort.onmessage = function(e){ // let data = e.data; - parentPort.postMessage("receive data from main.js"); + workerPort.postMessage("receive data from main.js"); } ``` @@ -546,6 +924,14 @@ close(): void **系统能力:** SystemCapability.Utils.Lang +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------- | +| 10200004 | Worker instance is not running. | + **示例:** ```js @@ -557,16 +943,16 @@ const workerInstance = new worker.ThreadWorker("workers/worker.js"); ```js // worker.js import worker from '@ohos.worker'; -const parentPort = worker.workerPort; -parentPort.onmessage = function(e) { - parentPort.close() +const workerPort = worker.workerPort; +workerPort.onmessage = function(e) { + workerPort.close() } ``` ### onmessage9+ -onmessage?: (this: ThreadWorkerGlobalScope, event: MessageEvents) => void +onmessage?: (this: ThreadWorkerGlobalScope, ev: MessageEvents) => void DedicatedWorkerGlobalScope的onmessage属性表示Worker线程收到来自其宿主线程通过postMessage接口发送的消息时被调用的事件处理程序,处理程序在Worker线程中执行。 @@ -577,7 +963,16 @@ DedicatedWorkerGlobalScope的onmessage属性表示Worker线程收到来自其宿 | 参数名 | 类型 | 必填 | 说明 | | ------ | ---------------------------------------------------- | ---- | ------------------------ | | this | [ThreadWorkerGlobalScope](#threadworkerglobalscope9) | 是 | 指向调用者对象。 | -| event | [MessageEvents](#messageevents9) | 是 | 收到宿主线程发送的数据。 | +| ev | [MessageEvents](#messageevents9) | 是 | 收到宿主线程发送的数据。 | + +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 10200004 | Worker instance is not running. | +| 10200005 | The invoked API is not supported in workers. | **示例:** @@ -591,8 +986,8 @@ workerInstance.postMessage("hello world"); ```js // worker.js import worker from '@ohos.worker'; -const parentPort = worker.workerPort; -parentPort.onmessage = function(e) { +const workerPort = worker.workerPort; +workerPort.onmessage = function(e) { console.log("receive main.js message"); } ``` @@ -600,7 +995,7 @@ parentPort.onmessage = function(e) { ### onmessageerror9+ -onmessageerror?: (this: ThreadWorkerGlobalScope, event: MessageEvents) => void +onmessageerror?: (this: ThreadWorkerGlobalScope, ev: MessageEvents) => void DedicatedWorkerGlobalScope的onmessageerror属性表示当Worker对象接收到一条无法被反序列化的消息时被调用的事件处理程序,处理程序在Worker线程中执行。 @@ -611,7 +1006,16 @@ DedicatedWorkerGlobalScope的onmessageerror属性表示当Worker对象接收到 | 参数名 | 类型 | 必填 | 说明 | | ------ | -------------------------------- | ---- | ---------- | | this | [ThreadWorkerGlobalScope](#threadworkerglobalscope9) | 是 | 指向调用者对象。 | -| event | [MessageEvents](#messageevents9) | 是 | 异常数据。 | +| ev | [MessageEvents](#messageevents9) | 是 | 异常数据。 | + +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 10200004 | Worker instance is not running. | +| 10200005 | The invoked API is not supported in workers. | **示例:** @@ -651,6 +1055,15 @@ parentPort.onmessageerror = function(e) { | ------------------------------------- | ------------------------------- | | void \| Promise<void> | 无返回值或者以Promise形式返回。 | +**错误码:** + +以下错误码的详细介绍请参见[语言基础类库错误码](../errorcodes/errorcode-utils.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 10200004 | Worker instance is not running. | +| 10200005 | The invoked API is not supported in workers. | + **示例:** ```js @@ -700,8 +1113,8 @@ const workerInstance = new worker.ThreadWorker("workers/worker.js") ```js // worker.js import worker from '@ohos.worker'; -const parentPort = worker.workerPort -parentPort.onerror = function(e){ +const workerPort = worker.workerPort +workerPort.onerror = function(e){ console.log("worker.js onerror") } ``` @@ -815,9 +1228,10 @@ Stage模型: } } ``` + ### postMessage(deprecated) -postMessage(message: Object, options?: PostMessageOptions): void +postMessage(message: Object, transfer: ArrayBuffer[]): void; 向Worker线程发送数据,数据类型必须是序列化所支持的类型。序列化支持类型见其他说明。 @@ -828,6 +1242,35 @@ postMessage(message: Object, options?: PostMessageOptions): void **参数:** +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------- | ---- | ----------------------------------------------- | +| message | Object | 是 | 发送至Worker的数据。 | +| transfer | ArrayBuffer[] | 是 | 可转移对象是 ArrayBuffer 的实例对象。 | + +**示例:** + +```js +const workerInstance = new worker.Worker("workers/worker.js"); + +workerInstance.postMessage("hello world"); + +var buffer = new ArrayBuffer(8); +workerInstance.postMessage(buffer, [buffer]); +``` + +### postMessage(deprecated) + +postMessage(message: Object, options?: PostMessageOptions): void + +向Worker线程发送数据,数据类型必须是序列化所支持的类型。序列化支持类型见其他说明。 + +> **说明:**
+> 从API version 7 开始支持,从API version 9 开始废弃,建议使用[ThreadWorker.postMessage9+](#postmessage9-1)替代。 + +**系统能力:** SystemCapability.Utils.Lang + +**参数:** + | 参数名 | 类型 | 必填 | 说明 | | ------- | ----------------------------------------- | ---- | ------------------------------------------------------------ | | message | Object | 是 | 发送至Worker的数据。 | @@ -839,9 +1282,6 @@ postMessage(message: Object, options?: PostMessageOptions): void const workerInstance = new worker.Worker("workers/worker.js"); workerInstance.postMessage("hello world"); - -var buffer = new ArrayBuffer(8); -workerInstance.postMessage(buffer, [buffer]); ``` @@ -1165,7 +1605,7 @@ workerInstance.addEventListener("alert_add", (e)=>{ }) //once接口创建的事件执行一次便会删除。 -workerInstance.dispatchEvent({type:"alert_once", timeStamp:0}); +workerInstance.dispatchEvent({type:"alert_once", timeStamp:0});//timeStamp暂未支持。 //on接口创建的事件可以一直被分发,不能主动删除。 workerInstance.dispatchEvent({type:"alert_on", timeStamp:0}); workerInstance.dispatchEvent({type:"alert_on", timeStamp:0}); @@ -1218,6 +1658,44 @@ Worker线程用于与宿主线程通信的类,通过postMessage接口发送消 > **说明:**
> 从API version 7 开始支持,从API version 9 开始废弃,建议使用[ThreadWorkerGlobalScope9+](#threadworkerglobalscope9)替代。 +### postMessage9+ + +postMessage(messageObject: Object, transfer: ArrayBuffer[]): void; + +Worker线程向宿主线程发送消息。 + +**系统能力:** SystemCapability.Utils.Lang + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------- | ---- | ----------------------------------------------------- | +| message | Object | 是 | 发送至宿主线程的数据。 | +| transfer | ArrayBuffer[] | 是 | 可传输对象是ArrayBuffer的实例对象,数组不可传入null。 | + +**示例:** + +```js +// main.js +import worker from '@ohos.worker'; +const workerInstance = new worker.Worker("workers/worker.js"); +workerInstance.postMessage("hello world"); +workerInstance.onmessage = function(e) { + // let data = e.data; + console.log("receive data from worker.js"); +} +``` +```js +// worker.js +import worker from '@ohos.worker'; +const parentPort = worker.parentPort; +parentPort.onmessage = function(e){ + // let data = e.data; + let buffer = new ArrayBuffer(5) + parentPort.postMessage(buffer, [buffer]); +} +``` + ### postMessage(deprecated) postMessage(messageObject: Object, options?: PostMessageOptions): void @@ -1258,7 +1736,6 @@ parentPort.onmessage = function(e){ } ``` - ### close(deprecated) close(): void @@ -1289,7 +1766,7 @@ parentPort.onmessage = function(e) { ### onmessage(deprecated) -onmessage?: (this: DedicatedWorkerGlobalScope, event: MessageEvent) => void +onmessage?: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => void DedicatedWorkerGlobalScope的onmessage属性表示Worker线程收到来自其宿主线程通过postMessage接口发送的消息时被调用的事件处理程序,处理程序在Worker线程中执行。 @@ -1303,7 +1780,7 @@ DedicatedWorkerGlobalScope的onmessage属性表示Worker线程收到来自其宿 | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------------------------------------------------------ | ---- | ------------------------ | | this | [DedicatedWorkerGlobalScope](#dedicatedworkerglobalscopedeprecated) | 是 | 指向调用者对象。 | -| event | [MessageEvent](#messageeventt) | 是 | 收到宿主线程发送的数据。 | +| ev | [MessageEvent](#messageeventt) | 是 | 收到宿主线程发送的数据。 | **示例:** @@ -1325,7 +1802,7 @@ parentPort.onmessage = function(e) { ### onmessageerror(deprecated) -onmessageerror?: (this: DedicatedWorkerGlobalScope, event: MessageEvent) => void +onmessageerror?: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => void DedicatedWorkerGlobalScope的onmessageerror属性表示当Worker对象接收到一条无法被反序列化的消息时被调用的事件处理程序,处理程序在Worker线程中执行。 @@ -1339,7 +1816,7 @@ DedicatedWorkerGlobalScope的onmessageerror属性表示当Worker对象接收到 | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------------------------ | ---- | ---------- | | this | [DedicatedWorkerGlobalScope](#dedicatedworkerglobalscopedeprecated) | 是 | 指向调用者对象。 | -| event | [MessageEvent](#messageeventt) | 是 | 异常数据。 | +| ev | [MessageEvent](#messageeventt) | 是 | 异常数据。 | **示例:** @@ -1375,10 +1852,10 @@ parentPort.onmessageerror = function(e) { **系统能力:** SystemCapability.Utils.Lang -| 名称 | 类型 | 可读 | 可写 | 说明 | -| --------- | ------ | ---- | ---- | ---------------------------------- | -| type | string | 是 | 否 | 指定事件的类型。 | -| timeStamp | number | 是 | 否 | 事件创建时的时间戳(精度为毫秒)。 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| --------- | ------ | ---- | ---- | -------------------------------------------- | +| type | string | 是 | 否 | 指定事件的类型。 | +| timeStamp | number | 是 | 否 | 事件创建时的时间戳(精度为毫秒),暂未支持。 | ## EventListener(deprecated) @@ -1524,14 +2001,14 @@ workerInstance.onmessage = function(d) { ```js // worker.js import worker from '@ohos.worker'; -const parentPort = worker.workerPort; +const workerPort = worker.workerPort; class MyModel { name = "undefined" Init() { this.name = "MyModel" } } -parentPort.onmessage = function(d) { +workerPort.onmessage = function(d) { console.log("worker.js onmessage"); let data = d.data; let func1 = function() { @@ -1545,14 +2022,14 @@ parentPort.onmessage = function(d) { } } let obj2 = new MyModel(); - // parentPort.postMessage(func1); 传递func1发生序列化错误 - // parentPort.postMessage(obj1); 传递obj1发生序列化错误 - parentPort.postMessage(obj2); // 传递obj2不会发生序列化错误 + // workerPort.postMessage(func1); 传递func1发生序列化错误 + // workerPort.postMessage(obj1); 传递obj1发生序列化错误 + workerPort.postMessage(obj2); // 传递obj2不会发生序列化错误 } -parentPort.onmessageerror = function(e) { +workerPort.onmessageerror = function(e) { console.log("worker.js onmessageerror"); } -parentPort.onerror = function(e) { +workerPort.onerror = function(e) { console.log("worker.js onerror"); } ``` @@ -1570,6 +2047,7 @@ Actor并发模型的交互原理:各个Actor并发地处理主线程任务, - 自API version 9版本开始,若Worker处于已经销毁或正在销毁等非运行状态时,调用其功能接口,会抛出相应的BusinessError。 - Worker的创建和销毁耗费性能,建议管理已创建的Worker并重复使用。 - 创建Worker工程时,new worker.Worker构造函数和new worker.ThreadWorker构造函数不能同时使用,否则将导致工程中Worker的功能异常。自API version 9版本开始,建议使用[new worker.ThreadWorker](#constructor9)构造函数,在API version 8及之前的版本,建议使用[new worker.Worker](#constructordeprecated)构造函数。 +- 创建Worker工程时,在Worker线程的文件中(比如本文中worker.ts)不能导入任何有关构建UI的方法(比如ETS文件等),否则会导致Worker的功能失效。排查方式:解压生成的Hap包,在创建Worker线程的文件目录中找到"worker.js",全局搜索"View"关键字。如果存在该关键字,说明在worker.js中打包进去了构建UI的方法,会导致Worker的功能失效,建议在创建Worker线程的文件中修改 "import “xxx” from src"中src的目录层级。 ## 完整示例 > **说明:**
@@ -1610,23 +2088,23 @@ workerInstance.onexit = function() { import worker from '@ohos.worker'; // 创建worker线程中与主线程通信的对象 -const parentPort = worker.workerPort +const workerPort = worker.workerPort // API version 9之前版本,创建worker线程中与主线程通信的对象 // const parentPort = worker.parentPort // worker线程接收主线程信息 -parentPort.onmessage = function(e) { +workerPort.onmessage = function(e) { // data:主线程发送的信息 let data = e.data; console.log("worker.ts onmessage"); // worker线程向主线程发送信息 - parentPort.postMessage("123") + workerPort.postMessage("123") } // worker线程发生error的回调 -parentPort.onerror= function(e) { +workerPort.onerror= function(e) { console.log("worker.ts onerror"); } ``` @@ -1672,20 +2150,20 @@ workerInstance.onexit = function() { import worker from '@ohos.worker'; // 创建worker线程中与主线程通信的对象 -const parentPort = worker.workerPort +const workerPort = worker.workerPort // worker线程接收主线程信息 -parentPort.onmessage = function(e) { +workerPort.onmessage = function(e) { // data:主线程发送的信息 let data = e.data; console.log("worker.ts onmessage"); // worker线程向主线程发送信息 - parentPort.postMessage("123") + workerPort.postMessage("123") } // worker线程发生error的回调 -parentPort.onerror= function(e) { +workerPort.onerror= function(e) { console.log("worker.ts onerror"); } ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-xml.md b/zh-cn/application-dev/reference/apis/js-apis-xml.md index 1d9c7f0e7d1811cc97760ac0cd82b389a503d9d7..0282ae8d4503fb7187ff467d5953f34fd9ee8098 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-xml.md +++ b/zh-cn/application-dev/reference/apis/js-apis-xml.md @@ -1,6 +1,6 @@ # @ohos.xml (xml解析与生成) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-zlib.md b/zh-cn/application-dev/reference/apis/js-apis-zlib.md index 708f07cf39999a80c913d3f057594c8b38b97698..8a2d9c2f02cb04c467bcc35e49a263641fa9d526 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-zlib.md +++ b/zh-cn/application-dev/reference/apis/js-apis-zlib.md @@ -25,7 +25,7 @@ zipFile(inFile: string, outFile: string, options: Options): Promise<void> | 参数名 | 类型 | 必填 | 说明 | | ------- | ------------------- | ---- | ------------------------------------------------------------ | -| inFile | string | 是 | 指定压缩的文件夹路径或者文件路径,对应的路径参考[FA模型](js-apis-inner-app-context.md),[Stage模型](js-apis-application-context.md)。 | +| inFile | string | 是 | 指定压缩的文件夹路径或者文件路径,路径必须为沙箱路径,沙箱路径可以通过context获取,可参考[FA模型](js-apis-inner-app-context.md),[Stage模型](js-apis-application-context.md)。 | | outFile | string | 是 | 指定压缩结果的文件路径(文件的扩展名zip)。 | | options | [Options](#options) | 是 | 压缩的可选参数。 | @@ -39,6 +39,7 @@ zipFile(inFile: string, outFile: string, options: Options): Promise<void> ```typescript //【压缩文件 例子1】 +// 代码中使用的路径需为应用的沙箱路径,如/data/storage/el2/base/haps,也可以通过context获取 import zlib from '@ohos.zlib'; let inFile = '/xxx/filename.xxx'; let outFile = '/xxx/xxx.zip'; @@ -59,6 +60,7 @@ zlib.zipFile(inFile, outFile, options).then((data) => { ```typescript // 【压缩文件夹 例子2】 +// 代码中使用的路径需为应用的沙箱路径,如/data/storage/el2/base/haps,也可以通过context获取 import zlib from '@ohos.zlib'; let inFile = '/xxx/xxx'; let outFile = '/xxx/xxx.zip'; @@ -89,7 +91,7 @@ unzipFile(inFile:string, outFile:string, options: Options): Promise<void> | 参数名 | 类型 | 必填 | 说明 | | ------- | ------------------- | ---- | ------------------------------------------------------------ | -| inFile | string | 是 | 指定压缩的文件夹路径或者文件路径,对应的路径参考[FA模型](js-apis-inner-app-context.md),[stage模型](js-apis-application-context.md)。 | +| inFile | string | 是 | 指定的待解压缩文件的文件路径,路径必须为沙箱路径,沙箱路径可以通过context获取,可参考[FA模型](js-apis-inner-app-context.md),[Stage模型](js-apis-application-context.md)。 | | outFile | string | 是 | 指定的解压文件路径。 | | options | [Options](#options) | 是 | 解压的可选参数。 | @@ -103,6 +105,7 @@ unzipFile(inFile:string, outFile:string, options: Options): Promise<void> ```typescript // 【解压缩 例子1】 +// 代码中使用的路径需为应用的沙箱路径,如/data/storage/el2/base/haps,也可以通过context获取 import zlib from '@ohos.zlib'; let inFile = '/xx/xxx.zip'; let outFile = '/xxx'; @@ -131,7 +134,7 @@ compressFile(inFile: string, outFile: string, options: Options, callback: AsyncC | 参数名 | 类型 | 必填 | 说明 | | ----------------------- | ------------------- | ---- | ------------------------------------------------------------ | -| inFile | string | 是 | 指定压缩的文件夹路径或者文件路径,对应的路径参考[FA模型](js-apis-inner-app-context.md),[stage模型](js-apis-application-context.md)。 | +| inFile | string | 是 | 指定压缩的文件夹路径或者文件路径,路径必须为沙箱路径,沙箱路径可以通过context获取,可参考[FA模型](js-apis-inner-app-context.md),[Stage模型](js-apis-application-context.md)。 | | outFile | string | 是 | 指定的解压文件路径。 | | options | [Options](#options) | 是 | 压缩的配置参数。 | | AsyncCallback<**void**> | callback | 否 | 压缩时的回调函数。 | @@ -141,8 +144,8 @@ compressFile(inFile: string, outFile: string, options: Options, callback: AsyncC 以下错误码的详细介绍请参见[ohos.zlib错误码](../errorcodes/errorcode-zlib.md)。 | 错误码ID | 错误信息 | | -------- | --------------------------------------| -| 900001 | The Input source file is invalid. | -| 900002 | The Input destination file is invalid. | +| 900001 | The input source file is invalid. | +| 900002 | The input destination file is invalid. | **示例** @@ -179,7 +182,7 @@ compressFile(inFile: string, outFile: string, options: Options): Promise\; | 参数名 | 类型 | 必填 | 说明 | | ------- | ------------------- | ---- | ------------------------------------------------------------ | -| inFile | string | 是 | 指定压缩的文件夹路径或者文件路径,对应的路径参考[FA模型](js-apis-inner-app-context.md),[stage模型](js-apis-application-context.md)。 | +| inFile | string | 是 | 指定压缩的文件夹路径或者文件路径,路径必须为沙箱路径,沙箱路径可以通过context获取,可参考[FA模型](js-apis-inner-app-context.md),[Stage模型](js-apis-application-context.md)。 | | outFile | string | 是 | 指定的解压文件路径。 | | options | [Options](#options) | 是 | 压缩的配置参数。 | @@ -189,8 +192,8 @@ compressFile(inFile: string, outFile: string, options: Options): Promise\; | 错误码ID | 错误信息 | | -------- | ------------------------------------- | -| 900001 | The Input source file is invalid. | -| 900002 | The Input destination file is invalid. | +| 900001 | The input source file is invalid. | +| 900002 | The input destination file is invalid. | ```typescript // 【压缩文件 例子2】 @@ -229,7 +232,7 @@ decompressFile(inFile: string, outFile: string, options: Options, callback: Asyn | 参数名 | 类型 | 必填 | 说明 | | ----------------------- | ------------------- | ---- | ------------------------------------------------------------ | -| inFile | string | 是 | 指定的待解压缩文件的文件路径,对应的路径参考[FA模型](js-apis-inner-app-context.md),[stage模型](js-apis-application-context.md)。 | +| inFile | string | 是 | 指定的待解压缩文件的文件路径,路径必须为沙箱路径,沙箱路径可以通过context获取,可参考[FA模型](js-apis-inner-app-context.md),[Stage模型](js-apis-application-context.md)。 | | outFile | string | 是 | 指定的解压后的目录路径。 | | options | [Options](#options) | 是 | 解压的配置参数。 | | AsyncCallback<**void**> | callback | 否 | 解压是的回调函数。 | @@ -240,8 +243,8 @@ decompressFile(inFile: string, outFile: string, options: Options, callback: Asyn | 错误码ID | 错误信息 | -------- | --------------------------------------| -| 900001 | The Input source file is invalid. | -| 900002 | The Input destination file is invalid. | +| 900001 | The input source file is invalid. | +| 900002 | The input destination file is invalid. | **示例** @@ -278,7 +281,7 @@ decompressFile(inFile: string, outFile: string, options: Options): Promise\9+
+ +minLogicalFontSize(size: number) + +设置网页逻辑字体大小最小值。 + +**参数:** + +| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | +| ------ | -------- | ---- | ------ | ------------------------ | +| size | number | 是 | 8 | 设置网页逻辑字体大小最小值,单位px。输入值的范围为-2^31到2^31-1,实际渲染时超过72的值按照72进行渲染,低于1的值按照1进行渲染。 | + +**示例:** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + @State size: number = 13 + build() { + Column() { + Web({ src: 'www.example.com', controller: this.controller }) + .minLogicalFontSize(this.size) + } + } + } + ``` + + ### webFixedFont9+ webFixedFont(family: string) @@ -1361,7 +1393,7 @@ onHttpErrorReceive(callback: (event?: { request: WebResourceRequest, response: W | 参数名 | 参数类型 | 参数描述 | | ------- | ---------------------------------------- | --------------- | | request | [WebResourceRequest](#webresourcerequest) | 网页请求的封装信息。 | -| error | [WebResourceError](#webresourceerror) | 网页加载资源错误的封装信息 。 | +| response | [WebResourceResponse](#webresourceresponse) | 资源响应的封装信息。 | **示例:** diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md b/zh-cn/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md index 07953a5d7f6e1bc9e7ee8dbefec000be6c398b45..ad82c9be8691370f9f8b75ab8f3e7e2375012d1e 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md @@ -1809,7 +1809,7 @@ transform(a: number, b: number, c: number, d: number, e: number, f: number): voi transform方法对应一个变换矩阵,想对一个图形进行变化的时候,只要设置此变换矩阵相应的参数,对图形的各个定点的坐标分别乘以这个矩阵,就能得到新的定点的坐标。矩阵变换效果可叠加。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 变换后的坐标计算方式(x和y为变换前坐标,x'和y'为变换后坐标): > > - x' = scaleX \* x + skewY \* y + translateX diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-lottie.md b/zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-lottie.md index 2dab45e8523430be89c0723ba7e7dff2b38352e4..36064dceb6c9c2435cd52f880fa8a7823dd9952a 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-lottie.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-lottie.md @@ -31,15 +31,15 @@ path: string, container: object, render: string, loop: boolean, autoplay: boolea **参数:** -| 参数 | 类型 | 必填 | 描述 | -| -------------- | --------------------------- | ---- | ---------------------------------------- | -| path | string | 是 | hap包内动画资源文件路径,仅支持json格式。示例:path: "common/lottie/data.json" | -| container | object | 是 | canvas绘图上下文,声明范式需提前声明CanvasRenderingContext2D。 | -| render | string | 是 | 渲染类型,仅支持“canvas”。 | -| loop | boolean \| number | 否 | 动画播放结束后,是否循环播放,默认值true。值类型为number,且大于等于1时为设置的重复播放的次数。 | -| autoplay | boolean | 否 | 是否自动播放动画,默认值true。 | -| name | string | 否 | 开发者自定义的动画名称,后续支持通过该名称引用控制动画,默认为空。 | -| initialSegment | [number, number] | 否 | 指定动画播放的起始帧号,指定动画播放的结束帧号。 | +| 参数 | 类型 | 必填 | 描述 | +| -------------- | --------------------------- | ---- | ------------------------------------------------------------ | +| path | string | 是 | HAP内动画资源文件路径,仅支持json格式。示例:path: "common/lottie/data.json" | +| container | object | 是 | canvas绘图上下文,声明范式需提前声明CanvasRenderingContext2D。 | +| render | string | 是 | 渲染类型,仅支持“canvas”。 | +| loop | boolean \| number | 否 | 动画播放结束后,是否循环播放,默认值true。值类型为number,且大于等于1时为设置的重复播放的次数。 | +| autoplay | boolean | 否 | 是否自动播放动画,默认值true。 | +| name | string | 否 | 开发者自定义的动画名称,后续支持通过该名称引用控制动画,默认为空。 | +| initialSegment | [number, number] | 否 | 指定动画播放的起始帧号,指定动画播放的结束帧号。 | ## lottie.destroy diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md b/zh-cn/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md index 98b0c8b8401cce5c27349dd8baedc249f007cc70..26119ca3a3c1b23cc1e2933883886616b4958069 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md @@ -23,27 +23,27 @@ OffscreenCanvasRenderingContext2D(width: number, height: number, setting: Render ## 属性 -| 名称 | 类型 | 描述 | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| [fillStyle](#fillstyle) | string \| [CanvasGradient](ts-components-canvas-canvasgradient.md) \| [CanvasPattern](#canvaspattern) | 指定绘制的填充色。
- 类型为string时,表示设置填充区域的颜色。
- 类型为CanvasGradient时,表示渐变对象,使用[createLinearGradient](#createlineargradient)方法创建。
- 类型为CanvasPattern时,使用[createPattern](#createpattern)方法创建。 | -| [lineWidth](#linewidth) | number | 设置绘制线条的宽度。 | -| [strokeStyle](#strokestyle) | string \| [CanvasGradient](ts-components-canvas-canvasgradient.md) \| [CanvasPattern](#canvaspattern) | 设置描边的颜色。
- 类型为string时,表示设置描边使用的颜色。
- 类型为CanvasGradient时,表示渐变对象,使用[createLinearGradient](#createlineargradient)方法创建。
- 类型为CanvasPattern时,使用[createPattern](#createpattern)方法创建。 | -| [lineCap](#linecap) | CanvasLineCap | 指定线端点的样式,可选值为:
- 'butt':线端点以方形结束。
- 'round':线端点以圆形结束。
- 'square':线端点以方形结束,该样式下会增加一个长度和线段厚度相同,宽度是线段厚度一半的矩形。
- 默认值:'butt'。 | -| [lineJoin](#linejoin) | CanvasLineJoin | 指定线段间相交的交点样式,可选值为:
- 'round':在线段相连处绘制一个扇形,扇形的圆角半径是线段的宽度。
- 'bevel':在线段相连处使用三角形为底填充, 每个部分矩形拐角独立。
- 'miter':在相连部分的外边缘处进行延伸,使其相交于一点,形成一个菱形区域,该属性可以通过设置miterLimit属性展现效果。
- 默认值:'miter'。 | -| [miterLimit](#miterlimit) | number | 设置斜接面限制值,该值指定了线条相交处内角和外角的距离。
- 默认值:10。 | -| [font](#font) | string | 设置文本绘制中的字体样式。
语法:ctx.font='font-size font-family'
- font-size(可选),指定字号和行高,单位只支持px。
- font-family(可选),指定字体系列。
语法:ctx.font='font-style font-weight font-size font-family'
- font-style(可选),用于指定字体样式,支持如下几种样式:'normal','italic'。
- font-weight(可选),用于指定字体的粗细,支持如下几种类型:'normal', 'bold', 'bolder', 'lighter', 100, 200, 300, 400, 500, 600, 700, 800, 900。
- font-size(可选),指定字号和行高,单位只支持px。
- font-family(可选),指定字体系列,支持如下几种类型:'sans-serif', 'serif', 'monospace'。
- 默认值:'normal normal 14px sans-serif'。 | -| [textAlign](#textalign) | CanvasTextAlign | 设置文本绘制中的文本对齐方式,可选值为:
- 'left':文本左对齐。
- 'right':文本右对齐。
- 'center':文本居中对齐。
- 'start':文本对齐界线开始的地方。
- 'end':文本对齐界线结束的地方。
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> ltr布局模式下'start'和'left'一致,rtl布局模式下'start'和'right'一致·。
- 默认值:'left'。 | -| [textBaseline](#textbaseline) | CanvasTextBaseline | 设置文本绘制中的水平对齐方式,可选值为:
- 'alphabetic':文本基线是标准的字母基线。
- 'top':文本基线在文本块的顶部。
- 'hanging':文本基线是悬挂基线。
- 'middle':文本基线在文本块的中间。
- 'ideographic':文字基线是表意字基线;如果字符本身超出了alphabetic基线,那么ideograhpic基线位置在字符本身的底部。
- 'bottom':文本基线在文本块的底部。 与ideographic基线的区别在于ideographic基线不需要考虑下行字母。
- 默认值:'alphabetic'。 | -| [globalAlpha](#globalalpha) | number | 设置透明度,0.0为完全透明,1.0为完全不透明。 | -| [lineDashOffset](#linedashoffset) | number | 设置画布的虚线偏移量,精度为float。
- 默认值:0.0。 | -| [globalCompositeOperation](#globalcompositeoperation) | string | 设置合成操作的方式。类型字段可选值有'source-over','source-atop','source-in','source-out','destination-over','destination-atop','destination-in','destination-out','lighter','copy','xor'。
- 默认值:'source-over'。 | -| [shadowBlur](#shadowblur) | number | 设置绘制阴影时的模糊级别,值越大越模糊,精度为float。
- 默认值:0.0。 | -| [shadowColor](#shadowcolor) | string | 设置绘制阴影时的阴影颜色。 | -| [shadowOffsetX](#shadowoffsetx) | number | 设置绘制阴影时和原有对象的水平偏移值。 | -| [shadowOffsetY](#shadowoffsety) | number | 设置绘制阴影时和原有对象的垂直偏移值。 | -| [imageSmoothingEnabled](#imagesmoothingenabled) | boolean | 用于设置绘制图片时是否进行图像平滑度调整,true为启用,false为不启用。
- 默认值:true。 | - -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +| 名称 | 类型 | 描述 | +| ----------------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| [fillStyle](#fillstyle) | string \| [CanvasGradient](ts-components-canvas-canvasgradient.md) \| [CanvasPattern](#canvaspattern) | 指定绘制的填充色。
- 类型为string时,表示设置填充区域的颜色。
- 类型为CanvasGradient时,表示渐变对象,使用[createLinearGradient](#createlineargradient)方法创建。
- 类型为CanvasPattern时,使用[createPattern](#createpattern)方法创建。 | +| [lineWidth](#linewidth) | number | 设置绘制线条的宽度。 | +| [strokeStyle](#strokestyle) | string \| [CanvasGradient](ts-components-canvas-canvasgradient.md) \| [CanvasPattern](#canvaspattern) | 设置描边的颜色。
- 类型为string时,表示设置描边使用的颜色。
- 类型为CanvasGradient时,表示渐变对象,使用[createLinearGradient](#createlineargradient)方法创建。
- 类型为CanvasPattern时,使用[createPattern](#createpattern)方法创建。 | +| [lineCap](#linecap) | CanvasLineCap | 指定线端点的样式,可选值为:
- 'butt':线端点以方形结束。
- 'round':线端点以圆形结束。
- 'square':线端点以方形结束,该样式下会增加一个长度和线段厚度相同,宽度是线段厚度一半的矩形。
- 默认值:'butt'。 | +| [lineJoin](#linejoin) | CanvasLineJoin | 指定线段间相交的交点样式,可选值为:
- 'round':在线段相连处绘制一个扇形,扇形的圆角半径是线段的宽度。
- 'bevel':在线段相连处使用三角形为底填充, 每个部分矩形拐角独立。
- 'miter':在相连部分的外边缘处进行延伸,使其相交于一点,形成一个菱形区域,该属性可以通过设置miterLimit属性展现效果。
- 默认值:'miter'。 | +| [miterLimit](#miterlimit) | number | 设置斜接面限制值,该值指定了线条相交处内角和外角的距离。
- 默认值:10。 | +| [font](#font) | string | 设置文本绘制中的字体样式。
语法:ctx.font='font-size font-family'
- font-size(可选),指定字号和行高,单位只支持px。
- font-family(可选),指定字体系列。
语法:ctx.font='font-style font-weight font-size font-family'
- font-style(可选),用于指定字体样式,支持如下几种样式:'normal','italic'。
- font-weight(可选),用于指定字体的粗细,支持如下几种类型:'normal', 'bold', 'bolder', 'lighter', 100, 200, 300, 400, 500, 600, 700, 800, 900。
- font-size(可选),指定字号和行高,单位只支持px。
- font-family(可选),指定字体系列,支持如下几种类型:'sans-serif', 'serif', 'monospace'。
- 默认值:'normal normal 14px sans-serif'。 | +| [textAlign](#textalign) | CanvasTextAlign | 设置文本绘制中的文本对齐方式,可选值为:
- 'left':文本左对齐。
- 'right':文本右对齐。
- 'center':文本居中对齐。
- 'start':文本对齐界线开始的地方。
- 'end':文本对齐界线结束的地方。
> **说明:**
> ltr布局模式下'start'和'left'一致,rtl布局模式下'start'和'right'一致·。
- 默认值:'left'。 | +| [textBaseline](#textbaseline) | CanvasTextBaseline | 设置文本绘制中的水平对齐方式,可选值为:
- 'alphabetic':文本基线是标准的字母基线。
- 'top':文本基线在文本块的顶部。
- 'hanging':文本基线是悬挂基线。
- 'middle':文本基线在文本块的中间。
- 'ideographic':文字基线是表意字基线;如果字符本身超出了alphabetic基线,那么ideograhpic基线位置在字符本身的底部。
- 'bottom':文本基线在文本块的底部。 与ideographic基线的区别在于ideographic基线不需要考虑下行字母。
- 默认值:'alphabetic'。 | +| [globalAlpha](#globalalpha) | number | 设置透明度,0.0为完全透明,1.0为完全不透明。 | +| [lineDashOffset](#linedashoffset) | number | 设置画布的虚线偏移量,精度为float。
- 默认值:0.0。 | +| [globalCompositeOperation](#globalcompositeoperation) | string | 设置合成操作的方式。类型字段可选值有'source-over','source-atop','source-in','source-out','destination-over','destination-atop','destination-in','destination-out','lighter','copy','xor'。
- 默认值:'source-over'。 | +| [shadowBlur](#shadowblur) | number | 设置绘制阴影时的模糊级别,值越大越模糊,精度为float。
- 默认值:0.0。 | +| [shadowColor](#shadowcolor) | string | 设置绘制阴影时的阴影颜色。 | +| [shadowOffsetX](#shadowoffsetx) | number | 设置绘制阴影时和原有对象的水平偏移值。 | +| [shadowOffsetY](#shadowoffsety) | number | 设置绘制阴影时和原有对象的垂直偏移值。 | +| [imageSmoothingEnabled](#imagesmoothingenabled) | boolean | 用于设置绘制图片时是否进行图像平滑度调整,true为启用,false为不启用。
- 默认值:true。 | + +> **说明:** > fillStyle、shadowColor与 strokeStyle 中string类型格式为 'rgb(255, 255, 255)','rgba(255, 255, 255, 1.0)','\#FFFFFF'。 @@ -1919,8 +1919,8 @@ transform(a: number, b: number, c: number, d: number, e: number, f: number): voi transform方法对应一个变换矩阵,想对一个图形进行变化的时候,只要设置此变换矩阵相应的参数,对图形的各个定点的坐标分别乘以这个矩阵,就能得到新的定点的坐标。矩阵变换效果可叠加。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** -> 变换后的坐标计算方式(x和y为变换前坐标,x'和y'为变换后坐标): +> **说明:** +> 变换后的坐标计算方式(x和y为变换前坐标,x'和y'为变换后坐标): > > - x' = scaleX \* x + skewY \* y + translateX > diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-location.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-location.md index 47ff618136fd82249f3f687ca5e9f64f201599fd..fe33e7e9bd2a464ec43fd9a138c9b5a2320583d6 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-location.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-location.md @@ -58,16 +58,16 @@ struct PositionExample1 { .direction(Direction.Ltr) // 父容器设置direction为Direction.Rtl,子元素从右到左排列 Row() { - Text('1').height(50).width('25%').fontSize(16).backgroundColor(0xF5DEB3) - Text('2').height(50).width('25%').fontSize(16).backgroundColor(0xD2B48C) - Text('3').height(50).width('25%').fontSize(16).backgroundColor(0xF5DEB3) - Text('4').height(50).width('25%').fontSize(16).backgroundColor(0xD2B48C) + Text('1').height(50).width('25%').fontSize(16).backgroundColor(0xF5DEB3).textAlign(TextAlign.End) + Text('2').height(50).width('25%').fontSize(16).backgroundColor(0xD2B48C).textAlign(TextAlign.End) + Text('3').height(50).width('25%').fontSize(16).backgroundColor(0xF5DEB3).textAlign(TextAlign.End) + Text('4').height(50).width('25%').fontSize(16).backgroundColor(0xD2B48C).textAlign(TextAlign.End) } .width('90%') .direction(Direction.Rtl) } } - .width('100%').margin({ top: 5 }).direction(Direction.Rtl) + .width('100%').margin({ top: 5 }) } } ``` diff --git a/zh-cn/application-dev/reference/errorcodes/Readme-CN.md b/zh-cn/application-dev/reference/errorcodes/Readme-CN.md index c1b68c5f93a4c52cdc977af161ee3675372c7062..0415b60ddcd0b93cd4076a27996985ffdc692279 100644 --- a/zh-cn/application-dev/reference/errorcodes/Readme-CN.md +++ b/zh-cn/application-dev/reference/errorcodes/Readme-CN.md @@ -78,7 +78,6 @@ - 定制管理 - [企业设备管理错误码](errorcode-enterpriseDeviceManager.md) - 语言基础类库 - - [buffer错误码](errorcode-buffer.md) - - [containers错误码](errorcode-containers.md) + - [语言基础类库错误码](errorcode-utils.md) - 测试 - [uitest错误码](errorcode-uitest.md) diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-ability.md b/zh-cn/application-dev/reference/errorcodes/errorcode-ability.md index d5aa62b58c0c5d3a97e72f9d9e0cc82afb15a30f..cc739e400bfe01b6300e9b15cb9a1d8a9acea75b 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-ability.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-ability.md @@ -16,8 +16,8 @@ Input error. The specified ability name does not exist. **处理步骤** -1. 检查包名称是否正确。 -2. 检查包名对应的Ability是否正确。 +1. 检查Bundle名称是否正确。 +2. 检查Bundle名称对应的Ability是否正确。 ## 16000002 接口调用Ability类型错误 diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-backgroundTaskMgr.md b/zh-cn/application-dev/reference/errorcodes/errorcode-backgroundTaskMgr.md index c00ba1030f018be4cb1db455e9258860ef4ec80f..c876f929ed256d9db9bb5a69d09671d7e335c9ed 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-backgroundTaskMgr.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-backgroundTaskMgr.md @@ -71,7 +71,6 @@ Continuous task verification failed. 2. 应用重复取消长时任务。 3. bgMode无效,应用配置文件属性backgroundModes没有配置任何长时任务类型。 4. 只有PC设备才能申请长时任务KEEPING_TASK。 -5. 只有系统应用才能申请长时任务WIFI_INTERACTION或VOIP。 **处理步骤** diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-buffer.md b/zh-cn/application-dev/reference/errorcodes/errorcode-buffer.md deleted file mode 100644 index 6f31b7246041e653701be54dc82c13dbe00a6250..0000000000000000000000000000000000000000 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-buffer.md +++ /dev/null @@ -1,55 +0,0 @@ -# buffer错误码 - -## 10200001 参数范围越界错误 - -**错误信息** - -The value of ${param} is out of range. - -**错误描述** - -调用接口时某个参数超出了其正常范围的取值。 - -**可能原因** - -某个参数取值超出可用范围。 - -**处理步骤** - -检查所传参数是否在可用取值范围内。 - -## 10200009 Buffer size 错误 - -**错误信息** - -Buffer size must be a multiple of ${size} - -**错误描述** - -Buffer的长度必须是${size}的整数倍,${size}为16-bits,32-bits或者64-bits。 - -**可能原因** - -Buffer的长度不是${size}的整数倍,${size}为16-bits,32-bits或者64-bits。 - -**处理步骤** - -请检查Buffer的长度值。 - -## 10200013 只读属性设置错误 - -**错误信息** - -Cannot set property ${propertyName} of Buffer which has only a getter. - -**错误描述** - -Buffer的属性${propertyName}只读,不能进行设置。 - -**可能原因** - -将${propertyName}放在了等号左边(即对属性值进行设置)。 - -**处理步骤** - -请检查属性${propertyName}是否在等号左边。 \ No newline at end of file diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-bundle.md b/zh-cn/application-dev/reference/errorcodes/errorcode-bundle.md index 5059b68b1deb6a7c0a5b465cba8b4541c6e6a8f0..9e79f06c6c46eb7a31844efd4516e8f9c533b32e 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-bundle.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-bundle.md @@ -116,12 +116,12 @@ The specified device ID is not found. Failed to install the HAP because the HAP fails to be parsed. **错误描述**
-调用installer模块中的install接口时,传入的HAP包解析失败。 +调用installer模块中的install接口时,传入的HAP解析失败。 **可能原因**
-1. hap包的格式不是zip格式。 -2. hap包的配置文件不满足json格式。 -3. hap包的配置文件缺少必要的字段。 +1. HAP的格式不是zip格式。 +2. HAP的配置文件不满足json格式。 +3. HAP的配置文件缺少必要的字段。 **处理步骤**
1. 确认hap的格式是zip。 @@ -138,9 +138,9 @@ Failed to install the HAP because the HAP signature fails to be verified. **可能原因**
-1. hap包没有签名。 +1. HAP没有签名。 2. hap签名信息来源不可靠。 -3. 升级的hap包与已安装的hap包签名信息不一致。 +3. 升级的HAP与已安装的HAP签名信息不一致。 4. 多个hap的签名信息不一致。 **处理步骤**
@@ -157,28 +157,28 @@ Failed to install the HAP because the HAP path is invalid or the HAP is too larg 调用installer模块中的install接口时,安装包路径无效或者文件过大导致应用安装失败。 **可能原因**
-1. 输入错误,hap包的文件路径不存在。 -2. hap包的路径无法访问。 -3. hap包的大小超过最大限制4G。 +1. 输入错误,HAP的文件路径不存在。 +2. HAP的路径无法访问。 +3. HAP的大小超过最大限制4G。 **处理步骤**
1. 确认hap是否存在。 2. 查看hap的可执行权限,是否可读。 -3. 查看hap包的大小是否超过4G。 +3. 查看HAP的大小是否超过4G。 -## 17700015 多个hap包配置信息不同导致应用安装失败 +## 17700015 多个HAP配置信息不同导致应用安装失败 **错误信息**
Failed to install the HAPs because they have different configuration information. **错误描述**
-调用installer模块中的install接口时,多个hap包配置信息不同导致应用安装失败。 +调用installer模块中的install接口时,多个HAP配置信息不同导致应用安装失败。 **可能原因**
-多个hap包中配置文件app下面的字段不一致。 +多个HAP中配置文件app下面的字段不一致。 **处理步骤**
-确认多个hap包中配置文件app下面的字段是否一致。 +确认多个HAP中配置文件app下面的字段是否一致。 ## 17700016 系统磁盘空间不足导致应用安装失败 diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-containers.md b/zh-cn/application-dev/reference/errorcodes/errorcode-containers.md deleted file mode 100644 index 836759dc56e1c436f15ff1b2b945c864e4ac1e7e..0000000000000000000000000000000000000000 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-containers.md +++ /dev/null @@ -1,75 +0,0 @@ -# containers错误码 - -## 10200012 构造函数调用异常 - -**错误信息** - -The {className}'s constructor cannot be directly invoked. - -**错误描述** - -构造语言容器类的构造方法不支持直接调用。 - -**可能原因** - -调用构造函数时未使用new关键字。 - -**处理步骤** - -检查是否使用直接调用了语言容器类的方法,建议使用new关键字创建语言容器类。 - -## 10200011 传入的this object不是容器类的实例 - -**错误信息** - -The {methodName} method cannot be bound. - -**错误描述** - -调用语言容器类的方法时,传入的this object不是容器类的实例语言,容器类的方法不支持bind。 - -**可能原因** - -容器类的方法不支持bind。 - -**处理步骤** - -1.检查是否使用bind API调用语言容器类的方法。 -2.检查是否把语言容器类的方法赋值给不是语言容器实例的对象来调用。 - -## 10200001 参数范围越界异常 - -**错误信息** - -The parameter value is out of range. - -**错误描述** - -调用接口时某个参数超出了其正常范围的取值。 - -**可能原因** - -该错误码表示范围异常,可能原因某个参数越界异常。 - -**处理步骤** - -请检查所传参数是否在正常取值范围内。 - -## 10200010 容器为空 - -**错误信息** - -The container is empty. - -**错误描述** - -操作的容器为空。 - -**可能原因** - -容器是空的。 - -**处理步骤** - -请先往容器内添加元素。 - diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-distributedKVStore.md b/zh-cn/application-dev/reference/errorcodes/errorcode-distributedKVStore.md index 381d687e85d54dec77c865096f180217a1f80419..ad8fb47ea9149b0bf14fd1907c681f4b1a76a613 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-distributedKVStore.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-distributedKVStore.md @@ -66,20 +66,20 @@ Not found. **错误描述** -该错误码表示在调用数据库deleteKVStore、delete、deleteBatch、get等接口时,未找到相关数据。 +该错误码表示在调用数据库deleteKVStore、sync、get等接口时,未找到相关数据。 **可能原因** 在调用删除数据库、数据查询、数据删除等接口时未找到相关数据,可能原因如下。 1. 删除数据库操作时,数据库不存在或已删除。 2. 数据库数据查询操作时,相关数据不存在或已删除。 -3. 数据库数据删除操作时,相关数据不存在或已删除。 +3. 数据库数据同步操作时,数据库不存在或已删除。 **处理步骤** 1. 在删除数据库操作前,请检查数据库名称是否正确或是否重复删除。 2. 在数据库数据查询操作前,请检查查询关键字是否正确。 -3. 在数据库数据删除操作前,请检查删除关键字是否正确或是否重复删除。 +3. 在数据库数据同步操作前,请检查相关数据库是否已经删除。 ## 15100005 数据库或查询结果集已关闭 diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-useriam.md b/zh-cn/application-dev/reference/errorcodes/errorcode-useriam.md index 8c8159524635a0d0369b9b9e76cf99316af09ed3..d8a1feb3710f7696bc1590cf5cf596c6e8c0faaf 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-useriam.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-useriam.md @@ -12,6 +12,20 @@ 具体参见[通用错误码](./errorcode-universal.md) +## 12500001 执行认证失败 + +**错误信息** + +Authentication failed. + +**可能原因** + +出现该错误码一般是系统内部错误,例如内存申请失败、内存拷贝出错等。 + +**处理步骤** + +重启设备,重新调用接口。 + ## 12500002 一般的操作错误 **错误信息** @@ -30,6 +44,34 @@ General operation error. 重启设备,重新调用接口。 +## 12500003 认证被取消 + +**错误信息** + +Authentication canceled. + +**可能原因** + +当前的认证操作已经被取消。 + +**处理步骤** + +重新调用认证接口,发起认证。 + +## 12500004 认证操作超时 + +**错误信息** + +Authentication timeout. + +**可能原因** + +当前的认证操作超过了设定的时限。 + +**处理步骤** + +重新调用认证接口,发起认证。 + ## 12500005 认证类型不支持 **错误信息** @@ -60,6 +102,34 @@ The authentication trust level is not supported. 检查传入的authTrustLevel是否在合理范围,如果在合理范围,则是当前的设备不支持该认证信任等级。 +## 12500007 认证服务已经繁忙 + +**错误信息** + +Authentication service is busy. + +**可能原因** + +当前已经存在某个尚未结束的认证,又发起了一次认证。 + +**处理步骤** + +稍后重新发起认证。 + +## 12500009 认证被锁定 + +**错误信息** + +Authentication is lockout. + +**可能原因** + +当前认证失败的次数超过了上限,触发防爆模式,认证被锁定。 + +**处理步骤** + +稍后重新发起一次成功的认证。 + ## 12500010 该类型的凭据没有录入 **错误信息** diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-utils.md b/zh-cn/application-dev/reference/errorcodes/errorcode-utils.md new file mode 100644 index 0000000000000000000000000000000000000000..8423abf9d2543cd01fcbe33526bf47ad6cf5a71d --- /dev/null +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-utils.md @@ -0,0 +1,221 @@ +# 语言基础类库错误码 + +## 10200001 参数范围越界错误 + +**错误信息** + +The value of ${param} is out of range. + +**错误描述** + +调用接口时某个参数超出了其正常范围的取值。 + +**可能原因** + +某个参数索引超出可用范围。 + +**处理步骤** + +检查输入参数的索引是否越界。 + +## 10200002 参数解析错误 + +**错误信息** + +Invalid ${param} string. + +**错误描述** + +规范字符串解析失败。 + +**可能原因** + +调用接口时,某个字符串类型的参数为非规范的字符串,导致解析该字符串失败。 + +**处理步骤** + +检查输入字符串的格式。 + +## 10200003 Worker初始化失败 + +**错误信息** + +Worker initialization failure. + +**错误描述** + +调用接口时Worker未能正常初始化。 + +**可能原因** + +1. 创建Worker的数量超出限制。 +2. 设置Worker对象的选择项不正确。 + +**处理步骤** + +1. 检查Worker的数量是否超出8个,如果存在,及时销毁空闲的Worker。 +2. 如果设置WorkerOptions,检查参数类型及其合法性。 + +## 10200004 Worker处于非运行状态 + +**错误信息** + +Worker instance is not running. + +**错误描述** + +调用接口时Worker对象处于非运行状态。 + +**可能原因** + +当调用接口时,Worker实例化对象已经被销毁,或正在被销毁。 + +**处理步骤** + +当调用接口时,确保Worker对象处于正常运行状态,未被执行销毁操作。 + +## 10200005 Worker不支持某API + +**错误信息** + +The invoked API is not supported in workers. + +**错误描述** + +Worker不支持某API。 + +**可能原因** + +调用Worker线程中不支持的API。 + +**处理步骤** + +确保使用Worker线程中支持的API。 + +## 10200006 Worker传输信息序列化异常 + +**错误信息** + +Serializing an uncaught exception failed. + +**错误描述** + +Worker传输信息序列化异常。 + +**可能原因** + +传输信息不属于合法的可序列化对象。 + +**处理步骤** + +确保传输信息属于Worker支持的合法序列化对象。 + +## 10200007 Worker文件路径异常 + +**错误信息** + +The worker file patch is invalid path. + +**错误描述** + +文件路径异常,无法正确加载Worker。 + +**可能原因** + +Worker文件路径异常导致无法正常编译生成合法的worker.abc。 + +**处理步骤** + +确保Worker文件路径符合创建Worker对象的规范,参见API参考中[constructor9+](../apis/js-apis-worker.md#constructor9)接口的示例。 + +## 10200009 Buffer的长度错误 + +**错误信息** + +Buffer size must be a multiple of ${size}. + +**错误描述** + +Buffer的长度错误,不符合要求。 + +**可能原因** + +Buffer的长度错误,不符合要求。Buffer长度要求为size的整数倍。其中size为16-bits、32-bits或者64-bits。 + +**处理步骤** + +确保Buffer长度符合要求。 +Buffer长度要求为size的整数倍。其中size为16-bits、32-bits或者64-bits。 + +## 10200010 容器为空 + +**错误信息** + +The container is empty. + +**错误描述** + +操作的容器为空。 + +**可能原因** + +操作的容器为空,未添加相关元素。 + +**处理步骤** + +确保操作的容器不为空,空容器请先向容器内添加元素。 + +## 10200011 传入的this.object不是容器类的实例 + +**错误信息** + +The {methodName} method cannot be bound. + +**错误描述** + +调用语言容器类的方法时,传入的this.object不是容器类的实例语言,容器类的方法不支持bind。 + +**可能原因** + +容器类的方法不支持bind。 + +**处理步骤** + +1. 检查是否使用bind API调用语言容器类的方法。 +2. 检查是否把语言容器类的方法赋值给不是语言容器实例的对象来调用。 + +## 10200012 构造函数调用异常 + +**错误信息** + +The {className}'s constructor cannot be directly invoked. + +**错误描述** + +构造语言容器类的构造方法不支持直接调用。 + +**可能原因** + +调用构造函数时未使用new关键字。 + +**处理步骤** + +检查是否使用直接调用了语言容器类的方法,建议使用new关键字创建语言容器类。 + +## 10200013 只读属性设置错误 + +**错误信息** + +Cannot set property ${propertyName} of Buffer which has only a getter. + +**错误描述** + +Buffer的属性${propertyName}只读,不能进行设置。 + +**可能原因** + +对Buffer的只读属性进行设置,导致异常。 + +**处理步骤** + +不要对Buffer只读属性进行相关设置。 diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-zlib.md b/zh-cn/application-dev/reference/errorcodes/errorcode-zlib.md index d7038b823654fdaa4601f053f7f808a006113e46..5c70b5f61069f05093c8a53d8aa3e35123c52f38 100755 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-zlib.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-zlib.md @@ -8,11 +8,11 @@ The input source file is invalid. **错误描述** -当调用compress或decompress接口时,传入源文件无效。 +当调用compressFile或decompressFile接口时,传入源文件无效。 **可能原因** -当调用compress接口时,传入的待压缩的文件不存在;当调用decompress接口时,传入的待解压缩的文件不存在。 +当调用compressFile接口时,传入的待压缩的文件不存在;当调用decompressFile接口时,传入的待解压缩的文件不存在。 **处理步骤** @@ -27,14 +27,14 @@ The input destination file is invalid. **错误描述** -当调用compress或decompress接口时,传入目标文件无效。 +当调用compressFile或decompressFile接口时,传入目标文件无效。 **可能原因** -1. 当调用compress接口时,传入的目标文件路径无效,如不存在的沙箱路径。 -2. 当调用decompress接口时,传入的目标目录不存在。 +1. 当调用compressFile接口时,传入的目标文件路径无效,如不存在的沙箱路径。 +2. 当调用decompressFile接口时,传入的目标目录不存在。 **处理步骤** -1. 检查目标文件路径是否正确,不正确填写正确的沙箱路径。 -2. 检查目标文件目录是否存在,不存在新建这个路径。 \ No newline at end of file +1. 检查目标文件路径是否正确,如果不正确,填写正确的沙箱路径。 +2. 检查目标文件目录是否存在,如果不存在,新建这个路径。 \ No newline at end of file diff --git a/zh-cn/application-dev/reference/js-service-widget-ui/js-service-widget-syntax-hml.md b/zh-cn/application-dev/reference/js-service-widget-ui/js-service-widget-syntax-hml.md index aab1b2529434e24ee563ef399aaee74526af422c..3cafcb4415cdd3b4ab806b077fc6e4537489da7d 100644 --- a/zh-cn/application-dev/reference/js-service-widget-ui/js-service-widget-syntax-hml.md +++ b/zh-cn/application-dev/reference/js-service-widget-ui/js-service-widget-syntax-hml.md @@ -94,7 +94,7 @@ HML(OpenHarmony Markup Language)是一套类HTML的标记语言,通过组 } ``` - 也可以使用want格式绑定参数跳转到目标应用,want定义了ability名称、包名、携带的参数字段等。 + 也可以使用want格式绑定参数跳转到目标应用,want定义了Ability名称、Bundle名称、携带的参数字段等。 | 选择器 | 类型 | 默认值 | 样例描述 | | ------ | ------ | -------- | ---------------------------------------- | @@ -102,7 +102,7 @@ HML(OpenHarmony Markup Language)是一套类HTML的标记语言,通过组 | want | [Want](../apis/js-apis-app-ability-want.md) | - | 跳转目标应用的信息,参考want格式表。 | - ```json +```json { "data": { "mainAbility": "xxx.xxx.xxx" @@ -124,9 +124,9 @@ HML(OpenHarmony Markup Language)是一套类HTML的标记语言,通过组 } } } - ``` +``` - 在API Version 8,want参数需要在app.js或app.ets文件的onCreate方法中调用[featureAbility.getWant](../apis/js-apis-ability-featureAbility.md)接口接收相关参数。 +在API Version 8,want参数需要在app.js或app.ets文件的onCreate方法中调用[featureAbility.getWant](../apis/js-apis-ability-featureAbility.md)接口接收相关参数。 - 消息事件格式 diff --git a/zh-cn/application-dev/reference/native-apis/Readme-CN.md b/zh-cn/application-dev/reference/native-apis/Readme-CN.md index 54138c3cb2fb3c394ba3693d4498a98e4e15876d..54bf703ba8b775366036a719e5e4d83207b2ce71 100644 --- a/zh-cn/application-dev/reference/native-apis/Readme-CN.md +++ b/zh-cn/application-dev/reference/native-apis/Readme-CN.md @@ -12,6 +12,13 @@ - [Rawfile](rawfile.md) - [MindSpore](_mind_spore.md) - [NeuralNeworkRuntime](_neural_nework_runtime.md) + - [Avsession](avsession.md) + - [AudioDecoder](_audio_decoder.md) + - [AudioEncoder](_audio_encoder.md) + - [CodecBase](_codec_base.md) + - [VideoDecoder](_video_decoder.md) + - [VideoEncoder](_video_encoder.md) + - [Core](_core.md) - 头文件 - [drawing_bitmap.h](drawing__bitmap_8h.md) - [drawing_brush.h](drawing__brush_8h.md) @@ -42,6 +49,24 @@ - [types.h](types_8h.md) - [neural_network_runtime_type.h](neural__network__runtime__type_8h.md) - [neural_network_runtime.h](neural__network__runtime_8h.md) + - [av_session.h](av__session_8h.md) + - [avcontrol_command.h](avcontrol__command_8h.md) + - [avmeta_data.h](avmeta__data_8h.md) + - [avplayback_state.h](avplayback__state_8h.md) + - [avsession_controller.h](avsession__controller_8h.md) + - [avsession_descriptor.h](avsession__descriptor_8h.md) + - [avsession_errors.h](avsession__errors_8h.md) + - [avsession_info.h](avsession__info_8h.md) + - [avsession_manager.h](avsession__manager_8h.md) + - [avsession_pixel_map.h](avsession__pixel__map_8h.md) + - [native_avcodec_audiodecoder.h](native__avcodec__audiodecoder_8h.md) + - [native_avcodec_audioencoder.h](native__avcodec__audioencoder_8h.md) + - [native_avcodec_base.h](native__avcodec__base_8h.md) + - [native_avcodec_videodecoder.h](native__avcodec__videodecoder_8h.md) + - [native_avcodec_videoencoder.h](native__avcodec__videoencoder_8h.md) + - [native_averrors.h](native__averrors_8h.md) + - [native_avformat.h](native__avformat_8h.md) + - [native_avmemory.h](native__avmemory_8h.md) - 结构体 - [OH_Drawing_BitmapFormat](_o_h___drawing___bitmap_format.md) - [OH_NativeBuffer_Config](_o_h___native_buffer___config.md) @@ -62,4 +87,21 @@ - [OH_NN_Memory](_o_h___n_n___memory.md) - [OH_NN_QuantParam](_o_h___n_n___quant_param.md) - [OH_NN_Tensor](_o_h___n_n___tensor.md) - - [OH_NN_UInt32Array](_o_h___n_n___u_int32_array.md) \ No newline at end of file + - [OH_NN_UInt32Array](_o_h___n_n___u_int32_array.md) + - [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) + - [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) + - [OHOS::AVSession::AVControlCommand](_o_h_o_s_1_1_a_v_session_1_1_a_v_control_command.md) + - [OHOS::AVSession::AVControllerCallback](_h_o_s_1_1_a_v_session_1_1_a_v_controller_callback.md) + - [OHOS::AVSession::AVMetaData](_o_h_o_s_1_1_a_v_session_1_1_a_v_meta_data.md) + - [OHOS::AVSession::AVPlaybackState](_o_h_o_s_1_1_a_v_session_1_1_a_v_playback_state.md) + - [OHOS::AVSession::AVPlaybackState::Position](_1_a_v_session_1_1_a_v_playback_state_1_1_position.md) + - [OHOS::AVSession::AVSession](_o_h_o_s_1_1_a_v_session_1_1_a_v_session.md) + - [OHOS::AVSession::AVSessionBasicInfo](o_h_o_s_1_1_a_v_session_1_1_a_v_session_basic_info.md) + - [OHOS::AVSession::AVSessionCallback](_o_h_o_s_1_1_a_v_session_1_1_a_v_session_callback.md) + - [OHOS::AVSession::AVSessionController](o_h_o_s_1_1_a_v_session_1_1_a_v_session_controller.md) + - [OHOS::AVSession::AVSessionDescriptor](o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md) + - [OHOS::AVSession::AVSessionManager](_o_h_o_s_1_1_a_v_session_1_1_a_v_session_manager.md) + - [OHOS::AVSession::AVSessionPixelMap](_o_h_o_s_1_1_a_v_session_1_1_a_v_session_pixel_map.md) + - [OHOS::AVSession::OutputDeviceInfo](_o_h_o_s_1_1_a_v_session_1_1_output_device_info.md) + - [OHOS::AVSession::SessionListener](_o_h_o_s_1_1_a_v_session_1_1_session_listener.md) + - [OHOS::AVSession::SessionToken](_o_h_o_s_1_1_a_v_session_1_1_session_token.md) \ No newline at end of file diff --git a/zh-cn/application-dev/reference/native-apis/_1_a_v_session_1_1_a_v_playback_state_1_1_position.md b/zh-cn/application-dev/reference/native-apis/_1_a_v_session_1_1_a_v_playback_state_1_1_position.md new file mode 100644 index 0000000000000000000000000000000000000000..ab87d4886fa45ee895144dae8d7da540ace76590 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_1_a_v_session_1_1_a_v_playback_state_1_1_position.md @@ -0,0 +1,44 @@ +# OHOS::AVSession::AVPlaybackState::Position + + +## 概述 + +播放位置的相关信息。 + +**Since:** +9 +**Version:** +1.0 + +## 汇总 + + +### 成员变量 + +| 名称 | 描述 | +| -------- | -------- | +| [elapsedTime_](#elapsedtime) {} | int64_t
媒体已经播放的时间点,第x ms,单位为ms  | +| [updateTime_](#updatetime) {} | int64_t
更新的时间戳,单位为ms  | + + +## 结构体成员变量说明 + + +### elapsedTime_ + + +``` +int64_t OHOS::AVSession::AVPlaybackState::Position::elapsedTime_ {} +``` +**描述:** +媒体已经播放的时间点,第x ms,单位为ms + + +### updateTime_ + + +``` +int64_t OHOS::AVSession::AVPlaybackState::Position::updateTime_ {} +``` +**描述:** +更新的时间戳,单位为ms diff --git a/zh-cn/application-dev/reference/native-apis/_audio_decoder.md b/zh-cn/application-dev/reference/native-apis/_audio_decoder.md new file mode 100644 index 0000000000000000000000000000000000000000..bc160c71ac1a6bb8bd68731801cd47b55d8b8351 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_audio_decoder.md @@ -0,0 +1,382 @@ +# AudioDecoder + + +## 概述 + +AudioDecoder模块提供用于音频解码功能的函数。 + +@syscap SystemCapability.Multimedia.Media.AudioDecoder + +**Since:** +9 +**Version:** +1.0 + +## 汇总 + + +### 文件 + + | 名称 | 描述 | +| -------- | -------- | +| [native_avcodec_audiodecoder.h](native__avcodec__audiodecoder_8h.md) | 声明用于音频解码的Native API。 | + + +### 函数 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_AudioDecoder_CreateByMime](#oh_audiodecoder_createbymime) (const char \*mime) | OH_AVCodec \*
通过mime类型创建一个音频解码器实例,大多数情况下推荐使用该接口。 | +| [OH_AudioDecoder_CreateByName](#oh_audiodecoder_createbyname) (const char \*name) | OH_AVCodec \*
通过音频解码器名称创建一个音频解码器实例,使用这个接口的前提是必须清楚解码器准确的名称。 | +| [OH_AudioDecoder_Destroy](#oh_audiodecoder_destroy) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空解码器内部资源,并销毁解码器实例 | +| [OH_AudioDecoder_SetCallback](#oh_audiodecoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | [OH_AVErrCode](_core.md#oh_averrcode)
设置异步回调函数,使得你的应用能够响应音频解码器产生的事件,该接口被调用必须是在Prepare被调用前。 | +| [OH_AudioDecoder_Configure](#oh_audiodecoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
配置音频解码器,典型地,需要配置被解码音频轨道的描述信息,这些信息能够从容器中提取出来, 该接口被调用必须是在Prepare被调用前。 | +| [OH_AudioDecoder_Prepare](#oh_audiodecoder_prepare) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
准备解码器内部资源,调用该接口前必须先调用Configure接口。 | +| [OH_AudioDecoder_Start](#oh_audiodecoder_start) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
启动解码器,该接口必须在已经Prepare成功后调用。 在启动成功后,解码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | +| [OH_AudioDecoder_Stop](#oh_audiodecoder_stop) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
停止解码器。在停止后可通过Start重新进入Started状态,但需要注意的是,若先前给解码器输入过 Codec-Specific-Data,则需要重新输入。 | +| [OH_AudioDecoder_Flush](#oh_audiodecoder_flush) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空解码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | +| [OH_AudioDecoder_Reset](#oh_audiodecoder_reset) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
重置解码器。如需继续解码工作,需要重新调用Configure接口以配置该解码器实例。 | +| [OH_AudioDecoder_GetOutputDescription](#oh_audiodecoder_getoutputdescription) (OH_AVCodec \*codec) | OH_AVFormat \*
获取该解码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例需调用者手动释放。 | +| [OH_AudioDecoder_SetParameter](#oh_audiodecoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
向解码器设置动态参数,注意:该接口仅能在解码器被启动后调用,同时错误的参数设置,可能会导致解码失败。 | +| [OH_AudioDecoder_PushInputData](#oh_audiodecoder_pushinputdata) (OH_AVCodec \*codec, uint32_t index, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) attr) | [OH_AVErrCode](_core.md#oh_averrcode)
将填充好数据的输入Buffer提交给音频解码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给解码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。另外,对于部分解码器,要求在最开始给解码器输入 Codec-Specific-Data,用以初始化解码器的解码过程。 | +| [OH_AudioDecoder_FreeOutputData](#oh_audiodecoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给解码器。 | + + +## 函数说明 + + +### OH_AudioDecoder_Configure() + + +``` +OH_AVErrCode OH_AudioDecoder_Configure (OH_AVCodec * codec, OH_AVFormat * format ) +``` +**描述:** +配置音频解码器,典型地,需要配置被解码音频轨道的描述信息,这些信息能够从容器中提取出来, 该接口被调用必须是在Prepare被调用前。 + +@syscap SystemCapability.Multimedia.Media.AudioDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| format | 指向OH_AVFormat的指针,用以给出待解码音频轨道的描述信息 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioDecoder_CreateByMime() + + +``` +OH_AVCodec* OH_AudioDecoder_CreateByMime (const char * mime) +``` +**描述:** +通过mime类型创建一个音频解码器实例,大多数情况下推荐使用该接口。 + +@syscap SystemCapability.Multimedia.Media.AudioDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| mime | mime类型描述字符串,参考[OH_AVCODEC_MIMETYPE_AUDIO_AAC](_codec_base.md#oh_avcodec_mimetype_audio_aac) | + +**返回:** + +返回一个指向OH_AVCodec实例的指针 + + +### OH_AudioDecoder_CreateByName() + + +``` +OH_AVCodec* OH_AudioDecoder_CreateByName (const char * name) +``` +**描述:** +通过音频解码器名称创建一个音频解码器实例,使用这个接口的前提是必须清楚解码器准确的名称。 + +@syscap SystemCapability.Multimedia.Media.AudioDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| name | 音频解码器名称 | + +**返回:** + +返回一个指向OH_AVCodec实例的指针 + + +### OH_AudioDecoder_Destroy() + + +``` +OH_AVErrCode OH_AudioDecoder_Destroy (OH_AVCodec * codec) +``` +**描述:** +清空解码器内部资源,并销毁解码器实例 + +@syscap SystemCapability.Multimedia.Media.AudioDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioDecoder_Flush() + + +``` +OH_AVErrCode OH_AudioDecoder_Flush (OH_AVCodec * codec) +``` +**描述:** +清空解码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 + +@syscap SystemCapability.Multimedia.Media.AudioDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioDecoder_FreeOutputData() + + +``` +OH_AVErrCode OH_AudioDecoder_FreeOutputData (OH_AVCodec * codec, uint32_t index ) +``` +**描述:** +将处理结束的输出Buffer交还给解码器。 + +@syscap SystemCapability.Multimedia.Media.AudioDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| index | 输出Buffer对应的索引值 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioDecoder_GetOutputDescription() + + +``` +OH_AVFormat* OH_AudioDecoder_GetOutputDescription (OH_AVCodec * codec) +``` +**描述:** +获取该解码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例需调用者手动释放。 + +@syscap SystemCapability.Multimedia.Media.AudioDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +返回OH_AVFormat句柄指针,需调用者手动释放; + + +### OH_AudioDecoder_Prepare() + + +``` +OH_AVErrCode OH_AudioDecoder_Prepare (OH_AVCodec * codec) +``` +**描述:** +准备解码器内部资源,调用该接口前必须先调用Configure接口。 + +@syscap SystemCapability.Multimedia.Media.AudioDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioDecoder_PushInputData() + + +``` +OH_AVErrCode OH_AudioDecoder_PushInputData (OH_AVCodec * codec, uint32_t index, OH_AVCodecBufferAttr attr ) +``` +**描述:** +将填充好数据的输入Buffer提交给音频解码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给解码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。另外,对于部分解码器,要求在最开始给解码器输入 Codec-Specific-Data,用以初始化解码器的解码过程。 + +@syscap SystemCapability.Multimedia.Media.AudioDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| index | 输入Buffer对应的索引值 | +| attr | 描述该Buffer内所包含数据的信息 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioDecoder_Reset() + + +``` +OH_AVErrCode OH_AudioDecoder_Reset (OH_AVCodec * codec) +``` +**描述:** +重置解码器。如需继续解码工作,需要重新调用Configure接口以配置该解码器实例。 + +@syscap SystemCapability.Multimedia.Media.AudioDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioDecoder_SetCallback() + + +``` +OH_AVErrCode OH_AudioDecoder_SetCallback (OH_AVCodec * codec, OH_AVCodecAsyncCallback callback, void * userData ) +``` +**描述:** +设置异步回调函数,使得你的应用能够响应音频解码器产生的事件,该接口被调用必须是在Prepare被调用前。 + +@syscap SystemCapability.Multimedia.Media.AudioDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| callback | 一个包含所有回调函数的集合体,参考[OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) | +| userData | 用户特定数据 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioDecoder_SetParameter() + + +``` +OH_AVErrCode OH_AudioDecoder_SetParameter (OH_AVCodec * codec, OH_AVFormat * format ) +``` +**描述:** +向解码器设置动态参数,注意:该接口仅能在解码器被启动后调用,同时错误的参数设置,可能会导致解码失败。 + +@syscap SystemCapability.Multimedia.Media.AudioDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| format | OH_AVFormat句柄指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioDecoder_Start() + + +``` +OH_AVErrCode OH_AudioDecoder_Start (OH_AVCodec * codec) +``` +**描述:** +启动解码器,该接口必须在已经Prepare成功后调用。 在启动成功后,解码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 + +@syscap SystemCapability.Multimedia.Media.AudioDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioDecoder_Stop() + + +``` +OH_AVErrCode OH_AudioDecoder_Stop (OH_AVCodec * codec) +``` +**描述:** +停止解码器。在停止后可通过Start重新进入Started状态,但需要注意的是,若先前给解码器输入过 Codec-Specific-Data,则需要重新输入。 + +@syscap SystemCapability.Multimedia.Media.AudioDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) diff --git a/zh-cn/application-dev/reference/native-apis/_audio_encoder.md b/zh-cn/application-dev/reference/native-apis/_audio_encoder.md new file mode 100644 index 0000000000000000000000000000000000000000..a3edbb7794850ffc8b0136787d4caeda2bab7135 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_audio_encoder.md @@ -0,0 +1,382 @@ +# AudioEncoder + + +## 概述 + +AudioEncoder模块提供用于音频编码功能的函数。 + +@syscap SystemCapability.Multimedia.Media.AudioEncoder + +**Since:** +9 +**Version:** +1.0 + +## 汇总 + + +### 文件 + + | 名称 | 描述 | +| -------- | -------- | +| [native_avcodec_audioencoder.h](native__avcodec__audioencoder_8h.md) | 声明用于音频编码的Native API。 | + + +### 函数 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_AudioEncoder_CreateByMime](#oh_audioencoder_createbymime) (const char \*mime) | OH_AVCodec \*
通过mime类型创建一个音频编码器实例,大多数情况下推荐使用该接口。 | +| [OH_AudioEncoder_CreateByName](#oh_audioencoder_createbyname) (const char \*name) | OH_AVCodec \*
通过音频编码器名称创建一个音频编码器实例,使用这个接口的前提是必须清楚编码器准确的名称。 | +| [OH_AudioEncoder_Destroy](#oh_audioencoder_destroy) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空编码器内部资源,并销毁编码器实例。 | +| [OH_AudioEncoder_SetCallback](#oh_audioencoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | [OH_AVErrCode](_core.md#oh_averrcode)
设置异步回调函数,使得你的应用能够响应音频编码器产生的事件,该接口被调用必须是在Prepare被调用前。 | +| [OH_AudioEncoder_Configure](#oh_audioencoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
配置音频编码器,典型地,需要配置被编码音频轨道的描述信息,该接口被调用必须是在Prepare被调用前。 | +| [OH_AudioEncoder_Prepare](#oh_audioencoder_prepare) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
准备编码器内部资源,调用该接口前必须先调用Configure接口。 | +| [OH_AudioEncoder_Start](#oh_audioencoder_start) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
启动编码器,该接口必须在已经Prepare成功后调用。 在启动成功后,编码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | +| [OH_AudioEncoder_Stop](#oh_audioencoder_stop) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
停止编码器。在停止后可通过Start重新进入Started状态。 | +| [OH_AudioEncoder_Flush](#oh_audioencoder_flush) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空编码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | +| [OH_AudioEncoder_Reset](#oh_audioencoder_reset) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
重置编码器。如需继续编码工作,需要重新调用Configure接口以配置该编码器实例。 | +| [OH_AudioEncoder_GetOutputDescription](#oh_audioencoder_getoutputdescription) (OH_AVCodec \*codec) | OH_AVFormat \*
获取该编码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例需调用者手动释放。 | +| [OH_AudioEncoder_SetParameter](#oh_audioencoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
向编码器设置动态参数,注意:该接口仅能在编码器被启动后调用,同时错误的参数设置,可能会导致编码失败。 | +| [OH_AudioEncoder_PushInputData](#oh_audioencoder_pushinputdata) (OH_AVCodec \*codec, uint32_t index, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) attr) | [OH_AVErrCode](_core.md#oh_averrcode)
将填充好数据的输入Buffer提交给音频编码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给编码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。 | +| [OH_AudioEncoder_FreeOutputData](#oh_audioencoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给编码器。 | + + +## 函数说明 + + +### OH_AudioEncoder_Configure() + + +``` +OH_AVErrCode OH_AudioEncoder_Configure (OH_AVCodec * codec, OH_AVFormat * format ) +``` +**描述:** +配置音频编码器,典型地,需要配置被编码音频轨道的描述信息,该接口被调用必须是在Prepare被调用前。 + +@syscap SystemCapability.Multimedia.Media.AudioEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| format | OH_AVFormat句柄指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioEncoder_CreateByMime() + + +``` +OH_AVCodec* OH_AudioEncoder_CreateByMime (const char * mime) +``` +**描述:** +通过mime类型创建一个音频编码器实例,大多数情况下推荐使用该接口。 + +@syscap SystemCapability.Multimedia.Media.AudioEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| mime | mime类型描述字符串,参考[OH_AVCODEC_MIMETYPE_AUDIO_AAC](_codec_base.md#oh_avcodec_mimetype_audio_aac) | + +**返回:** + +返回一个指向OH_AVCodec实例的指针 + + +### OH_AudioEncoder_CreateByName() + + +``` +OH_AVCodec* OH_AudioEncoder_CreateByName (const char * name) +``` +**描述:** +通过音频编码器名称创建一个音频编码器实例,使用这个接口的前提是必须清楚编码器准确的名称。 + +@syscap SystemCapability.Multimedia.Media.AudioEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| name | 音频编码器名称 | + +**返回:** + +返回一个指向OH_AVCodec实例的指针 + + +### OH_AudioEncoder_Destroy() + + +``` +OH_AVErrCode OH_AudioEncoder_Destroy (OH_AVCodec * codec) +``` +**描述:** +清空编码器内部资源,并销毁编码器实例。 + +@syscap SystemCapability.Multimedia.Media.AudioEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioEncoder_Flush() + + +``` +OH_AVErrCode OH_AudioEncoder_Flush (OH_AVCodec * codec) +``` +**描述:** +清空编码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 + +@syscap SystemCapability.Multimedia.Media.AudioEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioEncoder_FreeOutputData() + + +``` +OH_AVErrCode OH_AudioEncoder_FreeOutputData (OH_AVCodec * codec, uint32_t index ) +``` +**描述:** +将处理结束的输出Buffer交还给编码器。 + +@syscap SystemCapability.Multimedia.Media.AudioEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| index | 输出Buffer对应的索引值 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioEncoder_GetOutputDescription() + + +``` +OH_AVFormat* OH_AudioEncoder_GetOutputDescription (OH_AVCodec * codec) +``` +**描述:** +获取该编码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例需调用者手动释放。 + +@syscap SystemCapability.Multimedia.Media.AudioEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +返回OH_AVFormat句柄指针,需调用者手动释放; + + +### OH_AudioEncoder_Prepare() + + +``` +OH_AVErrCode OH_AudioEncoder_Prepare (OH_AVCodec * codec) +``` +**描述:** +准备编码器内部资源,调用该接口前必须先调用Configure接口。 + +@syscap SystemCapability.Multimedia.Media.AudioEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioEncoder_PushInputData() + + +``` +OH_AVErrCode OH_AudioEncoder_PushInputData (OH_AVCodec * codec, uint32_t index, OH_AVCodecBufferAttr attr ) +``` +**描述:** +将填充好数据的输入Buffer提交给音频编码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给编码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。 + +@syscap SystemCapability.Multimedia.Media.AudioEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| index | 输入Buffer对应的索引值 | +| attr | 描述该Buffer内所包含数据的信息 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioEncoder_Reset() + + +``` +OH_AVErrCode OH_AudioEncoder_Reset (OH_AVCodec * codec) +``` +**描述:** +重置编码器。如需继续编码工作,需要重新调用Configure接口以配置该编码器实例。 + +@syscap SystemCapability.Multimedia.Media.AudioEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioEncoder_SetCallback() + + +``` +OH_AVErrCode OH_AudioEncoder_SetCallback (OH_AVCodec * codec, OH_AVCodecAsyncCallback callback, void * userData ) +``` +**描述:** +设置异步回调函数,使得你的应用能够响应音频编码器产生的事件,该接口被调用必须是在Prepare被调用前。 + +@syscap SystemCapability.Multimedia.Media.AudioEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| callback | 一个包含所有回调函数的集合体,参考[OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) | +| userData | 用户特定数据 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioEncoder_SetParameter() + + +``` +OH_AVErrCode OH_AudioEncoder_SetParameter (OH_AVCodec * codec, OH_AVFormat * format ) +``` +**描述:** +向编码器设置动态参数,注意:该接口仅能在编码器被启动后调用,同时错误的参数设置,可能会导致编码失败。 + +@syscap SystemCapability.Multimedia.Media.AudioEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| format | OH_AVFormat句柄指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioEncoder_Start() + + +``` +OH_AVErrCode OH_AudioEncoder_Start (OH_AVCodec * codec) +``` +**描述:** +启动编码器,该接口必须在已经Prepare成功后调用。 在启动成功后,编码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 + +@syscap SystemCapability.Multimedia.Media.AudioEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_AudioEncoder_Stop() + + +``` +OH_AVErrCode OH_AudioEncoder_Stop (OH_AVCodec * codec) +``` +**描述:** +停止编码器。在停止后可通过Start重新进入Started状态。 + +@syscap SystemCapability.Multimedia.Media.AudioEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) diff --git a/zh-cn/application-dev/reference/native-apis/_codec_base.md b/zh-cn/application-dev/reference/native-apis/_codec_base.md new file mode 100644 index 0000000000000000000000000000000000000000..a19b89726fd1822cce7d8fceb602ce54972e5f14 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_codec_base.md @@ -0,0 +1,573 @@ +# CodecBase + + +## 概述 + +CodecBase模块提供运行音视频编解码通用的结构体、字符常量、枚举。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + +**Since:** +9 +**Version:** +1.0 + +## 汇总 + + +### 文件 + + | 名称 | 描述 | +| -------- | -------- | +| [native_avcodec_base.h](native__avcodec__base_8h.md) | 声明运行音视频编解码通用的结构体、字符常量、枚举。 | + + +### 结构体 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) | struct
定义OH_AVCodec的Buffer描述信息。 | +| [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) | struct
AVCodec所有的异步回调函数指针集合。注册一个该结构体实例给OH_AVCodec实例,并处理通过该回调报告 的信息,以确保AVCodec正常运转。 | + + +### 类型定义 + + | 名称 | 描述 | +| -------- | -------- | +| **OHNativeWindow** | typedef struct NativeWindow | +| **OH_AVCodec** | typedef struct OH_AVCodec | +| [OH_AVCodecBufferFlags](#oh_avcodecbufferflags) | typedef enum [OH_AVCodecBufferFlags](#oh_avcodecbufferflags)
枚举OH_AVCodec的Buffer标记的类别。 | +| [OH_AVCodecBufferAttr](#oh_avcodecbufferattr) | typedef struct [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md)
定义OH_AVCodec的Buffer描述信息。 | +| [OH_AVCodecOnError](#oh_avcodeconerror)) (OH_AVCodec \*codec, int32_t errorCode, void \*userData) | typedef void(\*
当OH_AVCodec实例运行发生错误时,该函数指针会被调用以报告具体错误信息。 | +| [OH_AVCodecOnStreamChanged](#oh_avcodeconstreamchanged)) (OH_AVCodec \*codec, OH_AVFormat \*format, void \*userData) | typedef void(\*
当输出流发生变化时,该函数指针会被调用以报告新的流描述信息。 需要注意的时,OH_AVFormat指针的生命周期仅维持在该函数指针被调用时上有效,禁止在调用结束后继续访问。 | +| [OH_AVCodecOnNeedInputData](#oh_avcodeconneedinputdata)) (OH_AVCodec \*codec, uint32_t index, OH_AVMemory \*data, void \*userData) | typedef void(\*
当AVCodec运行过程中需要新的输入数据时,该函数指针会被调用,并携带一块可用的Buffer以供填入新的输入数据。 | +| [OH_AVCodecOnNewOutputData](#oh_avcodeconnewoutputdata)) (OH_AVCodec \*codec, uint32_t index, OH_AVMemory \*data, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) \*attr, void \*userData) | typedef void(\*
当AVCodec运行过程中产生了新的输出数据时,该函数指针会被调用,并携带一块包含新输出数据的Buffer, 需要注意的是,OH_AVCodecBufferAttr指针的生命周期仅维持在该函数指针被调用时有效,禁止调用结束后继续访问。 | +| [OH_AVCodecAsyncCallback](#oh_avcodecasynccallback) | typedef struct [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md)
AVCodec所有的异步回调函数指针集合。注册一个该结构体实例给OH_AVCodec实例,并处理通过该回调报告 的信息,以确保AVCodec正常运转。 | +| [OH_MediaType](#oh_mediatype) | typedef enum [OH_MediaType](#oh_mediatype)
媒体类型。 | +| [OH_AVCProfile](#oh_avcprofile) | typedef enum [OH_AVCProfile](#oh_avcprofile)
AVC Profile枚举。 | +| [OH_AACProfile](#oh_aacprofile) | typedef enum [OH_AACProfile](#oh_aacprofile)
AAC Profile枚举。 | + + +### 枚举 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_AVCodecBufferFlags](#oh_avcodecbufferflags) {
**AVCODEC_BUFFER_FLAGS_NONE** = 0, **AVCODEC_BUFFER_FLAGS_EOS** = 1 << 0, **AVCODEC_BUFFER_FLAGS_SYNC_FRAME** = 1 << 1, **AVCODEC_BUFFER_FLAGS_INCOMPLETE_FRAME** = 1 << 2, **AVCODEC_BUFFER_FLAGS_CODEC_DATA**= 1 << 3
} | 枚举OH_AVCodec的Buffer标记的类别。 | +| [OH_MediaType](#oh_mediatype) { **MEDIA_TYPE_AUD** = 0, **MEDIA_TYPE_VID** = 1 } | 媒体类型。 | +| [OH_AVCProfile](#oh_avcprofile) { **AVC_PROFILE_BASELINE** = 0, **AVC_PROFILE_HIGH** = 4, **AVC_PROFILE_MAIN** = 8 } | AVC Profile枚举。 | +| [OH_AACProfile](#oh_aacprofile) { **AAC_PROFILE_LC** = 0 } | AAC Profile枚举。 | + + +### 变量 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_AVCodecBufferAttr::pts](#pts) | int64_t
以微秒为单位表示的该Buffer的Presentation时间戳 | +| [OH_AVCodecBufferAttr::size](#size) | int32_t
以字节为单位表示的该Buffer内所包含数据的大小 | +| [OH_AVCodecBufferAttr::offset](#offset) | int32_t
有效数据在该Buffer内的起始偏移量 | +| [OH_AVCodecBufferAttr::flags](#flags) | uint32_t
该Buffer具有的标记,也是多个[OH_AVCodecBufferFlags](#oh_avcodecbufferflags)的组合 | +| **OH_AVCodecAsyncCallback::onError** | [OH_AVCodecOnError](#oh_avcodeconerror) | +| **OH_AVCodecAsyncCallback::onStreamChanged** | [OH_AVCodecOnStreamChanged](#oh_avcodeconstreamchanged) | +| **OH_AVCodecAsyncCallback::onNeedInputData** | [OH_AVCodecOnNeedInputData](#oh_avcodeconneedinputdata) | +| **OH_AVCodecAsyncCallback::onNeedOutputData** | [OH_AVCodecOnNewOutputData](#oh_avcodeconnewoutputdata) | +| [OH_AVCODEC_MIMETYPE_VIDEO_AVC](#oh_avcodec_mimetype_video_avc) | const char \*
AVC视频编解码器的MIME类型。 | +| [OH_AVCODEC_MIMETYPE_AUDIO_AAC](#oh_avcodec_mimetype_audio_aac) | const char \*
AAC音频编解码器的MIME类型。 | +| [OH_ED_KEY_TIME_STAMP](#oh_ed_key_time_stamp) | const char \*
提供统一的surface Buffer附属数据的字符描述符。 | +| [OH_ED_KEY_EOS](#oh_ed_key_eos) | const char \*
surface附属数据中结束流的字符描述符,值类型为bool | +| [OH_MD_KEY_TRACK_TYPE](#oh_md_key_track_type) | const char \*
为媒体播放框架提供统一的字符描述符。 | +| [OH_MD_KEY_CODEC_MIME](#oh_md_key_codec_mime) | const char \*
mime类型的字符描述符,值类型为string | +| [OH_MD_KEY_DURATION](#oh_md_key_duration) | const char \*
duration的字符描述符,值类型为int64_t | +| [OH_MD_KEY_BITRATE](#oh_md_key_bitrate) | const char \*
比特率的字符描述符,值类型为uint32_t | +| [OH_MD_KEY_MAX_INPUT_SIZE](#oh_md_key_max_input_size) | const char \*
最大输入尺寸的字符描述符,值类型为uint32_t | +| [OH_MD_KEY_WIDTH](#oh_md_key_width) | const char \*
视频宽度的字符描述符,值类型为uint32_t | +| [OH_MD_KEY_HEIGHT](#oh_md_key_height) | const char \*
视频高度的字符描述符,值类型为uint32_t | +| [OH_MD_KEY_PIXEL_FORMAT](#oh_md_key_pixel_format) | const char \*
视频像素格式的字符描述符,值类型为int32_t,具体见[OH_AVPixelFormat](_core.md#oh_avpixelformat) | +| [OH_MD_KEY_AUDIO_SAMPLE_FORMAT](#oh_md_key_audio_sample_format) | const char \*
音频采样格式的字符描述符,值类型为uint32_t | +| [OH_MD_KEY_FRAME_RATE](#oh_md_key_frame_rate) | const char \*
视频帧率的字符描述符,值类型为double | +| [OH_MD_KEY_VIDEO_ENCODE_BITRATE_MODE](#oh_md_key_video_encode_bitrate_mode) | const char \*
视频编码比特率模式的字符描述符,值类型为int32_t,具体见[OH_VideoEncodeBitrateMode](_video_encoder.md#oh_videoencodebitratemode) | +| [OH_MD_KEY_PROFILE](#oh_md_key_profile) | const char \*
音视频编码能力的字符描述符,值类型为int32_t,具体见[OH_AVCProfile](#oh_avcprofile)或[OH_AACProfile](#oh_aacprofile) | +| [OH_MD_KEY_AUD_CHANNEL_COUNT](#oh_md_key_aud_channel_count) | const char \*
音频声道数的字符描述符,值类型为uint32_t | +| [OH_MD_KEY_AUD_SAMPLE_RATE](#oh_md_key_aud_sample_rate) | const char \*
音频采样率的字符描述符,值类型为uint32_t | +| [OH_MD_KEY_I_FRAME_INTERVAL](#oh_md_key_i_frame_interval) | const char \*
I帧间隔时长的字符描述符,值类型为int32_t,单位是毫秒 | +| [OH_MD_KEY_ROTATION](#oh_md_key_rotation) | const char \*
surface旋转角度的字符描述符,值类型为int32_t,限于{0, 90, 180, 270},默认值为0 | + + +## 类型定义说明 + + +### OH_AACProfile + + +``` +typedef enum OH_AACProfileOH_AACProfile +``` +**描述:** +AAC Profile枚举。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + + +### OH_AVCodecAsyncCallback + + +``` +typedef struct OH_AVCodecAsyncCallbackOH_AVCodecAsyncCallback +``` +**描述:** +AVCodec所有的异步回调函数指针集合。注册一个该结构体实例给OH_AVCodec实例,并处理通过该回调报告 的信息,以确保AVCodec正常运转。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| onError | 监听AVCodec运行错误,参考[OH_AVCodecOnError](#oh_avcodeconerror) | +| onStreamChanged | 监听编解码流信息,参考[OH_AVCodecOnStreamChanged](#oh_avcodeconstreamchanged) | +| onNeedInputData | 监听编解码需要输入数据,参考[OH_AVCodecOnNeedInputData](#oh_avcodeconneedinputdata) | +| onNeedInputData | 监听编解码产生输出数据,参考[OH_AVCodecOnNewOutputData](#oh_avcodeconnewoutputdata) | + + +### OH_AVCodecBufferAttr + + +``` +typedef struct OH_AVCodecBufferAttrOH_AVCodecBufferAttr +``` +**描述:** +定义OH_AVCodec的Buffer描述信息。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + + +### OH_AVCodecBufferFlags + + +``` +typedef enum OH_AVCodecBufferFlagsOH_AVCodecBufferFlags +``` +**描述:** +枚举OH_AVCodec的Buffer标记的类别。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + + +### OH_AVCodecOnError + + +``` +typedef void(* OH_AVCodecOnError) (OH_AVCodec *codec, int32_t errorCode, void *userData) +``` +**描述:** +当OH_AVCodec实例运行发生错误时,该函数指针会被调用以报告具体错误信息。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | OH_AVCodec实例 | +| errorCode | 具体错误码 | +| userData | 用户特定数据 | + + +### OH_AVCodecOnNeedInputData + + +``` +typedef void(* OH_AVCodecOnNeedInputData) (OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData) +``` +**描述:** +当AVCodec运行过程中需要新的输入数据时,该函数指针会被调用,并携带一块可用的Buffer以供填入新的输入数据。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | OH_AVCodec实例 | +| index | 新的可用的输入Buffer对应的索引 | +| data | 新的可用的输入Buffer | +| userData | 用户特定数据 | + + +### OH_AVCodecOnNewOutputData + + +``` +typedef void(* OH_AVCodecOnNewOutputData) (OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, OH_AVCodecBufferAttr *attr, void *userData) +``` +**描述:** +当AVCodec运行过程中产生了新的输出数据时,该函数指针会被调用,并携带一块包含新输出数据的Buffer, 需要注意的是,OH_AVCodecBufferAttr指针的生命周期仅维持在该函数指针被调用时有效,禁止调用结束后继续访问。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | OH_AVCodec实例 | +| index | 新的输出Buffer对应的索引 | +| data | 包含新的输出数据的Buffer | +| attr | 新的输出Buffer的描述信息,具体参考[OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) | +| userData | specified data | + + +### OH_AVCodecOnStreamChanged + + +``` +typedef void(* OH_AVCodecOnStreamChanged) (OH_AVCodec *codec, OH_AVFormat *format, void *userData) +``` +**描述:** +当输出流发生变化时,该函数指针会被调用以报告新的流描述信息。 需要注意的时,OH_AVFormat指针的生命周期仅维持在该函数指针被调用时上有效,禁止在调用结束后继续访问。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | OH_AVCodec实例 | +| format | 新的输出流描述信息 | +| userData | 用户特定数据 | + + +### OH_AVCProfile + + +``` +typedef enum OH_AVCProfileOH_AVCProfile +``` +**描述:** +AVC Profile枚举。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + + +### OH_MediaType + + +``` +typedef enum OH_MediaTypeOH_MediaType +``` +**描述:** +媒体类型。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + + +## 枚举类型说明 + + +### OH_AACProfile + + +``` +enum OH_AACProfile +``` +**描述:** +AAC Profile枚举。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + + +### OH_AVCodecBufferFlags + + +``` +enum OH_AVCodecBufferFlags +``` +**描述:** +枚举OH_AVCodec的Buffer标记的类别。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + + | 枚举值 | 描述 | +| -------- | -------- | +| AVCODEC_BUFFER_FLAGS_EOS | 表明该Buffer是End-of-Stream帧 | +| AVCODEC_BUFFER_FLAGS_SYNC_FRAME | 表明该Buffer内包含关键帧 | +| AVCODEC_BUFFER_FLAGS_INCOMPLETE_FRAME | 表明该Buffer内包含的数据仅仅为一帧的一部分 | +| AVCODEC_BUFFER_FLAGS_CODEC_DATA | 表明该Buffer包含Codec-Specific-Data | + + +### OH_AVCProfile + + +``` +enum OH_AVCProfile +``` +**描述:** +AVC Profile枚举。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + + +### OH_MediaType + + +``` +enum OH_MediaType +``` +**描述:** +媒体类型。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + + | 枚举值 | 描述 | +| -------- | -------- | +| MEDIA_TYPE_AUD | 音频轨道 | +| MEDIA_TYPE_VID | 视频轨道 | + + +## 变量说明 + + +### flags + + +``` +uint32_t OH_AVCodecBufferAttr::flags +``` +**描述:** +该Buffer具有的标记,也是多个[OH_AVCodecBufferFlags](#oh_avcodecbufferflags)的组合 + + +### offset + + +``` +int32_t OH_AVCodecBufferAttr::offset +``` +**描述:** +有效数据在该Buffer内的起始偏移量 + + +### OH_AVCODEC_MIMETYPE_AUDIO_AAC + + +``` +const char* OH_AVCODEC_MIMETYPE_AUDIO_AAC +``` +**描述:** +AAC音频编解码器的MIME类型。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + + +### OH_AVCODEC_MIMETYPE_VIDEO_AVC + + +``` +const char* OH_AVCODEC_MIMETYPE_VIDEO_AVC +``` +**描述:** +AVC视频编解码器的MIME类型。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + + +### OH_ED_KEY_EOS + + +``` +const char* OH_ED_KEY_EOS +``` +**描述:** +surface附属数据中结束流的字符描述符,值类型为bool + + +### OH_ED_KEY_TIME_STAMP + + +``` +const char* OH_ED_KEY_TIME_STAMP +``` +**描述:** +提供统一的surface Buffer附属数据的字符描述符。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + + +### OH_MD_KEY_AUD_CHANNEL_COUNT + + +``` +const char* OH_MD_KEY_AUD_CHANNEL_COUNT +``` +**描述:** +音频声道数的字符描述符,值类型为uint32_t + + +### OH_MD_KEY_AUD_SAMPLE_RATE + + +``` +const char* OH_MD_KEY_AUD_SAMPLE_RATE +``` +**描述:** +音频采样率的字符描述符,值类型为uint32_t + + +### OH_MD_KEY_AUDIO_SAMPLE_FORMAT + + +``` +const char* OH_MD_KEY_AUDIO_SAMPLE_FORMAT +``` +**描述:** +音频采样格式的字符描述符,值类型为uint32_t + + +### OH_MD_KEY_BITRATE + + +``` +const char* OH_MD_KEY_BITRATE +``` +**描述:** +比特率的字符描述符,值类型为uint32_t + + +### OH_MD_KEY_CODEC_MIME + + +``` +const char* OH_MD_KEY_CODEC_MIME +``` +**描述:** +mime类型的字符描述符,值类型为string + + +### OH_MD_KEY_DURATION + + +``` +const char* OH_MD_KEY_DURATION +``` +**描述:** +duration的字符描述符,值类型为int64_t + + +### OH_MD_KEY_FRAME_RATE + + +``` +const char* OH_MD_KEY_FRAME_RATE +``` +**描述:** +视频帧率的字符描述符,值类型为double + + +### OH_MD_KEY_HEIGHT + + +``` +const char* OH_MD_KEY_HEIGHT +``` +**描述:** +视频高度的字符描述符,值类型为uint32_t + + +### OH_MD_KEY_I_FRAME_INTERVAL + + +``` +const char* OH_MD_KEY_I_FRAME_INTERVAL +``` +**描述:** +I帧间隔时长的字符描述符,值类型为int32_t,单位是毫秒 + + +### OH_MD_KEY_MAX_INPUT_SIZE + + +``` +const char* OH_MD_KEY_MAX_INPUT_SIZE +``` +**描述:** +最大输入尺寸的字符描述符,值类型为uint32_t + + +### OH_MD_KEY_PIXEL_FORMAT + + +``` +const char* OH_MD_KEY_PIXEL_FORMAT +``` +**描述:** +视频像素格式的字符描述符,值类型为int32_t,具体见[OH_AVPixelFormat](_core.md#oh_avpixelformat) + + +### OH_MD_KEY_PROFILE + + +``` +const char* OH_MD_KEY_PROFILE +``` +**描述:** +音视频编码能力的字符描述符,值类型为int32_t,具体见[OH_AVCProfile](#oh_avcprofile)或[OH_AACProfile](#oh_aacprofile) + + +### OH_MD_KEY_ROTATION + + +``` +const char* OH_MD_KEY_ROTATION +``` +**描述:** +surface旋转角度的字符描述符,值类型为int32_t,限于{0, 90, 180, 270},默认值为0 + + +### OH_MD_KEY_TRACK_TYPE + + +``` +const char* OH_MD_KEY_TRACK_TYPE +``` +**描述:** +为媒体播放框架提供统一的字符描述符。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + + +### OH_MD_KEY_VIDEO_ENCODE_BITRATE_MODE + + +``` +const char* OH_MD_KEY_VIDEO_ENCODE_BITRATE_MODE +``` +**描述:** +视频编码比特率模式的字符描述符,值类型为int32_t,具体见[OH_VideoEncodeBitrateMode](_video_encoder.md#oh_videoencodebitratemode) + + +### OH_MD_KEY_WIDTH + + +``` +const char* OH_MD_KEY_WIDTH +``` +**描述:** +视频宽度的字符描述符,值类型为uint32_t + + +### pts + + +``` +int64_t OH_AVCodecBufferAttr::pts +``` +**描述:** +以微秒为单位表示的该Buffer的Presentation时间戳 + + +### size + + +``` +int32_t OH_AVCodecBufferAttr::size +``` +**描述:** +以字节为单位表示的该Buffer内所包含数据的大小 diff --git a/zh-cn/application-dev/reference/native-apis/_core.md b/zh-cn/application-dev/reference/native-apis/_core.md new file mode 100644 index 0000000000000000000000000000000000000000..93b290c3d4ffc206759d38e133b64b43657afa19 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_core.md @@ -0,0 +1,592 @@ +# Core + + +## 概述 + +Core模块提供用于播放框架的基础骨干能力,包含内存、错误码、格式载体等相关函数。 + +@syscap SystemCapability.Multimedia.Media.Core + +**Since:** +9 +**Version:** +1.0 + +## 汇总 + + +### 文件 + + | 名称 | 描述 | +| -------- | -------- | +| [native_averrors.h](native__averrors_8h.md) | 声明了媒体播放框架的错误码。 | +| [native_avformat.h](native__avformat_8h.md) | 声明了格式相关的函数和枚举。 | +| [native_avmemory.h](native__avmemory_8h.md) | 声明了AVMemory的函数接口。 | + + +### 类型定义 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_AVErrCode](#oh_averrcode) | typedef enum [OH_AVErrCode](#oh_averrcode)
音视频错误码。 | +| **OH_AVFormat** | typedef struct OH_AVFormat | +| [OH_AVPixelFormat](#oh_avpixelformat) | typedef enum [OH_AVPixelFormat](#oh_avpixelformat)
AVPixel 格式的枚举。 | +| **OH_AVMemory** | typedef struct OH_AVMemory | + + +### 枚举 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_AVErrCode](#oh_averrcode) {
**AV_ERR_OK** = 0, **AV_ERR_NO_MEMORY** = 1, **AV_ERR_OPERATE_NOT_PERMIT** = 2, **AV_ERR_INVALID_VAL** = 3, **AV_ERR_IO** = 4, **AV_ERR_TIMEOUT** = 5, **AV_ERR_UNKNOWN** = 6, **AV_ERR_SERVICE_DIED** = 7, **AV_ERR_INVALID_STATE** = 8, **AV_ERR_UNSUPPORT** = 9, **AV_ERR_EXTEND_START** = 100
} | 音视频错误码。 | +| [OH_AVPixelFormat](#oh_avpixelformat) {
**AV_PIXEL_FORMAT_YUVI420** = 1, **AV_PIXEL_FORMAT_NV12** = 2, **AV_PIXEL_FORMAT_NV21** = 3, **AV_PIXEL_FORMAT_SURFACE_FORMAT** = 4, **AV_PIXEL_FORMAT_RGBA** = 5
} | AVPixel 格式的枚举。 | + + +### 函数 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_AVFormat_Create](#oh_avformat_create) (void) | struct OH_AVFormat \*
创建一个OH_AVFormat句柄指针,用以读写数据。 | +| [OH_AVFormat_Destroy](#oh_avformat_destroy) (struct OH_AVFormat \*format) | void
销毁指定OH_AVFormat句柄资源。 | +| [OH_AVFormat_Copy](#oh_avformat_copy) (struct OH_AVFormat \*to, struct OH_AVFormat \*from) | bool
拷贝OH_AVFormat句柄资源. | +| [OH_AVFormat_SetIntValue](#oh_avformat_setintvalue) (struct OH_AVFormat \*format, const char \*key, int32_t value) | bool
向OH_AVFormat写入Int数据. | +| [OH_AVFormat_SetLongValue](#oh_avformat_setlongvalue) (struct OH_AVFormat \*format, const char \*key, int64_t value) | bool
向OH_AVFormat写入Long数据。 | +| [OH_AVFormat_SetFloatValue](#oh_avformat_setfloatvalue) (struct OH_AVFormat \*format, const char \*key, float value) | bool
向OH_AVFormat写入Float数据。 | +| [OH_AVFormat_SetDoubleValue](#oh_avformat_setdoublevalue) (struct OH_AVFormat \*format, const char \*key, double value) | bool
向OH_AVFormat写入Double数据。 | +| [OH_AVFormat_SetStringValue](#oh_avformat_setstringvalue) (struct OH_AVFormat \*format, const char \*key, const char \*value) | bool
向OH_AVFormat写入String数据。 | +| [OH_AVFormat_SetBuffer](#oh_avformat_setbuffer) (struct OH_AVFormat \*format, const char \*key, const uint8_t \*addr, size_t size) | bool
向OH_AVFormat写入一块指定长度的数据。 | +| [OH_AVFormat_GetIntValue](#oh_avformat_getintvalue) (struct OH_AVFormat \*format, const char \*key, int32_t \*out) | bool
从OH_AVFormat读取Int数据。 | +| [OH_AVFormat_GetLongValue](#oh_avformat_getlongvalue) (struct OH_AVFormat \*format, const char \*key, int64_t \*out) | bool
从OH_AVFormat读取Long数据。 | +| [OH_AVFormat_GetFloatValue](#oh_avformat_getfloatvalue) (struct OH_AVFormat \*format, const char \*key, float \*out) | bool
从OH_AVFormat读取Float数据。 | +| [OH_AVFormat_GetDoubleValue](#oh_avformat_getdoublevalue) (struct OH_AVFormat \*format, const char \*key, double \*out) | bool
从OH_AVFormat读取Double数据。 | +| [OH_AVFormat_GetStringValue](#oh_avformat_getstringvalue) (struct OH_AVFormat \*format, const char \*key, const char \*\*out) | bool
从OH_AVFormat读取Double数据。 | +| [OH_AVFormat_GetBuffer](#oh_avformat_getbuffer) (struct OH_AVFormat \*format, const char \*key, uint8_t \*\*addr, size_t \*size) | bool
从OH_AVFormat读取一块指定长度的数据。 | +| [OH_AVFormat_DumpInfo](#oh_avformat_dumpinfo) (struct OH_AVFormat \*format) | const char \*
以字符串的形式输出OH_AVFormat所包含的信息。 | +| [OH_AVMemory_GetAddr](#oh_avmemory_getaddr) (struct OH_AVMemory \*mem) | uint8_t \*
获取入参的内存虚拟地址。 | +| [OH_AVMemory_GetSize](#oh_avmemory_getsize) (struct OH_AVMemory \*mem) | int32_t
获取入参的内存长度。 | + + +## 类型定义说明 + + +### OH_AVErrCode + + +``` +typedef enum OH_AVErrCodeOH_AVErrCode +``` +**描述:** +音视频错误码。 + +@syscap SystemCapability.Multimedia.Media.Core + + +### OH_AVPixelFormat + + +``` +typedef enum OH_AVPixelFormatOH_AVPixelFormat +``` +**描述:** +AVPixel 格式的枚举。 + +@syscap SystemCapability.Multimedia.Media.Core + + +## 枚举类型说明 + + +### OH_AVErrCode + + +``` +enum OH_AVErrCode +``` +**描述:** +音视频错误码。 + +@syscap SystemCapability.Multimedia.Media.Core + + | 枚举值 | 描述 | +| -------- | -------- | +| AV_ERR_OK | 操作成功 | +| AV_ERR_NO_MEMORY | 无内存 | +| AV_ERR_OPERATE_NOT_PERMIT | 无效参数 | +| AV_ERR_INVALID_VAL | 无效值 | +| AV_ERR_IO | IO 错误 | +| AV_ERR_TIMEOUT | 超时错误 | +| AV_ERR_UNKNOWN | 未知错误 | +| AV_ERR_SERVICE_DIED | 媒体服务死亡 | +| AV_ERR_INVALID_STATE | 当前状态不支持此操作 | +| AV_ERR_UNSUPPORT | 未支持的接口 | +| AV_ERR_EXTEND_START | 扩展错误码初始值 | + + +### OH_AVPixelFormat + + +``` +enum OH_AVPixelFormat +``` +**描述:** +AVPixel 格式的枚举。 + +@syscap SystemCapability.Multimedia.Media.Core + + | 枚举值 | 描述 | +| -------- | -------- | +| AV_PIXEL_FORMAT_YUVI420 | yuv 420 planar | +| AV_PIXEL_FORMAT_NV12 | NV12. yuv 420 semiplanar | +| AV_PIXEL_FORMAT_NV21 | NV21. yvu 420 semiplanar | +| AV_PIXEL_FORMAT_SURFACE_FORMAT | surface格式 | +| AV_PIXEL_FORMAT_RGBA | RGBA8888 | + + +## 函数说明 + + +### OH_AVFormat_Copy() + + +``` +bool OH_AVFormat_Copy (struct OH_AVFormat * to, struct OH_AVFormat * from ) +``` +**描述:** +拷贝OH_AVFormat句柄资源. + +@syscap SystemCapability.Multimedia.Media.Core + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| to | 接收数据的OH_AVFormat句柄指针 | +| from | 被拷贝数据的OH_AVFormat句柄指针 | + +**返回:** + +返回值为TRUE表示成功 + +返回值为FALSE表示失败 + + +### OH_AVFormat_Create() + + +``` +struct OH_AVFormat* OH_AVFormat_Create (void ) +``` +**描述:** +创建一个OH_AVFormat句柄指针,用以读写数据。 + +@syscap SystemCapability.Multimedia.Media.Core + +**返回:** + +返回OH_AVFormat实例的指针 + + +### OH_AVFormat_Destroy() + + +``` +void OH_AVFormat_Destroy (struct OH_AVFormat * format) +``` +**描述:** +销毁指定OH_AVFormat句柄资源。 + +@syscap SystemCapability.Multimedia.Media.Core + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| format | 指向OH_AVFormat实例的指针 | + +**返回:** + +void + + +### OH_AVFormat_DumpInfo() + + +``` +const char* OH_AVFormat_DumpInfo (struct OH_AVFormat * format) +``` +**描述:** +以字符串的形式输出OH_AVFormat所包含的信息。 + +@syscap SystemCapability.Multimedia.Media.Core + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| format | 指向OH_AVFormat实例的指针 | + +**返回:** + +返回由键值和数据组成的字符串指针 + + +### OH_AVFormat_GetBuffer() + + +``` +bool OH_AVFormat_GetBuffer (struct OH_AVFormat * format, const char * key, uint8_t ** addr, size_t * size ) +``` +**描述:** +从OH_AVFormat读取一块指定长度的数据。 + +@syscap SystemCapability.Multimedia.Media.Core + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| format | 指向OH_AVFormat实例的指针 | +| key | 读写数据的键值 | +| addr | 生命周期是format持有,伴随format销毁,如果调用者需要长期持有,必须进行内存拷贝 | +| size | 读写数据的长度 | + +**返回:** + +返回值为TRUE表示成功 + +返回值为FALSE表示失败 + + +### OH_AVFormat_GetDoubleValue() + + +``` +bool OH_AVFormat_GetDoubleValue (struct OH_AVFormat * format, const char * key, double * out ) +``` +**描述:** +从OH_AVFormat读取Double数据。 + +@syscap SystemCapability.Multimedia.Media.Core + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| format | 指向OH_AVFormat实例的指针 | +| key | 读取数据的键值 | +| out | 读取的数据 | + +**返回:** + +返回值为TRUE表示成功 + +返回值为FALSE表示失败 + + +### OH_AVFormat_GetFloatValue() + + +``` +bool OH_AVFormat_GetFloatValue (struct OH_AVFormat * format, const char * key, float * out ) +``` +**描述:** +从OH_AVFormat读取Float数据。 + +@syscap SystemCapability.Multimedia.Media.Core + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| format | 指向OH_AVFormat实例的指针 | +| key | 读取数据的键值 | +| out | 读取的数据 | + +**返回:** + +返回值为TRUE表示成功 + +返回值为FALSE表示失败 + + +### OH_AVFormat_GetIntValue() + + +``` +bool OH_AVFormat_GetIntValue (struct OH_AVFormat * format, const char * key, int32_t * out ) +``` +**描述:** +从OH_AVFormat读取Int数据。 + +@syscap SystemCapability.Multimedia.Media.Core + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| format | 指向OH_AVFormat实例的指针 | +| key | 读取数据的键值 | +| out | 读取的数据 | + +**返回:** + +返回值为TRUE表示成功 + +返回值为FALSE表示失败 + + +### OH_AVFormat_GetLongValue() + + +``` +bool OH_AVFormat_GetLongValue (struct OH_AVFormat * format, const char * key, int64_t * out ) +``` +**描述:** +从OH_AVFormat读取Long数据。 + +@syscap SystemCapability.Multimedia.Media.Core + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| format | 指向OH_AVFormat实例的指针 | +| key | 读取数据的键值 | +| out | 读取的数据 | + +**返回:** + +返回值为TRUE表示成功 + +返回值为FALSE表示失败 + + +### OH_AVFormat_GetStringValue() + + +``` +bool OH_AVFormat_GetStringValue (struct OH_AVFormat * format, const char * key, const char ** out ) +``` +**描述:** +从OH_AVFormat读取Double数据。 + +@syscap SystemCapability.Multimedia.Media.Core + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| format | 指向OH_AVFormat实例的指针 | +| key | 读取数据的键值 | +| out | 读取的字符串指针,指向的数据生命周期伴随GetString更新,伴随format销毁,如果调用者需要长期持有,必须进行内存拷贝 | + +**返回:** + +返回值为TRUE表示成功 + +返回值为FALSE表示失败 + + +### OH_AVFormat_SetBuffer() + + +``` +bool OH_AVFormat_SetBuffer (struct OH_AVFormat * format, const char * key, const uint8_t * addr, size_t size ) +``` +**描述:** +向OH_AVFormat写入一块指定长度的数据。 + +@syscap SystemCapability.Multimedia.Media.Core + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| format | 指向OH_AVFormat实例的指针 | +| key | 写入数据的键值 | +| addr | 写入的数据地址 | +| size | 写入的数据长度 | + +**返回:** + +返回值为TRUE表示成功 + +返回值为FALSE表示失败 + + +### OH_AVFormat_SetDoubleValue() + + +``` +bool OH_AVFormat_SetDoubleValue (struct OH_AVFormat * format, const char * key, double value ) +``` +**描述:** +向OH_AVFormat写入Double数据。 + +@syscap SystemCapability.Multimedia.Media.Core + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| format | 指向OH_AVFormat实例的指针 | +| key | 写入数据的键值 | +| value | 写入的数据 | + +**返回:** + +返回值为TRUE表示成功 + +返回值为FALSE表示失败 + + +### OH_AVFormat_SetFloatValue() + + +``` +bool OH_AVFormat_SetFloatValue (struct OH_AVFormat * format, const char * key, float value ) +``` +**描述:** +向OH_AVFormat写入Float数据。 + +@syscap SystemCapability.Multimedia.Media.Core + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| format | 指向OH_AVFormat实例的指针 | +| key | 写入数据的键值 | +| value | 写入的数据 | + +**返回:** + +返回值为TRUE表示成功 + +返回值为FALSE表示失败 + + +### OH_AVFormat_SetIntValue() + + +``` +bool OH_AVFormat_SetIntValue (struct OH_AVFormat * format, const char * key, int32_t value ) +``` +**描述:** +向OH_AVFormat写入Int数据. + +@syscap SystemCapability.Multimedia.Media.Core + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| format | 指向OH_AVFormat实例的指针 | +| key | 写入数据的键值 | +| value | 写入的数据 | + +**返回:** + +返回值为TRUE表示成功 + +返回值为FALSE表示失败 + + +### OH_AVFormat_SetLongValue() + + +``` +bool OH_AVFormat_SetLongValue (struct OH_AVFormat * format, const char * key, int64_t value ) +``` +**描述:** +向OH_AVFormat写入Long数据。 + +@syscap SystemCapability.Multimedia.Media.Core + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| format | 指向OH_AVFormat实例的指针 | +| key | 写入数据的键值 | +| value | 写入的数据 | + +**返回:** + +返回值为TRUE表示成功 + +返回值为FALSE表示失败 + + +### OH_AVFormat_SetStringValue() + + +``` +bool OH_AVFormat_SetStringValue (struct OH_AVFormat * format, const char * key, const char * value ) +``` +**描述:** +向OH_AVFormat写入String数据。 + +@syscap SystemCapability.Multimedia.Media.Core + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| format | 指向OH_AVFormat实例的指针 | +| key | 写入数据的键值 | +| value | 写入的数据 | + +**返回:** + +返回值为TRUE表示成功 + +返回值为FALSE表示失败 + + +### OH_AVMemory_GetAddr() + + +``` +uint8_t* OH_AVMemory_GetAddr (struct OH_AVMemory * mem) +``` +**描述:** +获取入参的内存虚拟地址。 + +@syscap SystemCapability.Multimedia.Media.Core + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| mem | 指向OH_AVMemory实例的指针 | + +**返回:** + +如果内存有效,返回内存的虚拟地址 + +如果内存无效,返回nullptr + + +### OH_AVMemory_GetSize() + + +``` +int32_t OH_AVMemory_GetSize (struct OH_AVMemory * mem) +``` +**描述:** +获取入参的内存长度。 + +@syscap SystemCapability.Multimedia.Media.Core + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| mem | 指向OH_AVMemory实例的指针 | + +**返回:** + +如果内存有效,返回内存长度 + +如果内存无效,返回-1 diff --git a/zh-cn/application-dev/reference/native-apis/_h_o_s_1_1_a_v_session_1_1_a_v_controller_callback.md b/zh-cn/application-dev/reference/native-apis/_h_o_s_1_1_a_v_session_1_1_a_v_controller_callback.md new file mode 100644 index 0000000000000000000000000000000000000000..ef94d783a274a4d2e471008f5104a9de74c0629f --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_h_o_s_1_1_a_v_session_1_1_a_v_controller_callback.md @@ -0,0 +1,138 @@ +# OHOS::AVSession::AVControllerCallback + + +## 概述 + +定义控制器相关回调操作的类的实现。 + +**Since:** +9 +**Version:** +1.0 + +## 汇总 + + +### Public 成员函数 + + | 名称 | 描述 | +| -------- | -------- | +| [OnSessionDestroy](#onsessiondestroy) ()=0 | AVSession会话销毁的抽象的回调方法。  | +| [OnPlaybackStateChange](#onplaybackstatechange) (const [AVPlaybackState](_o_h_o_s_1_1_a_v_session_1_1_a_v_playback_state.md) &state)=0 | 音视频的播放状态发生改变的抽象的回调方法。  | +| [OnMetaDataChange](#onmetadatachange) (const [AVMetaData](_o_h_o_s_1_1_a_v_session_1_1_a_v_meta_data.md) &data)=0 | 会话元数据内容发生变化的抽象的回调方法。  | +| [OnActiveStateChange](#onactivestatechange) (bool isActive)=0 | 当前会话激活状态发生改变的抽象的回调方法。  | +| [OnValidCommandChange](#onvalidcommandchange) (const std::vector< int32_t > &cmds)=0 | 控制命令的有效性发生变化的抽象的回调方法。  | +| [OnOutputDeviceChange](#onoutputdevicechange) (const [OutputDeviceInfo](_o_h_o_s_1_1_a_v_session_1_1_output_device_info.md) &outputDeviceInfo)=0 | 注册会话输出设备更改。  | +| [~AVControllerCallback](#avcontrollercallback) ()=default | AVControllerCallback的默认的析构函数。  | + + +## 构造及析构函数说明 + + +### ~AVControllerCallback() + + +``` +virtual OHOS::AVSession::AVControllerCallback::~AVControllerCallback () +``` +**描述:** +AVControllerCallback的默认的析构函数。 + + +## 成员函数说明 + + +### OnActiveStateChange() + + +``` +virtual void OHOS::AVSession::AVControllerCallback::OnActiveStateChange (bool isActive) +``` +**描述:** +当前会话激活状态发生改变的抽象的回调方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| isActive | 表示是否激活。  | + + +### OnMetaDataChange() + + +``` +virtual void OHOS::AVSession::AVControllerCallback::OnMetaDataChange (const AVMetaData & data) +``` +**描述:** +会话元数据内容发生变化的抽象的回调方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| data | 会话元数据内容,类型为[AVMetaData](_o_h_o_s_1_1_a_v_session_1_1_a_v_meta_data.md)。  | + +**参见:** + +[AVMetaData](_o_h_o_s_1_1_a_v_session_1_1_a_v_meta_data.md) + + +### OnOutputDeviceChange() + + +``` +virtual void OHOS::AVSession::AVControllerCallback::OnOutputDeviceChange (const OutputDeviceInfo & outputDeviceInfo) +``` +**描述:** +注册会话输出设备更改。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| outputDeviceInfo | 输出设备信息 [OutputDeviceInfo](_o_h_o_s_1_1_a_v_session_1_1_output_device_info.md)。  | + + +### OnPlaybackStateChange() + + +``` +virtual void OHOS::AVSession::AVControllerCallback::OnPlaybackStateChange (const AVPlaybackState & state) +``` +**描述:** +音视频的播放状态发生改变的抽象的回调方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| state | 音视频的播放状态的枚举值,类型为[AVPlaybackState](_o_h_o_s_1_1_a_v_session_1_1_a_v_playback_state.md)。  | + + +### OnSessionDestroy() + + +``` +virtual void OHOS::AVSession::AVControllerCallback::OnSessionDestroy () +``` +**描述:** +AVSession会话销毁的抽象的回调方法。 + + +### OnValidCommandChange() + + +``` +virtual void OHOS::AVSession::AVControllerCallback::OnValidCommandChange (const std::vector< int32_t > & cmds) +``` +**描述:** +控制命令的有效性发生变化的抽象的回调方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| cmds,媒体有效的指令列表,范围为{ | | + + \ No newline at end of file diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___a_v_codec_async_callback.md b/zh-cn/application-dev/reference/native-apis/_o_h___a_v_codec_async_callback.md new file mode 100644 index 0000000000000000000000000000000000000000..40ee60a6f27a2b5c43017bb7144013fa58a370d2 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_o_h___a_v_codec_async_callback.md @@ -0,0 +1,29 @@ +# OH_AVCodecAsyncCallback + + +## 概述 + +AVCodec所有的异步回调函数指针集合。注册一个该结构体实例给OH_AVCodec实例,并处理通过该回调报告 的信息,以确保AVCodec正常运转。 + +@syscap SystemCapability.Multimedia.Media.CodecBase +参数 +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[CodecBase](_codec_base.md) + + +## 汇总 + + +### 成员变量 + + | 名称 | 描述 | +| -------- | -------- | +| **onError** | [OH_AVCodecOnError](_codec_base.md#oh_avcodeconerror) | +| **onStreamChanged** | [OH_AVCodecOnStreamChanged](_codec_base.md#oh_avcodeconstreamchanged) | +| **onNeedInputData** | [OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) | +| **onNeedOutputData** | [OH_AVCodecOnNewOutputData](_codec_base.md#oh_avcodeconnewoutputdata) | diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___a_v_codec_buffer_attr.md b/zh-cn/application-dev/reference/native-apis/_o_h___a_v_codec_buffer_attr.md new file mode 100644 index 0000000000000000000000000000000000000000..967a2f545aa481f69218c07f84b53411b3e97eac --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_o_h___a_v_codec_buffer_attr.md @@ -0,0 +1,29 @@ +# OH_AVCodecBufferAttr + + +## 概述 + +定义OH_AVCodec的Buffer描述信息。 + +@syscap SystemCapability.Multimedia.Media.CodecBase + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[CodecBase](_codec_base.md) + + +## 汇总 + + +### 成员变量 + + | 名称 | 描述 | +| -------- | -------- | +| [pts](_codec_base.md#pts) | int64_t | +| [size](_codec_base.md#size) | int32_t | +| [offset](_codec_base.md#offset) | int32_t | +| [flags](_codec_base.md#flags) | uint32_t | diff --git a/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_control_command.md b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_control_command.md new file mode 100644 index 0000000000000000000000000000000000000000..b6af07bf0fac8b7b4a6f0fabae9205b57c8ebef5 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_control_command.md @@ -0,0 +1,400 @@ +# OHOS::AVSession::AVControlCommand + + +## 概述 + +用于描述音视频播控命令工具类,播控命令的封装对象,支持设置和获取控制命令。 + + +## 汇总 + + +### Public 类型 + + | 名称 | 描述 | +| -------- | -------- | +| {
**SESSION_CMD_INVALID** = -1, **SESSION_CMD_PLAY** = 0, **SESSION_CMD_PAUSE** = 1, **SESSION_CMD_STOP** = 2, **SESSION_CMD_PLAY_NEXT** = 3, **SESSION_CMD_PLAY_PREVIOUS** = 4, **SESSION_CMD_FAST_FORWARD** = 5, **SESSION_CMD_REWIND** = 6, **SESSION_CMD_SEEK** = 7, **SESSION_CMD_SET_SPEED** = 8, **SESSION_CMD_SET_LOOP_MODE** = 9, **SESSION_CMD_TOGGLE_FAVORITE** = 10, **SESSION_CMD_MAX** = 11
} | 操作指令。 | + + +### Public 成员函数 + + | 名称 | 描述 | +| -------- | -------- | +| [Marshalling](#marshalling) (Parcel &parcel) const override | IPC通信数据序列化。 | + + +### 静态 Public 成员函数 + + | 名称 | 描述 | +| -------- | -------- | +| [Unmarshalling](#unmarshalling) (Parcel &data) | IPC通信数据反序列化。 | +| [localCapability](#localcapability) | 命令数组,用于分布式业务,判断是否支持某个命令。 | +| [IsValid](#isvalid) () const | 判断当前指令是否在有效范围内。 | +| [SetCommand](#setcommand) (int32_t cmd) | 设置操作指令。 | +| [GetCommand](#getcommand) () const | 获取操作指令。 | +| [SetSpeed](#setspeed) (double speed) | 设置媒体播放倍数。 | +| [GetSpeed](#getspeed) (double &speed) const | 获取媒体播放倍数 | +| [SetSeekTime](#setseektime) (int64_t time) | 设置媒体跳播时间。 | +| [GetSeekTime](#getseektime) (int64_t &time) const | 获取媒体跳播时间。 | +| [SetLoopMode](#setloopmode) (int32_t mode) | 设置媒体循环模式。 | +| [GetLoopMode](#getloopmode) (int32_t &mode) const | 获取媒体循环模式。 | +| [SetAssetId](#setassetid) (const std::string &assetId) | 设置媒体id。 | +| [GetAssetId](#getassetid) (std::string &assetId) const | 获取媒体id。 | + + +## 成员枚举类型说明 + + +### anonymous enum + + +``` +anonymous enum +``` +**描述:** +操作指令。 + + | 枚举值 | 描述 | +| -------- | -------- | +| SESSION_CMD_INVALID | 无效指令,内部用于判断指令是否有效 | +| SESSION_CMD_PLAY | 播放 | +| SESSION_CMD_PAUSE | 暂停 | +| SESSION_CMD_STOP | 停止 | +| SESSION_CMD_PLAY_NEXT | 播放下一首 | +| SESSION_CMD_PLAY_PREVIOUS | 播放上一首 | +| SESSION_CMD_FAST_FORWARD | 快进 | +| SESSION_CMD_REWIND | 快退 | +| SESSION_CMD_SEEK | 跳播 | +| SESSION_CMD_SET_SPEED | 设置播放倍数 | +| SESSION_CMD_SET_LOOP_MODE | 设置循环模式 | +| SESSION_CMD_TOGGLE_FAVORITE | 收藏 | +| SESSION_CMD_MAX | 无效指令,内部用于判断指令是否有效 | + + +## 成员函数说明 + + +### GetAssetId() + + +``` +int32_t OHOS::AVSession::AVControlCommand::GetAssetId (std::string & assetId) const +``` +**描述:** +获取媒体id。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| assetId | 保存媒体id。 | + +**参见:** + +[SetAssetId](#setassetid) + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### GetCommand() + + +``` +int32_t OHOS::AVSession::AVControlCommand::GetCommand () const +``` +**描述:** +获取操作指令。 + +**返回:** + +返回操作指令,范围在**SESSION_CMD_INVALID**到**SESSION_CMD_MAX**之间。 + +**参见:** + +[SetCommand](#setcommand) + + +### GetLoopMode() + + +``` +int32_t OHOS::AVSession::AVControlCommand::GetLoopMode (int32_t & mode) const +``` +**描述:** +获取媒体循环模式。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| mode | 保存媒体循环模式。 取值在[AVPlaybackState](_o_h_o_s_1_1_a_v_session_1_1_a_v_playback_state.md)的**LOOP_MODE_SEQUENCE**到**LOOP_MODE_SHUFFLE**之间。 | + +**参见:** + +[SetLoopMode](#setloopmode) + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### GetSeekTime() + + +``` +int32_t OHOS::AVSession::AVControlCommand::GetSeekTime (int64_t & time) const +``` +**描述:** +获取媒体跳播时间。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| time | 媒体资源的位置,从媒体资源开头开始计算,单位为ms。取值需大于等于0。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[SetSeekTime](#setseektime) + + +### GetSpeed() + + +``` +int32_t OHOS::AVSession::AVControlCommand::GetSpeed (double & speed) const +``` +**描述:** +获取媒体播放倍数 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| speed | 媒体播放倍数,返回值。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[SetSpeed](#setspeed) + + +### IsValid() + + +``` +bool OHOS::AVSession::AVControlCommand::IsValid () const +``` +**描述:** +判断当前指令是否在有效范围内。 + +**返回:** + +如果cmd_在有效范围内,范围在**SESSION_CMD_INVALID**到**SESSION_CMD_MAX**之间, 返回true;否则,返回false。 + + +### Marshalling() + + +``` +bool OHOS::AVSession::AVControlCommand::Marshalling (Parcel & parcel) const +``` +**描述:** +IPC通信数据序列化。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| parcel | 保存序列化值的对象**Parcel**。 | + +**返回:** + +成功返回true;否则,返回false。 + +**参见:** + +[Unmarshalling](#unmarshalling) + + +### SetAssetId() + + +``` +int32_t OHOS::AVSession::AVControlCommand::SetAssetId (const std::string & assetId) +``` +**描述:** +设置媒体id。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| assetId | 媒体id,不可为空。 | + +**参见:** + +[GetAssetId](#getassetid) + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### SetCommand() + + +``` +int32_t OHOS::AVSession::AVControlCommand::SetCommand (int32_t cmd) +``` +**描述:** +设置操作指令。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| cmd | 操作指令,范围在**SESSION_CMD_INVALID**到**SESSION_CMD_MAX**之间。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[GetCommand](#getcommand) + + +### SetLoopMode() + + +``` +int32_t OHOS::AVSession::AVControlCommand::SetLoopMode (int32_t mode) +``` +**描述:** +设置媒体循环模式。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| mode | 媒体循环模式, 取值在[AVPlaybackState](_o_h_o_s_1_1_a_v_session_1_1_a_v_playback_state.md)的**LOOP_MODE_SEQUENCE**到**LOOP_MODE_SHUFFLE**之间。 | + +**参见:** + +[GetLoopMode](#getloopmode) + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### SetSeekTime() + + +``` +int32_t OHOS::AVSession::AVControlCommand::SetSeekTime (int64_t time) +``` +**描述:** +设置媒体跳播时间。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| time | 媒体资源的位置,从媒体资源开头开始计算,单位为ms。取值需大于等于0。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[GetSeekTime](#getseektime) + + +### SetSpeed() + + +``` +int32_t OHOS::AVSession::AVControlCommand::SetSpeed (double speed) +``` +**描述:** +设置媒体播放倍数。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| speed | 媒体播放倍数,需大于0。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[GetSpeed](#getspeed) + + +### Unmarshalling() + + +``` +static AVControlCommand* OHOS::AVSession::AVControlCommand::Unmarshalling (Parcel & data) +``` +**描述:** +IPC通信数据反序列化。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| data | 序列化对象**Parcel**。 | + +**返回:** + +返回AVControlCommand的函数指针。 + +**参见:** + +[Marshalling](#marshalling) + + +## 结构体成员变量说明 + + +### localCapability + + +``` +const std::vector OHOS::AVSession::AVControlCommand::localCapability +``` +**Value:** + +``` +{ + SESSION_CMD_PLAY, + SESSION_CMD_PAUSE, + SESSION_CMD_STOP, + SESSION_CMD_PLAY_NEXT, + SESSION_CMD_PLAY_PREVIOUS, + SESSION_CMD_FAST_FORWARD, + SESSION_CMD_REWIND, + SESSION_CMD_SEEK, + SESSION_CMD_SET_SPEED, + SESSION_CMD_SET_LOOP_MODE, + SESSION_CMD_TOGGLE_FAVORITE, + } +``` +**描述:** +命令数组,用于分布式业务,判断是否支持某个命令。 diff --git a/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_meta_data.md b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_meta_data.md new file mode 100644 index 0000000000000000000000000000000000000000..2300db5d2dbd054a9a1ae2386c1f509c1447ff07 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_meta_data.md @@ -0,0 +1,926 @@ +# OHOS::AVSession::AVMetaData + + +## 概述 + +会话元数据类,提供获取metadata进程间传递的序列化和反序列话及数据拷贝的接口方法。 + + +## 汇总 + + +### Public 类型 + + | 名称 | 描述 | +| -------- | -------- | +| {
**META_KEY_ASSET_ID** = 0, **META_KEY_TITLE** = 1, **META_KEY_ARTIST** = 2, **META_KEY_AUTHOR** = 3, **META_KEY_ALBUM** = 4, **META_KEY_WRITER** = 5, **META_KEY_COMPOSER** = 6, **META_KEY_DURATION** = 7, **META_KEY_MEDIA_IMAGE** = 8, **META_KEY_MEDIA_IMAGE_URI** = 9, **META_KEY_PUBLISH_DATE** = 10, **META_KEY_SUBTITLE** = 11, **META_KEY_DESCRIPTION** = 12, **META_KEY_LYRIC** = 13, **META_KEY_PREVIOUS_ASSET_ID** = 14, **META_KEY_NEXT_ASSET_ID** = 15, **META_KEY_MAX** = 16
} | 会话元数据具体枚举项。 | +| [MetaMaskType](#metamasktype) = std::bitset< META_KEY_MAX > | 引入掩码标记需要拷贝的会话元数据。 | + + +### Public 成员函数 + + | 名称 | 描述 | +| -------- | -------- | +| [AVMetaData](#avmetadata) ()=default | 会话元数据默认构造函数。 | +| [~AVMetaData](#avmetadata) () override | 会话元数据默认析构函数。 | +| [Marshalling](#marshalling) (Parcel &data) const override | 实现会话元数据进程间传递的序列化。 | +| [SetAssetId](#setassetid) (const std::string &assetId) | 设置曲目ID。 | +| [GetAssetId](#getassetid) () const | 获取曲目ID。 | +| [SetTitle](#settitle) (const std::string &title) | 设置标题。 | +| [GetTitle](#gettitle) () const | 获取标题。 | +| [SetArtist](#setartist) (const std::string &artist) | 设置艺术家名称。 | +| [GetArtist](#getartist) () const | 获取艺术家名称。 | +| [SetAuthor](#setauthor) (const std::string &author) | 设置制作人名称。 | +| [GetAuthor](#getauthor) () const | 获取制作人名称。 | +| [SetAlbum](#setalbum) (const std::string &album) | 设置专辑名称。 | +| [GetAlbum](#getalbum) () const | 获取专辑名称。 | +| [SetWriter](#setwriter) (const std::string &writer) | 设置作词名称。 | +| [GetWriter](#getwriter) () const | 获取作词名称。 | +| [SetComposer](#setcomposer) (const std::string &composer) | 设置作曲名称。 | +| [GetComposer](#getcomposer) () const | 获取作曲名称。 | +| [SetDuration](#setduration) (int64_t duration) | 设置媒体时长。 | +| [GetDuration](#getduration) () const | 获取媒体时长。 | +| [SetMediaImage](#setmediaimage) (const std::shared_ptr< [AVSessionPixelMap](_o_h_o_s_1_1_a_v_session_1_1_a_v_session_pixel_map.md) > &mediaImage) | 设置媒体图片。 | +| [GetMediaImage](#getmediaimage) () const | 获取媒体图片。 | +| [SetMediaImageUri](#setmediaimageuri) (const std::string &mediaImageUri) | 设置媒体图片URI。 | +| [GetMediaImageUri](#getmediaimageuri) () const | 获取媒体图片URI。 | +| [SetPublishDate](#setpublishdate) (double date) | 设置曲目发布日期,时间戳,单位为ms。 | +| [GetPublishDate](#getpublishdate) () const | 获取曲目发布日期,时间戳,单位为ms。 | +| [SetSubTitle](#setsubtitle) (const std::string &subTitle) | 设置子标题。 | +| [GetSubTitle](#getsubtitle) () const | 获取子标题。 | +| [SetDescription](#setdescription) (const std::string &description) | 设置曲目描述。 | +| [GetDescription](#getdescription) () const | 获取曲目描述。 | +| [SetLyric](#setlyric) (const std::string &lyric) | 设置歌词。 | +| [GetLyric](#getlyric) () const | 获取歌词。 | +| [SetPreviousAssetId](#setpreviousassetid) (const std::string &assetId) | 设置上一曲曲目ID。 | +| [GetPreviousAssetId](#getpreviousassetid) () const | 获取上一曲曲目ID。 | +| [SetNextAssetId](#setnextassetid) (const std::string &assetId) | 设置下一曲曲目ID。 | +| [GetNextAssetId](#getnextassetid) () const | 获取下一曲曲目ID。 | +| [Reset](#reset) () | 重置所有会话元数据项。 | +| [GetMetaMask](#getmetamask) () const | 获取掩码。 | +| [CopyToByMask](#copytobymask) ([MetaMaskType](#metamasktype) &mask, AVMetaData &metaOut) const | 根据metadata掩码,将metadata项复制到metaOut。 | +| [CopyFrom](#copyfrom) (const AVMetaData &metaIn) | 根据metaIn元掩码的设置位从metaIn复制metadata项。 | +| [IsValid](#isvalid) () const | 会话元数据有效性判断。 | + + +### 静态 Public 成员函数 + + | 名称 | 描述 | +| -------- | -------- | +| [Unmarshalling](#unmarshalling) (Parcel &data) | 实现会话元数据进程间传递的反序列化。 | + + +### 静态 Public 属性 + + | 名称 | 描述 | +| -------- | -------- | +| [DURATION_ALWAYS_PLAY](#duration_always_play) = -1 | 持续时间全局变量宏定义。 | +| [localCapability](#localcapability) | 会话元数据数组,用于分布式业务,设置会话属性。 | + + +## 成员类型定义说明 + + +### MetaMaskType + + +``` +using OHOS::AVSession::AVMetaData::MetaMaskType = std::bitset +``` +**描述:** +引入掩码标记需要拷贝的会话元数据。 + + +## 成员枚举类型说明 + + +### anonymous enum + + +``` +anonymous enum +``` +**描述:** +会话元数据具体枚举项。 + + | 枚举值 | 描述 | +| -------- | -------- | +| META_KEY_ASSET_ID | 曲目ID | +| META_KEY_TITLE | 标题 | +| META_KEY_ARTIST | 艺术家 | +| META_KEY_AUTHOR | 制作人 | +| META_KEY_ALBUM | 专辑 | +| META_KEY_WRITER | 作词 | +| META_KEY_COMPOSER | 作曲 | +| META_KEY_DURATION | 媒体时长 | +| META_KEY_MEDIA_IMAGE | 媒体影像 | +| META_KEY_MEDIA_IMAGE_URI | 媒体影像路径 | +| META_KEY_PUBLISH_DATE | 曲目发布日期 | +| META_KEY_SUBTITLE | 子标题 | +| META_KEY_DESCRIPTION | 曲目描述 | +| META_KEY_LYRIC | 歌词 | +| META_KEY_PREVIOUS_ASSET_ID | 上一曲 | +| META_KEY_NEXT_ASSET_ID | 下一曲 | +| META_KEY_MAX | 无效指令,内部用来判断会话元数据是否有效 | + + +## 构造及析构函数说明 + + +### AVMetaData() + + +``` +OHOS::AVSession::AVMetaData::AVMetaData () +``` +**描述:** +会话元数据默认构造函数。 + + +### ~AVMetaData() + + +``` +OHOS::AVSession::AVMetaData::~AVMetaData () +``` +**描述:** +会话元数据默认析构函数。 + + +## 成员函数说明 + + +### CopyFrom() + + +``` +bool OHOS::AVSession::AVMetaData::CopyFrom (const AVMetaData & metaIn) +``` +**描述:** +根据metaIn元掩码的设置位从metaIn复制metadata项。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| metaIn | 会话元数据将要拷贝的入参。| + + +### CopyToByMask() + + +``` +bool OHOS::AVSession::AVMetaData::CopyToByMask (MetaMaskType & mask, AVMetaData & metaOut ) const +``` +**描述:** +根据metadata掩码,将metadata项复制到metaOut。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| mask | metadata掩码[MetaMaskType](#metamasktype)。 | +| metaOut | metadata已拷贝成功的出参AVMetaData。 | + +**返回:** + +成功返回true;失败则返回false。 + + +### GetAlbum() + + +``` +std::string OHOS::AVSession::AVMetaData::GetAlbum () const +``` +**描述:** +获取专辑名称。 + +**返回:** + +返回专辑名称。 + +**参见:** + +[SetAlbum](#setalbum) + + +### GetArtist() + + +``` +std::string OHOS::AVSession::AVMetaData::GetArtist () const +``` +**描述:** +获取艺术家名称。 + +**返回:** + +返回艺术家名称。 + +**参见:** + +[SetArtist](#setartist) + + +### GetAssetId() + + +``` +std::string OHOS::AVSession::AVMetaData::GetAssetId () const +``` +**描述:** +获取曲目ID。 + +**返回:** + +返回曲目ID。 + +**参见:** + +[SetAssetId](#setassetid) + + +### GetAuthor() + + +``` +std::string OHOS::AVSession::AVMetaData::GetAuthor () const +``` +**描述:** +获取制作人名称。 + +**返回:** + +返回制作人名称。 + +**参见:** + +[SetAuthor](#setauthor) + + +### GetComposer() + + +``` +std::string OHOS::AVSession::AVMetaData::GetComposer () const +``` +**描述:** +获取作曲名称。 + +**返回:** + +返回作曲名称。 + +**参见:** + +[SetComposer](#setcomposer) + + +### GetDescription() + + +``` +std::string OHOS::AVSession::AVMetaData::GetDescription () const +``` +**描述:** +获取曲目描述。 + +**返回:** + +返回曲目描述。 + +**参见:** + +[SetDescription](#setdescription) + + +### GetDuration() + + +``` +int64_t OHOS::AVSession::AVMetaData::GetDuration () const +``` +**描述:** +获取媒体时长。 + +**返回:** + +返回媒体时长,单位为ms。 + +**参见:** + +[SetDuration](#setduration) + + +### GetLyric() + + +``` +std::string OHOS::AVSession::AVMetaData::GetLyric () const +``` +**描述:** +获取歌词。 + +**返回:** + +返回歌词。 + +**参见:** + +[SetLyric](#setlyric) + + +### GetMediaImage() + + +``` +std::shared_ptr OHOS::AVSession::AVMetaData::GetMediaImage () const +``` +**描述:** +获取媒体图片。 + +**返回:** + +返回媒体图片[AVSessionPixelMap](_o_h_o_s_1_1_a_v_session_1_1_a_v_session_pixel_map.md)。 + +**参见:** + +[SetMediaImage](#setmediaimage) + + +### GetMediaImageUri() + + +``` +std::string OHOS::AVSession::AVMetaData::GetMediaImageUri () const +``` +**描述:** +获取媒体图片URI。 + +**返回:** + +返回媒体图片URI。 + +**参见:** + +[SetMediaImageUri](#setmediaimageuri) + + +### GetMetaMask() + + +``` +MetaMaskType OHOS::AVSession::AVMetaData::GetMetaMask () const +``` +**描述:** +获取掩码。 + +**返回:** + +返回掩码[MetaMaskType](#metamasktype)。 + + +### GetNextAssetId() + + +``` +std::string OHOS::AVSession::AVMetaData::GetNextAssetId () const +``` +**描述:** +获取下一曲曲目ID。 + +**返回:** + +返回下一曲曲目ID。 + +**参见:** + +[SetNextAssetId](#setnextassetid) + + +### GetPreviousAssetId() + + +``` +std::string OHOS::AVSession::AVMetaData::GetPreviousAssetId () const +``` +**描述:** +获取上一曲曲目ID。 + +**返回:** + +返回上一曲曲目ID。 + +**参见:** + +[SetPreviousAssetId](#setpreviousassetid) + + +### GetPublishDate() + + +``` +double OHOS::AVSession::AVMetaData::GetPublishDate () const +``` +**描述:** +获取曲目发布日期,时间戳,单位为ms。 + +**返回:** + +返回曲目发布日期,时间戳,单位为ms。 + +**参见:** + +[SetPublishDate](#setpublishdate) + + +### GetSubTitle() + + +``` +std::string OHOS::AVSession::AVMetaData::GetSubTitle () const +``` +**描述:** +获取子标题。 + +**返回:** + +返回子标题。 + +**参见:** + +[SetSubTitle](#setsubtitle) + + +### GetTitle() + + +``` +std::string OHOS::AVSession::AVMetaData::GetTitle () const +``` +**描述:** +获取标题。 + +**返回:** + +返回标题。 + +**参见:** + +[SetTitle](#settitle) + + +### GetWriter() + + +``` +std::string OHOS::AVSession::AVMetaData::GetWriter () const +``` +**描述:** +获取作词名称。 + +**返回:** + +返回作词名称。 + +**参见:** + +[SetWriter](#setwriter) + + +### IsValid() + + +``` +bool OHOS::AVSession::AVMetaData::IsValid () const +``` +**描述:** +会话元数据有效性判断。 + +**返回:** + +有效返回true;无效则返回false。 + + +### Marshalling() + + +``` +bool OHOS::AVSession::AVMetaData::Marshalling (Parcel & data) const +``` +**描述:** +实现会话元数据进程间传递的序列化。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| data | 保存序列化值的对象**Parcel**。 | + +**返回:** + +如果序列化成功,则返回true;如果操作失败,则返回false。 + +**参见:** + +[Unmarshalling](#unmarshalling) + + +### Reset() + + +``` +void OHOS::AVSession::AVMetaData::Reset () +``` +**描述:** +重置所有会话元数据项。 + + +### SetAlbum() + + +``` +void OHOS::AVSession::AVMetaData::SetAlbum (const std::string & album) +``` +**描述:** +设置专辑名称。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| album | 专辑名称。 | + +**参见:** + +[GetAlbum](#getalbum) + + +### SetArtist() + + +``` +void OHOS::AVSession::AVMetaData::SetArtist (const std::string & artist) +``` +**描述:** +设置艺术家名称。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| artist | 艺术家名称。 | + +**参见:** + +[GetArtist](#getartist) + + +### SetAssetId() + + +``` +void OHOS::AVSession::AVMetaData::SetAssetId (const std::string & assetId) +``` +**描述:** +设置曲目ID。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| assetId | 曲目ID,不可为空。 | + +**参见:** + +[GetAssetId](#getassetid) + + +### SetAuthor() + + +``` +void OHOS::AVSession::AVMetaData::SetAuthor (const std::string & author) +``` +**描述:** +设置制作人名称。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| author | 制作人名称。 | + +**参见:** + +[GetArtist](#getartist) + + +### SetComposer() + + +``` +void OHOS::AVSession::AVMetaData::SetComposer (const std::string & composer) +``` +**描述:** +设置作曲名称。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| composer | 作曲名称。 | + +**参见:** + +[GetComposer](#getcomposer) + + +### SetDescription() + + +``` +void OHOS::AVSession::AVMetaData::SetDescription (const std::string & description) +``` +**描述:** +设置曲目描述。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| description | 曲目描述。 | + +**参见:** + +[GetDescription](#getdescription) + + +### SetDuration() + + +``` +void OHOS::AVSession::AVMetaData::SetDuration (int64_t duration) +``` +**描述:** +设置媒体时长。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| duration | 媒体时长,必须大于等于-1,单位为ms 。 | + +**参见:** + +[GetDuration](#getduration) + + +### SetLyric() + + +``` +void OHOS::AVSession::AVMetaData::SetLyric (const std::string & lyric) +``` +**描述:** +设置歌词。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| lyric | 歌词。 | + +**参见:** + +[GetLyric](#getlyric) + + +### SetMediaImage() + + +``` +void OHOS::AVSession::AVMetaData::SetMediaImage (const std::shared_ptr< AVSessionPixelMap > & mediaImage) +``` +**描述:** +设置媒体图片。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| mediaImage | 媒体图片[AVSessionPixelMap](_o_h_o_s_1_1_a_v_session_1_1_a_v_session_pixel_map.md)。 | + +**参见:** + +[GetMediaImage](#getmediaimage) + + +### SetMediaImageUri() + + +``` +void OHOS::AVSession::AVMetaData::SetMediaImageUri (const std::string & mediaImageUri) +``` +**描述:** +设置媒体图片URI。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| mediaImageUri | 媒体图片URI。 | + +**参见:** + +[GetMediaImageUri](#getmediaimageuri) + + +### SetNextAssetId() + + +``` +void OHOS::AVSession::AVMetaData::SetNextAssetId (const std::string & assetId) +``` +**描述:** +设置下一曲曲目ID。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| assetId | 下一曲曲目ID。 | + +**参见:** + +[GetNextAssetId](#getnextassetid) + + +### SetPreviousAssetId() + + +``` +void OHOS::AVSession::AVMetaData::SetPreviousAssetId (const std::string & assetId) +``` +**描述:** +设置上一曲曲目ID。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| assetId | 上一曲曲目ID。 | + +**参见:** + +[GetPreviousAssetId](#getpreviousassetid) + + +### SetPublishDate() + + +``` +void OHOS::AVSession::AVMetaData::SetPublishDate (double date) +``` +**描述:** +设置曲目发布日期,时间戳,单位为ms。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| date | 曲目发布日期,时间戳,单位为ms。 | + +**参见:** + +[GetPublishDate](#getpublishdate) + + +### SetSubTitle() + + +``` +void OHOS::AVSession::AVMetaData::SetSubTitle (const std::string & subTitle) +``` +**描述:** +设置子标题。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| subTitle | 子标题。 | + +**参见:** + +[GetSubTitle](#getsubtitle) + + +### SetTitle() + + +``` +void OHOS::AVSession::AVMetaData::SetTitle (const std::string & title) +``` +**描述:** +设置标题。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| title | 标题。 | + +**参见:** + +[GetTitle](#gettitle) + + +### SetWriter() + + +``` +void OHOS::AVSession::AVMetaData::SetWriter (const std::string & writer) +``` +**描述:** +设置作词名称。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| writer | 作词名称。 | + +**参见:** + +[GetWriter](#getwriter) + + +### Unmarshalling() + + +``` +static AVMetaData* OHOS::AVSession::AVMetaData::Unmarshalling (Parcel & data) +``` +**描述:** +实现会话元数据进程间传递的反序列化。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| data | 序列化对象**Parcel**。 | + +**返回:** + +如果反序列化成功,返回AVMetaData类型指针;失败则返回nullptr。 + +**参见:** + +[Marshalling](#marshalling) + + +## 结构体成员变量说明 + + +### DURATION_ALWAYS_PLAY + + +``` +constexpr std::int64_t OHOS::AVSession::AVMetaData::DURATION_ALWAYS_PLAY = -1 +``` +**描述:** +持续时间全局变量宏定义。 + + +### localCapability + + +``` +const std::vector OHOS::AVSession::AVMetaData::localCapability +``` +**Value:** + +``` +{ + META_KEY_ASSET_ID, + META_KEY_TITLE, + META_KEY_ARTIST, + META_KEY_AUTHOR, + META_KEY_ALBUM, + META_KEY_WRITER, + META_KEY_COMPOSER, + META_KEY_DURATION, + META_KEY_MEDIA_IMAGE, + META_KEY_MEDIA_IMAGE_URI, + META_KEY_PUBLISH_DATE, + META_KEY_SUBTITLE, + META_KEY_DESCRIPTION, + META_KEY_LYRIC, + META_KEY_PREVIOUS_ASSET_ID, + META_KEY_NEXT_ASSET_ID, + } +``` +**描述:** +会话元数据数组,用于分布式业务,设置会话属性。 diff --git a/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_playback_state.md b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_playback_state.md new file mode 100644 index 0000000000000000000000000000000000000000..8183b4b57c655174ae3ae217f72a88bec45020c1 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_playback_state.md @@ -0,0 +1,502 @@ +# OHOS::AVSession::AVPlaybackState + + +## 概述 + +音视频播放状态类,提供获取和设置播放界面的信息。 + + +## 汇总 + + +### 结构体 + + | 名称 | 描述 | +| -------- | -------- | +| [Position](_1_a_v_session_1_1_a_v_playback_state_1_1_position.md) | struct
播放位置的相关信息。 | + + +### Public 类型 + + | 名称 | 描述 | +| -------- | -------- | +| {
**PLAYBACK_STATE_INITIAL** = 0, **PLAYBACK_STATE_PREPARING** = 1, **PLAYBACK_STATE_PLAYING** = 2, **PLAYBACK_STATE_PAUSED** = 3, **PLAYBACK_STATE_FAST_FORWARD** = 4, **PLAYBACK_STATE_REWIND** = 5, **PLAYBACK_STATE_STOP** = 6, **PLAYBACK_STATE_MAX** = 7
} | 描述播放状态的枚举。 | +| {
**PLAYBACK_KEY_STATE** = 0, **PLAYBACK_KEY_SPEED** = 1, **PLAYBACK_KEY_POSITION** = 2, **PLAYBACK_KEY_BUFFERED_TIME** = 3, **PLAYBACK_KEY_LOOP_MODE** = 4, **PLAYBACK_KEY_IS_FAVORITE** = 5, **PLAYBACK_KEY_MAX** = 6
} | 播放界面信息的枚举。 | +| { **LOOP_MODE_SEQUENCE** = 0, **LOOP_MODE_SINGLE** = 1, **LOOP_MODE_LIST** = 2, **LOOP_MODE_SHUFFLE** = 3 } | 循环模式的枚举。 | +| **PlaybackStateMaskType** = std::bitset< PLAYBACK_KEY_MAX > | | + + +### Public 成员函数 + + | 名称 | 描述 | +| -------- | -------- | +| [Marshalling](#marshalling) (Parcel &parcel) const override | IPC通信数据序列化。 | +| [IsValid](#isvalid) () const | 验证当前信息的有效性。 | +| [SetState](#setstate) (int32_t state) | 设置音视频的播放状态。 | +| [GetState](#getstate) () const | 获取当前音视频的播放状态。 | +| [SetSpeed](#setspeed) (double speed) | 设置播放倍速。 | +| [GetSpeed](#getspeed) () const | 获取当前播放倍速。 | +| [SetPosition](#setposition) (const [Position](_1_a_v_session_1_1_a_v_playback_state_1_1_position.md) &position) | 设置播放位置,通过更新时间与经过时间来计算,单位ms。 | +| [GetPosition](#getposition) () const | 获取播放位置。 | +| [SetBufferedTime](#setbufferedtime) (int64_t time) | 设置缓冲时间,单位为ms。 | +| [GetBufferedTime](#getbufferedtime) () const | 获取当前缓冲时间,单位为ms。 | +| [SetLoopMode](#setloopmode) (int32_t mode) | 设置循环模式。 | +| [GetLoopMode](#getloopmode) () const | 获取当前循环模式。 | +| [SetFavorite](#setfavorite) (bool isFavorite) | 设置是否收藏。 | +| [GetFavorite](#getfavorite) () const | 获取是否收藏。 | +| [GetMask](#getmask) () const | 获取掩码。 | + + +### 静态 Public 成员函数 + + | 名称 | 描述 | +| -------- | -------- | +| [Unmarshalling](#unmarshalling) (Parcel &parcel) | IPC通信数据反序列化。 | +| [localCapability](#localcapability) | 内联函数指针数组AVPlaybackState,用于分布式业务,设置播放界面信息。 | +| [CopyToByMask](#copytobymask) (PlaybackStateMaskType &mask, AVPlaybackState &out) const | 通过掩码拷贝信息到新的AVPlaybackState对象。 | +| [CopyFrom](#copyfrom) (const AVPlaybackState &in) | 根据当前对象的mask_掩码,将输入的AVPlaybackState类型的信息复制到当前对象。 | + + +## 成员枚举类型说明 + + +### anonymous enum + + +``` +anonymous enum +``` +**描述:** +描述播放状态的枚举。 + + | 枚举值 | 描述 | +| -------- | -------- | +| PLAYBACK_STATE_INITIAL | 初始状态 | +| PLAYBACK_STATE_PREPARING | 缓冲状态 | +| PLAYBACK_STATE_PLAYING | 播放状态 | +| PLAYBACK_STATE_PAUSED | 暂停状态 | +| PLAYBACK_STATE_FAST_FORWARD | 快进状态 | +| PLAYBACK_STATE_REWIND | 快退状态 | +| PLAYBACK_STATE_STOP | 停止状态 | +| PLAYBACK_STATE_MAX | 无效类型,内部用于判断状态是否有效 | + + +### anonymous enum + + +``` +anonymous enum +``` +**描述:** +播放界面信息的枚举。 + + | 枚举值 | 描述 | +| -------- | -------- | +| PLAYBACK_KEY_STATE | 播放状态,包括正在播放、暂停、快进等 | +| PLAYBACK_KEY_SPEED | 播放倍数 | +| PLAYBACK_KEY_POSITION | 播放位置 | +| PLAYBACK_KEY_BUFFERED_TIME | 缓冲时间 | +| PLAYBACK_KEY_LOOP_MODE | 循环模式 | +| PLAYBACK_KEY_IS_FAVORITE | 设置喜欢(收藏) | +| PLAYBACK_KEY_MAX | 无效类型,内部用于判断key是否有效 | + + +### anonymous enum + + +``` +anonymous enum +``` +**描述:** +循环模式的枚举。 + + | 枚举值 | 描述 | +| -------- | -------- | +| LOOP_MODE_SEQUENCE | 顺序播放 | +| LOOP_MODE_SINGLE | 单曲循环 | +| LOOP_MODE_LIST | 列表循环 | +| LOOP_MODE_SHUFFLE | 随机播放 | + + +## 成员函数说明 + + +### CopyFrom() + + +``` +bool OHOS::AVSession::AVPlaybackState::CopyFrom (const AVPlaybackState & in) +``` +**描述:** +根据当前对象的mask_掩码,将输入的AVPlaybackState类型的信息复制到当前对象。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| in | AVPlaybackState类型。 | + +**返回:** + +如果有至少一个播放界面信息被拷贝,返回true;如果一个播放界面信息都没有被拷贝,返回false。 + +**参见:** + +[CopyToByMask](#copytobymask) + +[GetMask](#getmask) + + +### CopyToByMask() + + +``` +bool OHOS::AVSession::AVPlaybackState::CopyToByMask (PlaybackStateMaskType & mask, AVPlaybackState & out ) const +``` +**描述:** +通过掩码拷贝信息到新的AVPlaybackState对象。 + +mask对应位上有值的对象拷贝给out。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| mask | 输入的掩码**}。 out 输出的音视频的播放状态 AVPlaybackState}。 如果有至少一个播放界面信息被拷贝,返回true;如果一个播放界面信息都没有被拷贝,返回false。 CopyFrom 9 1.0 ** | + + +### GetBufferedTime() + + +``` +int64_t OHOS::AVSession::AVPlaybackState::GetBufferedTime () const +``` +**描述:** +获取当前缓冲时间,单位为ms。 + +**返回:** + +返回缓冲时间。 + +**参见:** + +[SetBufferedTime](#setbufferedtime) + + +### GetFavorite() + + +``` +bool OHOS::AVSession::AVPlaybackState::GetFavorite () const +``` +**描述:** +获取是否收藏。 + +**返回:** + +是否收藏,是则返回true,否则返回false。 + +**参见:** + +[SetFavorite](#setfavorite) + + +### GetLoopMode() + + +``` +int32_t OHOS::AVSession::AVPlaybackState::GetLoopMode () const +``` +**描述:** +获取当前循环模式。 + +**返回:** + +返回循环模式,范围**LOOP_MODE_SEQUENCE**到**LOOP_MODE_SHUFFLE**之间。 + +**参见:** + +[SetLoopMode](#setloopmode) + + +### GetMask() + + +``` +PlaybackStateMaskType OHOS::AVSession::AVPlaybackState::GetMask () const +``` +**描述:** +获取掩码。 + +**返回:** + +返回播放界面信息的掩码**PlaybackStateMaskType**。 + +**参见:** + +[CopyFrom](#copyfrom) + + +### GetPosition() + + +``` +Position OHOS::AVSession::AVPlaybackState::GetPosition () const +``` +**描述:** +获取播放位置。 + +**返回:** + +返回播放位置[Position](_1_a_v_session_1_1_a_v_playback_state_1_1_position.md)。 + +**参见:** + +[SetPosition](#setposition) + + +### GetSpeed() + + +``` +double OHOS::AVSession::AVPlaybackState::GetSpeed () const +``` +**描述:** +获取当前播放倍速。 + +**返回:** + +返回当前播放倍速。 + +**参见:** + +[SetSpeed](#setspeed) + + +### GetState() + + +``` +int32_t OHOS::AVSession::AVPlaybackState::GetState () const +``` +**描述:** +获取当前音视频的播放状态。 + +**返回:** + +返回当前音视频的播放状态,范围**PLAYBACK_STATE_INITIAL**到**PLAYBACK_STATE_MAX**之间。 + +**参见:** + +[SetState](#setstate) + + +### IsValid() + + +``` +bool OHOS::AVSession::AVPlaybackState::IsValid () const +``` +**描述:** +验证当前信息的有效性。 + +**返回:** + +有效返回true;无效则返回false。 + + +### Marshalling() + + +``` +bool OHOS::AVSession::AVPlaybackState::Marshalling (Parcel & parcel) const +``` +**描述:** +IPC通信数据序列化。 + +将AVPlaybackState类型的信息,序列化为**Parcel**类型的信息,用来进行IPC通信。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| parcel | 保存序列化值的对象**Parcel**。 | + +**返回:** + +成功返回true;失败返回false。 + +**参见:** + +[Unmarshalling](#unmarshalling) + + +### SetBufferedTime() + + +``` +void OHOS::AVSession::AVPlaybackState::SetBufferedTime (int64_t time) +``` +**描述:** +设置缓冲时间,单位为ms。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| time | 缓冲时间。 | + +**参见:** + +[GetBufferedTime](#getbufferedtime) + + +### SetFavorite() + + +``` +void OHOS::AVSession::AVPlaybackState::SetFavorite (bool isFavorite) +``` +**描述:** +设置是否收藏。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| isFavorite | 是否收藏,是则为true,否则false。 | + +**参见:** + +[GetFavorite](#getfavorite) + + +### SetLoopMode() + + +``` +void OHOS::AVSession::AVPlaybackState::SetLoopMode (int32_t mode) +``` +**描述:** +设置循环模式。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| mode | 循环模式,范围**LOOP_MODE_SEQUENCE**到**LOOP_MODE_SHUFFLE**之间。 | + +**参见:** + +[GetLoopMode](#getloopmode) + + +### SetPosition() + + +``` +void OHOS::AVSession::AVPlaybackState::SetPosition (const Position & position) +``` +**描述:** +设置播放位置,通过更新时间与经过时间来计算,单位ms。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| position | 播放位置[Position](_1_a_v_session_1_1_a_v_playback_state_1_1_position.md)。 | + +**参见:** + +[GetPosition](#getposition) + + +### SetSpeed() + + +``` +void OHOS::AVSession::AVPlaybackState::SetSpeed (double speed) +``` +**描述:** +设置播放倍速。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| speed | 播放倍速。 | + +**参见:** + +[SetSpeed](#setspeed) + + +### SetState() + + +``` +void OHOS::AVSession::AVPlaybackState::SetState (int32_t state) +``` +**描述:** +设置音视频的播放状态。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| state | 音视频的播放状态,范围**PLAYBACK_STATE_INITIAL**到**PLAYBACK_STATE_MAX**之间。 | + +**参见:** + +[GetState](#getstate) + + +### Unmarshalling() + + +``` +static AVPlaybackState* OHOS::AVSession::AVPlaybackState::Unmarshalling (Parcel & parcel) +``` +**描述:** +IPC通信数据反序列化。 + +将通过IPC接收的**Parcel**类型的信息,反序列化为AVPlaybackState类型的信息。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| parcel | 序列化对象**Parcel**。 | + +**返回:** + +如果反序列化成功,则返回AVPlaybackState对象; 如果反序列化失败,则返回nullptr。 + +**参见:** + +[Marshalling](#marshalling) + + +## 结构体成员变量说明 + + +### localCapability + + +``` +const std::vector OHOS::AVSession::AVPlaybackState::localCapability +``` +**Value:** + +``` +{ + PLAYBACK_KEY_STATE, + PLAYBACK_KEY_SPEED, + PLAYBACK_KEY_POSITION, + PLAYBACK_KEY_BUFFERED_TIME, + PLAYBACK_KEY_LOOP_MODE, + PLAYBACK_KEY_IS_FAVORITE, + } +``` +**描述:** +内联函数指针数组AVPlaybackState,用于分布式业务,设置播放界面信息。 diff --git a/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_session.md b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_session.md new file mode 100644 index 0000000000000000000000000000000000000000..342eada497e7763e0364121dd6feece15889fa08 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_session.md @@ -0,0 +1,346 @@ +# OHOS::AVSession::AVSession + + +## 概述 + +会话对象,支持配置会话属性,并可主动更新播放状态和会话元数据。 + + +## 汇总 + + +### Public 类型 + + | 名称 | 描述 | +| -------- | -------- | +| { **SESSION_TYPE_INVALID** = -1, **SESSION_TYPE_AUDIO** = 0, **SESSION_TYPE_VIDEO** = 1 } | 会话类型的枚举。 | + + +### Public 成员函数 + + | 名称 | 描述 | +| -------- | -------- | +| [GetSessionId](#getsessionid) ()=0 | 获取会话的标识。 | +| [GetAVMetaData](#getavmetadata) ([AVMetaData](_o_h_o_s_1_1_a_v_session_1_1_a_v_meta_data.md) &meta)=0 | 获取会话元数据。 | +| [SetAVMetaData](#setavmetadata) (const [AVMetaData](_o_h_o_s_1_1_a_v_session_1_1_a_v_meta_data.md) &meta)=0 | 设置会话元数据。 | +| [GetAVPlaybackState](#getavplaybackstate) ([AVPlaybackState](_o_h_o_s_1_1_a_v_session_1_1_a_v_playback_state.md) &state)=0 | 获取音视频的播放状态。 | +| [SetAVPlaybackState](#setavplaybackstate) (const [AVPlaybackState](_o_h_o_s_1_1_a_v_session_1_1_a_v_playback_state.md) &state)=0 | 设置音视频的播放状态。 | +| [SetLaunchAbility](#setlaunchability) (const AbilityRuntime::WantAgent::WantAgent &ability)=0 | 设置一个WantAgent用于启动会话的Ability。 | +| [GetController](#getcontroller) ()=0 | 获取会话控制器。 | +| [RegisterCallback](#registercallback) (const std::shared_ptr< [AVSessionCallback](_o_h_o_s_1_1_a_v_session_1_1_a_v_session_callback.md) > &callback)=0 | 注册会话回调。 | +| [Activate](#activate) ()=0 | 激活会话。 | +| [Deactivate](#deactivate) ()=0 | 去激活会话。 | +| [IsActive](#isactive) ()=0 | 获取会话是否被激活。 | +| [Destroy](#destroy) ()=0 | 销毁会话。 | +| [AddSupportCommand](#addsupportcommand) (const int32_t cmd)=0 | 添加支持的控制命令。 | +| [DeleteSupportCommand](#deletesupportcommand) (const int32_t cmd)=0 | 删除支持的控制命令。 | + + +## 成员枚举类型说明 + + +### anonymous enum + + +``` +anonymous enum +``` +**描述:** +会话类型的枚举。 + + | 枚举值 | 描述 | +| -------- | -------- | +| SESSION_TYPE_INVALID | 无效会话 | +| SESSION_TYPE_AUDIO | 音频会话 | +| SESSION_TYPE_VIDEO | 视频会话 | + + +## 成员函数说明 + + +### Activate() + + +``` +virtual int32_t OHOS::AVSession::AVSession::Activate () +``` +**描述:** +激活会话。 + +激活成功后,会话才可以接收控制指令。 + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[Deactivate](#deactivate) + +[IsActive](#isactive) + + +### AddSupportCommand() + + +``` +virtual int32_t OHOS::AVSession::AVSession::AddSupportCommand (const int32_t cmd) +``` +**描述:** +添加支持的控制命令。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| cmd | 待添加的控制命令,范围为**SESSION_CMD_INVALID**到**SESSION_CMD_MAX**。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### Deactivate() + + +``` +virtual int32_t OHOS::AVSession::AVSession::Deactivate () +``` +**描述:** +去激活会话。 + +去激活成功后,表示会话还不能接收控制指令。 + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[Activate](#activate) + +[IsActive](#isactive) + + +### DeleteSupportCommand() + + +``` +virtual int32_t OHOS::AVSession::AVSession::DeleteSupportCommand (const int32_t cmd) +``` +**描述:** +删除支持的控制命令。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| cmd | 待删除的控制命令,范围为**SESSION_CMD_INVALID**到**SESSION_CMD_MAX**。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### Destroy() + + +``` +virtual int32_t OHOS::AVSession::AVSession::Destroy () +``` +**描述:** +销毁会话。 + +如果应用要创建一个新会话,必须要销毁之前的会话,否则会创建失败。 + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### GetAVMetaData() + + +``` +virtual int32_t OHOS::AVSession::AVSession::GetAVMetaData (AVMetaData & meta) +``` +**描述:** +获取会话元数据。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| meta | 用于保存会话的元数据[AVMetaData](_o_h_o_s_1_1_a_v_session_1_1_a_v_meta_data.md)对象。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[SetAVMetaData](#setavmetadata) + + +### GetAVPlaybackState() + + +``` +virtual int32_t OHOS::AVSession::AVSession::GetAVPlaybackState (AVPlaybackState & state) +``` +**描述:** +获取音视频的播放状态。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| state | 用于保存播放状态的[AVPlaybackState](_o_h_o_s_1_1_a_v_session_1_1_a_v_playback_state.md)对象。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[SetAVPlaybackState](#setavplaybackstate) + + +### GetController() + + +``` +virtual std::shared_ptr OHOS::AVSession::AVSession::GetController () +``` +**描述:** +获取会话控制器。 + +**返回:** + +返回会话控制器,[AVSessionController](o_h_o_s_1_1_a_v_session_1_1_a_v_session_controller.md)类型智能指针。 + + +### GetSessionId() + + +``` +virtual std::string OHOS::AVSession::AVSession::GetSessionId () +``` +**描述:** +获取会话的标识。 + +**返回:** + +返回会话的标识。 + + +### IsActive() + + +``` +virtual bool OHOS::AVSession::AVSession::IsActive () +``` +**描述:** +获取会话是否被激活。 + +**返回:** + +如果是激活状态,则返回true;否则返回false。 + +**参见:** + +[Activate](#activate) + +[Deactivate](#deactivate) + + +### RegisterCallback() + + +``` +virtual int32_t OHOS::AVSession::AVSession::RegisterCallback (const std::shared_ptr< AVSessionCallback > & callback) +``` +**描述:** +注册会话回调。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| callback | 用于注册会话回调的[AVSessionCallback](_o_h_o_s_1_1_a_v_session_1_1_a_v_session_callback.md)对象。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### SetAVMetaData() + + +``` +virtual int32_t OHOS::AVSession::AVSession::SetAVMetaData (const AVMetaData & meta) +``` +**描述:** +设置会话元数据。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| meta | 用于修改会话的元数据[AVMetaData](_o_h_o_s_1_1_a_v_session_1_1_a_v_meta_data.md)对象。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[GetAVMetaData](#getavmetadata) + + +### SetAVPlaybackState() + + +``` +virtual int32_t OHOS::AVSession::AVSession::SetAVPlaybackState (const AVPlaybackState & state) +``` +**描述:** +设置音视频的播放状态。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| state | 用于修改播放状态的[AVPlaybackState](_o_h_o_s_1_1_a_v_session_1_1_a_v_playback_state.md)对象。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[GetAVPlaybackState](#getavplaybackstate) + + +### SetLaunchAbility() + + +``` +virtual int32_t OHOS::AVSession::AVSession::SetLaunchAbility (const AbilityRuntime::WantAgent::WantAgent & ability) +``` +**描述:** +设置一个WantAgent用于启动会话的Ability。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| ability | 具体的应用对应的能力,类型为**AbilityRuntime::WantAgent::WantAgent**。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[AVSessionController::GetLaunchAbility](o_h_o_s_1_1_a_v_session_1_1_a_v_session_controller.md#getlaunchability) diff --git a/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_session_callback.md b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_session_callback.md new file mode 100644 index 0000000000000000000000000000000000000000..334288527bd6ac67f8a8d1cdc177ee97cac1a4c2 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_session_callback.md @@ -0,0 +1,217 @@ +# OHOS::AVSession::AVSessionCallback + + +## 概述 + +定义AVSession回调类的实现 + +**Since:** +9 +**Version:** +1.0 + +## 汇总 + + +### Public 成员函数 + + | 名称 | 描述 | +| -------- | -------- | +| [OnPlay](#onplay) ()=0 | AVSession多媒体播放的抽象的回调方法。 | +| [OnPause](#onpause) ()=0 | AVSession多媒体播放暂停的抽象的回调方法。 | +| [OnStop](#onstop) ()=0 | AVSession多媒体播放停止的抽象的回调方法。 | +| [OnPlayNext](#onplaynext) ()=0 | AVSession播放下一首多媒体的抽象的回调方法。 | +| [OnPlayPrevious](#onplayprevious) ()=0 | AVSession播放上一首多媒体的抽象的回调方法。 | +| [OnFastForward](#onfastforward) ()=0 | AVSession快进播放多媒体的抽象的回调方法。 | +| [OnRewind](#onrewind) ()=0 | AVSession多媒体快退的抽象的回调方法。 | +| [OnSeek](#onseek) (int64_t time)=0 | AVSession多媒体跳播操作的抽象的回调方法。 | +| [OnSetSpeed](#onsetspeed) (double speed)=0 | AVSession设置多媒体倍速播放操作的抽象的回调方法。 | +| [OnSetLoopMode](#onsetloopmode) (int32_t loopMode)=0 | AVSession设置多媒体循环播放模式的抽象的回调方法。 | +| [OnToggleFavorite](#ontogglefavorite) (const std::string &mediald)=0 | AVSession设置多媒体切换收藏操作的抽象的回调方法。 | +| [OnMediaKeyEvent](#onmediakeyevent) (const MMI::KeyEvent &keyEvent)=0 | AVSession多媒体按键事件处理的抽象的回调方法。 | +| [OnOutputDeviceChange](#onoutputdevicechange) (const [OutputDeviceInfo](_o_h_o_s_1_1_a_v_session_1_1_output_device_info.md) &outputDeviceInfo)=0 | 注册会话输出设备变更监听。 | +| [~AVSessionCallback](#avsessioncallback) ()=default | AVSessionCallback的默认的析构函数。 | + + +## 构造及析构函数说明 + + +### ~AVSessionCallback() + + +``` +virtual OHOS::AVSession::AVSessionCallback::~AVSessionCallback () +``` +**描述:** +AVSessionCallback的默认的析构函数。 + + +## 成员函数说明 + + +### OnFastForward() + + +``` +virtual void OHOS::AVSession::AVSessionCallback::OnFastForward () +``` +**描述:** +AVSession快进播放多媒体的抽象的回调方法。 + + +### OnMediaKeyEvent() + + +``` +virtual void OHOS::AVSession::AVSessionCallback::OnMediaKeyEvent (const MMI::KeyEvent & keyEvent) +``` +**描述:** +AVSession多媒体按键事件处理的抽象的回调方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| keyEvent | 按键事件码,类型为**MMI::KeyEvent**。 | + + +### OnOutputDeviceChange() + + +``` +virtual void OHOS::AVSession::AVSessionCallback::OnOutputDeviceChange (const OutputDeviceInfo & outputDeviceInfo) +``` +**描述:** +注册会话输出设备变更监听。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| outputDeviceInfo | 输出设备信息 [OutputDeviceInfo](_o_h_o_s_1_1_a_v_session_1_1_output_device_info.md)。 | + + +### OnPause() + + +``` +virtual void OHOS::AVSession::AVSessionCallback::OnPause () +``` +**描述:** +AVSession多媒体播放暂停的抽象的回调方法。 + + +### OnPlay() + + +``` +virtual void OHOS::AVSession::AVSessionCallback::OnPlay () +``` +**描述:** +AVSession多媒体播放的抽象的回调方法。 + + +### OnPlayNext() + + +``` +virtual void OHOS::AVSession::AVSessionCallback::OnPlayNext () +``` +**描述:** +AVSession播放下一首多媒体的抽象的回调方法。 + + +### OnPlayPrevious() + + +``` +virtual void OHOS::AVSession::AVSessionCallback::OnPlayPrevious () +``` +**描述:** +AVSession播放上一首多媒体的抽象的回调方法。 + + +### OnRewind() + + +``` +virtual void OHOS::AVSession::AVSessionCallback::OnRewind () +``` +**描述:** +AVSession多媒体快退的抽象的回调方法。 + + +### OnSeek() + + +``` +virtual void OHOS::AVSession::AVSessionCallback::OnSeek (int64_t time) +``` +**描述:** +AVSession多媒体跳播操作的抽象的回调方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| time | 媒体资源的位置,从媒体资源开头开始计算,单位为ms。取值需大于等于0。 | + + +### OnSetLoopMode() + + +``` +virtual void OHOS::AVSession::AVSessionCallback::OnSetLoopMode (int32_t loopMode) +``` +**描述:** +AVSession设置多媒体循环播放模式的抽象的回调方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| loopMode | 多媒体循环播放模式, 范围在[AVPlaybackState](_o_h_o_s_1_1_a_v_session_1_1_a_v_playback_state.md)的**LOOP_MODE_SEQUENCE**到**LOOP_MODE_SHUFFLE**之间。 | + + +### OnSetSpeed() + + +``` +virtual void OHOS::AVSession::AVSessionCallback::OnSetSpeed (double speed) +``` +**描述:** +AVSession设置多媒体倍速播放操作的抽象的回调方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| speed | 多媒体播放的倍速值。 | + + +### OnStop() + + +``` +virtual void OHOS::AVSession::AVSessionCallback::OnStop () +``` +**描述:** +AVSession多媒体播放停止的抽象的回调方法。 + + +### OnToggleFavorite() + + +``` +virtual void OHOS::AVSession::AVSessionCallback::OnToggleFavorite (const std::string & mediald) +``` +**描述:** +AVSession设置多媒体切换收藏操作的抽象的回调方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| mediald | 多媒体ID号标识。 | + + diff --git a/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_session_manager.md b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_session_manager.md new file mode 100644 index 0000000000000000000000000000000000000000..b4c12aae829b192c2aec8b33945870e831887c2f --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_session_manager.md @@ -0,0 +1,302 @@ +# OHOS::AVSession::AVSessionManager + + +## 概述 + +实现会话管理器对外接口功能的类的实现。 + +**Since:** +9 +**Version:** +1.0 + +## 汇总 + + +### Public 成员函数 + + | 名称 | 描述 | +| -------- | -------- | +| [CreateSession](#createsession) (const std::string &tag, int32_t type, const AppExecFwk::ElementName &elementName)=0 | 创建AVSession会话的接口方法。 | +| [GetAllSessionDescriptors](#getallsessiondescriptors) (std::vector< [AVSessionDescriptor](o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md) > &descriptors)=0 | 获取AVSession全部的会话描述的接口方法。 | +| [GetActivatedSessionDescriptors](#getactivatedsessiondescriptors) (std::vector< [AVSessionDescriptor](o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md) > &activatedSessions)=0 | 获取AVSession全部处于活动状态的会话描述的接口方法。 | +| [GetSessionDescriptorsBySessionId](#getsessiondescriptorsbysessionid) (const std::string &sessionId, [AVSessionDescriptor](o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md) &descriptor)=0 | 通过会话ID获得会话描述的方法。 | +| [CreateController](#createcontroller) (const std::string &sessionId, std::shared_ptr< [AVSessionController](o_h_o_s_1_1_a_v_session_1_1_a_v_session_controller.md) > &controller)=0 | 创建AVSession会话控制器的接口方法。 | +| [RegisterSessionListener](#registersessionlistener) (const std::shared_ptr< [SessionListener](_o_h_o_s_1_1_a_v_session_1_1_session_listener.md) > &listener)=0 | 注册AVSession会话监听器的接口方法。 | +| [RegisterServiceDeathCallback](#registerservicedeathcallback) (const [DeathCallback](avsession__info_8h.md#deathcallback) &callback)=0 | 注册AVSession服务器的死亡回调的接口方法。 | +| [UnregisterServiceDeathCallback](#unregisterservicedeathcallback) ()=0 | 注销AVSession服务器的死亡回调的接口方法。 | +| [SendSystemAVKeyEvent](#sendsystemavkeyevent) (const MMI::KeyEvent &keyEvent)=0 | 发送系统按键事件的接口方法。 | +| [SendSystemControlCommand](#sendsystemcontrolcommand) (const [AVControlCommand](_o_h_o_s_1_1_a_v_session_1_1_a_v_control_command.md) &command)=0 | 发送系统控制命令的接口方法。 | +| [CastAudio](#castaudio) (const [SessionToken](_o_h_o_s_1_1_a_v_session_1_1_session_token.md) &token, const std::vector< AudioStandard::AudioDeviceDescriptor > &descriptors)=0 | 将媒体会话投射到远程设备或投射回本地设备。 | +| [CastAudioForAll](#castaudioforall) (const std::vector< AudioStandard::AudioDeviceDescriptor > &descriptors)=0 | 将此设备的所有媒体会话投播到远程设备。 | + + +### 静态 Public 成员函数 + + | 名称 | 描述 | +| -------- | -------- | +| [GetInstance](#getinstance) () | 获取会话管理器实例。 | + + +## 成员函数说明 + + +### CastAudio() + + +``` +virtual int32_t OHOS::AVSession::AVSessionManager::CastAudio (const SessionToken & token, const std::vector< AudioStandard::AudioDeviceDescriptor > & descriptors ) +``` +**描述:** +将媒体会话投射到远程设备或投射回本地设备。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| token | 需要投播的会话令牌。 | +| descriptors | 指定要转换的音频设备。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### CastAudioForAll() + + +``` +virtual int32_t OHOS::AVSession::AVSessionManager::CastAudioForAll (const std::vector< AudioStandard::AudioDeviceDescriptor > & descriptors) +``` +**描述:** +将此设备的所有媒体会话投播到远程设备。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| descriptors | 指定要转换的音频设备。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### CreateController() + + +``` +virtual int32_t OHOS::AVSession::AVSessionManager::CreateController (const std::string & sessionId, std::shared_ptr< AVSessionController > & controller ) +``` +**描述:** +创建AVSession会话控制器的接口方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| sessionId | AVSession的会话ID。 | +| controller | 会话控制器实例,类型为[AVSessionController](o_h_o_s_1_1_a_v_session_1_1_a_v_session_controller.md)。 | + +**返回:** + +返回成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### CreateSession() + + +``` +virtual std::shared_ptr OHOS::AVSession::AVSessionManager::CreateSession (const std::string & tag, int32_t type, const AppExecFwk::ElementName & elementName ) +``` +**描述:** +创建AVSession会话的接口方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| tag | AVSession的会话标签,不可为空。 | +| type | AVSession的会话类型, 入参为[AVSession](_o_h_o_s_1_1_a_v_session_1_1_a_v_session.md)的**SESSION_TYPE_AUDIO**,**SESSION_TYPE_VIDEO**。 | +| elementName | AVSession的会话名称**AppExecFwk::ElementName**。 | + +**返回:** + +返回已创建的会话对象的智能指针。 + + +### GetActivatedSessionDescriptors() + + +``` +virtual int32_t OHOS::AVSession::AVSessionManager::GetActivatedSessionDescriptors (std::vector< AVSessionDescriptor > & activatedSessions) +``` +**描述:** +获取AVSession全部处于活动状态的会话描述的接口方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| activatedSessions | 处于活动状态的会话描述,类型为[AVSessionDescriptor](o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md)。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### GetAllSessionDescriptors() + + +``` +virtual int32_t OHOS::AVSession::AVSessionManager::GetAllSessionDescriptors (std::vector< AVSessionDescriptor > & descriptors) +``` +**描述:** +获取AVSession全部的会话描述的接口方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| descriptors | AVSession的会话描述,类型为[AVSessionDescriptor](o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md)。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### GetInstance() + + +``` +static AVSessionManager& OHOS::AVSession::AVSessionManager::GetInstance () +``` +**描述:** +获取会话管理器实例。 + +**返回:** + +返回会话管理器实例。 + + +### GetSessionDescriptorsBySessionId() + + +``` +virtual int32_t OHOS::AVSession::AVSessionManager::GetSessionDescriptorsBySessionId (const std::string & sessionId, AVSessionDescriptor & descriptor ) +``` +**描述:** +通过会话ID获得会话描述的方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| sessionId | AVSession的会话标签。 | +| descriptor | AVSession的会话描述,类型为[AVSessionDescriptor](o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md)。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### RegisterServiceDeathCallback() + + +``` +virtual int32_t OHOS::AVSession::AVSessionManager::RegisterServiceDeathCallback (const DeathCallback & callback) +``` +**描述:** +注册AVSession服务器的死亡回调的接口方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| callback | 死亡回调的方法,类型为**DeathCallback**。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[UnregisterServiceDeathCallback](#unregisterservicedeathcallback) + + +### RegisterSessionListener() + + +``` +virtual int32_t OHOS::AVSession::AVSessionManager::RegisterSessionListener (const std::shared_ptr< SessionListener > & listener) +``` +**描述:** +注册AVSession会话监听器的接口方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| listener | 会话监听器的智能指针,类型为[SessionListener](_o_h_o_s_1_1_a_v_session_1_1_session_listener.md)。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### SendSystemAVKeyEvent() + + +``` +virtual int32_t OHOS::AVSession::AVSessionManager::SendSystemAVKeyEvent (const MMI::KeyEvent & keyEvent) +``` +**描述:** +发送系统按键事件的接口方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| keyEvent | 按键事件码,类型为**MMI::KeyEvent**。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### SendSystemControlCommand() + + +``` +virtual int32_t OHOS::AVSession::AVSessionManager::SendSystemControlCommand (const AVControlCommand & command) +``` +**描述:** +发送系统控制命令的接口方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| command | 系统控制命令[AVControlCommand](_o_h_o_s_1_1_a_v_session_1_1_a_v_control_command.md)。 | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### UnregisterServiceDeathCallback() + + +``` +virtual int32_t OHOS::AVSession::AVSessionManager::UnregisterServiceDeathCallback () +``` +**描述:** +注销AVSession服务器的死亡回调的接口方法。 + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[RegisterServiceDeathCallback](#registerservicedeathcallback) diff --git a/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_session_pixel_map.md b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_session_pixel_map.md new file mode 100644 index 0000000000000000000000000000000000000000..39038f5b3f40ec407e99d33b60d2f7cd27113aae --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_session_pixel_map.md @@ -0,0 +1,154 @@ +# OHOS::AVSession::AVSessionPixelMap + + +## 概述 + +读取、设置图片及图片信息。 + + +## 汇总 + + +### Public 成员函数 + + | 名称 | 描述 | +| -------- | -------- | +| [Marshalling](#marshalling) (Parcel &data) const override | 实现图片及图片信息的序列化。  | +| [GetPixelData](#getpixeldata) () const | 获取图片数据。  | +| [SetPixelData](#setpixeldata) (const std::vector< uint8_t > &data) | 设置图片数据。  | +| [GetImageInfo](#getimageinfo) () const | 获取图片信息。  | +| [SetImageInfo](#setimageinfo) (const std::vector< uint8_t > &imageInfo) | 设置图片信息。  | + + +### 静态 Public 成员函数 + + | 名称 | 描述 | +| -------- | -------- | +| [Unmarshalling](#unmarshalling) (Parcel &data) | 实现图片及图片信息的反序列化。  | + + +## 成员函数说明 + + +### GetImageInfo() + + +``` +std::vector OHOS::AVSession::AVSessionPixelMap::GetImageInfo () const +``` +**描述:** +获取图片信息。 + +**返回:** + +返回图片信息。 + +**参见:** + +[SetImageInfo](#setimageinfo) + + +### GetPixelData() + + +``` +std::vector OHOS::AVSession::AVSessionPixelMap::GetPixelData () const +``` +**描述:** +获取图片数据。 + +**返回:** + +返回图片数据。 + +**参见:** + +[SetPixelData](#setpixeldata) + + +### Marshalling() + + +``` +bool OHOS::AVSession::AVSessionPixelMap::Marshalling (Parcel & data) const +``` +**描述:** +实现图片及图片信息的序列化。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| data | 保存序列化值的对象**Parcel**。  | + +**返回:** + +如果序列化成功,则返回true;失败则返回false。 + +**参见:** + +[Unmarshalling](#unmarshalling) + + +### SetImageInfo() + + +``` +void OHOS::AVSession::AVSessionPixelMap::SetImageInfo (const std::vector< uint8_t > & imageInfo) +``` +**描述:** +设置图片信息。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| imageInfo | 图片信息。  | + +**参见:** + +[GetImageInfo](#getimageinfo) + + +### SetPixelData() + + +``` +void OHOS::AVSession::AVSessionPixelMap::SetPixelData (const std::vector< uint8_t > & data) +``` +**描述:** +设置图片数据。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| data | 图片数据。  | + +**参见:** + +[GetPixelData](#getpixeldata) + + +### Unmarshalling() + + +``` +static AVSessionPixelMap* OHOS::AVSession::AVSessionPixelMap::Unmarshalling (Parcel & data) +``` +**描述:** +实现图片及图片信息的反序列化。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| data | 保存反序列化值的对象**Parcel**。  | + +**返回:** + +如果反序列化成功,则返回true;失败则返回false。 + +**参见:** + +[Marshalling](#marshalling) diff --git a/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_output_device_info.md b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_output_device_info.md new file mode 100644 index 0000000000000000000000000000000000000000..971babf6930164449f3c8651ea8eb940d11f95df --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_output_device_info.md @@ -0,0 +1,26 @@ +# OHOS::AVSession::OutputDeviceInfo + + +## 概述 + +描述分布式设备的相关信息。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[Avsession](avsession.md) + + +## 汇总 + + +### 成员变量 + + | 名称 | 描述 | +| -------- | -------- | +| [isRemote_](avsession.md#isremote) {} | bool | +| [deviceIds_](avsession.md#deviceids) | std::vector< std::string > | +| [deviceNames_](avsession.md#devicenames) | std::vector< std::string > | diff --git a/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_session_listener.md b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_session_listener.md new file mode 100644 index 0000000000000000000000000000000000000000..9fb407a233510614c121ee465eb94a836c3807d7 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_session_listener.md @@ -0,0 +1,97 @@ +# OHOS::AVSession::SessionListener + + +## 概述 + +定义与AVSession相关监听器的类的实现。 + +**Since:** +9 +**Version:** +1.0 + +## 汇总 + + +### Public 成员函数 + + | 名称 | 描述 | +| -------- | -------- | +| [OnSessionCreate](#onsessioncreate) (const [AVSessionDescriptor](o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md) &descriptor)=0 | 创建AVSession会话的抽象的接口回调方法。  | +| [OnSessionRelease](#onsessionrelease) (const [AVSessionDescriptor](o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md) &descriptor)=0 | 释放AVSession会话的抽象的接口回调方法。  | +| [OnTopSessionChange](#ontopsessionchange) (const [AVSessionDescriptor](o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md) &descriptor)=0 | AVSession的TOP会话发生变化的抽象的接口回调方法。  | +| [~SessionListener](#sessionlistener) ()=default | SessionListener的默认的析构函数。  | + + +## 构造及析构函数说明 + + +### ~SessionListener() + + +``` +virtual OHOS::AVSession::SessionListener::~SessionListener () +``` +**描述:** +SessionListener的默认的析构函数。 + + +## 成员函数说明 + + +### OnSessionCreate() + + +``` +virtual void OHOS::AVSession::SessionListener::OnSessionCreate (const AVSessionDescriptor & descriptor) +``` +**描述:** +创建AVSession会话的抽象的接口回调方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| descriptor | AVSession的会话描述对象,类型为[AVSessionDescriptor](o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md)。  | + +**参见:** + +[OnSessionRelease](#onsessionrelease) + + +### OnSessionRelease() + + +``` +virtual void OHOS::AVSession::SessionListener::OnSessionRelease (const AVSessionDescriptor & descriptor) +``` +**描述:** +释放AVSession会话的抽象的接口回调方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| descriptor | AVSession的会话描述对象,类型为[AVSessionDescriptor](o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md)。  | + +**参见:** + +[OnSessionCreate](#onsessioncreate) + + +### OnTopSessionChange() + + +``` +virtual void OHOS::AVSession::SessionListener::OnTopSessionChange (const AVSessionDescriptor & descriptor) +``` +**描述:** +AVSession的TOP会话发生变化的抽象的接口回调方法。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| descriptor | AVSession的会话描述对象,类型为[AVSessionDescriptor](o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md)。  | + + \ No newline at end of file diff --git a/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_session_token.md b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_session_token.md new file mode 100644 index 0000000000000000000000000000000000000000..a0b7eae295d926f591f5c76c1183a66bc5f446e8 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_session_token.md @@ -0,0 +1,55 @@ +# OHOS::AVSession::SessionToken + + +## 概述 + +会话令牌的信息。 + +**Since:** +9 +**Version:** +1.0 + +## 汇总 + + +### 成员变量 + + | 名称 | 描述 | +| -------- | -------- | +| [sessionId](#sessionid) | std::string
会话id  | +| [pid](#pid) | pid_t
会话的进程id  | +| [uid](#uid) | uid_t
用户id  | + + +## 结构体成员变量说明 + + +### pid + + +``` +pid_t OHOS::AVSession::SessionToken::pid +``` +**描述:** +会话的进程id + + +### sessionId + + +``` +std::string OHOS::AVSession::SessionToken::sessionId +``` +**描述:** +会话id + + +### uid + + +``` +uid_t OHOS::AVSession::SessionToken::uid +``` +**描述:** +用户id diff --git a/zh-cn/application-dev/reference/native-apis/_raw_file_descriptor.md b/zh-cn/application-dev/reference/native-apis/_raw_file_descriptor.md index e72c69ef55b51c2ef152473ac894b27c473c75e0..3364447f8b1375f3e6b739d2ba623bfee77eb462 100644 --- a/zh-cn/application-dev/reference/native-apis/_raw_file_descriptor.md +++ b/zh-cn/application-dev/reference/native-apis/_raw_file_descriptor.md @@ -5,7 +5,7 @@ 提供rawfile文件描述符信息。 -RawFileDescriptor是[OH_ResourceManager_GetRawFileDescriptor()](rawfile.md#oh_resourcemanager_getrawfiledescriptor)的输出参数,涵盖了rawfile文件的文件描述符以及在HAP包中的起始位置和长度。 +RawFileDescriptor是[OH_ResourceManager_GetRawFileDescriptor()](rawfile.md#oh_resourcemanager_getrawfiledescriptor)的输出参数,涵盖了rawfile文件的文件描述符以及在HAP中的起始位置和长度。 **自从:** @@ -21,11 +21,11 @@ RawFileDescriptor是[OH_ResourceManager_GetRawFileDescriptor()](rawfile.md#oh_re ### 成员变量 - | 成员变量名称 | 描述 | +| 成员变量名称 | 描述 | | -------- | -------- | -| [fd](#fd) | rawfile文件描述符 | -| [start](#start) | rawfile在HAP包中的长度 | -| [length](#length) | rawfile在HAP包中的起始位置 | +| [fd](#fd) | rawfile文件描述符 | +| [start](#start) | rawfile在HAP中的长度 | +| [length](#length) | rawfile在HAP中的起始位置 | ## 结构体成员变量说明 @@ -33,7 +33,7 @@ RawFileDescriptor是[OH_ResourceManager_GetRawFileDescriptor()](rawfile.md#oh_re ### fd - + ``` int RawFileDescriptor::fd ``` @@ -45,23 +45,23 @@ rawfile文件描述符 ### length - + ``` long RawFileDescriptor::length ``` **描述:** -rawfile在HAP包中的长度 +rawfile在HAP中的长度 ### start - + ``` long RawFileDescriptor::start ``` **描述:** -rawfile在HAP包中的起始位置 +rawfile在HAP中的起始位置 diff --git a/zh-cn/application-dev/reference/native-apis/_region.md b/zh-cn/application-dev/reference/native-apis/_region.md index d8b1024f340516c55758b875726864d86ad09dae..2123c25359fd86d73b2a6450582ff68eba1b1089 100644 --- a/zh-cn/application-dev/reference/native-apis/_region.md +++ b/zh-cn/application-dev/reference/native-apis/_region.md @@ -43,5 +43,3 @@ struct Rect Region::*rects **描述:** 结构体指针,类型为[Rect](_rect.md)。如果rects是空指针nullptr, 默认Buffer大小为脏区。 - - \ No newline at end of file diff --git a/zh-cn/application-dev/reference/native-apis/_video_decoder.md b/zh-cn/application-dev/reference/native-apis/_video_decoder.md new file mode 100644 index 0000000000000000000000000000000000000000..a5b1f9f8ed44f68ea530c7cf04380eb04f4e9f44 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_video_decoder.md @@ -0,0 +1,434 @@ +# VideoDecoder + + +## 概述 + +VideoDecoder模块提供用于视频解码功能的函数。 + +@syscap SystemCapability.Multimedia.Media.VideoDecoder + +**Since:** +9 +**Version:** +1.0 + +## 汇总 + + +### 文件 + + | 名称 | 描述 | +| -------- | -------- | +| [native_avcodec_videodecoder.h](native__avcodec__videodecoder_8h.md) | 声明用于视频解码的Native API。 | + + +### 函数 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_VideoDecoder_CreateByMime](#oh_videodecoder_createbymime) (const char \*mime) | OH_AVCodec \*
通过mime类型创建一个视频解码器实例,大多数情况下推荐使用该接口。 | +| [OH_VideoDecoder_CreateByName](#oh_videodecoder_createbyname) (const char \*name) | OH_AVCodec \*
通过视频解码器名称创建一个视频解码器实例,使用这个接口的前提是必须清楚解码器准确的名称。 | +| [OH_VideoDecoder_Destroy](#oh_videodecoder_destroy) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空解码器内部资源,并销毁解码器实例。 | +| [OH_VideoDecoder_SetCallback](#oh_videodecoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | [OH_AVErrCode](_core.md#oh_averrcode)
设置异步回调函数,使得你的应用能够响应视频解码器产生的事件,该接口被调用必须是在Prepare被调用前。 | +| [OH_VideoDecoder_SetSurface](#oh_videodecoder_setsurface) (OH_AVCodec \*codec, OHNativeWindow \*window) | [OH_AVErrCode](_core.md#oh_averrcode)
指定输出Surface,以提供视频解码输出,该接口被调用必须是在Prepare被调用前。 | +| [OH_VideoDecoder_Configure](#oh_videodecoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
配置视频解码器,典型地,需要配置被解码视频轨道的描述信息,这些信息能够从容器中提取出来, 该接口被调用必须是在Prepare被调用前。 | +| [OH_VideoDecoder_Prepare](#oh_videodecoder_prepare) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
准备解码器内部资源,调用该接口前必须先调用Configure接口。 | +| [OH_VideoDecoder_Start](#oh_videodecoder_start) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
启动解码器,该接口必须在已经Prepare成功后调用。 在启动成功后,解码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | +| [OH_VideoDecoder_Stop](#oh_videodecoder_stop) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
停止解码器。在停止后可通过Start重新进入Started状态,但需要注意的是,若先前给解码器输入过 Codec-Specific-Data,则需要重新输入。 | +| [OH_VideoDecoder_Flush](#oh_videodecoder_flush) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空解码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | +| [OH_VideoDecoder_Reset](#oh_videodecoder_reset) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
重置解码器。如需继续解码工作,需要重新调用Configure接口以配置该解码器实例。 | +| [OH_VideoDecoder_GetOutputDescription](#oh_videodecoder_getoutputdescription) (OH_AVCodec \*codec) | OH_AVFormat \*
获取该解码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例的生命周期 将会再下一次调用该接口时或者该OH_AVCodec实例被销毁时失效。 | +| [OH_VideoDecoder_SetParameter](#oh_videodecoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
向解码器设置动态参数,注意:该接口仅能在解码器被启动后调用,同时错误的参数设置,可能会导致解码失败。 | +| [OH_VideoDecoder_PushInputData](#oh_videodecoder_pushinputdata) (OH_AVCodec \*codec, uint32_t index, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) attr) | [OH_AVErrCode](_core.md#oh_averrcode)
将填充好数据的输入Buffer提交给视频解码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给解码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。另外,对于部分解码器,要求在最开始给解码器输入 Codec-Specific-Data,用以初始化解码器的解码过程,例如H264格式的PPS/SPS数据。 | +| [OH_VideoDecoder_RenderOutputData](#oh_videodecoder_renderoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给解码器,并通知解码器完成将该Buffer内包含的解码后的数据在输出Surface上渲染。 如果先前未配置输出Surface,调用该接口仅仅将指定索引对应的输出Buffer交还给解码器。 | +| [OH_VideoDecoder_FreeOutputData](#oh_videodecoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给解码器。 | + + +## 函数说明 + + +### OH_VideoDecoder_Configure() + + +``` +OH_AVErrCode OH_VideoDecoder_Configure (OH_AVCodec * codec, OH_AVFormat * format ) +``` +**描述:** +配置视频解码器,典型地,需要配置被解码视频轨道的描述信息,这些信息能够从容器中提取出来, 该接口被调用必须是在Prepare被调用前。 + +@syscap SystemCapability.Multimedia.Media.VideoDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| format | 指向OH_AVFormat的指针,用以给出待解码视频轨道的描述信息 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoDecoder_CreateByMime() + + +``` +OH_AVCodec* OH_VideoDecoder_CreateByMime (const char * mime) +``` +**描述:** +通过mime类型创建一个视频解码器实例,大多数情况下推荐使用该接口。 + +@syscap SystemCapability.Multimedia.Media.VideoDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| mime | mime类型描述字符串,参考[OH_AVCODEC_MIMETYPE_VIDEO_AVC](_codec_base.md#oh_avcodec_mimetype_video_avc) | + +**返回:** + +返回一个指向OH_AVCodec实例的指针 + + +### OH_VideoDecoder_CreateByName() + + +``` +OH_AVCodec* OH_VideoDecoder_CreateByName (const char * name) +``` +**描述:** +通过视频解码器名称创建一个视频解码器实例,使用这个接口的前提是必须清楚解码器准确的名称。 + +@syscap SystemCapability.Multimedia.Media.VideoDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| name | 视频解码器名称 | + +**返回:** + +返回一个指向OH_AVCodec实例的指针 + + +### OH_VideoDecoder_Destroy() + + +``` +OH_AVErrCode OH_VideoDecoder_Destroy (OH_AVCodec * codec) +``` +**描述:** +清空解码器内部资源,并销毁解码器实例。 + +@syscap SystemCapability.Multimedia.Media.VideoDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoDecoder_Flush() + + +``` +OH_AVErrCode OH_VideoDecoder_Flush (OH_AVCodec * codec) +``` +**描述:** +清空解码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 + +@syscap SystemCapability.Multimedia.Media.VideoDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoDecoder_FreeOutputData() + + +``` +OH_AVErrCode OH_VideoDecoder_FreeOutputData (OH_AVCodec * codec, uint32_t index ) +``` +**描述:** +将处理结束的输出Buffer交还给解码器。 + +@syscap SystemCapability.Multimedia.Media.VideoDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| index | 输出Buffer对应的索引值 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoDecoder_GetOutputDescription() + + +``` +OH_AVFormat* OH_VideoDecoder_GetOutputDescription (OH_AVCodec * codec) +``` +**描述:** +获取该解码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例的生命周期 将会再下一次调用该接口时或者该OH_AVCodec实例被销毁时失效。 + +@syscap SystemCapability.Multimedia.Media.VideoDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +返回AVFormat实例的指针 + + +### OH_VideoDecoder_Prepare() + + +``` +OH_AVErrCode OH_VideoDecoder_Prepare (OH_AVCodec * codec) +``` +**描述:** +准备解码器内部资源,调用该接口前必须先调用Configure接口。 + +@syscap SystemCapability.Multimedia.Media.VideoDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoDecoder_PushInputData() + + +``` +OH_AVErrCode OH_VideoDecoder_PushInputData (OH_AVCodec * codec, uint32_t index, OH_AVCodecBufferAttr attr ) +``` +**描述:** +将填充好数据的输入Buffer提交给视频解码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给解码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。另外,对于部分解码器,要求在最开始给解码器输入 Codec-Specific-Data,用以初始化解码器的解码过程,例如H264格式的PPS/SPS数据。 + +@syscap SystemCapability.Multimedia.Media.VideoDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| index | 输入Buffer对应的索引值 | +| attr | 描述该Buffer内所包含数据的信息 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoDecoder_RenderOutputData() + + +``` +OH_AVErrCode OH_VideoDecoder_RenderOutputData (OH_AVCodec * codec, uint32_t index ) +``` +**描述:** +将处理结束的输出Buffer交还给解码器,并通知解码器完成将该Buffer内包含的解码后的数据在输出Surface上渲染。 如果先前未配置输出Surface,调用该接口仅仅将指定索引对应的输出Buffer交还给解码器。 + +@syscap SystemCapability.Multimedia.Media.VideoDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| index | 输出Buffer对应的索引值 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoDecoder_Reset() + + +``` +OH_AVErrCode OH_VideoDecoder_Reset (OH_AVCodec * codec) +``` +**描述:** +重置解码器。如需继续解码工作,需要重新调用Configure接口以配置该解码器实例。 + +@syscap SystemCapability.Multimedia.Media.VideoDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoDecoder_SetCallback() + + +``` +OH_AVErrCode OH_VideoDecoder_SetCallback (OH_AVCodec * codec, OH_AVCodecAsyncCallback callback, void * userData ) +``` +**描述:** +设置异步回调函数,使得你的应用能够响应视频解码器产生的事件,该接口被调用必须是在Prepare被调用前。 + +@syscap SystemCapability.Multimedia.Media.VideoDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| callback | 一个包含所有回调函数的集合体,参考[OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) | +| userData | 用户特定数据 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoDecoder_SetParameter() + + +``` +OH_AVErrCode OH_VideoDecoder_SetParameter (OH_AVCodec * codec, OH_AVFormat * format ) +``` +**描述:** +向解码器设置动态参数,注意:该接口仅能在解码器被启动后调用,同时错误的参数设置,可能会导致解码失败。 + +@syscap SystemCapability.Multimedia.Media.VideoDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| format | 指向OH_AVFormat实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoDecoder_SetSurface() + + +``` +OH_AVErrCode OH_VideoDecoder_SetSurface (OH_AVCodec * codec, OHNativeWindow * window ) +``` +**描述:** +指定输出Surface,以提供视频解码输出,该接口被调用必须是在Prepare被调用前。 + +@syscap SystemCapability.Multimedia.Media.VideoDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| window | 指向一个OHNativeWindow实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoDecoder_Start() + + +``` +OH_AVErrCode OH_VideoDecoder_Start (OH_AVCodec * codec) +``` +**描述:** +启动解码器,该接口必须在已经Prepare成功后调用。 在启动成功后,解码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 + +@syscap SystemCapability.Multimedia.Media.VideoDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoDecoder_Stop() + + +``` +OH_AVErrCode OH_VideoDecoder_Stop (OH_AVCodec * codec) +``` +**描述:** +停止解码器。在停止后可通过Start重新进入Started状态,但需要注意的是,若先前给解码器输入过 Codec-Specific-Data,则需要重新输入。 + +@syscap SystemCapability.Multimedia.Media.VideoDecoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) diff --git a/zh-cn/application-dev/reference/native-apis/_video_encoder.md b/zh-cn/application-dev/reference/native-apis/_video_encoder.md new file mode 100644 index 0000000000000000000000000000000000000000..2ba39e6fdee3bb1e4ec71f8fd672b0ecb33d025a --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/_video_encoder.md @@ -0,0 +1,456 @@ +# VideoEncoder + + +## 概述 + +VideoEncoder模块提供用于视频编码功能的函数和枚举。 + +@syscap SystemCapability.Multimedia.Media.VideoEncoder + +**Since:** +9 +**Version:** +1.0 + +## 汇总 + + +### 文件 + + | 名称 | 描述 | +| -------- | -------- | +| [native_avcodec_videoencoder.h](native__avcodec__videoencoder_8h.md) | 声明用于视频编码的Native API。 | + + +### 类型定义 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_VideoEncodeBitrateMode](#oh_videoencodebitratemode) | typedef enum [OH_VideoEncodeBitrateMode](#oh_videoencodebitratemode)
视频编码的比特率模式。 | + + +### 枚举 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_VideoEncodeBitrateMode](#oh_videoencodebitratemode) { **CBR** = 0, **VBR** = 1, **CQ** = 2 } | 视频编码的比特率模式。 | + + +### 函数 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_VideoEncoder_CreateByMime](#oh_videoencoder_createbymime) (const char \*mime) | OH_AVCodec \*
通过mime类型创建一个视频编码器实例,大多数情况下推荐使用该接口。 | +| [OH_VideoEncoder_CreateByName](#oh_videoencoder_createbyname) (const char \*name) | OH_AVCodec \*
通过视频编码器名称创建一个视频编码器实例,使用这个接口的前提是必须清楚编码器准确的名称。 | +| [OH_VideoEncoder_Destroy](#oh_videoencoder_destroy) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空编码器内部资源,并销毁编码器实例。 | +| [OH_VideoEncoder_SetCallback](#oh_videoencoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | [OH_AVErrCode](_core.md#oh_averrcode)
设置异步回调函数,使得你的应用能够响应视频编码器产生的事件,该接口被调用必须是在Prepare被调用前。 | +| [OH_VideoEncoder_Configure](#oh_videoencoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
配置视频编码器,典型地,需要配置被编码视频轨道的描述信息,该接口被调用必须是在Prepare被调用前。 | +| [OH_VideoEncoder_Prepare](#oh_videoencoder_prepare) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
准备编码器内部资源,调用该接口前必须先调用Configure接口。 | +| [OH_VideoEncoder_Start](#oh_videoencoder_start) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
启动编码器,该接口必须在已经Prepare成功后调用。 在启动成功后,编码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | +| [OH_VideoEncoder_Stop](#oh_videoencoder_stop) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
停止编码器。在停止后可通过Start重新进入Started状态。 | +| [OH_VideoEncoder_Flush](#oh_videoencoder_flush) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空编码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | +| [OH_VideoEncoder_Reset](#oh_videoencoder_reset) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
重置编码器。如需继续编码工作,需要重新调用Configure接口以配置该编码器实例。 | +| [OH_VideoEncoder_GetOutputDescription](#oh_videoencoder_getoutputdescription) (OH_AVCodec \*codec) | OH_AVFormat \*
获取该编码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例的生命周期 将会再下一次调用该接口时或者该OH_AVCodec实例被销毁时失效。 | +| [OH_VideoEncoder_SetParameter](#oh_videoencoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
向编码器设置动态参数,注意:该接口仅能在编码器被启动后调用,同时错误的参数设置,可能会导致编码失败。 | +| [OH_VideoEncoder_GetSurface](#oh_videoencoder_getsurface) (OH_AVCodec \*codec, OHNativeWindow \*\*window) | [OH_AVErrCode](_core.md#oh_averrcode)
从视频编码器获取输入Surface, 该接口被调用必须是在Prepare被调用前。 | +| [OH_VideoEncoder_FreeOutputData](#oh_videoencoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给编码器。 | +| [OH_VideoEncoder_NotifyEndOfStream](#oh_videoencoder_notifyendofstream) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
通知视频编码器输入码流已结束。surface模式推荐使用该接口通知编码器码流结束。 | + + +## 类型定义说明 + + +### OH_VideoEncodeBitrateMode + + +``` +typedef enum OH_VideoEncodeBitrateModeOH_VideoEncodeBitrateMode +``` +**描述:** +视频编码的比特率模式。 + +@syscap SystemCapability.Multimedia.Media.VideoEncoder + + +## 枚举类型说明 + + +### OH_VideoEncodeBitrateMode + + +``` +enum OH_VideoEncodeBitrateMode +``` +**描述:** +视频编码的比特率模式。 + +@syscap SystemCapability.Multimedia.Media.VideoEncoder + + | 枚举值 | 描述 | +| -------- | -------- | +| CBR | 恒定比特率模式 | +| VBR | 可变比特率模式 | +| CQ | 恒定质量模式 | + + +## 函数说明 + + +### OH_VideoEncoder_Configure() + + +``` +OH_AVErrCode OH_VideoEncoder_Configure (OH_AVCodec * codec, OH_AVFormat * format ) +``` +**描述:** +配置视频编码器,典型地,需要配置被编码视频轨道的描述信息,该接口被调用必须是在Prepare被调用前。 + +@syscap SystemCapability.Multimedia.Media.VideoEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| format | 指向OH_AVFormat的指针,用以给出待编码视频轨道的描述信息 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoEncoder_CreateByMime() + + +``` +OH_AVCodec* OH_VideoEncoder_CreateByMime (const char * mime) +``` +**描述:** +通过mime类型创建一个视频编码器实例,大多数情况下推荐使用该接口。 + +@syscap SystemCapability.Multimedia.Media.VideoEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| mime | mime类型描述字符串,参考[OH_AVCODEC_MIMETYPE_VIDEO_AVC](_codec_base.md#oh_avcodec_mimetype_video_avc) | + +**返回:** + +返回一个指向OH_AVCodec实例的指针 + + +### OH_VideoEncoder_CreateByName() + + +``` +OH_AVCodec* OH_VideoEncoder_CreateByName (const char * name) +``` +**描述:** +通过视频编码器名称创建一个视频编码器实例,使用这个接口的前提是必须清楚编码器准确的名称。 + +@syscap SystemCapability.Multimedia.Media.VideoEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| name | 视频编码器名称 | + +**返回:** + +返回一个指向OH_AVCodec实例的指针 + + +### OH_VideoEncoder_Destroy() + + +``` +OH_AVErrCode OH_VideoEncoder_Destroy (OH_AVCodec * codec) +``` +**描述:** +清空编码器内部资源,并销毁编码器实例。 + +@syscap SystemCapability.Multimedia.Media.VideoEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoEncoder_Flush() + + +``` +OH_AVErrCode OH_VideoEncoder_Flush (OH_AVCodec * codec) +``` +**描述:** +清空编码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 + +@syscap SystemCapability.Multimedia.Media.VideoEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoEncoder_FreeOutputData() + + +``` +OH_AVErrCode OH_VideoEncoder_FreeOutputData (OH_AVCodec * codec, uint32_t index ) +``` +**描述:** +将处理结束的输出Buffer交还给编码器。 + +@syscap SystemCapability.Multimedia.Media.VideoEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| index | 输出Buffer对应的索引值 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoEncoder_GetOutputDescription() + + +``` +OH_AVFormat* OH_VideoEncoder_GetOutputDescription (OH_AVCodec * codec) +``` +**描述:** +获取该编码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例的生命周期 将会再下一次调用该接口时或者该OH_AVCodec实例被销毁时失效。 + +@syscap SystemCapability.Multimedia.Media.VideoEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +返回AVFormat实例的指针 + + +### OH_VideoEncoder_GetSurface() + + +``` +OH_AVErrCode OH_VideoEncoder_GetSurface (OH_AVCodec * codec, OHNativeWindow ** window ) +``` +**描述:** +从视频编码器获取输入Surface, 该接口被调用必须是在Prepare被调用前。 + +@syscap SystemCapability.Multimedia.Media.VideoEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| window | 指向一个OHNativeWindow实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoEncoder_NotifyEndOfStream() + + +``` +OH_AVErrCode OH_VideoEncoder_NotifyEndOfStream (OH_AVCodec * codec) +``` +**描述:** +通知视频编码器输入码流已结束。surface模式推荐使用该接口通知编码器码流结束。 + +@syscap SystemCapability.Multimedia.Media.VideoEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoEncoder_Prepare() + + +``` +OH_AVErrCode OH_VideoEncoder_Prepare (OH_AVCodec * codec) +``` +**描述:** +准备编码器内部资源,调用该接口前必须先调用Configure接口。 + +@syscap SystemCapability.Multimedia.Media.VideoEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoEncoder_Reset() + + +``` +OH_AVErrCode OH_VideoEncoder_Reset (OH_AVCodec * codec) +``` +**描述:** +重置编码器。如需继续编码工作,需要重新调用Configure接口以配置该编码器实例。 + +@syscap SystemCapability.Multimedia.Media.VideoEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoEncoder_SetCallback() + + +``` +OH_AVErrCode OH_VideoEncoder_SetCallback (OH_AVCodec * codec, OH_AVCodecAsyncCallback callback, void * userData ) +``` +**描述:** +设置异步回调函数,使得你的应用能够响应视频编码器产生的事件,该接口被调用必须是在Prepare被调用前。 + +@syscap SystemCapability.Multimedia.Media.VideoEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| callback | 一个包含所有回调函数的集合体,参考[OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) | +| userData | 用户特定数据 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoEncoder_SetParameter() + + +``` +OH_AVErrCode OH_VideoEncoder_SetParameter (OH_AVCodec * codec, OH_AVFormat * format ) +``` +**描述:** +向编码器设置动态参数,注意:该接口仅能在编码器被启动后调用,同时错误的参数设置,可能会导致编码失败。 + +@syscap SystemCapability.Multimedia.Media.VideoEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | +| format | OH_AVFormat句柄指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoEncoder_Start() + + +``` +OH_AVErrCode OH_VideoEncoder_Start (OH_AVCodec * codec) +``` +**描述:** +启动编码器,该接口必须在已经Prepare成功后调用。 在启动成功后,编码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 + +@syscap SystemCapability.Multimedia.Media.VideoEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) + + +### OH_VideoEncoder_Stop() + + +``` +OH_AVErrCode OH_VideoEncoder_Stop (OH_AVCodec * codec) +``` +**描述:** +停止编码器。在停止后可通过Start重新进入Started状态。 + +@syscap SystemCapability.Multimedia.Media.VideoEncoder + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| codec | 指向OH_AVCodec实例的指针 | + +**返回:** + +执行成功返回AV_ERR_OK + +执行失败返回具体错误码,参考[OH_AVErrCode](_core.md#oh_averrcode) diff --git a/zh-cn/application-dev/reference/native-apis/av__session_8h.md b/zh-cn/application-dev/reference/native-apis/av__session_8h.md new file mode 100644 index 0000000000000000000000000000000000000000..e908100fe46e543251739f042219b870740c3c2c --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/av__session_8h.md @@ -0,0 +1,24 @@ +# av_session.h + + +## 概述 + +会话的设置、获取等声明。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[Avsession](avsession.md) + + +## 汇总 + + +### 结构体 + + | 名称 | 描述 | +| -------- | -------- | +| [OHOS::AVSession::AVSession](_o_h_o_s_1_1_a_v_session_1_1_a_v_session.md) | class
会话对象,支持配置会话属性,并可主动更新播放状态和会话元数据。 | diff --git a/zh-cn/application-dev/reference/native-apis/avcontrol__command_8h.md b/zh-cn/application-dev/reference/native-apis/avcontrol__command_8h.md new file mode 100644 index 0000000000000000000000000000000000000000..f8cc0b9f9d42295e1440833071c8e9e6b4d627c3 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/avcontrol__command_8h.md @@ -0,0 +1,24 @@ +# avcontrol_command.h + + +## 概述 + +音视频控制指令的设置、获取、拷贝等声明。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[Avsession](avsession.md) + + +## 汇总 + + +### 结构体 + + | 名称 | 描述 | +| -------- | -------- | +| [OHOS::AVSession::AVControlCommand](_o_h_o_s_1_1_a_v_session_1_1_a_v_control_command.md) | class
用于描述音视频播控命令工具类,播控命令的封装对象,支持设置和获取控制命令。 | diff --git a/zh-cn/application-dev/reference/native-apis/avmeta__data_8h.md b/zh-cn/application-dev/reference/native-apis/avmeta__data_8h.md new file mode 100644 index 0000000000000000000000000000000000000000..957d44d24c2739b41ac4b1f5cc98876281430179 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/avmeta__data_8h.md @@ -0,0 +1,24 @@ +# avmeta_data.h + + +## 概述 + +会话元数据设置、获取、拷贝等接口声明。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[Avsession](avsession.md) + + +## 汇总 + + +### 结构体 + + | 名称 | 描述 | +| -------- | -------- | +| [OHOS::AVSession::AVMetaData](_o_h_o_s_1_1_a_v_session_1_1_a_v_meta_data.md) | class
会话元数据类,提供获取metadata进程间传递的序列化和反序列话及数据拷贝的接口方法。 | diff --git a/zh-cn/application-dev/reference/native-apis/avplayback__state_8h.md b/zh-cn/application-dev/reference/native-apis/avplayback__state_8h.md new file mode 100644 index 0000000000000000000000000000000000000000..2a62e921e79d643a1b4560b0ad2bf72212d3d4db --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/avplayback__state_8h.md @@ -0,0 +1,25 @@ +# avplayback_state.h + + +## 概述 + +音视频播放状态声明。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[Avsession](avsession.md) + + +## 汇总 + + +### 结构体 + + | 名称 | 描述 | +| -------- | -------- | +| [OHOS::AVSession::AVPlaybackState](_o_h_o_s_1_1_a_v_session_1_1_a_v_playback_state.md) | class
音视频播放状态类,提供获取和设置播放界面的信息。 | +| [OHOS::AVSession::AVPlaybackState::Position](_1_a_v_session_1_1_a_v_playback_state_1_1_position.md) | struct
播放位置的相关信息。 | diff --git a/zh-cn/application-dev/reference/native-apis/avsession.md b/zh-cn/application-dev/reference/native-apis/avsession.md new file mode 100644 index 0000000000000000000000000000000000000000..b30ac7ab72da3f28b3d5fee01f5f5c2e100a25cb --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/avsession.md @@ -0,0 +1,469 @@ +# Avsession + + +## 概述 + +音视频媒体会话,提供系统内媒体的统一控制能力。 + +功能包括媒体会话,媒体会话管理,媒体会话控制。 + +@syscap SystemCapability.Multimedia.AVSession.Core + +**Since:** + +9 + +**Version:** + +1.0 + + +## 汇总 + + +### 文件 + + | 名称 | 描述 | +| -------- | -------- | +| [av_session.h](av__session_8h.md) | 会话的设置、获取等声明。 | +| [avcontrol_command.h](avcontrol__command_8h.md) | 音视频控制指令的设置、获取、拷贝等声明。 | +| [avmeta_data.h](avmeta__data_8h.md) | 会话元数据设置、获取、拷贝等接口声明。 | +| [avplayback_state.h](avplayback__state_8h.md) | 音视频播放状态声明。 | +| [avsession_controller.h](avsession__controller_8h.md) | 控制器对象的描述,可获取会话的播放状态和会话元数据,远程发送控制命令到会话端也可以通过订阅监听会话段的更新事件。 | +| [avsession_descriptor.h](avsession__descriptor_8h.md) | 会话的相关描述信息。 | +| [avsession_errors.h](avsession__errors_8h.md) | 定义了avsession错误码。 | +| [avsession_info.h](avsession__info_8h.md) | 定义了与avsession相关的监听器以及回调功能的实现。 | +| [avsession_manager.h](avsession__manager_8h.md) | 定义了会话管理器对外接口的功能的实现。 | +| [avsession_pixel_map.h](avsession__pixel__map_8h.md) | 读取、设置图片及图片信息。 | + + +### 结构体 + + | 名称 | 描述 | +| -------- | -------- | +| [OHOS::AVSession::OutputDeviceInfo](_o_h_o_s_1_1_a_v_session_1_1_output_device_info.md) | struct
描述分布式设备的相关信息。 | +| [OHOS::AVSession::AVSessionDescriptor](o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md) | struct
会话的相关描述信息。 | +| [OHOS::AVSession::AVSessionBasicInfo](o_h_o_s_1_1_a_v_session_1_1_a_v_session_basic_info.md) | struct
会话基础信息描述。 | + + +### 函数 + + | 名称 | 描述 | +| -------- | -------- | +| [OHOS::AVSession::AVSessionDescriptor::WriteToParcel](#writetoparcel) (Parcel &out) const | bool
将会话相关描述信息写进包里。 | +| [OHOS::AVSession::AVSessionDescriptor::ReadFromParcel](#readfromparcel) (Parcel &in) | bool
对会话相关描述信息进行解包。 | + + +### 变量 + + | 名称 | 描述 | +| -------- | -------- | +| [OHOS::AVSession::OutputDeviceInfo::isRemote_](#isremote) {} | bool
是否连接 | +| [OHOS::AVSession::OutputDeviceInfo::deviceIds_](#deviceids) | std::vector< std::string >
分布式设备的id集合 | +| [OHOS::AVSession::OutputDeviceInfo::deviceNames_](#devicenames) | std::vector< std::string >
分布式设备的名称集合 | +| [OHOS::AVSession::AVSessionDescriptor::sessionId_](#sessionid) | std::string
会话的id | +| [OHOS::AVSession::AVSessionDescriptor::sessionType_](#sessiontype) {} | int32_t
会话的类型 | +| [OHOS::AVSession::AVSessionDescriptor::sessionTag_](#sessiontag) | std::string
会话的自定义名称 | +| [OHOS::AVSession::AVSessionDescriptor::elementName_](#elementname) | AppExecFwk::ElementName
会话所属应用的信息包含bundleName,abilityName等 | +| [OHOS::AVSession::AVSessionDescriptor::pid_](#pid) {} | pid_t
进程id | +| [OHOS::AVSession::AVSessionDescriptor::uid_](#uid) {} | pid_t
用户id | +| [OHOS::AVSession::AVSessionDescriptor::isActive_](#isactive) {} | bool
会话是否为激活状态 | +| [OHOS::AVSession::AVSessionDescriptor::isTopSession_](#istopsession) {} | bool
会话是否是最新的会话 | +| [OHOS::AVSession::AVSessionDescriptor::isThirdPartyApp_](#isthirdpartyapp) {} | bool
是否是第三方应用 | +| [OHOS::AVSession::AVSessionDescriptor::outputDeviceInfo_](#outputdeviceinfo) | [OutputDeviceInfo](_o_h_o_s_1_1_a_v_session_1_1_output_device_info.md)
分布式设备相关信息 | +| [OHOS::AVSession::AVSessionBasicInfo::deviceName_](#devicename) {} | std::string
设备名称 | +| [OHOS::AVSession::AVSessionBasicInfo::networkId_](#networkid) {} | std::string
设备id | +| [OHOS::AVSession::AVSessionBasicInfo::vendorId_](#vendorid) {} | std::string
供应商id | +| [OHOS::AVSession::AVSessionBasicInfo::deviceType_](#devicetype) {} | std::string
设备类型 | +| [OHOS::AVSession::AVSessionBasicInfo::systemVersion_](#systemversion) {} | std::string
系统版本 | +| [OHOS::AVSession::AVSessionBasicInfo::sessionVersion_](#sessionversion) {} | int32_t
会话版本 | +| [OHOS::AVSession::AVSessionBasicInfo::reserve_](#reserve) {} | std::vector< int32_t >
备注信息 | +| [OHOS::AVSession::AVSessionBasicInfo::feature_](#feature) {} | std::vector< int32_t >
特征信息 | +| [OHOS::AVSession::AVSessionBasicInfo::metaDataCap_](#metadatacap) {} | std::vector< int32_t >
会话元数据 | +| [OHOS::AVSession::AVSessionBasicInfo::playBackStateCap_](#playbackstatecap) {} | std::vector< int32_t >
支持播放状态数组 | +| [OHOS::AVSession::AVSessionBasicInfo::controlCommandCap_](#controlcommandcap) {} | std::vector< int32_t >
系统控制命令 | +| [OHOS::AVSession::AVSessionBasicInfo::extendCapability_](#extendcapability) {} | std::vector< int32_t >
扩展能力 | +| [OHOS::AVSession::AVSessionBasicInfo::systemTime_](#systemtime) {} | int32_t
系统时间 | +| [OHOS::AVSession::AVSessionBasicInfo::extend_](#extend) {} | std::vector< int32_t >
扩展信息 | + + +## 函数说明 + + +### ReadFromParcel() + + +``` +bool OHOS::AVSession::AVSessionDescriptor::ReadFromParcel (Parcel & in) +``` + +**描述:** + +对会话相关描述信息进行解包。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| in | 读出的会话相关描述信息对象**Parcel**。 | + +**返回:** + +成功返回true;失败则返回false。 + +**参见:** + +[WriteToParcel](#writetoparcel) + + +### WriteToParcel() + + +``` +bool OHOS::AVSession::AVSessionDescriptor::WriteToParcel (Parcel & out) const +``` + +**描述:** + +将会话相关描述信息写进包里。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| out | 写入的会话相关描述信息对象**Parcel**。 | + +**返回:** + +成功返回true;失败则返回false。 + +**参见:** + +[ReadFromParcel](#readfromparcel) + + +## 变量说明 + + +### controlCommandCap_ + + +``` +std::vector OHOS::AVSession::AVSessionBasicInfo::controlCommandCap_ {} +``` + +**描述:** + +系统控制命令 + + +### deviceIds_ + + +``` +std::vector OHOS::AVSession::OutputDeviceInfo::deviceIds_ +``` + +**描述:** + +分布式设备的id集合 + + +### deviceName_ + + +``` +std::string OHOS::AVSession::AVSessionBasicInfo::deviceName_ {} +``` + +**描述:** + +设备名称 + + +### deviceNames_ + + +``` +std::vector OHOS::AVSession::OutputDeviceInfo::deviceNames_ +``` + +**描述:** + +分布式设备的名称集合 + + +### deviceType_ + + +``` +std::string OHOS::AVSession::AVSessionBasicInfo::deviceType_ {} +``` + +**描述:** + +设备类型 + + +### elementName_ + + +``` +AppExecFwk::ElementName OHOS::AVSession::AVSessionDescriptor::elementName_ +``` + +**描述:** + +会话所属应用的信息包含bundleName,abilityName等 + + +### extend_ + + +``` +std::vector OHOS::AVSession::AVSessionBasicInfo::extend_ {} +``` + +**描述:** + +扩展信息 + + +### extendCapability_ + + +``` +std::vector OHOS::AVSession::AVSessionBasicInfo::extendCapability_ {} +``` + +**描述:** + +扩展能力 + + +### feature_ + + +``` +std::vector OHOS::AVSession::AVSessionBasicInfo::feature_ {} +``` + +**描述:** + +特征信息 + + +### isActive_ + + +``` +bool OHOS::AVSession::AVSessionDescriptor::isActive_ {} +``` + +**描述:** + +会话是否为激活状态 + + +### isRemote_ + + +``` +bool OHOS::AVSession::OutputDeviceInfo::isRemote_ {} +``` + +**描述:** + +是否连接 + + +### isThirdPartyApp_ + + +``` +bool OHOS::AVSession::AVSessionDescriptor::isThirdPartyApp_ {} +``` + +**描述:** + +是否是第三方应用 + + +### isTopSession_ + + +``` +bool OHOS::AVSession::AVSessionDescriptor::isTopSession_ {} +``` + +**描述:** + +会话是否是最新的会话 + + +### metaDataCap_ + + +``` +std::vector OHOS::AVSession::AVSessionBasicInfo::metaDataCap_ {} +``` + +**描述:** + +会话元数据 + + +### networkId_ + + +``` +std::string OHOS::AVSession::AVSessionBasicInfo::networkId_ {} +``` + +**描述:** + +设备id + + +### outputDeviceInfo_ + + +``` +OutputDeviceInfo OHOS::AVSession::AVSessionDescriptor::outputDeviceInfo_ +``` + +**描述:** + +分布式设备相关信息 + + +### pid_ + + +``` +pid_t OHOS::AVSession::AVSessionDescriptor::pid_ {} +``` + +**描述:** + +进程id + + +### playBackStateCap_ + + +``` +std::vector OHOS::AVSession::AVSessionBasicInfo::playBackStateCap_ {} +``` + +**描述:** + +支持播放状态数组 + + +### reserve_ + + +``` +std::vector OHOS::AVSession::AVSessionBasicInfo::reserve_ {} +``` + +**描述:** + +备注信息 + + +### sessionId_ + + +``` +std::string OHOS::AVSession::AVSessionDescriptor::sessionId_ +``` + +**描述:** + +会话的id + + +### sessionTag_ + + +``` +std::string OHOS::AVSession::AVSessionDescriptor::sessionTag_ +``` + +**描述:** + +会话的自定义名称 + + +### sessionType_ + + +``` +int32_t OHOS::AVSession::AVSessionDescriptor::sessionType_ {} +``` + +**描述:** + +会话的类型 + + +### sessionVersion_ + + +``` +int32_t OHOS::AVSession::AVSessionBasicInfo::sessionVersion_ {} +``` + +**描述:** + +会话版本 + + +### systemTime_ + + +``` +int32_t OHOS::AVSession::AVSessionBasicInfo::systemTime_ {} +``` + +**描述:** + +系统时间 + + +### systemVersion_ + + +``` +std::string OHOS::AVSession::AVSessionBasicInfo::systemVersion_ {} +``` + +**描述:** + +系统版本 + + +### uid_ + + +``` +pid_t OHOS::AVSession::AVSessionDescriptor::uid_ {} +``` + +**描述:** + +用户id + + +### vendorId_ + + +``` +std::string OHOS::AVSession::AVSessionBasicInfo::vendorId_ {} +``` + +**描述:** + +供应商id diff --git a/zh-cn/application-dev/reference/native-apis/avsession__controller_8h.md b/zh-cn/application-dev/reference/native-apis/avsession__controller_8h.md new file mode 100644 index 0000000000000000000000000000000000000000..6a1b06aa8e1740e7fc52f029c1e8fa59247e2906 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/avsession__controller_8h.md @@ -0,0 +1,24 @@ +# avsession_controller.h + + +## 概述 + +控制器对象的描述,可获取会话的播放状态和会话元数据,远程发送控制命令到会话端也可以通过订阅监听会话段的更新事件。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[Avsession](avsession.md) + + +## 汇总 + + +### 结构体 + + | 名称 | 描述 | +| -------- | -------- | +| [OHOS::AVSession::AVSessionController](o_h_o_s_1_1_a_v_session_1_1_a_v_session_controller.md) | class
控制器对象,可获取会话的播放状态和会话元数据,远程发送控制命令到会话端也可以通过订阅监听会话段的更新事件。 | diff --git a/zh-cn/application-dev/reference/native-apis/avsession__descriptor_8h.md b/zh-cn/application-dev/reference/native-apis/avsession__descriptor_8h.md new file mode 100644 index 0000000000000000000000000000000000000000..e563c140ba298bdf2633b5492b95b35b7f02f001 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/avsession__descriptor_8h.md @@ -0,0 +1,26 @@ +# avsession_descriptor.h + + +## 概述 + +会话的相关描述信息。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[Avsession](avsession.md) + + +## 汇总 + + +### 结构体 + + | 名称 | 描述 | +| -------- | -------- | +| [OHOS::AVSession::OutputDeviceInfo](_o_h_o_s_1_1_a_v_session_1_1_output_device_info.md) | struct
描述分布式设备的相关信息。 | +| [OHOS::AVSession::AVSessionDescriptor](o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md) | struct
会话的相关描述信息。 | +| [OHOS::AVSession::AVSessionBasicInfo](o_h_o_s_1_1_a_v_session_1_1_a_v_session_basic_info.md) | struct
会话基础信息描述。 | diff --git a/zh-cn/application-dev/reference/native-apis/avsession__errors_8h.md b/zh-cn/application-dev/reference/native-apis/avsession__errors_8h.md new file mode 100644 index 0000000000000000000000000000000000000000..6f1ed54b1539c849e0ccbda9310df9c55e87eed9 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/avsession__errors_8h.md @@ -0,0 +1,268 @@ +# avsession_errors.h + + +## 概述 + +定义了avsession错误码。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[Avsession](avsession.md) + + +## 汇总 + + +### 变量 + + | 名称 | 描述 | +| -------- | -------- | +| [OHOS::AVSession::AVSESSION_ERROR](#avsession_error) = -1 | constexpr int32_t
存在错误 | +| [OHOS::AVSession::AVSESSION_SUCCESS](#avsession_success) = 0 | constexpr int32_t
操作成功 | +| [OHOS::AVSession::AVSESSION_ERROR_BASE](#avsession_error_base) = 1000 | constexpr int32_t
avsession错误码的基定义 | +| [OHOS::AVSession::ERR_NO_MEMORY](#err_no_memory) = -(AVSESSION_ERROR_BASE + 1) | constexpr int32_t
无可用内存 | +| [OHOS::AVSession::ERR_INVALID_PARAM](#err_invalid_param) = -(AVSESSION_ERROR_BASE + 2) | constexpr int32_t
传递的参数无效 | +| [OHOS::AVSession::ERR_SERVICE_NOT_EXIST](#err_service_not_exist) = -(AVSESSION_ERROR_BASE + 3) | constexpr int32_t
服务不存在 | +| [OHOS::AVSession::ERR_SESSION_LISTENER_EXIST](#err_session_listener_exist) = -(AVSESSION_ERROR_BASE + 4) | constexpr int32_t
Session监听器已存在 | +| [OHOS::AVSession::ERR_MARSHALLING](#err_marshalling) = -(AVSESSION_ERROR_BASE + 5) | constexpr int32_t
数据序列化操作错误 | +| [OHOS::AVSession::ERR_UNMARSHALLING](#err_unmarshalling) = -(AVSESSION_ERROR_BASE + 6) | constexpr int32_t
数据反序列化操作错误 | +| [OHOS::AVSession::ERR_IPC_SEND_REQUEST](#err_ipc_send_request) = -(AVSESSION_ERROR_BASE + 7) | constexpr int32_t
IPC发送数据失败 | +| [OHOS::AVSession::ERR_SESSION_EXCEED_MAX](#err_session_exceed_max) = -(AVSESSION_ERROR_BASE + 8) | constexpr int32_t
超过允许会话最大数量 | +| [OHOS::AVSession::ERR_SESSION_NOT_EXIST](#err_session_not_exist) = -(AVSESSION_ERROR_BASE + 9) | constexpr int32_t
会话不存在 | +| [OHOS::AVSession::ERR_COMMAND_NOT_SUPPORT](#err_command_not_support) = -(AVSESSION_ERROR_BASE + 10) | constexpr int32_t
会话命令不支持 | +| [OHOS::AVSession::ERR_CONTROLLER_NOT_EXIST](#err_controller_not_exist) = -(AVSESSION_ERROR_BASE + 11) | constexpr int32_t
控制器不存在 | +| [OHOS::AVSession::ERR_NO_PERMISSION](#err_no_permission) = -(AVSESSION_ERROR_BASE + 12) | constexpr int32_t
无权限 | +| [OHOS::AVSession::ERR_SESSION_DEACTIVE](#err_session_deactive) = -(AVSESSION_ERROR_BASE + 13) | constexpr int32_t
会话未激活 | +| [OHOS::AVSession::ERR_CONTROLLER_IS_EXIST](#err_controller_is_exist) = -(AVSESSION_ERROR_BASE + 14) | constexpr int32_t
控制器存在 | +| [OHOS::AVSession::ERR_START_ABILITY_IS_RUNNING](#err_start_ability_is_running) = -(AVSESSION_ERROR_BASE + 15) | constexpr int32_t
元能力正在运行 | +| [OHOS::AVSession::ERR_ABILITY_NOT_AVAILABLE](#err_ability_not_available) = -(AVSESSION_ERROR_BASE + 16) | constexpr int32_t
元能力启动超失败 | +| [OHOS::AVSession::ERR_START_ABILITY_TIMEOUT](#err_start_ability_timeout) = -(AVSESSION_ERROR_BASE + 17) | constexpr int32_t
元能力启动超时 | +| [OHOS::AVSession::ERR_COMMAND_SEND_EXCEED_MAX](#err_command_send_exceed_max) = -(AVSESSION_ERROR_BASE + 18) | constexpr int32_t
指令发送次数超过最大值 | +| [OHOS::AVSession::ERR_RPC_SEND_REQUEST](#err_rpc_send_request) = -(AVSESSION_ERROR_BASE + 19) | constexpr int32_t
RPC发送数据失败 | + + +## 变量说明 + + +### AVSESSION_ERROR + + +``` +constexpr int32_t OHOS::AVSession::AVSESSION_ERROR = -1 +``` +**描述:** +存在错误 + + +### AVSESSION_ERROR_BASE + + +``` +constexpr int32_t OHOS::AVSession::AVSESSION_ERROR_BASE = 1000 +``` +**描述:** +avsession错误码的基定义 + + +### AVSESSION_SUCCESS + + +``` +constexpr int32_t OHOS::AVSession::AVSESSION_SUCCESS = 0 +``` +**描述:** +操作成功 + + +### ERR_ABILITY_NOT_AVAILABLE + + +``` +constexpr int32_t OHOS::AVSession::ERR_ABILITY_NOT_AVAILABLE = -(AVSESSION_ERROR_BASE + 16) +``` +**描述:** +元能力启动超失败 + + +### ERR_COMMAND_NOT_SUPPORT + + +``` +constexpr int32_t OHOS::AVSession::ERR_COMMAND_NOT_SUPPORT = -(AVSESSION_ERROR_BASE + 10) +``` +**描述:** +会话命令不支持 + + +### ERR_COMMAND_SEND_EXCEED_MAX + + +``` +constexpr int32_t OHOS::AVSession::ERR_COMMAND_SEND_EXCEED_MAX = -(AVSESSION_ERROR_BASE + 18) +``` +**描述:** +指令发送次数超过最大值 + + +### ERR_CONTROLLER_IS_EXIST + + +``` +constexpr int32_t OHOS::AVSession::ERR_CONTROLLER_IS_EXIST = -(AVSESSION_ERROR_BASE + 14) +``` +**描述:** +控制器存在 + + +### ERR_CONTROLLER_NOT_EXIST + + +``` +constexpr int32_t OHOS::AVSession::ERR_CONTROLLER_NOT_EXIST = -(AVSESSION_ERROR_BASE + 11) +``` +**描述:** +控制器不存在 + + +### ERR_INVALID_PARAM + + +``` +constexpr int32_t OHOS::AVSession::ERR_INVALID_PARAM = -(AVSESSION_ERROR_BASE + 2) +``` +**描述:** +传递的参数无效 + + +### ERR_IPC_SEND_REQUEST + + +``` +constexpr int32_t OHOS::AVSession::ERR_IPC_SEND_REQUEST = -(AVSESSION_ERROR_BASE + 7) +``` +**描述:** +IPC发送数据失败 + + +### ERR_MARSHALLING + + +``` +constexpr int32_t OHOS::AVSession::ERR_MARSHALLING = -(AVSESSION_ERROR_BASE + 5) +``` +**描述:** +数据序列化操作错误 + + +### ERR_NO_MEMORY + + +``` +constexpr int32_t OHOS::AVSession::ERR_NO_MEMORY = -(AVSESSION_ERROR_BASE + 1) +``` +**描述:** +无可用内存 + + +### ERR_NO_PERMISSION + + +``` +constexpr int32_t OHOS::AVSession::ERR_NO_PERMISSION = -(AVSESSION_ERROR_BASE + 12) +``` +**描述:** +无权限 + + +### ERR_RPC_SEND_REQUEST + + +``` +constexpr int32_t OHOS::AVSession::ERR_RPC_SEND_REQUEST = -(AVSESSION_ERROR_BASE + 19) +``` +**描述:** +RPC发送数据失败 + + +### ERR_SERVICE_NOT_EXIST + + +``` +constexpr int32_t OHOS::AVSession::ERR_SERVICE_NOT_EXIST = -(AVSESSION_ERROR_BASE + 3) +``` +**描述:** +服务不存在 + + +### ERR_SESSION_DEACTIVE + + +``` +constexpr int32_t OHOS::AVSession::ERR_SESSION_DEACTIVE = -(AVSESSION_ERROR_BASE + 13) +``` +**描述:** +会话未激活 + + +### ERR_SESSION_EXCEED_MAX + + +``` +constexpr int32_t OHOS::AVSession::ERR_SESSION_EXCEED_MAX = -(AVSESSION_ERROR_BASE + 8) +``` +**描述:** +超过允许会话最大数量 + + +### ERR_SESSION_LISTENER_EXIST + + +``` +constexpr int32_t OHOS::AVSession::ERR_SESSION_LISTENER_EXIST = -(AVSESSION_ERROR_BASE + 4) +``` +**描述:** +Session监听器已存在 + + +### ERR_SESSION_NOT_EXIST + + +``` +constexpr int32_t OHOS::AVSession::ERR_SESSION_NOT_EXIST = -(AVSESSION_ERROR_BASE + 9) +``` +**描述:** +会话不存在 + + +### ERR_START_ABILITY_IS_RUNNING + + +``` +constexpr int32_t OHOS::AVSession::ERR_START_ABILITY_IS_RUNNING = -(AVSESSION_ERROR_BASE + 15) +``` +**描述:** +元能力正在运行 + + +### ERR_START_ABILITY_TIMEOUT + + +``` +constexpr int32_t OHOS::AVSession::ERR_START_ABILITY_TIMEOUT = -(AVSESSION_ERROR_BASE + 17) +``` +**描述:** +元能力启动超时 + + +### ERR_UNMARSHALLING + + +``` +constexpr int32_t OHOS::AVSession::ERR_UNMARSHALLING = -(AVSESSION_ERROR_BASE + 6) +``` +**描述:** +数据反序列化操作错误 diff --git a/zh-cn/application-dev/reference/native-apis/avsession__info_8h.md b/zh-cn/application-dev/reference/native-apis/avsession__info_8h.md new file mode 100644 index 0000000000000000000000000000000000000000..6a557b7d385140bed174ff4da5f808046c00409d --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/avsession__info_8h.md @@ -0,0 +1,75 @@ +# avsession_info.h + + +## 概述 + +定义了与avsession相关的监听器以及回调功能的实现。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[Avsession](avsession.md) + + +## 汇总 + + +### 结构体 + + | 名称 | 描述 | +| -------- | -------- | +| [OHOS::AVSession::SessionListener](_o_h_o_s_1_1_a_v_session_1_1_session_listener.md) | class
定义与AVSession相关监听器的类的实现。 | +| [OHOS::AVSession::AVSessionCallback](_o_h_o_s_1_1_a_v_session_1_1_a_v_session_callback.md) | class
定义AVSession回调类的实现 | +| [OHOS::AVSession::AVControllerCallback](_h_o_s_1_1_a_v_session_1_1_a_v_controller_callback.md) | class
定义控制器相关回调操作的类的实现。 | +| [OHOS::AVSession::SessionToken](_o_h_o_s_1_1_a_v_session_1_1_session_token.md) | struct
会话令牌的信息。 | + + +### 类型定义 + + | 名称 | 描述 | +| -------- | -------- | +| [OHOS::AVSession::DeathCallback](#deathcallback) = std::function< void()> | using | + + +### 枚举 + + | 名称 | 描述 | +| -------- | -------- | +| [OHOS::AVSession::SessionDataCategory](#sessiondatacategory) {
**OHOS::AVSession::SESSION_DATA_CATEGORY_INVALID** = -1, **OHOS::AVSession::SESSION_DATA_META** = 0, **OHOS::AVSession::SESSION_DATA_PLAYBACK_STATE** = 1, **OHOS::AVSession::SESSION_DATA_CONTROL_COMMAND** = 2, **OHOS::AVSession::SESSION_DATA_CATEGORY_MAX** = 3
} | 会话元数据处理标识 | + + +## 类型定义说明 + + +### DeathCallback + + +``` +using OHOS::AVSession::DeathCallback = typedef std::function +``` +**描述:** +AVSession死亡回调 + + +## 枚举类型说明 + + +### SessionDataCategory + + +``` +enum OHOS::AVSession::SessionDataCategory +``` +**描述:** +会话元数据处理标识 + + | 枚举值 | 描述 | +| -------- | -------- | +| SESSION_DATA_CATEGORY_INVALID | 无效类型,内部用于类型是否有效 | +| SESSION_DATA_META | 会话元数据 | +| SESSION_DATA_PLAYBACK_STATE | 会话播放状态 | +| SESSION_DATA_CONTROL_COMMAND | 会话控制命令 | +| SESSION_DATA_CATEGORY_MAX | 会话数据类型的数量 | diff --git a/zh-cn/application-dev/reference/native-apis/avsession__manager_8h.md b/zh-cn/application-dev/reference/native-apis/avsession__manager_8h.md new file mode 100644 index 0000000000000000000000000000000000000000..7b2ebbd07e351368fe938453be904b5f56181319 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/avsession__manager_8h.md @@ -0,0 +1,24 @@ +# avsession_manager.h + + +## 概述 + +定义了会话管理器对外接口的功能的实现。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[Avsession](avsession.md) + + +## 汇总 + + +### 结构体 + + | 名称 | 描述 | +| -------- | -------- | +| [OHOS::AVSession::AVSessionManager](_o_h_o_s_1_1_a_v_session_1_1_a_v_session_manager.md) | class
实现会话管理器对外接口功能的类的实现。 | diff --git a/zh-cn/application-dev/reference/native-apis/avsession__pixel__map_8h.md b/zh-cn/application-dev/reference/native-apis/avsession__pixel__map_8h.md new file mode 100644 index 0000000000000000000000000000000000000000..8d5d6f7dad1a7aac3bd8908ed4d5ef32f47088c3 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/avsession__pixel__map_8h.md @@ -0,0 +1,44 @@ +# avsession_pixel_map.h + + +## 概述 + +读取、设置图片及图片信息。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[Avsession](avsession.md) + + +## 汇总 + + +### 结构体 + + | 名称 | 描述 | +| -------- | -------- | +| [OHOS::AVSession::AVSessionPixelMap](_o_h_o_s_1_1_a_v_session_1_1_a_v_session_pixel_map.md) | class
读取、设置图片及图片信息。 | + + +### 变量 + + | 名称 | 描述 | +| -------- | -------- | +| [OHOS::AVSession::DEFAULT_BUFFER_SIZE](#default_buffer_size) = 160 \* 1024 | constexpr size_t
初始化容器大小为160KB | + + +## 变量说明 + + +### DEFAULT_BUFFER_SIZE + + +``` +constexpr size_t OHOS::AVSession::DEFAULT_BUFFER_SIZE = 160 * 1024 +``` +**描述:** +初始化容器大小为160KB diff --git a/zh-cn/application-dev/reference/native-apis/native__avcodec__audiodecoder_8h.md b/zh-cn/application-dev/reference/native-apis/native__avcodec__audiodecoder_8h.md new file mode 100644 index 0000000000000000000000000000000000000000..372e9ea1c95bd30792f40f4a542c6cb56de96867 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/native__avcodec__audiodecoder_8h.md @@ -0,0 +1,37 @@ +# native_avcodec_audiodecoder.h + + +## 概述 + +声明用于音频解码的Native API。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[AudioDecoder](_audio_decoder.md) + + +## 汇总 + + +### 函数 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_AudioDecoder_CreateByMime](_audio_decoder.md#oh_audiodecoder_createbymime) (const char \*mime) | OH_AVCodec \*
通过mime类型创建一个音频解码器实例,大多数情况下推荐使用该接口。 | +| [OH_AudioDecoder_CreateByName](_audio_decoder.md#oh_audiodecoder_createbyname) (const char \*name) | OH_AVCodec \*
通过音频解码器名称创建一个音频解码器实例,使用这个接口的前提是必须清楚解码器准确的名称。 | +| [OH_AudioDecoder_Destroy](_audio_decoder.md#oh_audiodecoder_destroy) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空解码器内部资源,并销毁解码器实例 | +| [OH_AudioDecoder_SetCallback](_audio_decoder.md#oh_audiodecoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | [OH_AVErrCode](_core.md#oh_averrcode)
设置异步回调函数,使得你的应用能够响应音频解码器产生的事件,该接口被调用必须是在Prepare被调用前。 | +| [OH_AudioDecoder_Configure](_audio_decoder.md#oh_audiodecoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
配置音频解码器,典型地,需要配置被解码音频轨道的描述信息,这些信息能够从容器中提取出来, 该接口被调用必须是在Prepare被调用前。 | +| [OH_AudioDecoder_Prepare](_audio_decoder.md#oh_audiodecoder_prepare) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
准备解码器内部资源,调用该接口前必须先调用Configure接口。 | +| [OH_AudioDecoder_Start](_audio_decoder.md#oh_audiodecoder_start) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
启动解码器,该接口必须在已经Prepare成功后调用。 在启动成功后,解码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | +| [OH_AudioDecoder_Stop](_audio_decoder.md#oh_audiodecoder_stop) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
停止解码器。在停止后可通过Start重新进入Started状态,但需要注意的是,若先前给解码器输入过 Codec-Specific-Data,则需要重新输入。 | +| [OH_AudioDecoder_Flush](_audio_decoder.md#oh_audiodecoder_flush) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空解码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | +| [OH_AudioDecoder_Reset](_audio_decoder.md#oh_audiodecoder_reset) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
重置解码器。如需继续解码工作,需要重新调用Configure接口以配置该解码器实例。 | +| [OH_AudioDecoder_GetOutputDescription](_audio_decoder.md#oh_audiodecoder_getoutputdescription) (OH_AVCodec \*codec) | OH_AVFormat \*
获取该解码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例需调用者手动释放。 | +| [OH_AudioDecoder_SetParameter](_audio_decoder.md#oh_audiodecoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
向解码器设置动态参数,注意:该接口仅能在解码器被启动后调用,同时错误的参数设置,可能会导致解码失败。 | +| [OH_AudioDecoder_PushInputData](_audio_decoder.md#oh_audiodecoder_pushinputdata) (OH_AVCodec \*codec, uint32_t index, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) attr) | [OH_AVErrCode](_core.md#oh_averrcode)
将填充好数据的输入Buffer提交给音频解码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给解码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。另外,对于部分解码器,要求在最开始给解码器输入 Codec-Specific-Data,用以初始化解码器的解码过程。 | +| [OH_AudioDecoder_FreeOutputData](_audio_decoder.md#oh_audiodecoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给解码器。 | diff --git a/zh-cn/application-dev/reference/native-apis/native__avcodec__audioencoder_8h.md b/zh-cn/application-dev/reference/native-apis/native__avcodec__audioencoder_8h.md new file mode 100644 index 0000000000000000000000000000000000000000..80e6048b45a42b9f82d194525a0963132358022b --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/native__avcodec__audioencoder_8h.md @@ -0,0 +1,37 @@ +# native_avcodec_audioencoder.h + + +## 概述 + +声明用于音频编码的Native API。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[AudioEncoder](_audio_encoder.md) + + +## 汇总 + + +### 函数 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_AudioEncoder_CreateByMime](_audio_encoder.md#oh_audioencoder_createbymime) (const char \*mime) | OH_AVCodec \*
通过mime类型创建一个音频编码器实例,大多数情况下推荐使用该接口。 | +| [OH_AudioEncoder_CreateByName](_audio_encoder.md#oh_audioencoder_createbyname) (const char \*name) | OH_AVCodec \*
通过音频编码器名称创建一个音频编码器实例,使用这个接口的前提是必须清楚编码器准确的名称。 | +| [OH_AudioEncoder_Destroy](_audio_encoder.md#oh_audioencoder_destroy) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空编码器内部资源,并销毁编码器实例。 | +| [OH_AudioEncoder_SetCallback](_audio_encoder.md#oh_audioencoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | [OH_AVErrCode](_core.md#oh_averrcode)
设置异步回调函数,使得你的应用能够响应音频编码器产生的事件,该接口被调用必须是在Prepare被调用前。 | +| [OH_AudioEncoder_Configure](_audio_encoder.md#oh_audioencoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
配置音频编码器,典型地,需要配置被编码音频轨道的描述信息,该接口被调用必须是在Prepare被调用前。 | +| [OH_AudioEncoder_Prepare](_audio_encoder.md#oh_audioencoder_prepare) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
准备编码器内部资源,调用该接口前必须先调用Configure接口。 | +| [OH_AudioEncoder_Start](_audio_encoder.md#oh_audioencoder_start) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
启动编码器,该接口必须在已经Prepare成功后调用。 在启动成功后,编码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | +| [OH_AudioEncoder_Stop](_audio_encoder.md#oh_audioencoder_stop) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
停止编码器。在停止后可通过Start重新进入Started状态。 | +| [OH_AudioEncoder_Flush](_audio_encoder.md#oh_audioencoder_flush) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空编码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | +| [OH_AudioEncoder_Reset](_audio_encoder.md#oh_audioencoder_reset) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
重置编码器。如需继续编码工作,需要重新调用Configure接口以配置该编码器实例。 | +| [OH_AudioEncoder_GetOutputDescription](_audio_encoder.md#oh_audioencoder_getoutputdescription) (OH_AVCodec \*codec) | OH_AVFormat \*
获取该编码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例需调用者手动释放。 | +| [OH_AudioEncoder_SetParameter](_audio_encoder.md#oh_audioencoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
向编码器设置动态参数,注意:该接口仅能在编码器被启动后调用,同时错误的参数设置,可能会导致编码失败。 | +| [OH_AudioEncoder_PushInputData](_audio_encoder.md#oh_audioencoder_pushinputdata) (OH_AVCodec \*codec, uint32_t index, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) attr) | [OH_AVErrCode](_core.md#oh_averrcode)
将填充好数据的输入Buffer提交给音频编码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给编码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。 | +| [OH_AudioEncoder_FreeOutputData](_audio_encoder.md#oh_audioencoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给编码器。 | diff --git a/zh-cn/application-dev/reference/native-apis/native__avcodec__base_8h.md b/zh-cn/application-dev/reference/native-apis/native__avcodec__base_8h.md new file mode 100644 index 0000000000000000000000000000000000000000..3bf1d9f0890141e6995ac0a70e86195ef83ee295 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/native__avcodec__base_8h.md @@ -0,0 +1,79 @@ +# native_avcodec_base.h + + +## 概述 + +声明运行音视频编解码通用的结构体、字符常量、枚举。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[CodecBase](_codec_base.md) + + +## 汇总 + + +### 结构体 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) | struct
定义OH_AVCodec的Buffer描述信息。 | +| [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) | struct
AVCodec所有的异步回调函数指针集合。注册一个该结构体实例给OH_AVCodec实例,并处理通过该回调报告 的信息,以确保AVCodec正常运转。 | + + +### 类型定义 + + | 名称 | 描述 | +| -------- | -------- | +| **OHNativeWindow** | typedef struct NativeWindow | +| **OH_AVCodec** | typedef struct OH_AVCodec | +| [OH_AVCodecBufferFlags](_codec_base.md#oh_avcodecbufferflags) | typedef enum [OH_AVCodecBufferFlags](_codec_base.md#oh_avcodecbufferflags)
枚举OH_AVCodec的Buffer标记的类别。 | +| [OH_AVCodecBufferAttr](_codec_base.md#oh_avcodecbufferattr) | typedef struct [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md)
定义OH_AVCodec的Buffer描述信息。 | +| [OH_AVCodecOnError](_codec_base.md#oh_avcodeconerror)) (OH_AVCodec \*codec, int32_t errorCode, void \*userData) | typedef void(\*
当OH_AVCodec实例运行发生错误时,该函数指针会被调用以报告具体错误信息。 | +| [OH_AVCodecOnStreamChanged](_codec_base.md#oh_avcodeconstreamchanged)) (OH_AVCodec \*codec, OH_AVFormat \*format, void \*userData) | typedef void(\*
当输出流发生变化时,该函数指针会被调用以报告新的流描述信息。 需要注意的时,OH_AVFormat指针的生命周期仅维持在该函数指针被调用时上有效,禁止在调用结束后继续访问。 | +| [OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)) (OH_AVCodec \*codec, uint32_t index, OH_AVMemory \*data, void \*userData) | typedef void(\*
当AVCodec运行过程中需要新的输入数据时,该函数指针会被调用,并携带一块可用的Buffer以供填入新的输入数据。 | +| [OH_AVCodecOnNewOutputData](_codec_base.md#oh_avcodeconnewoutputdata)) (OH_AVCodec \*codec, uint32_t index, OH_AVMemory \*data, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) \*attr, void \*userData) | typedef void(\*
当AVCodec运行过程中产生了新的输出数据时,该函数指针会被调用,并携带一块包含新输出数据的Buffer, 需要注意的是,OH_AVCodecBufferAttr指针的生命周期仅维持在该函数指针被调用时有效,禁止调用结束后继续访问。 | +| [OH_AVCodecAsyncCallback](_codec_base.md#oh_avcodecasynccallback) | typedef struct [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md)
AVCodec所有的异步回调函数指针集合。注册一个该结构体实例给OH_AVCodec实例,并处理通过该回调报告 的信息,以确保AVCodec正常运转。 | +| [OH_MediaType](_codec_base.md#oh_mediatype) | typedef enum [OH_MediaType](_codec_base.md#oh_mediatype)
媒体类型。 | +| [OH_AVCProfile](_codec_base.md#oh_avcprofile) | typedef enum [OH_AVCProfile](_codec_base.md#oh_avcprofile)
AVC Profile枚举。 | +| [OH_AACProfile](_codec_base.md#oh_aacprofile) | typedef enum [OH_AACProfile](_codec_base.md#oh_aacprofile)
AAC Profile枚举。 | + + +### 枚举 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_AVCodecBufferFlags](_codec_base.md#oh_avcodecbufferflags) {
**AVCODEC_BUFFER_FLAGS_NONE** = 0, **AVCODEC_BUFFER_FLAGS_EOS** = 1 << 0, **AVCODEC_BUFFER_FLAGS_SYNC_FRAME** = 1 << 1, **AVCODEC_BUFFER_FLAGS_INCOMPLETE_FRAME** = 1 << 2,
**AVCODEC_BUFFER_FLAGS_CODEC_DATA** = 1 << 3
} | 枚举OH_AVCodec的Buffer标记的类别。 | +| [OH_MediaType](_codec_base.md#oh_mediatype) { **MEDIA_TYPE_AUD** = 0, **MEDIA_TYPE_VID** = 1 } | 媒体类型。 | +| [OH_AVCProfile](_codec_base.md#oh_avcprofile) { **AVC_PROFILE_BASELINE** = 0, **AVC_PROFILE_HIGH** = 4, **AVC_PROFILE_MAIN** = 8 } | AVC Profile枚举。 | +| [OH_AACProfile](_codec_base.md#oh_aacprofile) { **AAC_PROFILE_LC** = 0 } | AAC Profile枚举。 | + + +### 变量 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_AVCODEC_MIMETYPE_VIDEO_AVC](_codec_base.md#oh_avcodec_mimetype_video_avc) | const char \*
AVC视频编解码器的MIME类型。 | +| [OH_AVCODEC_MIMETYPE_AUDIO_AAC](_codec_base.md#oh_avcodec_mimetype_audio_aac) | const char \*
AAC音频编解码器的MIME类型。 | +| [OH_ED_KEY_TIME_STAMP](_codec_base.md#oh_ed_key_time_stamp) | const char \*
提供统一的surface Buffer附属数据的字符描述符。 | +| [OH_ED_KEY_EOS](_codec_base.md#oh_ed_key_eos) | const char \* | +| [OH_MD_KEY_TRACK_TYPE](_codec_base.md#oh_md_key_track_type) | const char \*
为媒体播放框架提供统一的字符描述符。 | +| [OH_MD_KEY_CODEC_MIME](_codec_base.md#oh_md_key_codec_mime) | const char \* | +| [OH_MD_KEY_DURATION](_codec_base.md#oh_md_key_duration) | const char \* | +| [OH_MD_KEY_BITRATE](_codec_base.md#oh_md_key_bitrate) | const char \* | +| [OH_MD_KEY_MAX_INPUT_SIZE](_codec_base.md#oh_md_key_max_input_size) | const char \* | +| [OH_MD_KEY_WIDTH](_codec_base.md#oh_md_key_width) | const char \* | +| [OH_MD_KEY_HEIGHT](_codec_base.md#oh_md_key_height) | const char \* | +| [OH_MD_KEY_PIXEL_FORMAT](_codec_base.md#oh_md_key_pixel_format) | const char \* | +| [OH_MD_KEY_AUDIO_SAMPLE_FORMAT](_codec_base.md#oh_md_key_audio_sample_format) | const char \* | +| [OH_MD_KEY_FRAME_RATE](_codec_base.md#oh_md_key_frame_rate) | const char \* | +| [OH_MD_KEY_VIDEO_ENCODE_BITRATE_MODE](_codec_base.md#oh_md_key_video_encode_bitrate_mode) | const char \* | +| [OH_MD_KEY_PROFILE](_codec_base.md#oh_md_key_profile) | const char \* | +| [OH_MD_KEY_AUD_CHANNEL_COUNT](_codec_base.md#oh_md_key_aud_channel_count) | const char \* | +| [OH_MD_KEY_AUD_SAMPLE_RATE](_codec_base.md#oh_md_key_aud_sample_rate) | const char \* | +| [OH_MD_KEY_I_FRAME_INTERVAL](_codec_base.md#oh_md_key_i_frame_interval) | const char \* | +| [OH_MD_KEY_ROTATION](_codec_base.md#oh_md_key_rotation) | const char \* | diff --git a/zh-cn/application-dev/reference/native-apis/native__avcodec__videodecoder_8h.md b/zh-cn/application-dev/reference/native-apis/native__avcodec__videodecoder_8h.md new file mode 100644 index 0000000000000000000000000000000000000000..f562886c1013f6b5bd4ac6530cb300790374bdad --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/native__avcodec__videodecoder_8h.md @@ -0,0 +1,39 @@ +# native_avcodec_videodecoder.h + + +## 概述 + +声明用于视频解码的Native API。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[VideoDecoder](_video_decoder.md) + + +## 汇总 + + +### 函数 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_VideoDecoder_CreateByMime](_video_decoder.md#oh_videodecoder_createbymime) (const char \*mime) | OH_AVCodec \*
通过mime类型创建一个视频解码器实例,大多数情况下推荐使用该接口。 | +| [OH_VideoDecoder_CreateByName](_video_decoder.md#oh_videodecoder_createbyname) (const char \*name) | OH_AVCodec \*
通过视频解码器名称创建一个视频解码器实例,使用这个接口的前提是必须清楚解码器准确的名称。 | +| [OH_VideoDecoder_Destroy](_video_decoder.md#oh_videodecoder_destroy) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空解码器内部资源,并销毁解码器实例。 | +| [OH_VideoDecoder_SetCallback](_video_decoder.md#oh_videodecoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | [OH_AVErrCode](_core.md#oh_averrcode)
设置异步回调函数,使得你的应用能够响应视频解码器产生的事件,该接口被调用必须是在Prepare被调用前。 | +| [OH_VideoDecoder_SetSurface](_video_decoder.md#oh_videodecoder_setsurface) (OH_AVCodec \*codec, OHNativeWindow \*window) | [OH_AVErrCode](_core.md#oh_averrcode)
指定输出Surface,以提供视频解码输出,该接口被调用必须是在Prepare被调用前。 | +| [OH_VideoDecoder_Configure](_video_decoder.md#oh_videodecoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
配置视频解码器,典型地,需要配置被解码视频轨道的描述信息,这些信息能够从容器中提取出来, 该接口被调用必须是在Prepare被调用前。 | +| [OH_VideoDecoder_Prepare](_video_decoder.md#oh_videodecoder_prepare) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
准备解码器内部资源,调用该接口前必须先调用Configure接口。 | +| [OH_VideoDecoder_Start](_video_decoder.md#oh_videodecoder_start) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
启动解码器,该接口必须在已经Prepare成功后调用。 在启动成功后,解码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | +| [OH_VideoDecoder_Stop](_video_decoder.md#oh_videodecoder_stop) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
停止解码器。在停止后可通过Start重新进入Started状态,但需要注意的是,若先前给解码器输入过 Codec-Specific-Data,则需要重新输入。 | +| [OH_VideoDecoder_Flush](_video_decoder.md#oh_videodecoder_flush) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空解码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | +| [OH_VideoDecoder_Reset](_video_decoder.md#oh_videodecoder_reset) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
重置解码器。如需继续解码工作,需要重新调用Configure接口以配置该解码器实例。 | +| [OH_VideoDecoder_GetOutputDescription](_video_decoder.md#oh_videodecoder_getoutputdescription) (OH_AVCodec \*codec) | OH_AVFormat \*
获取该解码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例的生命周期 将会再下一次调用该接口时或者该OH_AVCodec实例被销毁时失效。 | +| [OH_VideoDecoder_SetParameter](_video_decoder.md#oh_videodecoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
向解码器设置动态参数,注意:该接口仅能在解码器被启动后调用,同时错误的参数设置,可能会导致解码失败。 | +| [OH_VideoDecoder_PushInputData](_video_decoder.md#oh_videodecoder_pushinputdata) (OH_AVCodec \*codec, uint32_t index, [OH_AVCodecBufferAttr](_o_h___a_v_codec_buffer_attr.md) attr) | [OH_AVErrCode](_core.md#oh_averrcode)
将填充好数据的输入Buffer提交给视频解码器。[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)回调会报告可用的输入 Buffer及对应的索引值。一旦指定索引的Buffer被提交给解码器,直到再一次收到[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata) 回调报告相同索引的Buffer可用前,该Buffer都不可以再次被访问。另外,对于部分解码器,要求在最开始给解码器输入 Codec-Specific-Data,用以初始化解码器的解码过程,例如H264格式的PPS/SPS数据。 | +| [OH_VideoDecoder_RenderOutputData](_video_decoder.md#oh_videodecoder_renderoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给解码器,并通知解码器完成将该Buffer内包含的解码后的数据在输出Surface上渲染。 如果先前未配置输出Surface,调用该接口仅仅将指定索引对应的输出Buffer交还给解码器。 | +| [OH_VideoDecoder_FreeOutputData](_video_decoder.md#oh_videodecoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给解码器。 | diff --git a/zh-cn/application-dev/reference/native-apis/native__avcodec__videoencoder_8h.md b/zh-cn/application-dev/reference/native-apis/native__avcodec__videoencoder_8h.md new file mode 100644 index 0000000000000000000000000000000000000000..50cb054e61babe666a5cc1f1da4c470cd1c64594 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/native__avcodec__videoencoder_8h.md @@ -0,0 +1,52 @@ +# native_avcodec_videoencoder.h + + +## 概述 + +声明用于视频编码的Native API。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[VideoEncoder](_video_encoder.md) + + +## 汇总 + + +### 类型定义 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_VideoEncodeBitrateMode](_video_encoder.md#oh_videoencodebitratemode) | typedef enum [OH_VideoEncodeBitrateMode](_video_encoder.md#oh_videoencodebitratemode)
视频编码的比特率模式。 | + + +### 枚举 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_VideoEncodeBitrateMode](_video_encoder.md#oh_videoencodebitratemode) { **CBR** = 0, **VBR** = 1, **CQ** = 2 } | 视频编码的比特率模式。 | + + +### 函数 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_VideoEncoder_CreateByMime](_video_encoder.md#oh_videoencoder_createbymime) (const char \*mime) | OH_AVCodec \*
通过mime类型创建一个视频编码器实例,大多数情况下推荐使用该接口。 | +| [OH_VideoEncoder_CreateByName](_video_encoder.md#oh_videoencoder_createbyname) (const char \*name) | OH_AVCodec \*
通过视频编码器名称创建一个视频编码器实例,使用这个接口的前提是必须清楚编码器准确的名称。 | +| [OH_VideoEncoder_Destroy](_video_encoder.md#oh_videoencoder_destroy) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空编码器内部资源,并销毁编码器实例。 | +| [OH_VideoEncoder_SetCallback](_video_encoder.md#oh_videoencoder_setcallback) (OH_AVCodec \*codec, [OH_AVCodecAsyncCallback](_o_h___a_v_codec_async_callback.md) callback, void \*userData) | [OH_AVErrCode](_core.md#oh_averrcode)
设置异步回调函数,使得你的应用能够响应视频编码器产生的事件,该接口被调用必须是在Prepare被调用前。 | +| [OH_VideoEncoder_Configure](_video_encoder.md#oh_videoencoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
配置视频编码器,典型地,需要配置被编码视频轨道的描述信息,该接口被调用必须是在Prepare被调用前。 | +| [OH_VideoEncoder_Prepare](_video_encoder.md#oh_videoencoder_prepare) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
准备编码器内部资源,调用该接口前必须先调用Configure接口。 | +| [OH_VideoEncoder_Start](_video_encoder.md#oh_videoencoder_start) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
启动编码器,该接口必须在已经Prepare成功后调用。 在启动成功后,编码器将开始报告[OH_AVCodecOnNeedInputData](_codec_base.md#oh_avcodeconneedinputdata)事件。 | +| [OH_VideoEncoder_Stop](_video_encoder.md#oh_videoencoder_stop) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
停止编码器。在停止后可通过Start重新进入Started状态。 | +| [OH_VideoEncoder_Flush](_video_encoder.md#oh_videoencoder_flush) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
清空编码器内部缓存的输入输出数据。在该接口被调用后,所有先前通过异步回调报告的Buffer的索引都将 失效,确保不要再访问这些索引对应的Buffers。 | +| [OH_VideoEncoder_Reset](_video_encoder.md#oh_videoencoder_reset) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
重置编码器。如需继续编码工作,需要重新调用Configure接口以配置该编码器实例。 | +| [OH_VideoEncoder_GetOutputDescription](_video_encoder.md#oh_videoencoder_getoutputdescription) (OH_AVCodec \*codec) | OH_AVFormat \*
获取该编码器输出数据的描述信息,需要注意的是,返回值所指向的OH_AVFormat实例的生命周期 将会再下一次调用该接口时或者该OH_AVCodec实例被销毁时失效。 | +| [OH_VideoEncoder_SetParameter](_video_encoder.md#oh_videoencoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | [OH_AVErrCode](_core.md#oh_averrcode)
向编码器设置动态参数,注意:该接口仅能在编码器被启动后调用,同时错误的参数设置,可能会导致编码失败。 | +| [OH_VideoEncoder_GetSurface](_video_encoder.md#oh_videoencoder_getsurface) (OH_AVCodec \*codec, OHNativeWindow \*\*window) | [OH_AVErrCode](_core.md#oh_averrcode)
从视频编码器获取输入Surface, 该接口被调用必须是在Prepare被调用前。 | +| [OH_VideoEncoder_FreeOutputData](_video_encoder.md#oh_videoencoder_freeoutputdata) (OH_AVCodec \*codec, uint32_t index) | [OH_AVErrCode](_core.md#oh_averrcode)
将处理结束的输出Buffer交还给编码器。 | +| [OH_VideoEncoder_NotifyEndOfStream](_video_encoder.md#oh_videoencoder_notifyendofstream) (OH_AVCodec \*codec) | [OH_AVErrCode](_core.md#oh_averrcode)
通知视频编码器输入码流已结束。surface模式推荐使用该接口通知编码器码流结束。 | diff --git a/zh-cn/application-dev/reference/native-apis/native__averrors_8h.md b/zh-cn/application-dev/reference/native-apis/native__averrors_8h.md new file mode 100644 index 0000000000000000000000000000000000000000..269d3a898d6261307b32f5833a037036279811aa --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/native__averrors_8h.md @@ -0,0 +1,31 @@ +# native_averrors.h + + +## 概述 + +声明了媒体播放框架的错误码。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[Core](_core.md) + + +## 汇总 + + +### 类型定义 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_AVErrCode](_core.md#oh_averrcode) | typedef enum [OH_AVErrCode](_core.md#oh_averrcode)
音视频错误码。 | + + +### 枚举 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_AVErrCode](_core.md#oh_averrcode) {
**AV_ERR_OK** = 0, **AV_ERR_NO_MEMORY** = 1, **AV_ERR_OPERATE_NOT_PERMIT** = 2, **AV_ERR_INVALID_VAL** = 3, **AV_ERR_IO** = 4, **AV_ERR_TIMEOUT** = 5, **AV_ERR_UNKNOWN** = 6, **AV_ERR_SERVICE_DIED** = 7, **AV_ERR_INVALID_STATE** = 8, **AV_ERR_UNSUPPORT** = 9, **AV_ERR_EXTEND_START** = 100
} | 音视频错误码。 | diff --git a/zh-cn/application-dev/reference/native-apis/native__avformat_8h.md b/zh-cn/application-dev/reference/native-apis/native__avformat_8h.md new file mode 100644 index 0000000000000000000000000000000000000000..4f22a67c0a508766a730251facad472e7b708b32 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/native__avformat_8h.md @@ -0,0 +1,54 @@ +# native_avformat.h + + +## 概述 + +声明了格式相关的函数和枚举。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[Core](_core.md) + + +## 汇总 + + +### 类型定义 + + | 名称 | 描述 | +| -------- | -------- | +| **OH_AVFormat** | typedef struct OH_AVFormat | +| [OH_AVPixelFormat](_core.md#oh_avpixelformat) | typedef enum [OH_AVPixelFormat](_core.md#oh_avpixelformat)
AVPixel 格式的枚举。 | + + +### 枚举 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_AVPixelFormat](_core.md#oh_avpixelformat) {
**AV_PIXEL_FORMAT_YUVI420** = 1, **AV_PIXEL_FORMAT_NV12** = 2, **AV_PIXEL_FORMAT_NV21** = 3, **AV_PIXEL_FORMAT_SURFACE_FORMAT** = 4, **AV_PIXEL_FORMAT_RGBA** = 5
} | AVPixel 格式的枚举。 | + + +### 函数 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_AVFormat_Create](_core.md#oh_avformat_create) (void) | struct OH_AVFormat \*
创建一个OH_AVFormat句柄指针,用以读写数据。 | +| [OH_AVFormat_Destroy](_core.md#oh_avformat_destroy) (struct OH_AVFormat \*format) | void
销毁指定OH_AVFormat句柄资源。 | +| [OH_AVFormat_Copy](_core.md#oh_avformat_copy) (struct OH_AVFormat \*to, struct OH_AVFormat \*from) | bool
拷贝OH_AVFormat句柄资源. | +| [OH_AVFormat_SetIntValue](_core.md#oh_avformat_setintvalue) (struct OH_AVFormat \*format, const char \*key, int32_t value) | bool
向OH_AVFormat写入Int数据. | +| [OH_AVFormat_SetLongValue](_core.md#oh_avformat_setlongvalue) (struct OH_AVFormat \*format, const char \*key, int64_t value) | bool
向OH_AVFormat写入Long数据。 | +| [OH_AVFormat_SetFloatValue](_core.md#oh_avformat_setfloatvalue) (struct OH_AVFormat \*format, const char \*key, float value) | bool
向OH_AVFormat写入Float数据。 | +| [OH_AVFormat_SetDoubleValue](_core.md#oh_avformat_setdoublevalue) (struct OH_AVFormat \*format, const char \*key, double value) | bool
向OH_AVFormat写入Double数据。 | +| [OH_AVFormat_SetStringValue](_core.md#oh_avformat_setstringvalue) (struct OH_AVFormat \*format, const char \*key, const char \*value) | bool
向OH_AVFormat写入String数据。 | +| [OH_AVFormat_SetBuffer](_core.md#oh_avformat_setbuffer) (struct OH_AVFormat \*format, const char \*key, const uint8_t \*addr, size_t size) | bool
向OH_AVFormat写入一块指定长度的数据。 | +| [OH_AVFormat_GetIntValue](_core.md#oh_avformat_getintvalue) (struct OH_AVFormat \*format, const char \*key, int32_t \*out) | bool
从OH_AVFormat读取Int数据。 | +| [OH_AVFormat_GetLongValue](_core.md#oh_avformat_getlongvalue) (struct OH_AVFormat \*format, const char \*key, int64_t \*out) | bool
从OH_AVFormat读取Long数据。 | +| [OH_AVFormat_GetFloatValue](_core.md#oh_avformat_getfloatvalue) (struct OH_AVFormat \*format, const char \*key, float \*out) | bool
从OH_AVFormat读取Float数据。 | +| [OH_AVFormat_GetDoubleValue](_core.md#oh_avformat_getdoublevalue) (struct OH_AVFormat \*format, const char \*key, double \*out) | bool
从OH_AVFormat读取Double数据。 | +| [OH_AVFormat_GetStringValue](_core.md#oh_avformat_getstringvalue) (struct OH_AVFormat \*format, const char \*key, const char \*\*out) | bool
从OH_AVFormat读取Double数据。 | +| [OH_AVFormat_GetBuffer](_core.md#oh_avformat_getbuffer) (struct OH_AVFormat \*format, const char \*key, uint8_t \*\*addr, size_t \*size) | bool
从OH_AVFormat读取一块指定长度的数据。 | +| [OH_AVFormat_DumpInfo](_core.md#oh_avformat_dumpinfo) (struct OH_AVFormat \*format) | const char \*
以字符串的形式输出OH_AVFormat所包含的信息。 | diff --git a/zh-cn/application-dev/reference/native-apis/native__avmemory_8h.md b/zh-cn/application-dev/reference/native-apis/native__avmemory_8h.md new file mode 100644 index 0000000000000000000000000000000000000000..18bdc665ff9fca8c6ed284718b6f10adee48bc86 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/native__avmemory_8h.md @@ -0,0 +1,32 @@ +# native_avmemory.h + + +## 概述 + +声明了AVMemory的函数接口。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[Core](_core.md) + + +## 汇总 + + +### 类型定义 + + | 名称 | 描述 | +| -------- | -------- | +| **OH_AVMemory** | typedef struct OH_AVMemory | + + +### 函数 + + | 名称 | 描述 | +| -------- | -------- | +| [OH_AVMemory_GetAddr](_core.md#oh_avmemory_getaddr) (struct OH_AVMemory \*mem) | uint8_t \*
获取入参的内存虚拟地址。 | +| [OH_AVMemory_GetSize](_core.md#oh_avmemory_getsize) (struct OH_AVMemory \*mem) | int32_t
获取入参的内存长度。 | diff --git a/zh-cn/application-dev/reference/native-apis/o_h_o_s_1_1_a_v_session_1_1_a_v_session_basic_info.md b/zh-cn/application-dev/reference/native-apis/o_h_o_s_1_1_a_v_session_1_1_a_v_session_basic_info.md new file mode 100644 index 0000000000000000000000000000000000000000..914cd75fe533935144971e0a8d0cfbaaeff13a72 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/o_h_o_s_1_1_a_v_session_1_1_a_v_session_basic_info.md @@ -0,0 +1,37 @@ +# OHOS::AVSession::AVSessionBasicInfo + + +## 概述 + +会话基础信息描述。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[Avsession](avsession.md) + + +## 汇总 + + +### 成员变量 + + | 名称 | 描述 | +| -------- | -------- | +| [deviceName_](avsession.md#devicename) {} | std::string | +| [networkId_](avsession.md#networkid) {} | std::string | +| [vendorId_](avsession.md#vendorid) {} | std::string | +| [deviceType_](avsession.md#devicetype) {} | std::string | +| [systemVersion_](avsession.md#systemversion) {} | std::string | +| [sessionVersion_](avsession.md#sessionversion) {} | int32_t | +| [reserve_](avsession.md#reserve) {} | std::vector< int32_t > | +| [feature_](avsession.md#feature) {} | std::vector< int32_t > | +| [metaDataCap_](avsession.md#metadatacap) {} | std::vector< int32_t > | +| [playBackStateCap_](avsession.md#playbackstatecap) {} | std::vector< int32_t > | +| [controlCommandCap_](avsession.md#controlcommandcap) {} | std::vector< int32_t > | +| [extendCapability_](avsession.md#extendcapability) {} | std::vector< int32_t > | +| [systemTime_](avsession.md#systemtime) {} | int32_t | +| [extend_](avsession.md#extend) {} | std::vector< int32_t > | diff --git a/zh-cn/application-dev/reference/native-apis/o_h_o_s_1_1_a_v_session_1_1_a_v_session_controller.md b/zh-cn/application-dev/reference/native-apis/o_h_o_s_1_1_a_v_session_1_1_a_v_session_controller.md new file mode 100644 index 0000000000000000000000000000000000000000..337f6045d9771b88cc7e253a8a5ae616ca95aa3b --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/o_h_o_s_1_1_a_v_session_1_1_a_v_session_controller.md @@ -0,0 +1,328 @@ +# OHOS::AVSession::AVSessionController + + +## 概述 + +控制器对象,可获取会话的播放状态和会话元数据,远程发送控制命令到会话端也可以通过订阅监听会话段的更新事件。 + + +## 汇总 + + +### Public 成员函数 + + | 名称 | 描述 | +| -------- | -------- | +| [GetAVPlaybackState](#getavplaybackstate) ([AVPlaybackState](_o_h_o_s_1_1_a_v_session_1_1_a_v_playback_state.md) &state)=0 | 获取音视频的播放状态。  | +| [GetAVMetaData](#getavmetadata) ([AVMetaData](_o_h_o_s_1_1_a_v_session_1_1_a_v_meta_data.md) &data)=0 | 获取会话元数据。  | +| [SendAVKeyEvent](#sendavkeyevent) (const MMI::KeyEvent &keyEvent)=0 | 发送系统按键事件。  | +| [GetLaunchAbility](#getlaunchability) (AbilityRuntime::WantAgent::WantAgent &ability)=0 | 获取Ability。  | +| [GetValidCommands](#getvalidcommands) (std::vector< int32_t > &cmds)=0 | 获取媒体有效的指令。  | +| [IsSessionActive](#issessionactive) (bool &isActive)=0 | 获取session的激活状态。  | +| [SendControlCommand](#sendcontrolcommand) (const [AVControlCommand](_o_h_o_s_1_1_a_v_session_1_1_a_v_control_command.md) &cmd)=0 | 发送媒体控制指令。  | +| [RegisterCallback](#registercallback) (const std::shared_ptr< [AVControllerCallback](_h_o_s_1_1_a_v_session_1_1_a_v_controller_callback.md) > &callback)=0 | 注册回调。  | +| [SetMetaFilter](#setmetafilter) (const [AVMetaData::MetaMaskType](_o_h_o_s_1_1_a_v_session_1_1_a_v_meta_data.md#metamasktype) &filter)=0 | 设置会话元数据过滤。  | +| [SetPlaybackFilter](#setplaybackfilter) (const AVPlaybackState::PlaybackStateMaskType &filter)=0 | 设置音视频的播放状态回调过滤。  | +| [Destroy](#destroy) ()=0 | 释放控制器。  | +| [GetSessionId](#getsessionid) ()=0 | 获取sessionId。  | +| [GetRealPlaybackPosition](#getrealplaybackposition) ()=0 | 获取播放的实时位置,第 x ms。  | +| [IsDestroy](#isdestroy) ()=0 | 是否释放控制器。  | + + +## 成员函数说明 + + +### Destroy() + + +``` +virtual int32_t OHOS::AVSession::AVSessionController::Destroy () +``` +**描述:** +释放控制器。 + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### GetAVMetaData() + + +``` +virtual int32_t OHOS::AVSession::AVSessionController::GetAVMetaData (AVMetaData & data) +``` +**描述:** +获取会话元数据。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| data | 会话元数据[AVMetaData](_o_h_o_s_1_1_a_v_session_1_1_a_v_meta_data.md)。  | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[AVSession::SetAVMetaData](_o_h_o_s_1_1_a_v_session_1_1_a_v_session.md#setavmetadata) + +[AVSession::GetAVMetaData](_o_h_o_s_1_1_a_v_session_1_1_a_v_session.md#getavmetadata) + + +### GetAVPlaybackState() + + +``` +virtual int32_t OHOS::AVSession::AVSessionController::GetAVPlaybackState (AVPlaybackState & state) +``` +**描述:** +获取音视频的播放状态。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| state | 音视频的播放状态[AVPlaybackState](_o_h_o_s_1_1_a_v_session_1_1_a_v_playback_state.md)。  | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[AVSession::SetAVPlaybackState](_o_h_o_s_1_1_a_v_session_1_1_a_v_session.md#setavplaybackstate) + +[AVSession::GetAVPlaybackState](_o_h_o_s_1_1_a_v_session_1_1_a_v_session.md#getavplaybackstate) + + +### GetLaunchAbility() + + +``` +virtual int32_t OHOS::AVSession::AVSessionController::GetLaunchAbility (AbilityRuntime::WantAgent::WantAgent & ability) +``` +**描述:** +获取Ability。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| ability | 类型为**AbilityRuntime::WantAgent::WantAgent**。  | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[AVSession::SetLaunchAbility](_o_h_o_s_1_1_a_v_session_1_1_a_v_session.md#setlaunchability) + + +### GetRealPlaybackPosition() + + +``` +virtual int64_t OHOS::AVSession::AVSessionController::GetRealPlaybackPosition () +``` +**描述:** +获取播放的实时位置,第 x ms。 + +**返回:** + +返回播放的实时位置,第x ms,经过校正过的时间,单位为ms。 + + +### GetSessionId() + + +``` +virtual std::string OHOS::AVSession::AVSessionController::GetSessionId () +``` +**描述:** +获取sessionId。 + +**返回:** + +返回sessionId。 + + +### GetValidCommands() + + +``` +virtual int32_t OHOS::AVSession::AVSessionController::GetValidCommands (std::vector< int32_t > & cmds) +``` +**描述:** +获取媒体有效的指令。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| cmds | 媒体有效的指令列表,范围为**SESSION_CMD_INVALID**到**SESSION_CMD_MAX**。  | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[SendControlCommand](#sendcontrolcommand) + +[AVSession::AddSupportCommand](_o_h_o_s_1_1_a_v_session_1_1_a_v_session.md#addsupportcommand) + +[AVSession::DeleteSupportCommand](_o_h_o_s_1_1_a_v_session_1_1_a_v_session.md#deletesupportcommand) + + +### IsDestroy() + + +``` +virtual bool OHOS::AVSession::AVSessionController::IsDestroy () +``` +**描述:** +是否释放控制器。 + +**返回:** + +true:释放;false:不释放。 + + +### IsSessionActive() + + +``` +virtual int32_t OHOS::AVSession::AVSessionController::IsSessionActive (bool & isActive) +``` +**描述:** +获取session的激活状态。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| isActive | session是否激活。  | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[AVSession::Activate](_o_h_o_s_1_1_a_v_session_1_1_a_v_session.md#activate) + +[AVSession::Deactivate](_o_h_o_s_1_1_a_v_session_1_1_a_v_session.md#deactivate) + +[AVSession::IsActive](_o_h_o_s_1_1_a_v_session_1_1_a_v_session.md#isactive) + + +### RegisterCallback() + + +``` +virtual int32_t OHOS::AVSession::AVSessionController::RegisterCallback (const std::shared_ptr< AVControllerCallback > & callback) +``` +**描述:** +注册回调。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| callback | 需要注册的回调,类型为[AVControllerCallback](_h_o_s_1_1_a_v_session_1_1_a_v_controller_callback.md)。  | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### SendAVKeyEvent() + + +``` +virtual int32_t OHOS::AVSession::AVSessionController::SendAVKeyEvent (const MMI::KeyEvent & keyEvent) +``` +**描述:** +发送系统按键事件。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| keyEvent | 按键事件码,类型为**MMI::KeyEvent**。  | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[AVSessionManager::SendSystemAVKeyEvent](_o_h_o_s_1_1_a_v_session_1_1_a_v_session_manager.md#sendsystemavkeyevent) + + +### SendControlCommand() + + +``` +virtual int32_t OHOS::AVSession::AVSessionController::SendControlCommand (const AVControlCommand & cmd) +``` +**描述:** +发送媒体控制指令。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| cmd | 媒体控制指令,类型为[AVControlCommand](_o_h_o_s_1_1_a_v_session_1_1_a_v_control_command.md)。  | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + +**参见:** + +[GetValidCommands](#getvalidcommands) + + +### SetMetaFilter() + + +``` +virtual int32_t OHOS::AVSession::AVSessionController::SetMetaFilter (const AVMetaData::MetaMaskType & filter) +``` +**描述:** +设置会话元数据过滤。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| filter | 会话元数据过滤,类型为[AVMetaData#MetaMaskType](_o_h_o_s_1_1_a_v_session_1_1_a_v_meta_data.md#metamasktype)。  | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 + + +### SetPlaybackFilter() + + +``` +virtual int32_t OHOS::AVSession::AVSessionController::SetPlaybackFilter (const AVPlaybackState::PlaybackStateMaskType & filter) +``` +**描述:** +设置音视频的播放状态回调过滤。 + +**参数:** + + | 名称 | 描述 | +| -------- | -------- | +| filter | 音视频播放状态回调过滤,类型为**AVPlaybackState\#PlaybackStateMaskType**。  | + +**返回:** + +成功返回**AVSESSION_SUCCESS**;失败则返回对应错误码。 diff --git a/zh-cn/application-dev/reference/native-apis/o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md b/zh-cn/application-dev/reference/native-apis/o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md new file mode 100644 index 0000000000000000000000000000000000000000..57780778a727a5b2e364d426a5392c20f8951ac5 --- /dev/null +++ b/zh-cn/application-dev/reference/native-apis/o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md @@ -0,0 +1,41 @@ +# OHOS::AVSession::AVSessionDescriptor + + +## 概述 + +会话的相关描述信息。 + +**Since:** +9 +**Version:** +1.0 +**相关模块:** + +[Avsession](avsession.md) + + +## 汇总 + + +### Public 成员函数 + + | 名称 | 描述 | +| -------- | -------- | +| [WriteToParcel](avsession.md#writetoparcel) (Parcel &out) const | 将会话相关描述信息写进包里。  | +| [ReadFromParcel](avsession.md#readfromparcel) (Parcel &in) | 对会话相关描述信息进行解包。  | + + +### 成员变量 + + | 名称 | 描述 | +| -------- | -------- | +| [sessionId_](avsession.md#sessionid) | std::string | +| [sessionType_](avsession.md#sessiontype) {} | int32_t | +| [sessionTag_](avsession.md#sessiontag) | std::string | +| [elementName_](avsession.md#elementname) | AppExecFwk::ElementName | +| [pid_](avsession.md#pid) {} | pid_t | +| [uid_](avsession.md#uid) {} | pid_t | +| [isActive_](avsession.md#isactive) {} | bool | +| [isTopSession_](avsession.md#istopsession) {} | bool | +| [isThirdPartyApp_](avsession.md#isthirdpartyapp) {} | bool | +| [outputDeviceInfo_](avsession.md#outputdeviceinfo) | [OutputDeviceInfo](_o_h_o_s_1_1_a_v_session_1_1_output_device_info.md) | diff --git a/zh-cn/application-dev/reference/native-apis/rawfile.md b/zh-cn/application-dev/reference/native-apis/rawfile.md index c613f611d50323b5efa35294e960cc3796f88c9e..01f4faf838864e83489a68d56587197b364b9222 100644 --- a/zh-cn/application-dev/reference/native-apis/rawfile.md +++ b/zh-cn/application-dev/reference/native-apis/rawfile.md @@ -215,10 +215,10 @@ bool OH_ResourceManager_GetRawFileDescriptor (const RawFile * rawFile, RawFileDe **参数:** -| Name | 描述 | -| ---------- | -------------------------------- | -| rawFile | 表示指向[RawFile](#rawfile)的指针。 | -| descriptor | 显示rawfile文件描述符,以及在HAP包中的起始位置和长度。 | +| Name | 描述 | +| ---------- | ---------------------------------------------------- | +| rawFile | 表示指向[RawFile](#rawfile)的指针。 | +| descriptor | 显示rawfile文件描述符,以及在HAP中的起始位置和长度。 | **返回:** @@ -482,9 +482,9 @@ bool OH_ResourceManager_ReleaseRawFileDescriptor (const RawFileDescriptor & desc **参数:** -| Name | 描述 | -| ---------- | -------------------------------- | -| descriptor | 包含rawfile文件描述符,以及在HAP包中的起始位置和长度。 | +| Name | 描述 | +| ---------- | ---------------------------------------------------- | +| descriptor | 包含rawfile文件描述符,以及在HAP中的起始位置和长度。 | **返回:** diff --git a/zh-cn/application-dev/security/accesstoken-guidelines.md b/zh-cn/application-dev/security/accesstoken-guidelines.md index 745b23f071aaf9ec4a9f2d7278bbb346836386c8..ba7341ef845e6681a17eb645264a696d1701e08a 100644 --- a/zh-cn/application-dev/security/accesstoken-guidelines.md +++ b/zh-cn/application-dev/security/accesstoken-guidelines.md @@ -18,11 +18,21 @@ ## 接口说明 -以下仅列举本指导使用的接口,更多说明可以查阅[API参考](../reference/apis/js-apis-ability-context.md)。 +以下仅列举本指导使用的接口,不同模型下使用的拉起权限弹窗的接口有差异,更多说明可以查阅[完整示例](##完整示例)。 +### FA模型 | 接口名 | 描述 | | ------------------------------------------------------------ | --------------------------------------------------- | | requestPermissionsFromUser(permissions: Array<string>, requestCallback: AsyncCallback<PermissionRequestResult>) : void; | 拉起弹窗请求用户授权。 | +> 详细可查阅[API参考](../reference/apis/js-apis-ability-context.md) + + +### Stage模型 + +| 接口名 | 描述 | +| ------------------------------------------------------------ | --------------------------------------------------- | +| requestPermissionsFromUser(context: Context, permissions: Array<Permissions>, requestCallback: AsyncCallback<PermissionRequestResult>) : void; | 拉起弹窗请求用户授权。 | +> 详细可查阅[API参考](../reference/apis/js-apis-abilityAccessCtrl.md) ## 权限申请声明 @@ -149,6 +159,7 @@ 2. 调用requestPermissionsFromUser接口请求权限。运行过程中,该接口会根据应用是否已获得目标权限决定是否拉起动态弹框请求用户授权。 3. 根据requestPermissionsFromUser接口返回值判断是否已获取目标权限。如果当前已经获取权限,则可以继续正常访问目标接口。 +### FA模型下的示例代码 ```js //ability的onWindowStageCreate生命周期 onWindowStageCreate() { @@ -167,7 +178,30 @@ ``` > **说明:** -> 动态授权申请接口的使用详见[API参考](../reference/apis/js-apis-ability-context.md)。 +> FA模型的动态授权申请接口的使用详见[API参考](../reference/apis/js-apis-ability-context.md)。 + +### stage 模型下的示例代码 +```js + import abilityAccessCtrl from '@ohos.abilityAccessCtrl'; + + //ability的onWindowStageCreate生命周期 + onWindowStageCreate() { + var context = this.context + var AtManager = abilityAccessCtrl.createAtManager(); + //requestPermissionsFromUser会判断权限的授权状态来决定是否唤起弹窗 + AtManager.requestPermissionsFromUser(context, ["ohos.permission.MANAGE_DISPOSED_APP_STATUS"]).then((data) => { + console.log("data type:" + typeof(data)); + console.log("data:" + data); + console.log("data permissions:" + data.permissions); + console.log("data result:" + data.authResults); + }).catch((err) => { + console.error('Failed to start ability', err.code); + }) + } + +``` +> **说明:** +> stage模型的动态授权申请接口的使用详见[API参考](../reference/apis/js-apis-abilityAccessCtrl.md)。 ## user_grant权限预授权 当前正常情况下,user_grant类型的权限默认不授权,需要时应通过拉起弹框由用户确认是否授予。对于一些预置应用,比如截屏应用,不希望出现弹框,则可以通过预授权的方式完成user_grant类型权限的授权。[预置配置文件](https://gitee.com/openharmony/vendor_hihope/blob/master/rk3568/preinstall-config/install_list_permissions.json)在设备上的路径为system/etc/app/install_list_permission.json,设备开机启动时会读取该配置文件,在应用安装会对在文件中配置的user_grant类型权限授权。当前仅支持预置应用配置该文件。 @@ -178,7 +212,7 @@ ```json [ { - "bundleName": "com.ohos.myapplication", // 包名 + "bundleName": "com.ohos.myapplication", // Bundle名称 "app_signature":[], // 指纹信息 "permissions":[ { diff --git a/zh-cn/application-dev/security/app-provision-structure.md b/zh-cn/application-dev/security/app-provision-structure.md index 542660387d477046f84009bfe31cd54458c22818..2abbb9a52bfbd146f48d1150b273dcb665ee9a56 100644 --- a/zh-cn/application-dev/security/app-provision-structure.md +++ b/zh-cn/application-dev/security/app-provision-structure.md @@ -68,7 +68,7 @@ HarmonyAppProvision文件示例: | developer-id | 表示开发者的唯一ID号,用于OEM厂商标识开发者,开源社区版本该属性不做强制要求。 | 字符串 | 必选 | 不可缺省 | | development-certificate | 表示[调试证书](hapsigntool-guidelines.md)的信息。 | 数值 | 当type属性为debug时,该属性必选;否则,该属性可选。 | 不可缺省 | | distribution-certificate | 表示[发布证书](hapsigntool-guidelines.md)的信息。 | 数值 | 当type属性为release时,该标签必选;否则,该标签可选。 | 不可缺省 | -| bundle-name | 表示应用程序的包名。 | 字符串 | 必选 | 不可缺省 | +| bundle-name | 表示应用程序的Bundle名称。 | 字符串 | 必选 | 不可缺省 | | apl | 表示应用程序的[APL级别](accesstoken-overview.md),系统预定义的apl包括:normal、system_basic和system_core。 | 字符串 | 必选 | 不可缺省 | | app-feature | 表示应用程序的类型,系统预定义的app-feature包括hos_system_app (系统应用)和hos_normal_app(普通应用)。只有系统应用才允许调用系统API,普通应用调用系统API可能会调用失败或运行异常。 | 字符串 | 必选 | 不可缺省 | diff --git a/zh-cn/application-dev/security/hapsigntool-overview.md b/zh-cn/application-dev/security/hapsigntool-overview.md index 0b5b41070fbecfe753411a5fe6b333484521fb04..993d56023533862a6121ad98243441669091f3d1 100644 --- a/zh-cn/application-dev/security/hapsigntool-overview.md +++ b/zh-cn/application-dev/security/hapsigntool-overview.md @@ -20,7 +20,7 @@ Hap包签名工具支持本地签名需求的开发,为OpenHarmony应用提供 OpenHarmony采用RFC5280标准构建X509证书信任体系。用于应用签名的OpenHarmony证书共有三级,分为:根CA证书、中间CA证书、最终实体证书,其中最终实体证书分为应用签名证书和profile签名证书。应用签名证书表示应用开发者的身份,可保证系统上安装的应用来源可追溯,profile签名证书实现对profile文件的签名进行验签,保证profile文件的完整性。 - - HAP包: + - HAP: HAP(OpenHarmony Ability Package)是Ability的部署包,OpenHarmony应用代码围绕Ability组件展开,它是由一个或者多个Ability组成。 diff --git a/zh-cn/application-dev/security/permission-list.md b/zh-cn/application-dev/security/permission-list.md index b4955cf2fc2d7dea99f14bddb9577292c0bfeb0d..9404c136465c37575491443e2835532c177ea43c 100644 --- a/zh-cn/application-dev/security/permission-list.md +++ b/zh-cn/application-dev/security/permission-list.md @@ -456,7 +456,7 @@ ## ohos.permission.GET_BUNDLE_INFO -允许应用查询其他应用的信息。该权限仅适用于三方应用。 +允许应用查询其他单个应用的信息。该权限仅适用于三方应用。 **权限级别**:normal @@ -466,7 +466,7 @@ ## ohos.permission.GET_BUNDLE_INFO_PRIVILEGED -允许应用查询其他应用的信息。该权限仅适用于特权应用、同签名应用。 +允许应用同时查询其他多个应用的信息。 **权限级别**:system_basic diff --git a/zh-cn/application-dev/security/userauth-guidelines.md b/zh-cn/application-dev/security/userauth-guidelines.md index a038885378a06e158f561e64a427c45de59155c9..f6b31bc96ed0635ab85a9294522de3aae7015103 100644 --- a/zh-cn/application-dev/security/userauth-guidelines.md +++ b/zh-cn/application-dev/security/userauth-guidelines.md @@ -65,7 +65,7 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证 } ``` -## 执行认证操作并请阅认证结果 +## 执行认证操作并订阅认证结果 ### 开发步骤 diff --git a/zh-cn/application-dev/task-management/continuous-task-dev-guide.md b/zh-cn/application-dev/task-management/continuous-task-dev-guide.md index dd6c4ee9da00dab13a49e4ac2cef1e1bf2e35e88..632cacbce5f90b7cdfceeff4efb10076d7086b1d 100644 --- a/zh-cn/application-dev/task-management/continuous-task-dev-guide.md +++ b/zh-cn/application-dev/task-management/continuous-task-dev-guide.md @@ -15,7 +15,7 @@ | stopBackgroundRunning(context: Context): Promise<void> | 停止后台长时任务的运行。 | -其中,wantAgent的信息详见([WantAgent](../reference/apis/js-apis-wantAgent.md)) +其中,wantAgent的信息详见([WantAgent](../reference/apis/js-apis-app-ability-wantAgent.md)) **表2** 后台模式类型 diff --git a/zh-cn/application-dev/task-management/transient-task-dev-guide.md b/zh-cn/application-dev/task-management/transient-task-dev-guide.md index 18c3030bfe2fec8941c386c76a1078da52394cf9..3acef00b7632e9bb398141a48dbfb457973505ef 100644 --- a/zh-cn/application-dev/task-management/transient-task-dev-guide.md +++ b/zh-cn/application-dev/task-management/transient-task-dev-guide.md @@ -3,12 +3,14 @@ ## 场景说明 当应用退到后台默认有6到12秒的运行时长,超过该时间后,系统会将应用置为挂起状态。对于绝大多数应用,6到12秒的时间,足够执行一些重要的任务,但如果应用需要更多的时间,可以通过短时任务接口,扩展应用的执行时间。 -建议不要等到应用退后台后,才调用requestSuspendDelay方法申请延迟挂起,而是应该在执行任何的耗时操作前,都应该调用该接口,向系统申明扩展应用的执行时间。 -当应用在前台时,使用requestSuspendDelay方法,不会影响应用的短时任务配额。 -由于每个应用每天的短时任务配额时间有限,当执行完耗时任务后,应当及时取消延迟挂起的申请。 +建议不要等到应用退后台后,才调用[requestSuspendDelay()](../reference/apis/js-apis-resourceschedule-backgroundTaskManager.md#backgroundtaskmanagerrequestsuspenddelay)方法申请延迟挂起,而是应该在执行任何的耗时操作前,都应该调用该接口,向系统申明扩展应用的执行时间。 -一些典型的耗时任务有,需要保存一些状态数据到本地数据库,需要打开和处理一个大型文件,需要同步一些数据到应用的云端服务器等。 +当应用在前台时,使用[requestSuspendDelay()](../reference/apis/js-apis-resourceschedule-backgroundTaskManager.md#backgroundtaskmanagerrequestsuspenddelay)方法,不会影响应用的短时任务配额。 + +根据需要调用[getRemainingDelayTime()](../reference/apis/js-apis-resourceschedule-backgroundTaskManager.md#backgroundtaskmanagergetremainingdelaytimecallback)接口获取应用程序进入挂起状态前的剩余时间。由于每个应用每天的短时任务配额时间有限,当执行完耗时任务后,应当及时调用[cancelSuspendDelay()](../reference/apis/js-apis-resourceschedule-backgroundTaskManager.md#backgroundtaskmanagercancelsuspenddelay)接口取消延迟挂起的申请。 + +一些典型的耗时任务,例如保存一些状态数据到本地数据库、打开和处理一个大型文件、同步一些数据到应用的云端服务器等。 ## 接口说明 @@ -25,60 +27,67 @@ ## 开发步骤 -1、当应用需要开始执行一个耗时的任务时。调用短时任务申请接口,并且在任务执行完后,调用短时任务取消接口。 +当应用需要开始执行一个耗时的任务时。调用短时任务申请接口,并且在任务执行完后,调用短时任务取消接口。 ```js -import backgroundTaskManager from '@ohos.backgroundTaskManager'; +import backgroundTaskManager from '@ohos.resourceschedule.backgroundTaskManager'; -let delayInfo; -let id; +let id; // 申请延迟挂起任务ID +let delayTime; // 本次申请延迟挂起任务的剩余时间 // 申请延迟挂起 function requestSuspendDelay() { - let myReason = 'test requestSuspendDelay'; - delayInfo = backgroundTaskManager.requestSuspendDelay(myReason, () => { - console.info("Request suspension delay will time out."); - // 此回调函数执行,表示应用的延迟挂起申请即将超时,应用需要执行一些清理和标注工作。 - }); - + let myReason = 'test requestSuspendDelay'; // 申请原因 + + try { + let delayInfo = backgroundTaskManager.requestSuspendDelay(myReason, () => { + // 此回调函数执行,表示应用的延迟挂起申请即将超时,应用需要执行一些清理和标注工作,并取消延时挂起 + console.info("[backgroundTaskManager] Request suspension delay will time out."); + backgroundTaskManager.cancelSuspendDelay(id); + }) id = delayInfo.requestId; - console.info("requestId is: " + id); + delayTime = delayInfo.actualDelayTime; + console.info("[backgroundTaskManager] The requestId is: " + id); + console.info("[backgroundTaskManager]The actualDelayTime is: " + delayTime); + } catch (error) { + console.error(`[backgroundTaskManager] requestSuspendDelay failed. code is ${error.code} message is ${error.message}`); + } } // 获取进入挂起前的剩余时间 -function getRemainingDelayTime() { - let delayTime = 0; - backgroundTaskManager.getRemainingDelayTime(id).then((res) => { - console.log('promise => Operation getRemainingDelayTime succeeded. Data: ' + JSON.stringify(res)); - delayTime = res; - }).catch((err) => { - console.log('promise => Operation getRemainingDelayTime failed. Cause: ' + err.code); - }); - return delayTime; +async function getRemainingDelayTime() { + try { + await backgroundTaskManager.getRemainingDelayTime(id).then(res => { + console.log('[backgroundTaskManager] promise => Operation getRemainingDelayTime succeeded. Data: ' + JSON.stringify(res)); + }).catch(error => { + console.error(`[backgroundTaskManager] promise => Operation getRemainingDelayTime failed. code is ${error.code} message is ${error.message}`); + }) + } catch (error) { + console.error(`[backgroundTaskManager] promise => Operation getRemainingDelayTime failed. code is ${error.code} message is ${error.message}`); + } } // 取消延迟挂起 function cancelSuspendDelay() { - backgroundTaskManager.cancelSuspendDelay(id); + backgroundTaskManager.cancelSuspendDelay(id); } -function performingLongRunningTask() { - // 在执行具体的耗时任务前,调用短时任务申请接口。向系统申请延迟挂起,延长应用的后台执行时间。 - requestSuspendDelay(); +async function performingLongRunningTask() { + // 在执行具体的耗时任务前,调用短时任务申请接口。向系统申请延迟挂起,延长应用的后台执行时间。 + requestSuspendDelay(); - // 通过剩余时间查询接口,获取可用时间配额。 - let delayTime = getRemainingDelayTime(); + // 根据需要,通过剩余时间查询接口,获取可用时间配额。 + await getRemainingDelayTime(); - if (delayTime < 0) { // 如果时间配置少于一定的大小,考虑取消此次耗时操作。 - // 处理短时任务配额时间不够的场景 - - cancelSuspendDelay(); - return; - } + if (delayTime < 0) { // 如果时间配置少于一定的大小,考虑取消此次耗时操作。 + // 处理短时任务配额时间不够的场景 + cancelSuspendDelay(); + return; + } - // 此处执行具体的耗时任务。 + // 此处执行具体的耗时任务 - // 耗时任务执行完,调用短时任务取消接口,避免配额浪费。 - cancelSuspendDelay(); + // 耗时任务执行完,调用短时任务取消接口,避免配额浪费 + cancelSuspendDelay(); } ``` diff --git a/zh-cn/application-dev/task-management/work-scheduler-dev-guide.md b/zh-cn/application-dev/task-management/work-scheduler-dev-guide.md index 1b454be58cf699e69e0d5909913c416045c7e772..87bc72823acf2dccecfeab599872541e1495dc9b 100644 --- a/zh-cn/application-dev/task-management/work-scheduler-dev-guide.md +++ b/zh-cn/application-dev/task-management/work-scheduler-dev-guide.md @@ -26,8 +26,8 @@ WorkInfo设置参数约束见[延迟任务调度约束](./background-task-overvi 参数名| 类型 |描述 ---------------------------------------------------------|-----------------------------------------|--------------------------------------------------------- -workId| number | 延迟任务Id(必填) -bundleName| string | 延迟任务包名(必填) +workId| number | 延迟任务ID(必填) +bundleName| string | 延迟任务Bundle名称(必填) abilityName| string | 延迟任务回调通知的组件名(必填) networkType | [NetworkType](../reference/apis/js-apis-resourceschedule-workScheduler.md#networktype) | 网络类型 isCharging| boolean | 是否充电 diff --git a/zh-cn/application-dev/tools/anm-tool.md b/zh-cn/application-dev/tools/anm-tool.md index f91ad97ae854237ac5ec4afbae827f62a23494d3..13c100f8c51d7b7a787102e986ec78da34149c33 100644 --- a/zh-cn/application-dev/tools/anm-tool.md +++ b/zh-cn/application-dev/tools/anm-tool.md @@ -28,14 +28,14 @@ Advanced Notification Manager(通知管理工具,简称anm)是实现通知 参数如下表所示 - | 参数 | 参数说明 | - | ---------------- | -------------------------------- | - | -A/--active | 打印所有活跃的通知信息 | - | -R/--recent | 打印最近的通知信息 | - | -D/--distributed | 打印来自其他设备的分布式通知信息 | - | -b/--bundle | 可选参数,设置指定的包名打印 | - | -u/--user-id | 可选参数,设置指定的用户ID打印 | - | -h/--help | 帮助信息 | + | 参数 | 参数说明 | + | ---------------- | ---------------------------------- | + | -A/--active | 打印所有活跃的通知信息 | + | -R/--recent | 打印最近的通知信息 | + | -D/--distributed | 打印来自其他设备的分布式通知信息 | + | -b/--bundle | 可选参数,设置指定的Bundle名称打印 | + | -u/--user-id | 可选参数,设置指定的用户ID打印 | + | -h/--help | 帮助信息 | * **示例**:打印活跃的通知信息 diff --git a/zh-cn/application-dev/tools/bm-tool.md b/zh-cn/application-dev/tools/bm-tool.md index 6b7fade3819c991b669bb5b3d183f208cdbee0c0..bd45b86df9b7723fbc4d78a4190d0d73f15f1f90 100644 --- a/zh-cn/application-dev/tools/bm-tool.md +++ b/zh-cn/application-dev/tools/bm-tool.md @@ -48,10 +48,10 @@ bm install [-h] [-p path] [-u userId] [-r] [-w waitting-time] | 命令 | 是否必选 | 描述 | | -------- | -------- | -------- | | -h | 否,默认输出帮助信息 | 显示install支持的命令信息 | -| -p | 是 | 安装HAP包路径,支持指定路径和多个HAP同时安装 | -| -u | 否,默认安装到当前所有用户上 | 给指定用户安装一个HAP包 | -| -r | 否,默认值为覆盖安装 | 覆盖安装一个HAP包 | -| -w | 否,默认等待5s | 安装HAP包时指定bm工具等待时间,最小的等待时长为5s,最大的等待时长为600s, 默认缺省为5s | +| -p | 是 | 安装HAP路径,支持指定路径和多个HAP同时安装 | +| -u | 否,默认安装到当前所有用户上 | 给指定用户安装一个HAP | +| -r | 否,默认值为覆盖安装 | 覆盖安装一个HAP | +| -w | 否,默认等待5s | 安装HAP时指定bm工具等待时间,最小的等待时长为5s,最大的等待时长为600s, 默认缺省为5s | 示例: @@ -75,7 +75,7 @@ bm uninstall [-h help] [-n bundleName] [-m moduleName] [-u userId] [-k] | 命令 | 是否必选 | 描述 | | -------- | -------- | -------- | | -h | 否,默认输出帮助信息 | 显示uninstall支持的命令信息 | -| -n | 是 | 指定包名卸载应用 | +| -n | 是 | 指定Bundle名称卸载应用 | | -m | 否,默认卸载所有模块 | 指定卸载应用的一个模块 | | -u | 否,默认卸载当前所有用户下该应用 | 指定用户卸载应用 | | -k | 否,默认卸载应用时不保存应用数据 | 卸载应用时保存应用数据 | @@ -106,16 +106,16 @@ bm dump [-h help] [-a] [-n bundleName] [-s shortcutInfo] [-u userId] [-d deviceI | -------- | -------- | -------- | | -h | 否,默认输出帮助信息 | 显示dump支持的命令信息 | | -a | 是 | 查询系统已经安装的所有应用 | -| -n | 是 | 查询指定包名的详细信息 | -| -s | 是 | 查询指定包名下的快捷方式信息 | +| -n | 是 | 查询指定Bundle名称的详细信息 | +| -s | 是 | 查询指定Bundle名称下的快捷方式信息 | | -d | 否,默认查询当前设备 | 查询指定设备中的包信息 | -| -u | 否,默认查询当前设备上的所有用户 | 查询指定用户下指定包名的详细信息 | +| -u | 否,默认查询当前设备上的所有用户 | 查询指定用户下指定Bundle名称的详细信息 | 示例: ```bash -# 显示所有已安装的包名 +# 显示所有已安装的Bundle名称 bm dump -a # 查询该应用的详细信息 bm dump -n com.ohos.app -u 100 @@ -141,9 +141,9 @@ bm clean [-h] [-c] [-n bundleName] [-d] [-u userId] | 命令 | 描述 | | -------- | -------- | | -h | 显示clean支持的命令信息 | -| -c -n | 清除指定包名的缓存数据 | -| -d -n | 清除指定包名的数据目录 | -| -u | 清除指定用户下包名的缓存数据 | +| -c -n | 清除指定Bundle名称的缓存数据 | +| -d -n | 清除指定Bundle名称的数据目录 | +| -u | 清除指定用户下Bundle名称的缓存数据 | 示例: @@ -175,9 +175,9 @@ bm enable [-h] [-n bundleName] [-a abilityName] [-u userId] | 命令 | 描述 | | -------- | -------- | | -h | 显示enable支持的命令信息 | -| -n | 使能指定包名的应用 | -| -a | 使能指定包名下的元能力模块 | -| -u | 使能指定用户和包名的应用 | +| -n | 使能指定Bundle名称的应用 | +| -a | 使能指定Bundle名称下的元能力模块 | +| -u | 使能指定用户和Bundle名称的应用 | 示例: @@ -205,9 +205,9 @@ bm disable [-h] [-n bundleName] [-a abilityName] [-u userId] | 命令 | 描述 | | -------- | -------- | | -h | 显示disable支持的命令信息 | -| -n | 禁用指定包名的应用 | -| -a | 禁用指定包名下的元能力模块 | -| -u | 禁用指定用户和包名下的应用 | +| -n | 禁用指定Bundle名称的应用 | +| -a | 禁用指定Bundle名称下的元能力模块 | +| -u | 禁用指定用户和Bundle名称下的应用 | 示例: diff --git a/zh-cn/application-dev/ui/js-framework-multiple-languages.md b/zh-cn/application-dev/ui/js-framework-multiple-languages.md index 540b46aca1402b1572503e2094bc0afe1e6a8d9e..293f174c1f22b0ff8f7639a67aff9d0e9c857e9f 100644 --- a/zh-cn/application-dev/ui/js-framework-multiple-languages.md +++ b/zh-cn/application-dev/ui/js-framework-multiple-languages.md @@ -119,7 +119,7 @@ ar-AE.json {{ replaceObject }} {{ replaceArray }} - + @@ -150,9 +150,9 @@ ar-AE.json 表4 单复数格式化 - | 属性 | 类型 | 参数 | 必填 | 描述 | - | ---- | -------- | ----------- | ---- | ---------------------------------------- | - | $tc | Function | 请见表 $tc参数说明 | 是 | 根据系统语言完成单复数替换:this.$tc('strings.people')
> ![icon-note.gif](public_sys-resources/icon-note.gif) 说明:
> 定义资源的内容通过json格式的key为“zero”、“one”、“two”、“few”、“many”和“other”区分。 | + | 属性 | 类型 | 参数 | 必填 | 描述 | + | ---- | -------- | ------------------ | ---- | ------------------------------------------------------------ | + | $tc | Function | 请见表 $tc参数说明 | 是 | 根据系统语言完成单复数替换:this.$tc('strings.people')
> 说明:
> 定义资源的内容通过json格式的key为“zero”、“one”、“two”、“few”、“many”和“other”区分。 | 表5 $tc参数说明 diff --git a/zh-cn/application-dev/ui/js-framework-syntax-js.md b/zh-cn/application-dev/ui/js-framework-syntax-js.md index efd674d14cf76c6bab52c7deb19aacf385ff20ee..2a1c2d5664b44a1a6a3b87d0661f04df7be4fab7 100644 --- a/zh-cn/application-dev/ui/js-framework-syntax-js.md +++ b/zh-cn/application-dev/ui/js-framework-syntax-js.md @@ -25,9 +25,9 @@ JS文件用来定义HML页面的业务逻辑,支持ECMA规范的JavaScript语 ## 对象 - 应用对象 - | 属性 | 类型 | 描述 | - | ---- | ------ | ---------------------------------------- | - | $def | Object | 使用this.$app.$def获取在app.js中暴露的对象。
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 应用对象不支持数据绑定,需主动触发UI更新。 | + | 属性 | 类型 | 描述 | + | ---- | ------ | ------------------------------------------------------------ | + | $def | Object | 使用this.$app.$def获取在app.js中暴露的对象。
> **说明:**
> 应用对象不支持数据绑定,需主动触发UI更新。 | 示例代码 @@ -103,7 +103,7 @@ JS文件用来定义HML页面的业务逻辑,支持ECMA规范的JavaScript语 getAppVersion() { this.$set('keyMap.Version', '3.0'); console.info("keyMap.Version = " + this.keyMap.Version); // keyMap.Version = 3.0 - + this.$delete('keyMap'); console.info("keyMap.Version = " + this.keyMap); // log print: keyMap.Version = undefined } diff --git a/zh-cn/application-dev/webgl/webgl-guidelines.md b/zh-cn/application-dev/webgl/webgl-guidelines.md index 69ae4645ce51af1eb43bc6c90caad7c7ff264ee7..b4456e87ca3331c61bf069d504508a02d0274e07 100644 --- a/zh-cn/application-dev/webgl/webgl-guidelines.md +++ b/zh-cn/application-dev/webgl/webgl-guidelines.md @@ -29,7 +29,7 @@ WebGL主要帮助开发者在前端开发中完成图形图像的相关处理, 以下分别展示无着色器绘制2D图形和着色器绘制彩色三角形的两个场景示例及开发过程。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > 使用WebGL开发时,为保证界面图形显示效果,请使用真机运行。 diff --git a/zh-cn/application-dev/website.md b/zh-cn/application-dev/website.md index 36a50595c91d121c2e94ae0eec96704685f135c7..696b37cdbe8cf8e81a6bfd593c1537e232918c1b 100644 --- a/zh-cn/application-dev/website.md +++ b/zh-cn/application-dev/website.md @@ -588,7 +588,6 @@ - [Counter](reference/arkui-ts/ts-container-counter.md) - [Flex](reference/arkui-ts/ts-container-flex.md) - [FlowItem](reference/arkui-ts/ts-container-flowitem.md) - - [GridContainer](reference/arkui-ts/ts-container-gridcontainer.md) - [GridCol](reference/arkui-ts/ts-container-gridcol.md) - [GridRow](reference/arkui-ts/ts-container-gridrow.md) - [Grid](reference/arkui-ts/ts-container-grid.md) @@ -651,7 +650,7 @@ - [枚举说明](reference/arkui-ts/ts-appendix-enums.md) - [类型说明](reference/arkui-ts/ts-types.md) - 已停止维护的组件 - - [GridContainer(栅格)](reference/arkui-ts/ts-container-gridcontainer.md) + - [GridContainer](reference/arkui-ts/ts-container-gridcontainer.md) - 组件参考(兼容JS的类Web开发范式) - 组件通用信息 - [通用属性](reference/arkui-js/js-components-common-attributes.md) @@ -1155,7 +1154,6 @@ - [@ohos.reminderAgent (后台代理提醒)](reference/apis/js-apis-reminderAgent.md) - [@ohos.systemParameter (系统属性)](reference/apis/js-apis-system-parameter.md) - [@ohos.usb (USB管理)](reference/apis/js-apis-usb-deprecated.md) - - [@ohos.workScheduler (延迟任务调度)](reference/apis/js-apis-workScheduler.md) - [@system.app (应用上下文)](reference/apis/js-apis-system-app.md) - [@system.battery (电量信息)](reference/apis/js-apis-system-battery.md) - [@system.bluetooth (蓝牙)](reference/apis/js-apis-system-bluetooth.md) @@ -1285,6 +1283,13 @@ - [Rawfile](reference/native-apis/rawfile.md) - [MindSpore](reference/native-apis/_mind_spore.md) - [NeuralNeworkRuntime](reference/native-apis/_neural_nework_runtime.md) + - [Avsession](reference/native-apis/avsession.md) + - [AudioDecoder](reference/native-apis/_audio_decoder.md) + - [AudioEncoder](reference/native-apis/_audio_encoder.md) + - [CodecBase](reference/native-apis/_codec_base.md) + - [VideoDecoder](reference/native-apis/_video_decoder.md) + - [VideoEncoder](reference/native-apis/_video_encoder.md) + - [Core](reference/native-apis/_core.md) - 头文件 - [drawing_bitmap.h](reference/native-apis/drawing__bitmap_8h.md) - [drawing_brush.h](reference/native-apis/drawing__brush_8h.md) @@ -1315,7 +1320,25 @@ - [types.h](reference/native-apis/types_8h.md) - [neural_network_runtime_type.h](reference/native-apis/neural__network__runtime__type_8h.md) - [neural_network_runtime.h](reference/native-apis/neural__network__runtime_8h.md) - - 结构体 + - [av_session.h](reference/native-apis/av__session_8h.md) + - [avcontrol_command.h](reference/native-apis/avcontrol__command_8h.md) + - [avmeta_data.h](reference/native-apis/avmeta__data_8h.md) + - [avplayback_state.h](reference/native-apis/avplayback__state_8h.md) + - [avsession_controller.h](reference/native-apis/avsession__controller_8h.md) + - [avsession_descriptor.h](reference/native-apis/avsession__descriptor_8h.md) + - [avsession_errors.h](reference/native-apis/avsession__errors_8h.md) + - [avsession_info.h](reference/native-apis/avsession__info_8h.md) + - [avsession_manager.h](reference/native-apis/avsession__manager_8h.md) + - [avsession_pixel_map.h](reference/native-apis/avsession__pixel__map_8h.md) + - [native_avcodec_audiodecoder.h](reference/native-apis/native__avcodec__audiodecoder_8h.md) + - [native_avcodec_audioencoder.h](reference/native-apis/native__avcodec__audioencoder_8h.md) + - [native_avcodec_base.h](reference/native-apis/native__avcodec__base_8h.md) + - [native_avcodec_videodecoder.h](reference/native-apis/native__avcodec__videodecoder_8h.md) + - [native_avcodec_videoencoder.h](reference/native-apis/native__avcodec__videoencoder_8h.md) + - [native_averrors.h](reference/native-apis/native__averrors_8h.md) + - [native_avformat.h](reference/native-apis/native__avformat_8h.md) + - [native_avmemory.h](reference/native-apis/native__avmemory_8h.md) + - 结构体 - [OH_Drawing_BitmapFormat](reference/native-apis/_o_h___drawing___bitmap_format.md) - [OH_NativeBuffer_Config](reference/native-apis/_o_h___native_buffer___config.md) - [OH_NativeXComponent_Callback](reference/native-apis/_o_h___native_x_component___callback.md) @@ -1336,6 +1359,23 @@ - [OH_NN_QuantParam](reference/native-apis/_o_h___n_n___quant_param.md) - [OH_NN_Tensor](reference/native-apis/_o_h___n_n___tensor.md) - [OH_NN_UInt32Array](reference/native-apis/_o_h___n_n___u_int32_array.md) + - [OH_AVCodecAsyncCallback](reference/native-apis/_o_h___a_v_codec_async_callback.md) + - [OH_AVCodecBufferAttr](reference/native-apis/_o_h___a_v_codec_buffer_attr.md) + - [OHOS::AVSession::AVControlCommand](reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_control_command.md) + - [OHOS::AVSession::AVControllerCallback](reference/native-apis/_h_o_s_1_1_a_v_session_1_1_a_v_controller_callback.md) + - [OHOS::AVSession::AVMetaData](reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_meta_data.md) + - [OHOS::AVSession::AVPlaybackState](reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_playback_state.md) + - [OHOS::AVSession::AVPlaybackState::Position](reference/native-apis/_1_a_v_session_1_1_a_v_playback_state_1_1_position.md) + - [OHOS::AVSession::AVSession](reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_session.md) + - [OHOS::AVSession::AVSessionBasicInfo](reference/native-apis/o_h_o_s_1_1_a_v_session_1_1_a_v_session_basic_info.md) + - [OHOS::AVSession::AVSessionCallback](reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_session_callback.md) + - [OHOS::AVSession::AVSessionController](reference/native-apis/o_h_o_s_1_1_a_v_session_1_1_a_v_session_controller.md) + - [OHOS::AVSession::AVSessionDescriptor](reference/native-apis/o_h_o_s_1_1_a_v_session_1_1_a_v_session_descriptor.md) + - [OHOS::AVSession::AVSessionManager](reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_session_manager.md) + - [OHOS::AVSession::AVSessionPixelMap](reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_a_v_session_pixel_map.md) + - [OHOS::AVSession::OutputDeviceInfo](reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_output_device_info.md) + - [OHOS::AVSession::SessionListener](reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_session_listener.md) + - [OHOS::AVSession::SessionToken](reference/native-apis/_o_h_o_s_1_1_a_v_session_1_1_session_token.md) - 标准库 - [Node_API](reference/native-lib/third_party_napi/napi.md) - [libuv](reference/native-lib/third_party_libuv/libuv.md) diff --git a/zh-cn/application-dev/windowmanager/system-window-stage.md b/zh-cn/application-dev/windowmanager/system-window-stage.md index 1b8b0756e551869d67127b888851237c54a35b7a..c665a537fd281fac2205334f5711cfbbc41003c2 100644 --- a/zh-cn/application-dev/windowmanager/system-window-stage.md +++ b/zh-cn/application-dev/windowmanager/system-window-stage.md @@ -4,6 +4,12 @@ 在`Stage`模型下, 允许系统应用创建和管理系统窗口,包括音量条、壁纸、通知栏、状态栏、导航栏等。具体支持的系统窗口类型见[API参考-WindowType](../reference/apis/js-apis-window.md#windowtype7)。 +在窗口显示、隐藏及窗口间切换时,窗口模块通常会添加动画效果,以使各个交互过程更加连贯流畅。 + +在OpenHarmony中,应用窗口的动效为默认行为,不需要开发者进行设置或者修改。 + +相对于应用窗口,在显示系统窗口过程中,开发者可以自定义窗口的显示动画、隐藏动画。 + > **说明:** > > 本文档涉及系统接口的使用,请使用full-SDK进行开发。具体使用可见[full-SDK替换指南](../quick-start/full-sdk-switch-guide.md)。 @@ -13,23 +19,27 @@ 更多API说明请参见[API参考](../reference/apis/js-apis-window.md)。 -| 实例名 | 接口名 | 描述 | -| -------- | -------- | -------- | -| window静态方法 | createWindow(config: Configuration, callback: AsyncCallback\): void | 创建子窗口或系统窗口。
-`config`:创建窗口时的参数。 | -| Window | resize(width: number, height: number, callback: AsyncCallback<void>): void | 改变当前窗口大小。 | -| Window | moveWindowTo(x: number, y: number, callback: AsyncCallback<void>): void | 移动当前窗口位置。 | -| Window | SetUIContent(path: string, callback: AsyncCallback<void>): void | 为当前窗口加载具体页面。 | -| Window | showWindow(callback: AsyncCallback\): void | 显示当前窗口。 | -| Window | on(type: 'touchOutside', callback: Callback<void>): void | 开启本窗口区域外的点击事件的监听。 | -| Window | hide (callback: AsyncCallback\): void | 隐藏当前窗口。此接口为系统接口。 | -| Window | destroyWindow(callback: AsyncCallback<void>): void | 销毁当前窗口。 | - - -## 开发步骤 +| 实例名 | 接口名 | 描述 | +| ----------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| window静态方法 | createWindow(config: Configuration, callback: AsyncCallback\): void | 创建子窗口或系统窗口。
-`config`:创建窗口时的参数。 | +| Window | resize(width: number, height: number, callback: AsyncCallback<void>): void | 改变当前窗口大小。 | +| Window | moveWindowTo(x: number, y: number, callback: AsyncCallback<void>): void | 移动当前窗口位置。 | +| Window | SetUIContent(path: string, callback: AsyncCallback<void>): void | 为当前窗口加载具体页面。 | +| Window | showWindow(callback: AsyncCallback\): void | 显示当前窗口。 | +| Window | on(type: 'touchOutside', callback: Callback<void>): void | 开启本窗口区域外的点击事件的监听。 | +| Window | hide (callback: AsyncCallback\): void | 隐藏当前窗口。此接口为系统接口。 | +| Window | destroyWindow(callback: AsyncCallback<void>): void | 销毁当前窗口。 | +| Window | getTransitionController(): TransitionController | 获取窗口属性转换控制器。此接口为系统接口。 | +| TransitionContext | completeTransition(isCompleted: boolean): void | 设置属性转换的最终完成状态。该函数需要在动画函数[animateTo()](../reference/arkui-ts/ts-explicit-animation.md)执行后设置。此接口为系统接口。 | +| Window | showWithAnimation(callback: AsyncCallback\): void | 显示当前窗口,过程中播放动画。此接口为系统接口。 | +| Window | hideWithAnimation(callback: AsyncCallback\): void | 隐藏当前窗口,过程中播放动画。此接口为系统接口。 | +## 系统窗口的开发 本文以音量条窗口为例,介绍系统窗口的基本开发和管理步骤。 +### 开发步骤 + 1. 创建系统窗口。 @@ -112,3 +122,140 @@ export default class ServiceExtensionAbility1 extends ExtensionContext { } }; ``` + +## 自定义系统窗口的显示与隐藏动画 + +在显示系统窗口过程中,开发者可以自定义窗口的显示动画。在隐藏系统窗口过程中,开发者可以自定义窗口的隐藏动画。本文以显示和隐藏动画为例介绍主要开发步骤。 + +### 开发步骤 + +1. 获取窗口属性转换控制器。 + + 通过`getTransitionController`接口获取控制器。后续的动画操作都由属性控制器来完成。 + +2. 配置窗口显示时的动画。 + + 通过动画函数[animateTo()](../reference/arkui-ts/ts-explicit-animation.md)配置具体的属性动画。 + +3. 设置属性转换完成。 + + 通过`completeTransition(true)`来设置属性转换的最终完成状态。如果传入false,则表示撤销本次转换。 + +4. 显示或隐藏当前窗口,过程中播放动画。 + + 调用`showWithAnimation`接口,来显示窗口并播放动画。调用`hideWithAnimation`接口,来隐藏窗口并播放动画。 + +```ts +import ExtensionContext from '@ohos.app.ability.ServiceExtensionAbility'; +import window from '@ohos.window'; + +export default class ServiceExtensionAbility1 extends ExtensionContext { + onCreate(want) { + console.log("[Demo] MainAbility onCreate") + globalThis.abilityWant = want; + // 创建音量条窗口。 + let windowClass = null; + let config = {name: "volume", windowType: window.WindowType.TYPE_VOLUME_OVERLAY, ctx: this.context}; + window.createWindow(config, (err, data) => { + if (err.code) { + console.error('Failed to create the volume window. Cause:' + JSON.stringify(err)); + return; + } + console.info('Succeeded in creating the volume window.') + windowClass = data; + // 以下为系统窗口显示动画的开发步骤 + // 1. 获取窗口属性转换控制器 + let controller = windowClass.getTransitionController(); + // 2. 配置窗口显示时的动画 + controller.animationForShown = (context : window.TransitionContext) => { + let toWindow = context.toWindow + // 配置动画参数 + animateTo({ + duration: 1000, // 动画时长 + tempo: 0.5, // 播放速率 + curve: Curve.EaseInOut, // 动画曲线 + delay: 0, // 动画延迟 + iterations: 1, // 播放次数 + playMode: PlayMode.Normal, // 动画模式 + onFinish: ()=> { + // 3. 设置属性转换完成 + context.completeTransition(true) + } + }, () => { + let obj : window.TranslateOptions = { + x : 100.0, + y : 0.0, + z : 0.0 + } + toWindow.translate(obj); + console.info('toWindow translate end'); + }) + console.info('complete transition end'); + } + + windowClass.loadContent("pages/page_volume", (err) => { + if (err.code) { + console.error('Failed to load the content. Cause:' + JSON.stringify(err)); + return; + } + console.info('Succeeded in loading the content.'); + // 4.显示当前窗口,过程中播放动画 + windowClass.showWithAnimation((err) => { + if (err.code) { + console.error('Failed to show the window with animation. Cause: ' + JSON.stringify(err)); + return; + } + console.info('Succeeded in showing the window with animation.'); + }) + }); + }); + } + onDestroy() { + let windowClass = null; + try { + windowClass = window.findWindow('volume'); + } catch (exception) { + console.error('Failed to find the Window. Cause: ' + JSON.stringify(exception)); + } + // 以下为系统窗口隐藏动画的开发步骤 + // 1. 获取窗口属性转换控制器 + let controller = windowClass.getTransitionController(); + // 2. 配置窗口显示时的动画 + controller.animationForHidden = (context : window.TransitionContext) => { + let toWindow = context.toWindow + // 配置动画参数 + animateTo({ + duration: 1000, // 动画时长 + tempo: 0.5, // 播放速率 + curve: Curve.EaseInOut, // 动画曲线 + delay: 0, // 动画延迟 + iterations: 1, // 播放次数 + playMode: PlayMode.Normal, // 动画模式 + onFinish: ()=> { + // 3. 设置属性转换完成 + context.completeTransition(true) + windowClass.destroyWindow((err) => { + if (err.code) { + console.error('Failed to destroy the window. Cause:' + JSON.stringify(err)); + return; + } + console.info('Succeeded in destroying the window.'); + }); + } + }, () => { + toWindow.opacity(0.0); + console.info('toWindow opacity end'); + }) + console.info('complete transition end'); + } + // 4.隐藏当前窗口,过程中播放动画 + windowClass.hideWithAnimation((err) => { + if (err.code) { + console.error('Failed to hide the window with animation. Cause: ' + JSON.stringify(err)); + return; + } + console.info('Succeeded in hiding the window with animation.'); + }); + } +}; +``` \ No newline at end of file diff --git a/zh-cn/contribute/OpenHarmony-build-rule.md b/zh-cn/contribute/OpenHarmony-build-rule.md new file mode 100644 index 0000000000000000000000000000000000000000..d27ef7e672da0c4ddeb0ab399a1634edbbdb29bc --- /dev/null +++ b/zh-cn/contribute/OpenHarmony-build-rule.md @@ -0,0 +1,597 @@ +# 开源构建规范 + +## 概述 + +为指导OpenHarmony的开发者开展构建工作,提升构建系统的可重复性、可维护性,提高产品构建质量,构建规范工作组分析总结了各种典型的构建问题,提炼相应的构建规则和建议,制订了本规范。 + +## 构建总体原则 + +**P01 构建过程自动化,从构建启动开始到构建最终结束,中间过程不能手工干预。** +手工操作容易出错,且浪费时间。将所有的构建操作变成自动化的,从而使构建变得高效、可靠。 + +**P02 构建工程和构建环境代码化。** +使用高阶构建框架CMake/Maven/Gradle等描述构建工程;使用Ansible/Dockerfile等描述构建环境。 +使用高阶构建框架的目的是向构建人员隐藏构建系统的复杂性。 + +**P03 构建过程可重复、可追溯。** +管理构建依赖,始终显式指定固定依赖版本号,确保构建依赖版本一致;将构建环境信息/构建工程作为配置项纳入配置管理,确保构建工程可追溯。 + +**P04 构建脚本简洁清晰,易于维护。** +构建脚本也是代码,构建脚本首先是为阅读它的人而编写的,好的脚本应当可以像故事一样发声朗诵出来。 + +**P05 构建标准化** +构建目录结构、构建依赖、构建初始化、构建入口、命名等进行标准化约束,使得公司所有产品、平台和组件的构建风格一致,便于构建管理和维护。 + +## 构建工程 + +### 公共规则 + +#### 一键式构建 + +##### G.COM.01 采用构建脚本,按照交付单元实现一键式自动化构建。 + +一键式自动化构建是指同一个构建环境下,从构建启动开始到最终结束(最终交付的包生成),中间过程禁止人工干预。 +人工干预活动包括但不限于:构建过程中,使用IDE界面进行手工设置、创建或者删除文件目录、创建文件、复制文件、移动文件、删除或者重命名文件、手工设置文件属性、压缩/解压缩文件等。 +交付单元是指可独立编译、加载、部署和运行的产品/平台/组件。 + +【级别】要求 + +【描述】一键式构建大幅降低构建人员操作复杂度。 + +【错误示例】某组件的一键式构建只能通过CI系统触发,没有一键式的本地构建。 + +【错误示例】某组件需要在Xplorer IDE界面手工设置内存映射地址后,再手工编译。 + +【错误示例】某组件需要手工创建r6c03_view\r6c03_client_view目录。 + +【正确示例】使用python脚本自动化创建目录: + +```python +dir_src = os.getcwd() +dir_client_view = r"r6c03_client_view" +# 处理路径使用os.path可以屏蔽系统差异 +dir_mk = os.path.join(dir_src, dir_client_view) + +cmd = "{0} {1}".format("mkdir", dir_mk) +cmd_re = subprocess.run(cmd) +``` + +#### 构建目录 + +##### G.COM.02 构建过程中禁止删除或修改源代码文件及其目录结构。 + +【级别】禁止 + +【描述】 + +- 构建过程中删除或修改源代码目录结构,会导致构建过程不可重复。 + +- 构建过程中,构建输出(包括目标文件、临时文件和构建日志)不能污染源码目录; + +- 构建过程中,避免修改源文件,包括但不限于拷贝、移动、执行dos2unix进行了源代码的格式转换等,源文件的修改应该在构建前的代码准备阶段完成; + +- 工具自动生成源代码应该在构建前的准备阶段完成,如果构建过程中使用工具自动生成源代码,工具自动生成的源代码必须和已有源代码目录隔离,以便区分高价值的源代码和低价值的可重新生成的代码,降低构建系统的复杂性。 + +【例外】构建补丁时,可能会新增或调整部分源代码。 + +##### G.COM.12 构建过程中创建的文件和目录应提供合适的权限。 + +【级别】要求 + +【描述】构建过程中可能需要创建目标系统的目录或文件,这些目录和文件应符合权限最小化的设计。 +例如,构建过程中应尽量避免在Linux系统中创建“777”权限的目录或文件。 + +Linux系统中常见的目录文件和权限可以参考《Linux安全配置操作规范》。 + +#### 构建初始化 + +##### G.COM.03 每个组件提供clean命令。 + +- 当clean不带任何参数时,清除该层级构建工程下的所有目标文件、临时文件和构建日志,并递归调用下层构建工程的clean,使该构建工程恢复到初始状态; +- 当clean带参数时,只清除与之对应的构建生成的目标文件、临时文件和构建日志。 + +【级别】要求 + +【描述】构建前进行clean是为了避免本次构建受到历史构建残留文件和构建日志的影响,确保构建可重复。必须支持不带任何参数clean;带参数的clean,是为了满足日常交付过程和开发人员本地构建的诉求,不作强制要求。 + +【正确示例】 + +``` +base_dir + |---build.suffix + |---logs + |---component_depository_1 + |---build.suffix + |---logs + |---component_depository_2 + |---build.suffix + |---logs + +#不带参数 +base_dir/build.suffix clean +#....分别调用component_depository_1和component_depository_2的clean + +#带参数:组件名 +base_dir/build.suffix clean component_depository_1 +#....调用component_depository_1的clean + +#带参数 +component_depository_1/build.suffix clean makebin hert umpt +#....调用component_depository_1的umpt单板链接任务的clean,支持详细参数的clean主要应用于内部开发和构建。 +``` + +##### G.COM.04 每个组件发布构建,必须保证构建环境中没有历史构建遗留件。 + +【级别】要求 + +【描述】首次下载代码,构建环境已经初始化,构建环境本身确保没有历史构建遗留件,可以不用执行clean命令;如果执行过构建的,必须使用clean命令清除历史构建遗留件。 + +#### 全量构建 + +##### G.COM.05 对于版本发布构建,归档的产品全量交付件(含所依赖的所有平台和组件)必须全部重新编译,禁止使用增量编译,禁止使用手工替换文件等方式修改安装盘。 + +版本发布构建是指产品(含所依赖的所有平台和组件)对外正式发布版本的构建。 + +【级别】要求 + +【描述】修改文件后增量编译,会导致部分二进制文件没有更新,造成新的安全编译选项未集成到版本,编译结果不一致。手工替换文件可能会造成构建不可重复、不一致。 + + +#### 构建配置 + +构建配置数据和构建脚本分离,避免构建工程架构腐化。源码路径、编译选项、目标文件路径等配置与构建脚本放到不同的文件,降低构建脚本维护成本。 + +##### G.COM.06 禁止使用与操作系统强绑定的文件(如excel)作为构建配置文件。建议使用跨平台的标准配置文件(如XML)来存放配置选项。 + +【级别】要求 + +【描述】使用excel作为配置文件带来的问题: + +- 产品和平台编译过程中,使用excel作为配置文件,都将调用微软的OfficeAPI,每次访问excel表格都会在后台打开excel,处理速度慢。 + +- 大量的excel配置需要手动点界面进行操作,可管理性差。 + +#### 构建日志 + +##### G.COM.07 构建输出的日志简洁明晰,构建日志的格式为时间戳+模块名(可选)+日志信息等级+日志内容。 +【级别】要求 + +【描述】建议时间戳格式采取“日期和时间”,如"MM/dd/yyyy HH:mm:ss"。 + +日志信息等级分为error/warning/informational,级别可以全写,也可以简写;对应的简写为: + +| 级别(大小写都可以)| 简写(大小写都可以)| +| :---------: | :--------------------------: | +| error | ERROR | +| warning | WARN | +| information | INFO | + +建议使用“[]”作分隔符。 + +【正确示例】 +[05/21/2020 00:12:40] [ERROR] mkdir: cannot create directory Permission denied. + +【例外】整个日志由工具自动输出的,可用使用以下方式跳过整个日志文件:在日志的最前方(尽可能靠前)输出"This project is built using "+工具名,如"This project is built using CMake."。 + +##### G.COM.08 构建日志出现error信息表示构建失败,必须终止构建。 + +【级别】要求 + +【描述】出现error信息一般是需要人工干预的构建错误,例如配置的环境变量错误,工具的版本错误,操作系统错误等等;或者软件源代码不对。对于版本发布构建,必须消除构建过程中所有的error消息,不允许屏蔽构建error信息。 + +【错误示例】某组件构建成功,但构建日志中包含大量的fail、Critical、cannot、not found、missing、no input files等异常信息,令人困惑。 + +##### G.COM.09 构建日志文件只保留本次构建的日志,避免本次构建的日志与历史构建的日志混淆。 + +【级别】要求 + +【描述】构建日志文件保留历史构建日志会导致混淆错误,比如:最新构建是失败的,由于保留有历史成功构建日志,会误认为最新这次构建是成功的。 + +##### G.COM.10 每条日志建议增加对应的模块名,用于问题的快速定界。 + +【级别】建议 + +【描述】在日志量较大时,很难快速锁定问题责任模块,需要在日志上加以区分。 + +【例外】CMake等工具的原生日志,因为输出带有对应模块路径,可以界定问题边界,不用特殊增加模块名维测信息。 + +#### 构建用户 + +##### G.COM.11 禁止使用超级管理员用户root和系统用户执行构建,应该使用普通user账户执行构建。 + +【级别】要求 + +【描述】超级管理员用户root和系统用户具有比较高的系统权限,使用此类账户执行构建可能导致构建环境被篡改。 + +安装态可以使用root用户;执行态使用普通user账户,如果需要使用sudo提升权限的,请遵守《身份和访问管理安全设计规范》。 + +#### 构建输出文件 + +##### G.COM.12 构建输出文件命名后缀遵守业界约定。 + +【级别】要求 + +【描述】错误的后缀命名令人误解。 + +对lib库、obj等构建输出文件的文件缀,应遵从构建工具默认的命名规则。 + +【错误示例】某文本文件命名为XXX.lib。 + +【错误示例】某object文件命名为XXX.a。 + +【错误示例】某静态库命名无后缀,命名为libxxx。 + +【正确示例】业界如下网址可以查询常见的文件后缀命名约定:http://www.fileextension.org/ , https://fileinfo.com/ , https://www.file-extensions.org/, http://file-extension.net/ 。 + +下面是一些常见的文件后缀的命名约定: + +| 文件后缀名 | 类型约定 | 文件后缀名 | 类型约定 | +| ---------- | -------------------- | ---------- | --------------- | +| .a | 静态库 | .so | 动态库 | +| .o | object文件 | .7z | 7zip压缩文件 | +| .tar | tar存档文件 | .gz/.gzip | GNU压缩存档文件 | +| .pack | java pack200压缩文件 | .rar/.rar5 | rar压缩包 | + +### C/C++构建工程 + +#### 构建目录 + +##### G.C&C++.01 构建目录结构标准化。 + +构建目录按用途分为源树Source Tree、构建中间件树Build Tree、构建安装树Install Tree三种。 + +- Source Tree是保存源码和构建脚本的目录。 +- Build Tree是保存构建中间件的目录,目录名称一般为"build"。 +- Install Tree是保存构建发布件的目录,目录名称固定为"output"。 + +Source Tree、Build Tree和Install Tree目录隔离,互相不重叠,没有交集,即不允许一个目录同时承担两种及以上的用途,譬如一个目录既作为Source Tree存放源码,又作为Build Tree存放编译中间件,这是不允许的。 + +Source Tree包含下列文件和目录: + +- 构建工具入口文件,如CMakeLists.txt,CMakeLists.txt中通过add_subdirectory()命令添加子目录,CMake将自动迭代调用子目录中的CMakeLists.txt,并逐级向下展开。 +- build.suffix脚本文件,该文件是一键式构建入口,仅调用该脚本即可完成构建。".suffix"表示对应的构建脚本语言后缀,譬如".bat",".sh",".py"等。 +- config.suffix配置文件,该文件用于存放构建配置项,是唯一的配置文件入口。 +- 构建脚本目录,可选,如cmake目录,用于保存CMake脚本文件。CMake脚本文件包括宏、函数、toolchain等, CMakeLists.txt通过include()命令包含CMake脚本文件,并调用其中的宏、函数等。 +- 组件代码目录,用于存放各组件的源码及构建脚本。 +- 上述文件和目录,只有CMakeLists.txt、build.suffix、config.suffix这三个文件是必需的,其它文件或者目录仅用作示例,不强制要求。 + +Build Tree包含下列目录: + +- build目录,用于存放构建中间件。该目录可能在构建过程中创建,在git库上可能没有该目录。 +- 有的工程已经将build目录用于保存构建脚本,可以创建别的目录作为Build Tree。 + +Install Tree包含下列目录: + +- output目录,用于存放交付件。该目录可能在构建过程中创建,在git库上可能没有该目录。 + +【级别】要求 + +【描述】 + +典型目录结构如下: + +``` +base_dir + |---CMakeLists.txt ---| + |---build.suffix | + |---config.suffix | + |---cmake |--> Source Tree + |---component_1 | + |---component_2 | + |---...... | + |---component_n ---| + |---build ------> Build Tree + |---output ------> Install Tree +``` + +各组件的目录结构与顶层的目录结构类似,譬如: + +``` +component_1 + |---CMakeLists.txt ---| + |---build.suffix | + |---config.suffix | + |---cmake |--> Source Tree + |---module_1 | + |---module_2 | + |---...... | + |---module_n ---| + |---build ------> Build Tree + |---output ------> Install Tree +``` + +##### G.C&C++.02 构建过程中禁止以任何形式修改Source Tree。 + +【级别】建议 + +【描述】构建过程中修改Source Tree会导致构建过程不可重复。 + +常见的修改Source Tree的操作有: +1)打补丁 +2)打点 +3)裁剪 +4)自动生成源码 +5)先修改源码然后还原 +6)增加/修改/删除临时文件或者目录 +7)修改文件/目录属性或者格式,譬如修改文件可执行权限、dos2unix等 + +建议解决方案如下: +1)将代码拷贝到Build Tree,然后打补丁,编译。 +2)打点工具修改源码,使得构建过程不可信,因此禁止在构建过程中使用打点工具。应将打点后的代码上传到代码库,使用打点后的代码进行构建。 +3)裁剪是独立的源码交付需求,裁剪可以看做是代码准备阶段。裁剪前的版本和裁剪后的版本都必须满足在构建过程中不修改Source Tree。 +4)自动生成的源码应放在Build Tree下。 +5)先修改源码然后还原是掩耳盗铃,构建过程中源码已经发生了变更。 +6)临时文件或者目录都应该放在Build Tree下。 +7)必须保证代码库中的文件属性和格式是正确的,而不是构建时修改。 + +检验Source Tree是否发生变化的方法之一:编译完成后在源码目录下执行git status命令,不能有任何变更。先修改后还原导致的Source Tree变更,通过git status可能检测不出来。 + +【例外】 +1)git status检测到Build Tree和Install Tree这两个目录的变更是允许的。 +2)git status检测到由于裁剪导致的变更是允许的。 + +##### G.C&C++.03 Windows构建根目录建议为D:\交付单元的名称+版本号(可选);Linux构建根目录建议为/usr1/交付单元的名称+版本号(可选)。 + +【级别】建议 + +【描述】构建根目录按交付单元的名称+版本号命名,禁止使用build或code等无法区分交付单元的目录名称。 +清晰的构建目录结构,便于测试人员配置构建参数、执行一键式构建入口和对比构建结果。 +根目录示例如下: + +``` +D:\Offering [Version,可选]或/usr1/Offering [Version,可选] +``` + +##### G.C&C++.04 构建过程中生成的所有中间件保存在Build Tree中。 + +【级别】要求 + +【描述】构建过程中产生的中间件包括构建工具CMake自动生成的makefile、构建脚本自动生成的源码、构建脚本拷贝的源码及补丁、编译产生的object文件、库文件、可执行程序、构建日志等等。如果中间件放在Build Tree以外的目录,势必污染Source Tree或者Install Tree。因此,所有中间件都要保存在Build Tree中。Build Tree仅用于保存构建中间件,不能将Source Tree下某个放置源码或者构建脚本的目录用作Build Tree。 +Build Tree下创建构建日志子目录logs,构建日志后缀文件命名为.log。 + +##### G.C&C++.05 支持指定Source Tree和Install Tree以外的任意目录作为Build Tree。 + +【级别】要求 + +【描述】支持指定Source Tree和Install Tree以外的任意目录作为Build Tree,做到构建过程与目录无关。在哪个目录下执行构建,哪个目录就是Build Tree,编译中间件就保存在哪个目录下。Build Tree的目录名称一般为“build”,也可以使用其它名称。 + +【正确示例】使用CMake系统变量CMAKE_BINARY_DIR和CMAKE_CURRENT_BINARY_DIR访问Build Tree,避免Build Tree与Source Tree产生耦合。 + +##### G.C&C++.06 所有发布件保存在Install Tree中。 + +【级别】要求 + +【描述】本地编译场景下,发布件直接"install"到HOST Computer上并运行。交叉编译场景下,发布件并不在HOST Computer上运行,而是在TARGET Computer上运行。 + +发布件包括库文件、可执行程序、包文件、头文件等,是组件对外的二进制接口。所有发布件都保存在Install Tree中,不应将发布件放在Install Tree以外的目录下。 + +Install Tree只用于保存发布件,不应将编译中间件放在Install Tree中。 + +##### G.C&C++.07 支持指定Source Tree和Build Tree以外的任意目录作为Install Tree。 + +【级别】要求 + +【描述】支持指定Source Tree和Build Tree以外的任意目录作为Install Tree,做到构建过程与目录无关。Install Tree的目录名称固定为“output”。 + +【正确示例】CMake构建工程应支持通过系统变量CMAKE_INSTALL_PREFIX指定Install Tree的根目录。 + +#### 构建入口 + +##### G.C&C++.08 每个交付单元的构建入口单一。构建脚本入口名称统一命名为build.suffix,并且路径要求在构建根目录下。 + +【级别】要求 + +【描述】通过使用一致的构建入口点,构建过程可以变得更加高效和可自动执行。每个交付单元只有单一构建入口,便于一键式自动构建。 + +【错误示例】如下构建有多个入口点,如果没有说明文档,无法确认哪一个入口是正确的,造成选择困难。 +build.bat +build_all.sh +build_v6.sh + +【正确示例】一键式构建脚本build.sh的典型写法如下: + +```bash +#!/bin/bash + +if [ -d "build" ]; then + rm -fr build/* +else + mkdir build +fi + +if [ -d "output" ]; then + rm -fr output/* +else + mkdir output +fi + +cd build +cmake .. + +cpu_processor_num=$(grep processor /proc/cpuinfo | wc -l) +job_num=$(expr "$cpu_processor_num" \* 2) +echo Parallel job num is "$job_num" +make -j"$job_num" +``` + +##### G.C&C++.09 支持指定target进行构建。 + +【级别】要求 + +【描述】日常开发场景下,通过指定target编译,开发人员只需要编译修改了的代码,不需要编译全部代码,达到快速验证的目的。编译工程应支持指定target进行构建,从而满足灵活多变的编译调试需求。 + +【正确示例】典型命令如下: + +``` +base_dir # cd build +base_dir/build # cmake .. +# 编译全部目标 +base_dir/build # make +# 编译特定目标 +base_dir/build # make target_name +``` + +##### G.C&C++.10 支持重复编译。 + +【级别】要求 + +【描述】编译成功后,不对源代码做任何修改,不清理上次编译的中间件和发布件,不修改编译环境,再次执行编译,必须能重复编译成功。 + +##### G.C&C++.11 支持增量编译。 + +【级别】建议 + +【描述】日常开发场景下,增量编译可以缩短编译时间,提高开发效率,因此建议支持增量编译。 + +##### G.C&C++.12 支持并行编译。 + +【级别】要求 + +【描述】通过"make -jN"命令进行并行编译,可以提高编译速度。本规则仅适用于使用make工具的工程。 + +支持jobserver统一调度,使整个工程的负载最优。不能出现下面两个告警: + +``` +warning: jobserver unavailable: using -j1. Add '+' to parent make rule. +warning: -jN forced in submake: disabling jobserver mode. +``` + +支持jobserver的方法如下: + +1. 通过$(MAKE)直接调用make命令 + + ```cmake + ExternalProject_Add(foo + SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/foo + CONFIGURE_COMMAND sh configure_ext.sh + BUILD_COMMAND $(MAKE) + ) + ``` + +2. 通过shell脚本调用make命令 + + ```cmake + ExternalProject_Add(foo + SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/foo + CONFIGURE_COMMAND sh configure_ext.sh + BUILD_COMMAND sh build_ext.sh $(MAKE) + ) + ``` + + build_ext.sh内容如下: + + ```bash + #!/bin/bash + + make + ``` + + 注意:build_ext.sh不需要解析和使用参数$(MAKE)。 + +3. 通过python脚本调用make命令 + + ```cmake + ExternalProject_Add(foo + SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/foo + CONFIGURE_COMMAND sh configure_ext.sh + BUILD_COMMAND python build_ext.py $(MAKE) + ) + ``` + + build_ext.py内容如下: + + ```bash + #!/usr/bin/python + # -*- coding: UTF-8 -*- + + import subprocess + + def main(): + child = subprocess.Popen("make", close_fds=False) + ret = child.wait() + return + + if __name__ == '__main__': + main() + ``` + + 注意:build_ext.py不需要解析和使用参数$(MAKE)。 + + +#### 构建依赖 + +##### G.C&C++.13 定义一个构建依赖文件dependence.xml,文件中描述构建依赖的所有组件。构建脚本自动读取该依赖文件,用于制作最终的软件包。 + +【级别】建议 + +【描述】按照依赖文件进行软件包制作,避免在构建脚本中定义依赖组件,提高构建过程可维护性。 + +#### 构建配置 + +##### G.C&C++.14 构建根目录的config.suffix配置文件是整个交付项目唯一的配置入口。 + +【级别】要求 + +【描述】顶层的config.suffix中,应暴露最少的配置项,只需要用户配置的构建环境、构建工具相关的信息。 + +【例外】如果构建配置的内容非常少,采取系统键值对配置项,配置文件可以命名成config.conf。 + +### GN 编写规范 + +#### 编译规范 + +##### 规则1.1 禁止在gn中调用外部编译工具编译软件模块 + +【级别】禁止 + +【描述】需要将外部组件移植成gn的编译形式,避免编译过程对环境产生不必要的依赖,而且可获得编译框架提供的公共能力,包括不限于:安全编译选项,ASAN等。 + +【反例】在gn中使用action调用automake和Make来编译三方组件。 + +【例外】Linux Kernel 编译框架实际完成的用户态程序编译,内核完全可以在编译框架之外完成独立编译。某些平台实现为了实现一键编译,使用gn将内核编译加在编译过程中,是可以接受的。 + +##### 规则1.2 禁止在模块的gn文件中,再次添加编译系统已经添加的安全编译选项 + +【级别】禁止 + +【描述】对于全局已经添加的默认选项,模块开发者应当知晓,不需要为了满足内外部规则再次添加。 + +| 编译选项 | 编译参数 | 默认值 | +|---------|------------|------------| +| 栈保护 | -fstack-protector-strong| 开 | +| Fortify Source | -D_FORTIFY_SOURCE=2 -O2 | 开 | + +【反例】在模块的编译添加 -fstack-protector-strong + +##### 规则1.3 禁止在gn中添加和默认编译选项相反的编译选项 + +【级别】禁止 + +【描述】默认的编译选项代表了系统的默认能力,自研模块有特殊情况需要去掉部分能力,必须有足有的理由。 + +【反例】在自研模块中添加 -wno-unused 以消除编译告警。 + +【例外】移植三方组件,或者使用因为三方组件时,可根据三方组件的要求覆盖默认的编译选项。 + +##### 规则 2.1 使用gn format 对添加或者修改的gn文件进行格式化,满足格式和排版的需求 + +【级别】要求 + +##### 规则 2.2 编写action时,使用python而不是shell + +【级别】建议 + +【描述】python 环境更容易保持统一,可以比较容易的多重操作系统上运行,并且扩展性可读性可测试更好。 + +##### 规则 2.3 禁止在gn和ninja执行过程修改源码目录的内容 + +【级别】禁止 + +【描述】包括但不限于给源码目录打patch,向源码目录中拷贝,在源码目录中执行编译,在源码目录生成中间文件等。 + +##### 规则 2.4 编译脚本的编码格式设置为utf-8,换行符设置为unix格式 + +【级别】要求 + +【反例】在windows上编写脚本后,使用了中文注释并保存为本地编码。 + diff --git a/zh-cn/contribute/OpenHarmony-compile-rule.md b/zh-cn/contribute/OpenHarmony-compile-rule.md new file mode 100644 index 0000000000000000000000000000000000000000..6bfe64f2ddbcc248a3b9363fd6c4401ead700289 --- /dev/null +++ b/zh-cn/contribute/OpenHarmony-compile-rule.md @@ -0,0 +1,1369 @@ + +# 开源编译规范 + +## 概述 + +**简介:** + +本规范包括C/C++/Java语言编译选项或系统配置,包括语言选项、警告选项、安全选项、总体选项、代码生成选项、架构选项、优化选项、编译宏等。 + +**范围:** + +本规范规定了C/C++/Java语言在编译构建过程中需要添加的编译选项或系统配置,并对这些选项的作用进行了简单说明。此外,规范中对涉及到的例外场景也进行了阐释说明。 + +无OS(如裸核、BIOS、Bootloader、BSBC等)需遵循的安全编译选项还未制定,本规范暂不做要求,在相关规范发布之前,建议实施栈保护。 + +对于本规范未描述的例外情况,如果存在争议,可申请仲裁。 + +**条款组织方式:** + +每个条款一般包含标题、级别、描述等组成部分。条款内容中的“正确示例”表示符合该条款要求的例子,“错误示例”表示不符合该条款要求的例子。 + +**标题:** + +描述本条款的内容。 + +规范条款分为原则和规则两个类别,原则可以评价规则内容制定的好坏并引导规则进行相应的调整;规则是需要遵从或参考的实践。通过标题前的编号标识出条款的类别为原则或者规则。 + +标题前的编号规则参见《安全工程规范内容总纲》,其中'P'为单词Principle首字母,'G'为单词Guideline的首字母。原则条款的编号规则为P.Number。规则的编号方式为G.Language.Element. Number,其中Language是语言分类,Element为领域知识中关键元素(本规范中对应的一级目录)的英文字母缩略语。Number是从1开始递增的两位阿拉伯数字,不足两位时高位补0。 + +| Language | Element | 目录 | Language | Element | 目录 | +|----------|---------|----------|----------|---------|--------------| +| C&C++ | LANG | 语言选项 | C&C++ | WARN | 警告选项 | +| C&C++ | SEC | 安全选项 | C&C++ | CDG | 代码生成选项 | +| C&C++ | OPT | 优化选项 | C&C++ | MD | 架构选项 | +| C&C++ | OVA | 总体选项 | C&C++ | LNK | 链接选项 | +| C&C++ | DBG | 调试选项 | C&C++ | PRE | 编译宏 | +| C&C++ | OTH | 其他 | JAVA | JAVAC | JAVAC | +| JAVA | MAVEN | MAVEN | | | | + +**级别:** + +规则类条款分为两个级别:要求、建议。 + +- 要求:表示产品原则上应该遵从,但可以按照具体产品版本计划和节奏分期实现。 + +- 建议:表示该条款属于最佳实践,有助于进一步消解风险,产品可结合业务情况考虑是否纳入。 + +**描述:** + +对条款的进一步描述,描述条款的原理,配合正确和错误的代码例子作为示范。有的条款还包含一些规则不适用的例外场景。 + +## C/C++语言编译选项 + +### 语言选项 + +##### G.C&C++.LANG.01 显式设置编译的语言标准 + +**【级别】** 要求 + +**【描述】** 按时间先后顺序,常用的ISO C标准包括:"-std=c90","-std=c99","-std=c11",对应的GNU扩展标准为"-std=gnu90","-std=gnu99","-std=gnu11"。 + +按时间先后顺序,常用的ISO C++标准包括:"-std=c++98","-std=c++11","-std=c++14","-std=c++1z",对应的GNU扩展标准为"-std=gnu++98","-std=gnu++11","-std=gnu++14","-std=gnu++1z"。 + +"-ansi"对应ISO C标准"-std=c90"和ISO C++标准"-std=c++98"。 + +GNU扩展标准完全支持对应的ISO标准,并在对应的ISO标准上做了扩展。 + +"-Wpedantic","-pedantic","-pedantic-errors"等选项用于检查是否严格符合对应的ISO标准,对不符合标准的语法进行警告,GNU扩展语法也可能产生警告。 + +##### G.C&C++.LANG.02 采用较新的语言标准 + +**【级别】** 建议 + +##### G.C&C++.LANG.03 显式设置char的类型:"-fsigned-char"或"-funsigned-char" + +**【级别】** 建议 + +**【描述】**"-fsigned-char":x86环境默认char是signed类型,但是ARM64下,默认char是unsigned类型;编译器适配不同平台后端的指令集,故为了考虑平台兼容性,使用该选项。 + +部分产品可能默认char等效于unsignd char,这种情况下建议使用选项"-funsigned-char"显式设置。 + +##### G.C&C++.LANG.04 对C++语言,禁止使用"-fpermissive"选项 + +**【级别】** 要求 + +**【描述】** 使用"-fpermissive"选项将C++代码中不符合标准的语法error降级成warning。不允许使用该选项,应采用符合标准的C++语法。 + +### 警告选项 + +#### 选项集 + +##### G.C&C++.WARN.01 打开"-Wall"选项,检查有用的警告选项集 + +**【级别】** 要求 + +**【描述】** "-Wall"是gcc编译器认可的、很有用的警告选项集合,包括"-Wpointer-sign"、"-Wframe-address"、"-Wmaybe-uninitialized"、"-Wint-in-bool-context"等警告。对于这些警告,应该理解其含义,通过修改代码来消除警告。 + +##### G.C&C++.WARN.02 打开"-Wextra"选项,检查除"-Wall"外附加的选项集;"-Wextra"中误报较多的选项,可以使用"-Wno-XXXX"屏蔽 + +**【级别】** 要求 + +**【描述】** "-Wextra"是除"-Wall"外的一些有用的警告选项集合,包括“-Wempty-body”、"Wmissing-field-initializers"、"-Wunused-parameter"等警告。 + +"-Wextra"中某些警告可能存在较多误报,产品在实测的基础上,可以使用“-Wno-XXXX”屏蔽其中误报较多的警告,如某产品实测“-Wunused-parameter +\-Wmissing-field-initializers”误报较多,可以设置“-Wextra -Wno-unused-parameter +\-Wno-missing-field-initializers”,由产品线软件总工批准。 + +##### G.C&C++.WARN.03 打开"-Weffc++"选项,检查Scott Meyers’ Effective C++选项 + +**【级别】** 建议 + +**【描述】** "-Weffc++":Scott Meyers’ Effective C++对应的警告选项集。 + +#### 警告屏蔽 + +##### G.C&C++.WARN.04 禁止使用"-w"选项屏蔽所有警告 + +**【级别】** 要求 + +**【描述】** 编译器提示的警告通常对于鉴别低劣的代码和隐晦的bug非常有用,使用-w选项会屏蔽了所有的警告。 + +##### G.C&C++.WARN.05 禁止使用"-Wno-XXXX"抑制"-Wall"包含的所有警告选项 + +**【级别】** 要求 + +**【描述】** "-Wall"是gcc编译器认可的、很有用的警告选项集合,禁止使用比如"-Wno-pointer-sign"、"-Wno-frame-address"、"-Wno-maybe-uninitialized"、"-Wno-int-in-bool-context"抑制"-Wall"包含的"-Wpointer-sign"、"-Wframe-address"、"-Wmaybe-uninitialized"、"-Wint-in-bool-context"选项。 + +##### G.C&C++.WARN.06 禁止使用"-Wno-error= XXXX"选项将已指定的升级错误的警告再次降级成警告 + +**【级别】** 要求 + +**【描述】** "-Werror=XXXX"把指定警告升级错误,"-Wno-error=XXXX":将指定升级成错误的警告再次降级成警告,令人困惑。 + +##### G.C&C++.WARN.07 避免使用"-Wno-XXXX"抑制编译器缺省打开的编译警告选项 + +**【级别】** 建议 + +**【描述】** 编译器缺省打开的编译警告选项,是gcc编译器认可的、很有用的警告选项,如"-Wwrite-strings"、"-Wdelete-incomplete"、"-Wsizeof-array-argument"等。对于这些警告,应该理解其含义,通过修改代码来消除警告。 + +**【错误示例】** 某组件的构建工程中使用"-Wno-write-strings"抑制"-Wwrite-strings"编译警告7749次。 + +**例外:** 为了确保构建一致性,可以重定义 \__FILE_\_ 宏,消除绝对路径,可以使用"-Wno-builtin-macro-redefined"抑制"-Wbuiltin-macro-redefined"警告。 + +#### 警告升级 + +##### G.C&C++.WARN.08 使用"-Werror"、"-Werror=XXXX"选项把警告当错误处理 + +**【级别】** 建议 + +**【描述】** 建议打开"-Werror"、"-Werror=XXXX"选项:把警告当错误处理 + +"-Werror":把警告当错误处理,一旦出现警告,编译就会失败,有利于在开发过程中清除所有的警告。 + +"-Werror=XXXX":把指定警告当错误处理。使用"-Werror=XXXX"指定某些警告当错误处理,有利于在开发过程中清除所指定的警告。,如"-Werror=implicit-function-declaration"、"-Werror=format-SEC"。 + +#### 警告管理 + +##### G.C&C++.WARN.09 同一构建工程中,统一编译警告选项。 + +**【级别】** 要求 + +**【描述】** 统一的编译警告选项,确保各部分代码质量统一。 + +#### 函数 + +##### G.C&C++.WARN.10 打开"-Wtrampolines"选项,避免内嵌函数生成trampoline + +**【级别】** 建议 + +**【描述】** 内嵌函数是定义于函数中的函数。当内嵌函数指针生成trampoline时,会触发警告。Trampoline是在运行时创建于栈区的一小段数据或代码,它包含了内嵌函数的地址信息,它被用于内嵌函数的间接调用。某些平台上,Trampoline仅仅由一些特殊处理的数据构成。但是,大多数平台上,它是由代码构成的,因此它需要栈可执行来支持。栈变成可执行栈,CPU读取栈上指令执行,攻击者可能通过缓冲区溢出攻击等手段运行栈内存上自己得代码。 + +**【错误示例】** 在函数main内部定义并通过函数指针调用内嵌函数fun,在”-Wtrampolines”选项下编译警告。 + +- 源程序: +``` +\#include \ +int main(){ + int ret; + int (\*pfunc)(int a, int b); + int fun(int a, int b){ + return a + b; + } + pfunc = fun; + ret = pfunc(10, 20); + printf("test gcc option -Wtrampolines! ret = %d\\n", ret); + return 0; +} +``` + +- 编译选项: +``` +gcc -Wtrampolines trampolines.c -o out +``` + +- 编译结果: +``` +warning:trampoline generated for nested function ‘fun’ [-Wtrampolines] +``` +**例外**:"-Wtrampolines" xt-xcc和clang编译器不支持。 + +##### G.C&C++.WARN.11 打开"-Wformat=2"选项,检查格式化输入/输出函数的安全 + +**【级别】** 建议 + +**【描述】** "-Wformat=2"是“-Wformat”、“-Wformat-nonliteral”、“-Wformat-SEC“、”\-Wformat-y2k“的集合。 + +1. “-Wformat”:格式化函数的参数类型、格式错误时,警告 + +2. “-Wformat-nonliteral”:当格式化字符串为非字符串常量时,警告 + +3. “-Wformat-SEC“、” -Wformat-y2k“ + +对于产品自行封装的格式化输入输出框架函数, 应于 API 声明 format attribute +以利用编译器检查能力, 详细参考 +[https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html\#Common-Function-Attributes](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes) + +##### G.C&C++.WARN.12 打开"-Wstrict-prototypes "选项,避免函数在声明或定义中没有指定参数类型 + +**【级别】** 建议 + +**【描述】** 在函数的声明或定义时,显式指明函数参数类型,编译器检查函数调用和定义之间参数类型的不匹配情况。 + +**【错误示例】** + +- 源程序: +``` +\#include \ +int func(param){ + return param; +} + +``` +- 编译选项: +``` +gcc -Wstrict-prototypes strict_prototypes.c -o out +``` +- 编译结果: +``` + warning: function declaration isn't a prototype [-Wstrict-prototypes] int func(param){ +``` + +相关文档:《SEI CERT C Coding Standard》DCL07-C. Include the appropriate type +information in function declarators + +#### 二进制一致性 + +##### G.C&C++.WARN.13 打开"-Wdate-time"选项,避免使用时间宏,确保二进制一致性 + +**【级别】** 建议 + +**【描述】** "-Wdate-time":避免代码使用__DATE__、__TIME__、__TIMESTAMP__,以确保二进制一致性。 + +**【错误示例】** + +- 源程序: +``` +\#include \ +int main() { + printf ("%s %s %s\\n",_DATE_,_TIME_,_TIMESTAMP_); + return 0; +} +``` +- 编译选项: +``` +gcc -Wdate-time datetime.c -o out +``` +- 编译结果: +``` +warning:macro "_DATE_" might prevent reproducible builds [-Wdate-time] warning:macro "_TIME_" might prevent reproducible builds [-Wdate-time] warning:macro "_TIMESTAMP_" might prevent reproducible builds [-Wdate-time] +``` + +#### 语句 + +##### G.C&C++.WARN.14 打开"-Wfloat-equal"选项,避免浮点数相等比较运算 + +**【级别】** 要求 + +**【描述】** 由于浮点数存在精度问题,大多数情况下是近似值,不能精确判断是否相等。浮点数相等或不相等比较是不安全的行为,建议通过判断两数之差的绝对值是否小于可接受误差来判断浮点数是否相等,可以使用C语言标准库函数fabs()求两浮点数之差的绝对值,然后与可接受误差比较,如果在可接受误差范围内,则相等,否则不相等。需要特别注意的是:\>、\<、\>=、\<=这四种比较运算符用于浮点数比较不会警告。 + +**【错误示例】** + +- 源程序 : +``` +\#include \ +int main() { + double a = 0.3; + double b = 0.6; + ouble c = 0.9; + if ((a+b) == c) { + /\* 看似相等,实际运行时,a+b与c不相等\*/ + printf("double equal\\n"); + } + return 0; +} +``` + +- 编译选项: +``` +gcc -Wfloat-equal float_equal.c -o out +``` + +上述示例中,进行双精度浮点数相等比较,编译器警告"warning:comparing floating +point with == or != is unsafe[-Wfloat-equal]",a+b和c看似应该相等,但是程序运行时并不相等,这是因为浮点数是近似表达,a+b和c均为近似值,浮点数的相等性比较不可信,是一种不安全的行为。浮点数正确的比较方式是设定一个可接受的误差精度,如果两个浮点数差值的绝对值在这个误差范围内,就表示相等,正确方式如下: + +**【正确示例】** 浮点数相等比较 + +- 源程序 : +``` +\#include \ \#include \ \#define EPSILON 1e-6 / +\* 双精度比较可接受的误差 \*/ +int main() { + double a = 0.3; + double b = 0.6; + double c = 0.9; + if (fabs((a+b)-c) \< EPSILON) { + printf("double equal\\n"); + } + return 0; +} +``` + +- 编译选项: + +``` +gcc -Wfloat-equal float_equal.c -o out +``` + +##### G.C&C++.WARN.15 打开"-Wswitch-default"选项,确保switch语句有default分支 + +**【级别】** 建议 + +**【描述】** 如果switch语句没有default分支,在-Wswitch-default选项下编译警告。 + +**【错误示例】** + +- 源程序: +``` +enum TintColor{ + RED, DARK_RED, GREEN, LIGHT_GREEN +}; +void Colorize(enum TintColor Color) { + switch (Color) { + case RED: + /\* code \*/ + break; + case DARK_RED: + break; + } +} +``` +- 编译选项: +``` +gcc -Wswitch-default switch_default.c -o out +``` +- 编译结果: +``` +warning: switch missing default case [-Wswitch-default] switch (Color) +``` + +#### 变量 + +##### G.C&C++.WARN.16 打开"-Wshadow"选项,检查变量覆盖 + +**【级别】** 建议 + +**【描述】** "-Wshadow":局部变量覆盖全局变量、函数参数等产生的警告。C++语言打开该选项警告较多,团队可以根据实际情况评估是否打开该选项。 + +**【错误示例】** + +- 源程序: +``` +int num = 0; +int foo(int a, int b){ + int num = a + b; + return num; +} + +``` +- 编译选项: +``` +gcc -Wshadow shadow.c -o out +``` +- 编译结果: +``` +warning: declaration of 'num' shadows a global declaration [-Wshadow] int num = a + b; +``` + +##### G.C&C++.WARN.17 打开"-Wstack-usage=len"选项,设置栈大小,避免栈溢出 + +**【级别】** 建议 + +**【描述】** 如果函数使用的栈内存可能超过len个字节,编译警告。len的值,团队根据实际情况设置。 + +**【错误示例】** + +- 源程序: +``` +void foo(void) { + int arr[1000] = {0}; + return; +} +``` +- 编译选项: +``` +gcc -Wstack-usage=1000 stack_usage.c -o out +``` +- 编译结果: +``` +warning: stack usage is 4012 bytes [-Wstack-usage=] void foo(void) { +``` + +##### G.C&C++.WARN.18 打开"-Wframe-larger-than=len" 选项,设置栈框架大小,避免栈溢出 + +**【级别】** 建议 + +**【描述】** 如果一个函数的栈框架超过len字节,编译警告。len的值,团队根据实际情况设置。 + +**【错误示例】** + +- 源程序: +``` +void foo(void) { + int arr[1000] = {0}; + return; +} +``` +- 编译选项: +``` +gcc -Wframe-larger-than=1000 stack_usage.c -o out +``` +- 编译结果: +``` +warning: the frame size of 4000 bytes is larger than 1000 bytes [-Wframe-larger-than=] +``` + +##### G.C&C++.WARN.19 不建议打开“-Wno-return-local-addr“选项,检查返回局部变量地址 + +**【级别】** 建议 + +**【描述】** 如果函数返回局部变量的地址,编译时默认产生“-Wreturn-local-addr”警告。禁止开启“-Wno-return-local-addr”选项屏蔽这些警告。 + +**【错误示例】** + +- 源程序: +``` +int\* foo() { + int a=0; + return \&a; +} +``` +- 编译选项: +``` +gcc -Wreturn-local-addr return_local_addr.c -o out +``` +- 编译结果: +``` +warning: function returns address of local variable [-Wreturn-local-addr] return \&a; +``` + +#### 类型转换 + +##### G.C&C++.WARN.20 打开"-Wconversion"选项,避免隐式转换改变数值 + +**【级别】** 建议 + +**【描述】** 如果代码中的隐式转换会改变数值,在-Wconversion下编译警告。 +可能造成数值改变的隐式转换包括:带小数的实数转换成整数,无符号数和有符号数之间的转换,较大类型的数转换成较小类型。需要注意的是,如果代码进行显式强转,在-Wconversion下编译不会警告。 + +**【错误示例】** + +- 源程序: +``` +int foo(void) { + double num = 1.2; + return num; +} +``` +- 编译选项: +``` +gcc-Wconversion conversion.c -o out +``` +- 编译结果: +``` +warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] return num; +``` + +不同类型的对象指针之间不应进行强制转换。 + +##### G.C&C++.WARN.21 打开"-Wcast-qual"选项,指针类型强制转换时,避免目标类型丢失类型限定词 + +**【级别】** 建议 + +对指针类型强制转化,导致目标类型丢失类型限定词 + +**【描述】** 如将const char\*指针类型强制转换为普通的char\*时会丢失const类型限定词,const修饰指针是期望该指针指向的内存不可修改,如果强制转化丢失了const类型限定词,就可以通过转换后的结果指针修改原本不期望被修改的内存,失去了对对象const约束的意义。 + +**【错误示例】** + +- 源程序: +``` +static char buf[8]; +void foo(){ + const char\* ptr = buf; + char\* q = (char\*)ptr; +} +``` +- 编译选项: +``` +gcc -Wcast-qual cast_qual.c -o out +``` +- 编译结果: +``` +warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] char\* q = (char\*)ptr; +``` + +##### G.C&C++.WARN.22 打开“-Wcast-align”选项,检查指针类型强制转换,避免目标所需的地址对齐字节数增加 + +**【级别】** 建议 + +**【描述】** 当源程序中某个指针类型强制转换导致目标所需的地址对齐字节数增加时,则产生警告。比如在整型只能以两字节或四字节边界进行访问的机器上,将 char \* 转换为 int \* 则给出警告。 + +#### 数组 + +##### G.C&C++.WARN.23 打开“-Wvla”选项,避免变长数组 + +**【级别】** 建议 + +**【描述】** 定义数组时,如果数据长度是变量而非固定值,在-Wvla选项下编译警告。 + +**【错误示例】** + +- 源程序: +``` +void foo(int len) { + int arr[len]; +} +``` +- 编译选项: +``` +gcc -Wvla val.c -o out +``` +- 编译结果: +``` +warning: ISO C90 forbids variable length array 'arr' [-Wvla] int arr[len]; +``` + +#### 无效代码 + +##### G.C&C++.WARN.24 打开“-Wunused”选项,避免无效代码 + +**【级别】** 建议 + +**【描述】** -Wunused选项检查代码中未使用的变量、函数、参数、别名等问题。-Wunused选项包含了多个针对某种类型对象未使用的子选项: + +\-Wunused-but-set-variable + +\-Wunused-function + +\-Wunused-label + +\-Wunused-local-typedefs + +\-Wunused-variable + +\-Wunused-value + +需要注意的是,需要使用-Wextra \-Wunused或者-Wunused-parameter,才能对函数中未使用的形参警告。 + +**【错误示例】** + +- 源程序: +``` +void foo(void) { + int a; +} +``` +- 编译选项: +``` +gcc -Wunused unused.c -o out +``` +- 编译结果: +``` +warning: unused variable 'a' [-Wunused-variable] int a; +``` + +#### 预处理 + +##### G.C&C++.WARN.25 打开“-Wundef ”选项,避免预编译指令\#if语句中出现未定义的标识符 + +**【级别】** 建议 + +**【描述】** 当一个没有定义的标识符出现在 \#if 中时,给出警告。 + +**【错误示例】** + +- 源程序: +``` +\#if DEFINE_A_VALUE +\#endif +``` +- 编译选项: +``` +gcc -Wunused unused.c -o out +``` + +- 编译结果: +``` +warning: "DEFINE_A_VALUE" is not defined, evaluates to 0 [-Wundef] \#if DEFINE_A_VALUE +``` + +#### 类 + +##### G.C&C++.WARN.26 打开“-Wnon-virtual-dtor”选项,避免基类析构函数没有定义虚函数 + +**【级别】** 建议 + +**【描述】** 只有基类析构函数是virtual,通过多态调用的时候才能保证派生类的析构函数被调用。 + +**【错误示例】** + +- 源程序 : +``` +class Base { + public: virtual void foo() const = 0;\ + ~Base() {} +}; +class Derived: public Base { + public: virtual void foo() const {} + Derived() {} +}; +``` +- 编译选项: +``` +gcc-Wnon-virtual-dtor non_virtual_destructors.cpp -o out +``` + +- 编译结果: +``` +warning: 'class Base' has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor] +``` + +##### G.C&C++.WARN.27 打开“-Wdelete-non-virtual-dtor”选项,当基类析构函数没有定义虚函数时,避免通过指向基类的指针来执行删除操作 + +**【级别】 建议** + +**【描述】** 当基类没有定义虚析构函数,指向基类的指针来执行删除操作,可导致未定义的行为。禁止开启“-Wno-delete-non-virtual-dtor”选项屏蔽这些警告。 + +**【错误示例】** + +- 源程序: +``` +class Base { + public: virtual void f(); +}; +class Sub: public Base { + public: void f(int); +}; +int main() { + Sub\ * sub = new Sub(); + Base\ * base = sub; + delete base; +} +``` +- 编译选项: +``` +gcc--Woverloaded-virtual overloaded_virtual.cpp -o out +``` +- 编译结果: +``` +warning: deleting object of polymorphic class type 'Base' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] delete base; +``` + +##### G.C&C++.WARN.28 打开"-Woverloaded-virtual"选项,避免隐藏基类虚函数 + +**【级别】** 建议 + +**【描述】** 派生类重新定义基类的虚函数,导致基类的虚函数被隐藏。 + +**【错误示例】** + +- 源程序: +``` +class Base { + public: virtual void f(); +}; +class Sub: public Base { + public: void f(int); +}; +``` +- 编译选项: +``` +gcc--Woverloaded-virtual overloaded_virtual.cpp -o out +``` +- 编译结果: +``` +warning: by 'void Sub::f(int)' [-Woverloaded-virtual] void f(int); +``` +### 安全选项 + +#### 选项集 + +##### G.C&C++.SEC.01 打开栈保护选项 + +**【级别】** 要求 + +**【描述】** + +**Linux平台用户态** + +作用阶段:编译选项 + +作用范围:可重定位文件(.o)、动态库、可执行程序 + +用法:-fstack-protector-all/-fstack-protector-strong + +**说明:** 当存在缓冲区溢出攻击漏洞时,攻击者可以覆盖栈上的返回地址来劫持程序控制流。启用栈保护后,在缓冲区和控制信息间插入一个canary word。攻击者在覆盖返回地址的时候,往往也会覆盖canary word。通过检查canary word的值是否被修改,就可以判断是否发生了溢出攻击。 + +1\. GCC4.9版本及以上落地-fstack-protector-strong; + +2\. GCC4.9版本以下落地-fstack-protector-all。 + +3\. windriver linux 4.3 + MIPS的环境不支持该特性。 + +**Linux平台内核** + +作用阶段:编译选项 + +作用范围:Linux平台内核态 + +用法:内核编译前打开配置CONFIG_CC_STACKPROTECTOR/CONFIG_CC_STACKPROTECTOR_STRONG + +**说明:** + +内核3.14及以上版本可支持CONFIG_CC_STACKPROTECTOR_STRONG,原有CONFIG_CC_STACKPROTECTOR(对应-fstack-protector)修改为CONFIG_CC_STACKPROTECTOR_REGULAR,内核4.18及以上版本CONFIG_CC_STACKPROTECTOR_REGULAR(对应-fstack-protector)修改为CONFIG_STACKPROTECTOR,CONFIG_CC_STACKPROTECTOR_STRONG(对应-fstack-protector-strong)修改为CONFIG_STACKPROTECTOR_STRONG + +受限于OS内核不支持本选项,导致驱动程序也无法使能本选项的情况可例外。其中,所使用的OS内核必须是下列情况中的一种或多种: + +1.官方发布的最新版本或者公司推荐的OS版本; + +2.由于产品配套(如,兼容客户OS)或兼容现网存量产品,而必须选择的OS版本; + +3.由于商务原因(如,实体名单)无法与OS厂商联系并获取新版本,只能使用老版本的场景; + +**LiteOS平台** + +作用阶段:编译选项 + +作用范围:LiteOS V200R003C00及之后的版本 + +用法:-fstack-protector-all/-fstack-protector-strong + +**说明:** 1.GCC4.9版本及以上落地-fstack-protector-strong; + +2.GCC4.9版本以下落地-fstack-protector-all。 + +受限于编译器版本不支持本选项或硬件提供类似栈保护的情况可例外。如以下两种情况: + +1.由于IAR 8.20版本以下版本不支持任务栈保护,不作要求。 + +2.使用硬件栈保护的不作要求(如ARC架构下部分产品能够提供硬件栈保护机制,栈溢出时能够触发硬件异常)。 + +##### G.C&C++.SEC.02 打开地址随机化选项 + +**【级别】** 要求 + +windows平台HighASLR & ForceASLR选项实施级别为建议 + +**【描述】** + +**Linux(用户态)** + +**a. 使用命令 echo 2 \>/proc/sys/kernel/randomize_va_space 打开系统随机化配置** + +**作用阶段:** 运行系统配置 + +**作用范围:** 堆、栈、内存映射区(mmap基址、shared libraries、vdso页) + +**用法:** echo 2 \>/proc/sys/kernel/randomize_va_space + +**说明**: + +ASLR是一种针对缓冲区溢出的安全保护技术,通过对堆、栈、共享库映射等线性区布局的随机化,增加攻击者预测目的地址的难度,防止攻击者直接定位攻击代码位置,达到阻止溢出攻击的目的。randomize_va_space等于1时,栈、数据段、VDSO会随机化,randomize_va_space等于2时堆地址也会随机化。 + +需要ASLR开启的级别为最高级别,即randomize_va_space等于2 + +**b. 打开PIC选项实现动态库随加载** + +**作用阶段**:编译选项 + +**作用范围**:动态库 + +**用法:** –fPIC(-fpic) + +**说明:** + +地址无关选项将发生在代码段的重定位移到数据段实现,so文件加载时代码段不会发生任何变化,做到所有进程共用一个代码段副本。 + +\-fPIC和-fpic均指示GCC产生地址无关代码,唯一的区别是-fPIC产生代码稍大,-fpic产生代码相对较小。 + +**c. 打开PIE选项实现可执行文件随机加载** + +**作用阶段:** 编译链接选项 + +**作用范围:** 可执行程序 + +**用法:** –fPIE(-fpie)-pie + +**说明:** + +具备PIE的可执行文件,在加载执行时可像共享库一样随机加载。有研究表明:PIE可有效降低固定地址类攻击、缓冲溢出类攻击的成功概率。 + +(1)关注对应的热补丁版本是否支持PIE选项,不支持的场景下不建议使用该选项 + +(2)-fPIE编译选项,-pie链接选项。 + +(3)-fPIE产生代码稍大,-fpie产生代码相对较小。 + +**LiteOS平台** + +**a. 配置代码段、数据段随机加载** + +**作用阶段:** 编译、链接选项以及运行系统配置 + +**作用范围:** LiteOS V200R003C00及之后的版本 + +**用法:** 先编译成可随机的镜像;然后镜像加载时,对地址进行随机修正 + +**说明:** 1.依赖支持随机地址加载的bootloader,依赖MMU、DDR空间。 + +2.开启后性能下降10%左右。 + +3.方案:-fPIE -pie借助GOT表实现地址随机,gcc和自研HCC编译器均可提供支持; + +4.开销较大无法落地时,需要业务提供具体的数据到TMG审核。 + +受限于产品硬件设计或启动流程不支持的情况可例外。如以下三种情况: + +1.XIP场景,即系统直接运行于Flash。 + +2.rom化场景,即全部或部分代码rom化,无法重新加载的场景。 + +3.bootloader不支持随机地址加载。 + +**b.配置动态库随机加载** + +**作用阶段:** 编译选项 + +**作用范围:** LiteOS V200R003C00及之后的版本 + +**用法:** -fPIC + +**说明:** 1.动态库编译阶段采用-fPIC。 + +##### G.C&C++.SEC.03 打开GOT表重定位只读选项 + +**【级别】** 要求 + +**【描述】** + +**Linux平台-用户态** + +**a.部分重定向只读选项:** + +**作用阶段:** 链接选项 + +**作用范围:** 动态库、可执行程序 + +**用法:** -Wl,-z,relro + +**说明**: + +动态链接的ELF二进制程序使用称为全局偏移表(GOT)的查找表去动态解析位于共享库中的函数。攻击者通过缓冲区溢出修改GOT表项的函数地址值来达到攻击的目的。通过增加RELRO选项,可以防止GOT表被恶意重写。 + +**b.全部重定向只读选项:** + +**作用阶段:** 链接选项 + +**作用范围:** 动态库、可执行程序 + +**用法:** -Wl,-z,now + +**说明**: + +开启部分重定项只读保护后,再开启立即绑定可实现全部重定向只读保护,即:全部重定向只读(GOT表全保护):-Wl,-z,relro,-z,now 可较好对ret2plt的攻击进行防护,而对诸如缓冲区溢出等攻击无法防范。 + +对于大量使用共享库中的函数代码产品,在一定程会导致程序装载(启动)阶段缓慢,而运行时性能不会有影响。 + +##### G.C&C++.SEC.04 打开堆栈不可执行/数据执行保护选项实现堆栈不可执行保护 + +**【级别】** 要求 + +**【描述】** + +**Linux平台-用户态** + +**作用阶段:** 链接选项 + +**作用范围:** 动态库、可执行程序 + +**用法:** -Wl,-z,noexecstack + +**说明**: + +1.如果有内嵌函数,会导致功能错误,需要先用-Wtrampolines进行检测,GCC4.6.4版本及以上。 +2.windriver linux 4.3普通版本不支持该特性。 +3.windriver linux 6 + MIPS不支持该特性。 + +**LiteOS平台** + +**作用阶段:** 运行系统配置 + +**作用范围:** LiteOS V200R003C00及之后的版本 + +**用法:** 运行时配置堆栈不可执行、数据段(BSS,DATA)不可执行 + +**说明:** 1.依赖硬件支持MMU/MPU/PMP等内存保护单元。 + +##### G.C&C++.SEC.05 使用-s选项或者strip工具去除符号表 + +**【级别】** linux平台-用户态:要求,其它平台:建议。 + +**【描述】** + +**Linux平台-用户态** + +**作用阶段:** 链接选项 + +**作用范围:** 动态库、可执行程序 + +**用法:** -s(strip工具) + +**说明:** + +符号在链接过程中,发挥着至关重要的作用,链接过程的本质就是把多个不同的目标文件“粘”到一起,符号可看作链接的粘合剂,整个链接过程正是基于符号才正确完成的。链接完成后,符号表对可执行文件运行已经无任何作用,反而会成为攻击者构造攻击的工具,因此删除符号表可防御黑客攻击。事实上删除符号表除防攻击外,还可对文件减肥,降低文件大小。 + +1.对于静态库,可重定位文件(.o)不能strip,否则出现编译错误,只涉及ELF可执行文件和动态库交付的产品才可以去除符号表 + +2.仅交付给产品,并不直接参与公司外部发布的组件和平台,需提供正式机制通知下游产品在发布阶段统一执行删除符号表操作 + +3.因为strip会影响产品定位网上问题和热补丁,构建流程上需要保证strip前后的版本同步,即需要产品本地保留未strip符号表的版本供补丁制作和网上调测使用。如可采用以下方案: + +3.1 执行机在编译的时候,生成未剥离符号表的可执行文件和动态库的版本,版本归档到VMP上(CMC)供产品做热补丁 + +3.2 使用strip工具对动态库和可执行文件删除符号表 + +3.3 剥离符号的可执行文件和动态库压缩到启动大包 + +4.strip工具和-s选项可达到一样的去除符号表的效果,基于-s选项会造成版本两次编译构建,建议发布前直接使用strip工具,strip级别为默认,如stripbin.out。 + +**LiteOS平台** + +**作用阶段:** 链接选项 + +**作用范围:** LiteOS V200R003C00及之后的版本 + +**用法:** -s(strip) + +**说明:** 1.LiteOS产品最终用于烧录的编译结果为bin文件,本身不存在符号表信息,建议不开启。 + +##### G.C&C++.SEC.06 禁止使用Run-time Search Path选项 + +**【级别】** 要求 + +**【描述】** + +**Linux平台-用户态** + +**作用阶段:** 链接选项 + +**作用范围:** 动态库、可执行程序 + +**用法:** -Wl,--disable-new-dtags,--rpath,/libpath1:/libpath2;-Wl,--enable-new-dtags,--rpath,/libpath1:/libpath2 + +**说明**: + +主要用于防护LD_LIBRARY_PATH替换同名动态库的攻击。通过加入此选项可以指定一个运行时动态库搜索的路径,该路径的搜索优先级高于LD_LIBRARY_PATH指定的路径。可执行文件在运行阶段进行动态库搜索时会首先在--rpath指定的路径查找动态库,然后才会到LD_LIBRARY_PATH指定的路径搜索。因此可以有效防御LD_LIBRARY_PATH=[attackpath]来替换同名动态库的攻击。但是该选项有也很多局限性,如指向的路径不安全,若普通用户可以在这些目录中使用恶意程序替换正常程序,造成权限提升,引发不安全路径漏洞。 + +##### G.C&C++.SEC.07 打开代码段/数据段写保护选项 + +**【级别】** 建议 + +**【描述】** + +**LiteOS平台** + +**a. 配置代码段、只读数据段写保护** + +**作用阶段:** 运行系统配置 + +**作用范围:** LiteOS V200R003C00及之后的版本 + +**用法:** 运行时配置代码段、ReadOnly Data段不可修改 + +**说明:** 1.依赖硬件支持MMU/MPU/PMP等内存保护单元。 + +##### G.C&C++.SEC.10 启用FORTIFY_SOURCE编译宏来打开FS选项 + +**【级别】** 建议 + +**【描述】** + +**Linux平台-用户态** + +**作用阶段:** 编译选项 + +**用法:** -D_FORTIFY_SOURCE=2 -O2 + +**说明**: + +程序中使用到静态的固定大小的缓冲区,增加了该选项之后,编译器或运行时库会对相关函数的调用在编译时或运行时进行检查。 + +原则上推荐级别为-O2(基于性能优化效果优于O1),若产品基于O2的风险性允许使用-O1。 + +先在分支版本添加,重点做性能测试,根据测试结果取舍。 + +**LiteOS平台** + +**作用阶段:** 编译选项 + +**作用范围:** LiteOS V200R003C00及之后的版本 + +**用法:** -D_FORTIFY_SOURCE=2 -O2 + +**说明:** 1. 选项收益和lib库实现有关。 + +2.当前LiteOS使用musl库,如果产品替换支持相关功能的lib库,需按需开启。 + +受限于lib库不支持情况可例外。如以下情况: + +1.musl库配置D_FORTIFY_SOURCE=2没有作用,容易对用户造成误导,可不开启。 + +##### G.C&C++.SEC.11 打开ftrapv选项来检测整数溢出 + +**【级别】** 建议 + +**【描述】** + +**Linux平台-用户态、LiteOS平台** + +**作用阶段:** 编译选项 + +**用法**:-ftrapv + +使用了-ftrapv选项后,执行带符号的整数间的加、减、乘运算时,不是通过CPU的指令,而是用包含在GCC附属库libgcc.c里的函数来实现。 + +性能影响较大,建议在Release版本不实施。 + +##### G.C&C++.SEC.13 打开栈检查选项 + +**【级别】** + +Linux平台-用户态:建议 + +LiteOS平台:要求(禁用) + +**【描述】** + +**Linux平台-用户态** + +**作用阶段:** 编译选项 + +**作用范围:** 可重定位文件、动态库、可执行程序 + +**用法:** -fstack-check + +**说明:** + +stack-check在编译时检查程序中栈空间,如果超过编译告警阀值则产生告警;然后在程序中生成额外的指令来检查运行时栈不会被溢出,stack-check选项会在每个栈空间最低底部设置一个安全的缓冲区,如果函数中申请的栈空间进入安全缓冲区,则触发一个Storage_Error异常。但它所生成的代码实际上并不处理异常,如果检测到异常则会发出一个消息,通知操作系统处理。它只保证操作系统可以检测到栈扩展。 + +性能影响较大,建立在Debug版本中实施,Release版本不实施 + +**实施建议:** 可选 + +**LiteOS平台** + +**作用阶段:** 编译选项 + +**作用范围:** LiteOS V100R003C00及之后的版本 + +**用法:** -fstack-check + +**说明:** 1.开启后程序会访问非法地址,导致执行异常,因此LiteOS平台下禁止打开栈检查选项。 + +### 优化选项 + +#### 选项集 + +##### P.C&C++.01 在实测的基础上,选择合适优化等级和各种优化选项 + +**【描述】** 在实测的基础上,尝试各种代码优化选项,以查看它们是否确实为生成程序更快。 + +##### G.C&C++.OPT.01 优化等级建议选"-O2"、"-Os"、"-O3" + +**【级别】** 建议 + +##### G.C&C++.OPT.02 当代码中存在较多的不同类型指针互转时,使用"-fno-strict-aliasing"选项关闭严格别名优化 + +**【级别】** 建议 + +**【描述】** GCC的"-O2"打开"-fstrict-aliasing"严格别名规则优化:编译器假定相同的内存地址绝不会存放不同类型的数据,该优化选项相对激进。为了避免代码中不同类型指针互转导致优化问题,可以使用"-fno-strict-aliasing"关闭优化;最好的方式是修改代码,遵守严格别名规则。 + +注意使用"-fno-strict-aliasing"选项可能会影响产品性能,如某产品一个性能敏感组件实测,"-O2 +\-fno-strict-aliasing"相比"-O2"会有性能下降,测的数据最多下降有9%。 + +##### G.C&C++.OPT.03 X86/ARM架构下,基于DOPRA平台的产品建议使用"-fno-omit-frame-pointer"选项关闭去SFP(Stack Frame Pointer)优化 + +**【级别】** 建议 + +**【描述】** "-fno-omit-frame-pointer":GCC的“-O” +("-O1")会打开"-fomit-frame-pointer"优化选项,也就是去掉函数调用时的frame +pointer,优化会导致代码难以调试,建议通过选项"-fno-omit-frame-pointer"禁止该项优化。 + +产品需要在性能优化和保留调试信息进行权衡。 + +### 代码生成选项 + +#### 选项集 + +##### G.C&C++.CDG.01 未初始化的全局变量放置在目标文件的数据段:"-fno-common" + +**【级别】** 要求 + +**【描述】** "-fno-common":未初始化的全局变量放置在目标文件的数据段,两个不同的编译单元中声明了同一个全局变量导致警告。多个临时的全局变量定义会增加代码维护难度,降低链接速度和增加空间消耗。 + +##### G.C&C++.CDG.02 将结构体放在寄存器中直接返回:"-freg-struct-return" + +**【级别】** 建议 + +**【描述】** "-freg-struct-return":采用寄存器返回结构与联合值。 + +“-fpcc-struct-return”:在返回短的结构和联合值时,与较长的值一样,使用内存而非寄存器。 + +尽可能在寄存器中返回结构和联合值。对小结构而言,这比“-fpcc-struct-return”效率更高。 +如果既未使用“-fpcc-struct-return”, 又未使用相反的“-freg-struct-return ”, GNU +CC缺省使用目标机器指定的标准规则。如果没有标准规则, 除了在GNUCC为主要编译器的机器上,GNU CC缺省采用“-fpcc-struct-return”,在可以选择标准的情况下, 我们选择了更高效的寄存器返 回方式。 + +注意,此选项影响二进制兼容性,应整个产品统一。 + +##### G.C&C++.CDG.03 设置默认的ELF镜像中符号的可见性为隐藏:"-fvisibility=hidden" + +**【级别】** 建议 + +**【描述】** "-fvisibility=hidden":可以让动态库中仅API外部可见,有效实现二进制的模块化。使用该选项可以提高动态库链接和加载的速度,防止符号冲突。但该选项加上后,需要考虑对该模块函数打补丁的成本,因为原来的全局符号变成LOCAL属性,对其打补丁时需要重新组名(DOPRA补丁规范有详细的组名规则),构建补丁的成本会增加。是否打开该选项,需要权衡。 + +##### G.C&C++.CDG.04 启用表达式计算顺序强化规则: “-fstrong-eval-order” + +**【级别】** 建议 + +**【描述】** "-fstrong-eval-order":按C++17的规格确定子表达式之间的计算顺序,比如表达式 +T().m_i = A().B() 在未开启时可能生成指令的求值顺序时 A() T() B() ,不符合常规预期;该选项当启用 "-std=c++17" 时自动开启, 但当前 gcc7.3默认"-std=c++14",建议显式开启以降低不可预期行为。 + +### 总体选项 + +#### 选项集 + +##### G.C&C++.OVA.01 打开总体选项:"-pipe" + +**【级别】** 建议 + +**【描述】** "-pipe" :编译过程中多管道并发,节省编译时间 + +### 架构选项 + +#### 选项集 + +##### G.C&C++.MD.01 对于嵌入式软件,显式指明如下架构选项 + +1. 软硬浮点(按照CPU支持类型进行添加或者不添加) + +2. 指令集 (如:march=armv7-a/ march=armv8-a) + +**【级别】** 要求 + +### 链接选项 + +#### 选项集 + +##### G.C&C++.LNK.01 打开如下链接选项:"-Wl,-Bsymbolic"、"-rdynamic"、" -Wl,--no-undefined" + +**【级别】** 建议 + +**【描述】** -Wl,-Bsymbolic:同名符号优先使用本so,减少got表调转 +"-rdynamic":解决dlopen反向依赖的问题;BIN文件通过地址返回符号名称,需要加,否则backtrace_symbol返回的是地址,不能定位;影响:产品BIN文件增大。 + +"-Wl,--no-undefined":可以将运行时加载错误,在链接期提前识别出来。打开该选项,导致链接时间会变长,因为链接期要进行依赖关系校验。如果-l指定依赖库不全,会有功能问题,需要产品权衡。 + + +### 调试选项 +#### 选项集 + +##### G.C&C++.DBG.01 对于版本发布构建,禁止携带调试信息 + +**【级别】** 要求 + +**【描述】** 调试信息指 符号表 和 +详细调试信息表,根据当前安全规定,调试信息,不是运行所必须,要求发布件删除这些信息,包括符号表,以提升攻击难度;热补丁、perf分析、抓堆栈等维测场景受影响。 + +使用 "-s" 链接选项可完全不生成调试信息,需注意此方法生成的组件与不加 "-s" +后重新构建生成的组件 build-id 是不一致的,不能直接用来 gdb定位问题;也可以链接后使用 objcopy --only-keep-debug \ \ 加上objcopy objcopy --strip-unneeded \ 方式分离调试符号,同样可达成交付件不含有符号表等调试信息。 + +如果编译阶段启用了 -g 生成详细调试信息表, 会因含有源代码绝对路径信息造成不同目录下构建的二进制差异, 此时可使用 -fdebug-prefix-map=old=new来将绝对路径映射成相对路径,达成 BEP 要求。 + +### 编译宏 +#### 选项集 + +##### G.C&C++.PRE.01 明确-D编译宏的具体用途,建立-D编译宏的清单 + +**【级别】** 要求 + +**【描述】** 每增加一个-D编译宏,就需要对它进行额外的测试。为每一种软件-D编译宏所作的代码修改,必须验证能否适用于其他-D编译宏。首先必须针对所有的-D编译宏,对软件进行构建,以确保没有编译错误;其次必须针对所有的-D编译宏进行完整的测试。 + +对于未使用的-D编译宏,应该直接删除。 + +### 其他 +#### 选项集 + +##### G.C&C++.OTH.01 同一构建工程中,避免使用重复的或包含关系的编译选项 + +**【级别】** 建议 + +**【描述】** 重复的编译选项是冗余信息,不利于维护。如果编译选项具有不同的参数,可能导致与初始预期不同的方式编译源文件。 + +编译选项之间存在包含关系时,同时使用会导致冗余。譬如"-Wall"包含40多个子警告选项,"-O"包含40多个子优化选项,当它们与子选项同时使用时就会导致冗余。 + +**【错误示例】** 某组件对编译优化选项"-O"取值达到7055次,其中同一构建工程中出现多个"-O",如"-O2...-O6"、"-O2...-O3"。 + +\# "-Wall"包含"-Waddress",同时使用产生冗余 + +gcc -Wall -Waddress -c test.c -o test.o + +\# "-O"包含"-fauto-inc-dec",同时使用产生冗余 + +gcc -O -fauto-inc-dec -c test.c -o test.o + +##### G.C&C++.OTH.02 避免使用相反冲突的选项 + +**【级别】** 建议 + +**【描述】** 大多数'-f'和'-W'有两个相反的互相否定的选项: +\-fname/-fno-name和-Wname/-Wno-name,同时引用导致冲突,令人疑惑,不利于维护。 + +**【错误示例】** + +\#同时引用-fomit-frame-pointer和-fno-omit-frame-pointer + +``` +set(CMAKE_C_FLAGS "-MD -MF -Wall -save-temps -fverbose-asm -fsigned-char +\-fomit-frame-pointer -fno-stack-protector \\ + +\-fno-delete-null-pointer-checks -fno-common -freg-struct-return -O2 +\-fno-omit-frame-pointer -fno-strength-reduce" ) +``` + +##### G.C&C++.OTH.03 编译选项的编写顺序:优化等级(如-O2)+总体选项+警告选项+语言选项+代码生成选项+架构选项(MD-Dependent Options)+优化选项+安全编译选项+自定义宏 + +**【级别】** 建议 + +**【描述】** 有选项集的,先写选项集,例如"-Wall"应该写到"-Wformat=2"前。 + +**【正确示例】** + +``` +\# Copyright (c) Huawei Technologies Co., Ltd. 2019. All rights reserved. +\# toolchain for ARMA15(without FPU)HI1381/HI1215 +\# cpu_family = arm +\# bit_width_in_run = 32 +\# cpu_core = a15 +\# compile flags +set(CC_OPT_LEVEL "-O2") +set(CC_OVERALL_FLAGS "-pipe") +set(CC_WARN_FLAGS "-Wall -Wextra -Wdate-time -Wtrampolines -Wfloat-equal +\-Wshadow -Wformat=2") +set(CC_LANGUAGE_FLAGS "-fsigned-char") +set(CC_CDG_FLAGS "-fno-common -freg-struct-return") +set(CC_MD_DEPENDENT_FLAGS "-mfloat-abi=soft -march=armv7-a -mtune=cortex-a15") +set(CC_OPT_FLAGS "-fno-strict-aliasing -fno-omit-frame-pointer") +set(CC_SEC_FLAGS "-fPIC -fstack-protector-strong --param=ssp-buffer-size=4") +set(CC_DEFINE_FLAGS "-DXXXXX") +set(CC_ALL_OPTIONS "\${CC_OPT_LEVEL} \${CC_OVERALL_FLAGS} \${CC_WARN_FLAGS} +\${CC_LANNGUAGE_FLAGS} \\ +\${CC_CDG_FLAGS} \${CC_MD_DEPENDENT_FLAGS} \${CC_OPT_FLAGS} \${CC_SEC_FLAGS} +\${CC_DEFINE_FLAGS}") + +\# public link flags +set(PUBLIC_LNK_FLAGS "-rdynamic -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now") + +\# link flag for module +set(SHARED_LNK_FLAGS "-shared \${PUBLIC_LNK_FLAGS}") +set(PIE_EXE_LNK_FLAGS "-pie \${PUBLIC_LNK_FLAGS}") + +``` + +## Java语言编译选项 + +### 语言级别 +#### 选项集 + +##### G.JAVA.LANG.01 每个交付单元使用的Java编译语言级别必须一致,且必须与使用的Java版本对应的编译语言级别一致。 + +**【级别】** 要求 + +**【描述】** 不同模块的编译语言级别不一致,这些模块需要配置不同的编译选项,导致构建脚本不一致。 + +使用与Java版本对应的编译语言级别,可以在编译阶段提示对应Java版本不推荐的编码实践,如Java 8版本将Java 7版本部分可用的API标记为 @Deprecated,推荐用更好的API来替换。当使用编译语言级别8时就会在编译阶段发出警告,代码中使用了将被弃用的API。 + +### MAVEN +#### 选项集 + +##### G.JAVA.MAVEN.01 版本发布构建时禁止使用maven 编译选项-X,避免输出大量的debug日志。 + +**【级别】** 要求 + +**【描述】** -X是debug选项,会输出大量的debug日志。 + +### JAVAC +#### 选项集 + +##### G.JAVA.JAVAC.01 禁止使用的javac编译选项:-nowarn/-Xlint:none/-Xlint:name 选项关闭所有或部分javac编译告警;-g:none/-g:[keyword list]选项关闭全部或指定生成部分调试信息 + +**【级别】** 要求 + +**【描述】** 编译告警能够帮助提前发现代码存在的缺陷和风险,关闭编译告警会给代码质量带来隐患;使用-g:none或-g:[keywordlist]会导致生成过少或过多的调试信息,影响可维护性或降低运行效率。 + +**例外**:-Xlint:all,-processing +运行时处理的注解不需要注解处理器,产生编译告警可以通过-Xlint的参数-processing进行抑制。 + +##### G.JAVA.JAVAC.02 必须使用的javac编译选项:-source,-target,-Xlint:all。 同时maven-compiler-plugin的showWarnings属性必须设置为true。 + +**【级别】** 求 + +**【描述】** + +\-source 指定编译器接受的java源文件版本 + +\-target 指定编译器生成的class文件版本 + +\-Xlint:all 使能所有推荐编译告警 + +showWarnings 属性必须设置为true,不设置或者设置为false时部分编译告警无法检查出来 + +**【正确示例】** + +``` +\ + +\org.apache.maven.plugins\ + +\maven-compiler-plugin\ + +\ + +\1.8\ + +\1.8\ + +\true\ + +\ + +\-Xlint:all\ + +\ + +\ + +\ + +``` + diff --git a/zh-cn/device-dev/security/security-guidelines-overall.md b/zh-cn/device-dev/security/security-guidelines-overall.md index 4cae3f12b09363221ec0e43087657777815ad020..5b45af3062dfe7bf6783df0b29f57d52a602a4e5 100644 --- a/zh-cn/device-dev/security/security-guidelines-overall.md +++ b/zh-cn/device-dev/security/security-guidelines-overall.md @@ -207,6 +207,6 @@ HUKS本身不考虑多个应用同时调用的情况,因为HUKS只是一个lib 开发者在开发过程中需明确后续应用在运行时需要运行哪些权限,并在应用配置文件中进行注册,然后需要对应用进行签名,确保设备在安装这些应用时能对应用的完整性和来源进行校验。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > > 不同应用模型的应用配置文件不同,FA模型为config.json,Stage模型为module.json5。应用模型相关解释可参考[应用模型解读](../../application-dev/application-models/application-model-description.md)。 \ No newline at end of file diff --git a/zh-cn/device-dev/subsystems/subsys-ai-aiframework-devguide.md b/zh-cn/device-dev/subsystems/subsys-ai-aiframework-devguide.md index e456894a0672f3858ecff57f929358313d64af89..518a4ca6c88afc76912954f812386f64ee6ece5d 100644 --- a/zh-cn/device-dev/subsystems/subsys-ai-aiframework-devguide.md +++ b/zh-cn/device-dev/subsystems/subsys-ai-aiframework-devguide.md @@ -418,7 +418,7 @@ Response类的属性如下表所示。 上述代码为API接口的具体实现。在示例代码中,SDK中create接口的具体实现即为上述示例代码中create方法,该方法调用了AI引擎框架client端提供的AieClientInit及AieClientPrepare接口,从而实现与server端建立连接及加载算法模型的能力。 - > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** + > **说明:** > > SDK调用AI引擎client端接口应遵循AieClientInit->AieClientPrepare->AieClientSyncProcess/AieClientAsyncProcess->AieClientRelease->AieClientDestroy顺序,否则调用接口会返回错误码。 diff --git a/zh-cn/device-dev/subsystems/subsys-boot-overview.md b/zh-cn/device-dev/subsystems/subsys-boot-overview.md index c8d02992b4cb304d3a1266712e7abccbf63d89b7..6c5907bac9d7fa59d79137a3efef1f614e42634f 100644 --- a/zh-cn/device-dev/subsystems/subsys-boot-overview.md +++ b/zh-cn/device-dev/subsystems/subsys-boot-overview.md @@ -57,8 +57,8 @@ - 新芯片平台移植时,平台相关的初始化配置需要增加平台相关的初始化配置文件/vendor/etc/init/init.{hardware}.cfg;该文件完成平台相关的初始化设置,如安装ko驱动,设置平台相关的/proc节点信息。 - > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** - + > **说明:** +> > 配置文件init.cfg仅支持json格式。 - bootstrap服务启动组件:需要在链接脚本中配置zInit代码段。 @@ -188,8 +188,8 @@ 下面以OpenHarmony系统在Hi3516DV300平台启动过程中必要的system分区为例,详细介绍init进程启动后,从读取required fstab信息到创建required分区块设备节点再到最后完成required分区挂载的全部流程。其中会包含一些关键代码段和关键的log信息供开发者调试参考。 - > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** - + > **说明:** + > > 从此处开始出现的代码是按逻辑顺序展示的关键代码行,不代表其在源码当中真正的相邻关系。 1. 获取required设备信息 diff --git a/zh-cn/device-dev/subsystems/subsys-build-all.md b/zh-cn/device-dev/subsystems/subsys-build-all.md index 317f71ac5b816fb83582d798043c3e9cfea069f7..442f7ba0091615cad7e19198a088c192721418c4 100644 --- a/zh-cn/device-dev/subsystems/subsys-build-all.md +++ b/zh-cn/device-dev/subsystems/subsys-build-all.md @@ -328,7 +328,8 @@ optional arguments: -h, --help show this help message and exit ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** +> > - 设备开发过程中详细的编译环境搭建及编译步骤请参考[快速入门中的环境搭建及编译章节。](../quick-start/quickstart-overview.md) > - OpenHarmony还为开发者提供了Docker编译环境,可以省略编译工具的安装,具体使用请参考[Docker编译指导。](../get-code/gettools-acquire.md) diff --git a/zh-cn/device-dev/subsystems/subsys-build-chip_solution.md b/zh-cn/device-dev/subsystems/subsys-build-chip_solution.md index b4e39553e4a4a42e94672bfaecbf36136e571169..d7740444624c92978a2a2f1709a9559ccf45946d 100644 --- a/zh-cn/device-dev/subsystems/subsys-build-chip_solution.md +++ b/zh-cn/device-dev/subsystems/subsys-build-chip_solution.md @@ -19,7 +19,7 @@ └── config.gni # liteos_a版本编译配置 ``` -![icon-note.gif](public_sys-resources/icon-note.gif)**注意**:config.gni为开发板编译相关的配置,编译时会采用该配置文件中的参数编译所有OS部件,编译阶段系统全局可见。 +> **注意**:config.gni为开发板编译相关的配置,编译时会采用该配置文件中的参数编译所有OS部件,编译阶段系统全局可见。 - config.gni的关键字段介绍如下: diff --git a/zh-cn/device-dev/subsystems/subsys-build-component-building-rules.md b/zh-cn/device-dev/subsystems/subsys-build-component-building-rules.md index c256505552d4f8a3e741853516e1049adcef97ca..7b4c0ea74e43d12e29c0eefe31bd87274e6ac047 100644 --- a/zh-cn/device-dev/subsystems/subsys-build-component-building-rules.md +++ b/zh-cn/device-dev/subsystems/subsys-build-component-building-rules.md @@ -69,7 +69,7 @@ - 不超过63个有效英文字符。 - 使用小写加下划线的内核风格命名,例如:unix_like。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **例外:** 三方开源软件的使用对应社区的原生命名方式,比如:cJson。 +> **例外:** 三方开源软件的使用对应社区的原生命名方式,比如:cJson。 ### 规则1.2 特性名为部件名前缀+特性名称 @@ -160,13 +160,13 @@ bundle.json是定义部件的描述文件,包含了部件的根目录、名称 deps = [ "a" ] # Good, 依赖当前部件内的其他模块 ``` - > ![icon-note.gif](public_sys-resources/icon-note.gif) **例外:** 对三方开源软件的引用除外。 + > **例外:** 对三方开源软件的引用除外。 - public_deps public_deps只允许用于部件内模块的依赖,直接引用其他部件的模块可能会导致依赖其他部件的内部模块和接口。 - > ![icon-note.gif](public_sys-resources/icon-note.gif) **例外:** 对三方开源软件的引用除外。 + > **例外:** 对三方开源软件的引用除外。 看护手段:静态检查 @@ -249,7 +249,7 @@ ohos_shared_library("foo_a") { 部件是通用的系统能力,与特定产品无关。编译脚本中使用产品名称,将导致部件功能与产品绑定,不具备通用性。部件不同产品形态上的差异应抽象为特性或者运行时的插件。 -> ![icon-note.gif](public_sys-resources/icon-note.gif)**例外:** vendor和device目录下三方厂商部件的编译脚本例外。 +> **例外:** vendor和device目录下三方厂商部件的编译脚本例外。 看护手段:静态检查 @@ -257,7 +257,7 @@ ohos_shared_library("foo_a") { 部件内的gni文件用于声明部件内部编译变量和模板,import其他部件的gni文件等同于使用其他部件内部的变量和模板,即引入对其他部件的依赖。影响多个部件的变量、args和模板应定义在编译框架的gni文件中。 -> ![icon-note.gif](public_sys-resources/icon-note.gif)**例外:** build目录下编译框架定义全局的编译选项的gni可以被所有部件import。 +> **例外:** build目录下编译框架定义全局的编译选项的gni可以被所有部件import。 看护手段:静态检查 diff --git a/zh-cn/device-dev/subsystems/subsys-build-component.md b/zh-cn/device-dev/subsystems/subsys-build-component.md index f4d1e4277090ed78e21833f6b3fe37c669e3593d..82b55156b021634f437dbc1c5282e4398489cc89 100644 --- a/zh-cn/device-dev/subsystems/subsys-build-component.md +++ b/zh-cn/device-dev/subsystems/subsys-build-component.md @@ -47,7 +47,7 @@ } ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif)**注意**:lite上旧的部件在build/lite/components目录下对应子系统的json文件中,路径规则为:**{领域}/{子系统}/{部件}**,部件目录树规则如下: +> **注意**:lite上旧的部件在build/lite/components目录下对应子系统的json文件中,路径规则为:**{领域}/{子系统}/{部件}**,部件目录树规则如下: ```shell component diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-container.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-container.md new file mode 100644 index 0000000000000000000000000000000000000000..23f4ce5addb9e28937c2ca0033159fd160515eaf --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-container.md @@ -0,0 +1,23 @@ +# commonlibrary子系统JS API变更Changelog + +OpenHarmony 3.2.10.1(Mr)版本相较于OpenHarmony 3.2.beta4版本,container子系统的API变更如下 + +## cl.commonlibrary.1 错误码及信息变更 +commonlibrary子系统中ArrayList、List、LinkedList、Stack、Queue、Deque、PlainArray、LightWeightMap、LightWeightSet、HashMap、HashSet、TreeMap、TreeSet类的接口抛出的错误码及信息变更: + +变更后的错误码详细介绍请参见[语言基础类库错误码](../../../application-dev/reference/errorcodes/errorcode-utils.md)。 + +已使用相关接口开发的应用无需重新适配。 + +**关键的接口/组件变更** +各个类中的接口重新定义了错误码抛出的信息,并在对应模块的`*.d.ts`声明文件中通过'@throws'标签进行标示。 +示例如下: +ArrayList类变更前: +constructor(); +ArrayList类变更后: +@throws { BusinessError } 10200012 - The ArrayList's constructor cannot be directly invoked. +constructor(); + +**变更影响** + +暂无影响。 diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-distributeddatamgr.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-distributeddatamgr.md index 94330771c5860ec446038097f4900c9cb673f255..71eb53fd2197c49afaf5bef27d214d075760cd54 100644 --- a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-distributeddatamgr.md +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-distributeddatamgr.md @@ -62,4 +62,99 @@ try { } catch (e) { console.error(`Failed to create KVManager.code is ${e.code},message is ${e.message}`); } -``` \ No newline at end of file +``` + +## cl.distributeddatamgr.2 function getRdbStoreV9 从@ohos.data.rdb.d.ts 迁移至@ohos.data.relationalStore.d.ts +**变更影响** +应用需要进行适配,才可以在新版本SDK环境正常编译通过。 + +**关键的接口/组件变更** +如下接口: +```ts +function getRdbStoreV9(context: Context, config: StoreConfigV9, version: number, callback: AsyncCallback): void; +function getRdbStoreV9(context: Context, config: StoreConfigV9, version: number): Promise; +``` +从@ohos.data.rdb.d.ts 迁移至@ohos.data.relationalStore.d.ts: +``` +function getRdbStore(context: Context, config: StoreConfig, version: number, callback: AsyncCallback): void; +function getRdbStore(context: Context, config: StoreConfig, version: number): Promise; +``` + +**适配指导** + * `import rdb from "@ohos.data.rdb"` 改为 `import rdb from "@ohos.data.relationalStore"`; + * 按上述接口变更对齐修改所调用的方法名称即可。 + +## cl.distributeddatamgr.3 function deleteRdbStoreV9 从@ohos.data.rdb.d.ts 迁移至@ohos.data.relationalStore.d.ts +**变更影响** +应用需要进行适配,才可以在新版本SDK环境正常编译通过。 + +**关键的接口/组件变更** +如下接口: +```ts +function deleteRdbStoreV9(context: Context, name: string, callback: AsyncCallback): void; +function deleteRdbStoreV9(context: Context, name: string): Promise; +``` +从@ohos.data.rdb.d.ts 迁移至@ohos.data.relationalStore.d.ts: +``` +function deleteRdbStoreV9(context: Context, name: string, callback: AsyncCallback): void; +function deleteRdbStoreV9(context: Context, name: string): Promise; +``` + +**适配指导** + * `import rdb from "@ohos.data.rdb"` 改为 `import rdb from "@ohos.data.relationalStore"`; + * 按上述接口变更对齐修改所调用的方法名称即可。 + +## cl.distributeddatamgr.4 interface StoreConfigV9 从@ohos.data.rdb.d.ts 迁移至@ohos.data.relationalStore.d.ts +**变更影响** +应用需要进行适配,才可以在新版本SDK环境正常编译通过。 + +**关键的接口/组件变更** +interface StoreConfigV9 从@ohos.data.rdb.d.ts 迁移至@ohos.data.relationalStore.d.ts 改名为interface StoreConfig。 + +**适配指导** + * `import rdb from "@ohos.data.rdb"` 改为 `import rdb from "@ohos.data.relationalStore"`; + * 按上述接口变更对齐修改所调用的接口名称即可。 + +## cl.distributeddatamgr.5 enum SecurityLevel 从@ohos.data.rdb.d.ts 迁移至@ohos.data.relationalStore.d.ts +**变更影响** +应用需要进行适配,才可以在新版本SDK环境正常编译通过。 + +**关键的接口/组件变更** +enum SecurityLevel 从ohos.data.rdb.d.ts 迁移至@ohos.data.relationalStore.d.ts。 + +**适配指导** + * `import rdb from "@ohos.data.rdb"` 改为 `import rdb from "@ohos.data.relationalStore"`; + * 按上述接口变更对齐修改所调用的接口名称即可。 + +## cl.distributeddatamgr.6 interface RdbStoreV9 从@ohos.data.rdb.d.ts 迁移至@ohos.data.relationalStore.d.ts +**变更影响** +应用需要进行适配,才可以在新版本SDK环境正常编译通过。 + +**关键的接口/组件变更** +interface RdbStoreV9 从@ohos.data.rdb.d.ts 迁移至@ohos.data.relationalStore.d.ts 改名为interface RdbStore。 + +**适配指导** + * `import rdb from "@ohos.data.rdb"` 改为 `import rdb from "@ohos.data.relationalStore"`; + * 按上述接口变更对齐修改所调用的接口名称即可。 + +## cl.distributeddatamgr.7 class RdbPredicatesV9 从ohos.data.rdb.d.ts 迁移至@ohos.data.relationalStore.d.ts +**变更影响** +应用需要进行适配,才可以在新版本SDK环境正常编译通过。 + +**关键的接口/组件变更** +class RdbPredicatesV9 从ohos.data.rdb.d.ts 迁移至@ohos.data.relationalStore.d.ts 改名为interface RdbPredicates。 + +**适配指导** + * `import rdb from "@ohos.data.rdb"` 改为 `import rdb from "@ohos.data.relationalStore"`; + * 按上述接口变更对齐修改所调用的接口名称即可。 + +## cl.distributeddatamgr.8 interface ResultSetV9 从api/@ohos.data.relationalStore.d.ts 迁移至@ohos.data.relationalStore.d.ts +**变更影响** +应用需要进行适配,才可以在新版本SDK环境正常编译通过。 + +**关键的接口/组件变更** +interface ResultSetV9 从api/data/rdb/resultSet.d.ts 迁移至@ohos.data.relationalStore.d.ts 改名为interface ResultSet。 + +**适配指导** + * `import rdb from "@ohos.data.rdb"` 改为 `import rdb from "@ohos.data.relationalStore"`; + * ResultSetV9实例仅通过getRdbStoreV9方法获取,参考cl.distributeddatamgr.2变更后,代码可自动适配ResultSet。 diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-account_os_account.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-account_os_account.md new file mode 100644 index 0000000000000000000000000000000000000000..845e56f08f38e4cdf38b9755442f88e870f42cc3 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-account_os_account.md @@ -0,0 +1,105 @@ +# 帐号子系统changeLog + +## cl.account_os_account.1 变更错误码定义及其返回方式 + +针对帐号子系统API存在错误码定义不统一和抛出方式不符合OpenHarmony错误码规范的问题,从API9开始作以下变更: + +- 新增统一的错误码定义: + - [帐号公共错误码](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/errorcodes/errorcode-account.md) + - [应用帐号错误码](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/errorcodes/errorcode-app-account.md) + +- 按以下方式返回错误码: + - 异步接口:错误信息通过AsyncCallback或Promise的error对象返回。其中,参数类型和数量错误信息,通过抛出异常的方式返回。 + - 同步接口:错误信息通过抛出异常的方式返回。 + +**变更影响** + +基于此前版本开发的应用,需适配变更后的新错误码和错误信息返回方式,否则会影响原有业务逻辑。 + +**关键接口/组件变更** + +以下接口涉及新错误码和错误信息返回方式变更: + - class AccountManager + - activateOsAccount(localId: number, callback: AsyncCallback<void>): void; + - removeOsAccount(localId: number, callback: AsyncCallback<void>): void; + - setOsAccountConstraints(localId: number, constraints: Array<string>, enable: boolean, callback: AsyncCallback<void>): void; + - setOsAccountName(localId: number, localName: string, callback: AsyncCallback<void>): void; + - queryMaxOsAccountNumber(callback: AsyncCallback<number>): void; + - queryAllCreatedOsAccounts(callback: AsyncCallback<Array<OsAccountInfo>>): void; + - createOsAccount(localName: string, type: OsAccountType, callback: AsyncCallback<OsAccountInfo>): void; + - createOsAccountForDomain(type: OsAccountType, domainInfo: DomainAccountInfo, callback: AsyncCallback<OsAccountInfo>): void; + - queryOsAccountById(localId: number, callback: AsyncCallback<OsAccountInfo>): void; + - getOsAccountProfilePhoto(localId: number, callback: AsyncCallback<string>): void; + - setOsAccountProfilePhoto(localId: number, photo: string, callback: AsyncCallback<void>): void; + - on(type: 'activate' | 'activating', name: string, callback: Callback<number>): void; + - off(type: 'activate' | 'activating', name: string, callback?: Callback<number>): void; + - isMainOsAccount(callback: AsyncCallback<boolean>): void; + - queryOsAccountConstraintSourceTypes(localId: number, constraint: string, callback: AsyncCallback<Array<ConstraintSourceTypeInfo>>): void; + - class UserAuth + - constructor(); + - getVersion(): number; + - getAvailableStatus(authType: AuthType, authTrustLevel: AuthTrustLevel): number; + - getProperty(request: GetPropertyRequest, callback: AsyncCallback<ExecutorProperty>): void; + - setProperty(request: SetPropertyRequest, callback: AsyncCallback<number>): void; + - auth(challenge: Uint8Array, authType: AuthType, authTrustLevel: AuthTrustLevel, callback: IUserAuthCallback): Uint8Array; + - authUser(userId: number, challenge: Uint8Array, authType: AuthType, authTrustLevel: AuthTrustLevel, callback: IUserAuthCallback): Uint8Array; + - cancelAuth(contextID: Uint8Array): number; + - class PINAuth + - constructor(); + - registerInputer(inputer: IInputer): boolean; + - unregisterInputer(authType: AuthType): void; + - class UserIdentityManager + - constructor(); + - openSession(callback: AsyncCallback<Uint8Array>): void; + - addCredential(credentialInfo: CredentialInfo, callback: IIdmCallback): void; + - updateCredential(credentialInfo: CredentialInfo, callback: IIdmCallback): void; + - closeSession(): void; + - cancel(challenge: Uint8Array): number; + - delUser(token: Uint8Array, callback: IIdmCallback): void; + - delCred(credentialId: Uint8Array, token: Uint8Array, callback: IIdmCallback): void; + - getAuthInfo(callback: AsyncCallback<Array<EnrolledCredInfo>>): void; + - interface IInputData + - onSetData: (authSubType: AuthSubType, data: Uint8Array) => void; + +**适配指导** + +异步接口的错误信息处理逻辑以activateOsAccount为例,示例代码如下: + +```ts +import account_osAccount from "@ohos.account.osAccount" +let accountMgr = account_osAccount.getAccountManager() +let callbackFunc = (err) => { + if (err != null) { // handle the bussiness error + console.log("account_osAccount failed, error: " + JSON.stringify(err)); + } else { + console.log("account_osAccount successfully"); + } +} +try { + accountMgr.activateOsAccount("100", callbackFunc); +} catch (err) { // handle the parameter type error + console.log("account_osAccount failed for incorrect parameter type, error: " + JSON.stringify(err)); +} +try { + accountMgr.activateOsAccount(); +} catch (err) { // handle the parameter number error + console.log("account_osAccount failed for incorrect parameter number, error: " + JSON.stringify(err)); +} +``` + +同步接口的错误信息处理以registerInputer为例,示例代码如下: + +```ts +import account_osAccount from "@ohos.account.osAccount" +let pinAuth = new account_osAccount.PINAuth() +try { + pinAuth.registerInputer({}) +} catch (err) { // handle the parameter type error + console.log("account_osAccount failed for incorrect parameter type, error: " + JSON.stringify(err)); +} +try { + pinAuth.registerInputer() +} catch (err) { // handle the parameter number error + console.log("account_osAccount failed for incorrect parameter number, error: " + JSON.stringify(err)); +} +``` diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-device-usb.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-device-usb.md new file mode 100755 index 0000000000000000000000000000000000000000..329d267fc9325b9bba89b784cf2c2ae4fbcceab2 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-device-usb.md @@ -0,0 +1,27 @@ +# USB管理 changeLog + +## cl.usb_manager.1 API错误信息返回方式变更 + +USB管理接口使用业务逻辑返回值表示错误信息,不符合OpenHarmony接口错误码规范。从API9开始作出变更,选择通过抛出异常的方式返回错误信息。 + +**变更影响** + +基于此前版本开发的应用,需适配接口的错误信息返回方式,否则会影响原有业务逻辑。 + +**关键接口/组件变更** + +USB模块名由@ohos.usb.d.ts 变更为 @ohos.usbV9.d.ts,模块内所有接口均增加错误码处理。 + +**适配指导** + +接口以getDevices为例,示例代码如下: + +```ts +import usbV9 from '@ohos.usbV9' + +try { +usbV9.getDevices(); // 如果给该接口传入不合适的参数,则会抛出异常 +} catch (err) { +console.error("getDevices errCode:" + err.code + ",errMessage:" + err.message); +} +``` \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-filemanagement.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-filemanagement.md new file mode 100644 index 0000000000000000000000000000000000000000..15cf796c6820cfb09820d43fe3e4c52d7b7f15f9 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-filemanagement.md @@ -0,0 +1,90 @@ +# 文件管理子系统ChangeLog + +## cl.filemanagement.1 fileio相关接口异常处理方式变更 + +file_api部件fileio接口返回值不包含错误码error.code,现进行错误码整改,废弃原有相关接口,新增相关接口。 + +**变更影响** + +基于此前版本开发的应用,需注意废弃接口的迭代更新。新接口在接口规格上进行了微调,需注意新接口使用方法。 + +**关键接口/组件变更** + +为适配统一的API异常处理方式,对fileio相关接口进行废弃,并新增对应接口,原接口位于@ohos.fileio,新接口位于@ohos.file.fs。新增接口支持统一的错误码异常处理规范,功能上与原接口保持一致,参数上有微调。 + +| 模块名 | 方法/属性/枚举/常量 | 变更类型 | +| ------------------------- | ------------------------------------------------------------ | -------- | +| @ohos.fileio | **function** open(path: string, flags?: number, mode?: number, callback?: AsyncCallback): void \| Promise; | 废弃 | +| @ohos.fileio | **function** openSync(path: string, flags?: number, mode?: number): number; | 废弃 | +| @ohos.file.fs | **function** open(path: string, mode?: number, callback?: AsyncCallback): void \| Promise; | 新增 | +| @ohos.file.fs | **function** openSync(path: string, mode?: number): File; | 新增 | +| @ohos.fileio | **function** read(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; position?: number; }, callback?: AsyncCallback): void \| Promise; | 废弃 | +| @ohos.fileio | **function** readSync(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; position?: number; }): number; | 废弃 | +| @ohos.file.fs | **function** read(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; }, callback?: AsyncCallback): void \| Promise; | 新增 | +| @ohos.file.fs | **function** readSync(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; }): number; | 新增 | +| @ohos.fileio | **function** stat(path: string, callback?: AsyncCallback): void \| Promise; | 废弃 | +| @ohos.fileio | **function** statSync(path: string): Stat; | 废弃 | +| @ohos.fileio | **function** fstat(fd: number, callback?: AsyncCallback): void \| Promise; | 废弃 | +| @ohos.fileio | **function** fstatSync(fd: number): Stat; | 废弃 | +| @ohos.file.fs | **function** stat(file: string \| number, callback?: AsyncCallback): void \| Promise; | 新增 | +| @ohos.file.fs | **function** statSync(file: string \| number): Stat; | 新增 | +| @ohos.fileio | **function** truncate(path: string, len?: number, callback?: AsyncCallback): void \| Promise; | 废弃 | +| @ohos.fileio | **function** truncateSync(path: string, len?: number): void; | 废弃 | +| @ohos.fileio | **function** ftruncate(fd: number, len?: number, callback?: AsyncCallback): void \| Promise; | 废弃 | +| @ohos.fileio | **function** ftruncateSync(fd: number, len?: number): void; | 废弃 | +| @ohos.file.fs | **function** truncate(file: string \| number, len?: number, callback?: AsyncCallback): void \| Promise; | 新增 | +| @ohos.file.fs | **function** truncateSync(file: string \| number, len?: number): void; | 新增 | +| @ohos.fileio | **function** write(fd: number, buffer: ArrayBuffer \| string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }, callback?: AsyncCallback): void \| Promise; | 废弃 | +| @ohos.fileio | **function** writeSync(fd: number, buffer: ArrayBuffer \| string, options?: { offset?: number; length?: number; position?: number; encoding?: string; }): number; | 废弃 | +| @ohos.file.fs | **function** write(fd: number, buffer: ArrayBuffer \| string, options?: { offset?: number; length?: number; encoding?: string; }, callback?: AsyncCallback): void \| Promise; | 新增 | +| @ohos.file.fs | **function** writeSync(fd: number, buffer: ArrayBuffer \| string, options?: { offset?: number; length?: number; encoding?: string; }): number; | 新增 | + +**适配指导** + +原接口使用的是@ohos.fileio,以以下方式import: + +```js +import fileio from '@ohos.fileio'; +``` + +现新接口使用的是@ohos.file.fs,以以下方式import: + +```js +import fs from '@ohos.file.fs'; +``` + +此外还需要适配异常处理,同步接口异常处理示例代码: +```js +import fs from '@ohos.file.fs' + +try { + let file = fs.openSync(path, fs.OpenMode.READ_ONLY); +} catch (err) { + console.error("openSync errCode:" + err.code + ", errMessage:" + err.message); +} +``` +异步接口promise方法异常处理示例代码: +```js +import fs from '@ohos.file.fs' + +try { + let file = await fs.open(path, fs.OpenMode.READ_ONLY); +} catch (err) { + console.error("open promise errCode:" + err.code + ", errMessage:" + err.message); +} +``` + +异步接口callback方法异常处理示例代码: +```js +import fs from '@ohos.file.fs' + +try { + fs.open(path, fs.OpenMode.READ_ONLY, function(e, file){ //异步线程的错误(如系统调用等)在回调中获取 + if (e) { + console.error("open in async errCode:" + e.code + ", errMessage:" + e.message); + } + }); +} catch (err) { //主线程的错误(如非法参数等)通过try catch获取 + console.error("open callback errCode:" + err.code + ", errMessage:" + err.message); +} +``` diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-inputmethod-framworks.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-inputmethod-framworks.md new file mode 100644 index 0000000000000000000000000000000000000000..2f2096bfbc50c7558cc65e95d22d93fae5b0eaf7 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-inputmethod-framworks.md @@ -0,0 +1,196 @@ +# 输入法框架changeLog + +## cl.inputmethod_frameworks.1 API错误信息返回方式变更 + +下列模块内部接口使用业务逻辑返回值表示错误信息,不符合OpenHarmony接口错误码规范。在API9进行变更。 + + - 输入法框架模块:系统接口,@ohos.inputmethod.d.ts + + - 输入法服务模块:系统接口,@ohos.inputmethodengine.d.ts + + - 输入法ExtentionAbility模块:系统接口,@ohos.inputmethodextensionability.d.ts + + - 输入法ExtentionContext模块:系统接口,@ohos.inputmethodextensioncontext.d.ts + + - 输入法子类型模块:系统接口,@ohos.inputMethodSubtype.d.ts + +异步接口:通过AsyncCallback或Promise的error对象返回错误信息。 + +同步接口:通过抛出异常的方式返回错误信息。 + +**变更影响** + +基于此前版本开发的应用,需适配接口的错误信息返回方式,否则会影响原有业务逻辑。 + +**关键接口/组件变更** + +在以下接口增加错误码处理: + - getSetting(): InputMethodSetting; + - getController(): InputMethodController; + - switchInputMethod(target: InputMethodProperty, callback: AsyncCallback): void; + - switchInputMethod(target: InputMethodProperty): Promise; + - switchCurrentInputMethodSubtype(target: InputMethodSubtype, callback: AsyncCallback): void; + - switchCurrentInputMethodSubtype(target: InputMethodSubtype): Promise; + - switchCurrentInputMethodAndSubtype(inputMethodProperty: InputMethodProperty, inputMethodSubtype: InputMethodSubtype, callback: AsyncCallback): void; + - switchCurrentInputMethodAndSubtype(inputMethodProperty: InputMethodProperty, inputMethodSubtype: InputMethodSubtype): Promise; + - listInputMethodSubtype(inputMethodProperty: InputMethodProperty, callback: AsyncCallback>): void; + - listInputMethodSubtype(inputMethodProperty: InputMethodProperty): Promise>; + - listCurrentInputMethodSubtype(callback: AsyncCallback>): void; + - listCurrentInputMethodSubtype(): Promise>; + - getInputMethods(enable: boolean, callback: AsyncCallback>): void; + - getInputMethods(enable: boolean): Promise>; + - showOptionalInputMethods(callback: AsyncCallback): void; + - showOptionalInputMethods(): Promise; + - stopInputSession(callback: AsyncCallback): void; + - stopInputSession(): Promise; + - showSoftKeyboard(callback: AsyncCallback): void; + - showSoftKeyboard():Promise; + - hideSoftKeyboard(callback: AsyncCallback): void; + - hideSoftKeyboard():Promise; + - hide(callback: AsyncCallback): void; + - hide(): Promise; + - onCreate(want: Want): void; + - onDestroy(): void; + InputClient 接口下: + - sendKeyFunction(action: number, callback: AsyncCallback): void; + - sendKeyFunction(action: number): Promise; + - deleteForward(length: number, callback: AsyncCallback): void; + - deleteForward(length: number): Promise; + - deleteBackward(length: number, callback: AsyncCallback): void; + - deleteBackward(length: number): Promise; + - insertText(text: string, callback: AsyncCallback): void; + - insertText(text: string): Promise; + - getForward(length: number, callback: AsyncCallback): void; + - getForward(length: number): Promise; + - getBackward(length: number, callback: AsyncCallback): void; + - getBackward(length: number): Promise; + - getEditorAttribute(callback: AsyncCallback): void; + - getEditorAttribute(): Promise; + - moveCursor(direction: number, callback: AsyncCallback): void; + - moveCursor(direction: number): Promise; + InputMethodExtensionAbility 类下: + - onCreate(want: Want): void; + - onDestroy(): void; + +**适配指导** + +异步接口以showOptionalInputMethods为例,示例代码如下: + +callback回调: + +```js +import inputMethod from '@ohos.inputmethod'; +let inputMethodSetting = inputMethod.getSetting(); +try { + inputMethodSetting.showOptionalInputMethods((err, data) => { + if (err !== undefined) { + console.error('Failed to showOptionalInputMethods: ' + JSON.stringify(err)); + return; + } + console.info('Succeeded in showing optionalInputMethods.'); + }); +} catch (err) { + console.error('Failed to showOptionalInputMethods: ' + JSON.stringify(err)); +} +``` + +Promise回调: + +```js +import inputMethod from '@ohos.inputmethod'; +let inputMethodSetting = inputMethod.getSetting(); +inputMethodSetting.showOptionalInputMethods().then((data) => { + console.info('Succeeded in showing optionalInputMethods.'); +}).catch((err) => { + console.error('Failed to showOptionalInputMethods: ' + JSON.stringify(err)); +}) +``` + +## cl.inputmethod_frameworks.2 API部分接口废弃 + +以下接口标记废除: + - getInputMethodSetting(): InputMethodSetting; + - getInputMethodController(): InputMethodController; + - listInputMethod(callback: AsyncCallback>): void; + - listInputMethod(): Promise>; + - displayOptionalInputMethod(callback: AsyncCallback): void; + - displayOptionalInputMethod(): Promise; + - stopInput(callback: AsyncCallback): void; + - stopInput(): Promise; + interface InputMethodProperty: + - readonly packageName: string; + - readonly methodId: string; + - getInputMethodEngine(): InputMethodEngine; + - createKeyboardDelegate(): KeyboardDelegate; + - hideKeyboard(callback: AsyncCallback): void; + - hideKeyboard(): Promise; + +替代接口如下: + - getSetting(): InputMethodSetting; + - getController(): InputMethodController; + - getInputMethods(enable: boolean, callback: AsyncCallback>): void; + - getInputMethods(enable: boolean): Promise>; + - showOptionalInputMethods(callback: AsyncCallback): void; + - showOptionalInputMethods(): Promise; + - stopInputSession(callback: AsyncCallback): void; + - stopInputSession(): Promise; + interface InputMethodProperty: + - readonly name: string; + - readonly id: string; + - getInputMethodAbility(): InputMethodAbility; + - getKeyboardDelegate(): KeyboardDelegate; + - hide(callback: AsyncCallback): void; + - hide(): Promise; + +**特别注意:** + 使用getInputMethodAbility()接口获取到InputMethodAbility对象,代替使用getInputMethodEngine()接口获取InputMethodEngine对象。 + 使用InputMethodAbility中的方法,不要再使用InputMethodEngine中的方法。 + 使用InputMethodAbility中的on('inputStart')方法,获取到KeyboardController实例与InputClient实例,不要再使用InputMethodEngine中的on('inputStart')方法去获取TextInputClient实例。 +之前: + +```js +inputMethodEngine.getInputMethodEngine().on('inputStart', (kbController, textClient) => { + let keyboardController = kbController; + let textInputClient = textClient; // 获取到TextInputClient实例 +}); +``` + +之后: +```js +inputMethodEngine.getInputMethodAbility().on('inputStart', (kbController, client) => { + let keyboardController = kbController; + let inputClient = client; // // 获取到InputClient实例 +}); +``` + +## cl.inputmethod_frameworks.3 API部分接口变更 + +变更前: + - listInputMethod(enable: boolean, callback: AsyncCallback>): void; + - listInputMethod(enable: boolean): Promise>; + - terminateSelf(callback: AsyncCallback): void; + - terminateSelf(): Promise; + +变更后: + - getInputMethods(enable: boolean, callback: AsyncCallback>): void; + - getInputMethods(enable: boolean): Promise>; + - destroy(callback: AsyncCallback): void; + - destroy(): Promise; + +删除API9接口: + - startAbility(want: Want, callback: AsyncCallback): void; + - startAbility(want: Want, options: StartOptions, callback: AsyncCallback): void; + - startAbility(want: Want, options?: StartOptions): Promise; + +其他新增接口: + - on(type: 'imeChange', callback: (inputMethodProperty: InputMethodProperty, inputMethodSubtype: InputMethodSubtype) => void): void; + - off(type: 'imeChange', callback?: (inputMethodProperty: InputMethodProperty, inputMethodSubtype: InputMethodSubtype) => void): void; + - interface InputMethodProperty: + - readonly label?: string; + - readonly icon?: string; + - readonly iconId?: number; + - extra: object; + + - interface InputMethodAbility: + - on(type: 'setSubtype', callback: (inputMethodSubtype: InputMethodSubtype) => void): void; + - off(type: 'setSubtype', callback?: (inputMethodSubtype: InputMethodSubtype) => void): void; \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-multimodalinput.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-multimodalinput.md new file mode 100755 index 0000000000000000000000000000000000000000..faeaff15fcb8a66785cbaf89affa8ab14c9831bd --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-multimodalinput.md @@ -0,0 +1,104 @@ +# 多模输入changeLog + +## cl.multimodalinput.1 API错误信息返回方式变更 + +下列模块内部接口使用业务逻辑返回值表示错误信息,不符合OpenHarmony接口错误码规范。在API9进行变更。 + - 输入设备管理模块:三方接口,@ohos.multimodalInput.inputDevice.d.ts + + - 组合按键订阅模块:系统接口,@ohos.multimodalInput.inputConsumer.d.ts + + - 键鼠穿越功能模块:系统接口,@ohos.multimodalInput.inputDeviceCooperate.d.ts + + - 按键注入模块:系统接口,@ohos.multimodalInput.inputEventClient.d.ts + + - 输入监听模块:系统接口,@ohos.multimodalInput.inputMonitor.d.ts + + - 鼠标指针管理模块:系统接口和三方接口,@ohos.multimodalInput.pointer.d.ts + +以上模块中的异步接口变更为参数检查错误同步抛出,业务逻辑错误通过AsyncCallback或Promise的error对象抛出,同步接口不作变更。 + +**变更影响** + +基于此前版本开发的应用,需适配接口的错误信息返回方式,否则会影响原有业务逻辑。 + +**关键接口/组件变更** + + - supportKeys(deviceId: number, keys: Array<KeyCode>, callback: AsyncCallback<Array<boolean>>): void; + - supportKeys(deviceId: number, keys: Array<KeyCode>): Promise<Array<boolean>>; + - getKeyboardType(deviceId: number, callback: AsyncCallback<KeyboardType>): void; > + - getKeyboardType(deviceId: number): Promise<KeyboardType>; + - setPointerSpeed(speed: number, callback: AsyncCallback<void>): void; + - setPointerSpeed(speed: number): Promise<void>; + - getPointerSpeed(callback: AsyncCallback<number>): void; + - getPointerSpeed(): Promise<number>; + - setPointerStyle(windowId: number, pointerStyle: PointerStyle, callback: AsyncCallback<void>): void; + - setPointerStyle(windowId: number, pointerStyle: PointerStyle): Promise<void>; + - getPointerStyle(windowId: number, callback: AsyncCallback<PointerStyle>): void; + - getPointerStyle(windowId: number): Promise<PointerStyle>; + - setPointerVisible(visible: boolean, callback: AsyncCallback<void>): void; + - setPointerVisible(visible: boolean): Promise<void>; + - isPointerVisible(callback: AsyncCallback<boolean>): void; + - isPointerVisible(): Promise<boolean>; + - on(type:"touch", receiver:TouchEventReceiver):void; + - on(type:"mouse", receiver:Callback<MouseEvent>):void; + - off(type:"touch", receiver?:TouchEventReceiver):void; + - off(type:"mouse", receiver?:Callback<MouseEvent>):void; + - injectEvent({KeyEvent: KeyEvent}): void; + - enable(enable: boolean, callback: AsyncCallback<void>): void; + - enable(enable: boolean): Promise<void>; + - start(sinkDeviceDescriptor: string, srcInputDeviceId: number, callback: AsyncCallback<void>): void; + - start(sinkDeviceDescriptor: string, srcInputDeviceId: number): Promise<void>; + - stop(callback: AsyncCallback<void>): void; + - stop(): Promise<void>; + - getState(deviceDescriptor: string, callback: AsyncCallback<{ state: boolean }>): void; + - getState(deviceDescriptor: string): Promise<{ state: boolean }>; + - on(type: 'cooperation', callback: AsyncCallback<{ deviceDescriptor: string, eventMsg: EventMsg }>): void; + - off(type: 'cooperation', callback?: AsyncCallback<void>): void; + - on(type: "key", keyOptions: KeyOptions, callback: Callback<KeyOptions>): void; + - off(type: "key", keyOptions: KeyOptions, callback?: Callback<KeyOptions>): void; + +以下接口标记废除: + - getDeviceIds(callback: AsyncCallback<Array<number>>): void; + - getDeviceIds(): Promise<Array<number>>; + - getDevice(deviceId: number, callback: AsyncCallback<InputDeviceData>): void; + - getDevice(deviceId: number): Promise<InputDeviceData>; + +替代接口如下: + - getDeviceList(callback: AsyncCallback<Array<number>>): void; + - getDeviceList(): Promise<Array<number>>; + - getDeviceInfo(deviceId: number, callback: AsyncCallback<InputDeviceData>): void; + - getDeviceInfo(deviceId: number): Promise<InputDeviceData>; + +以下接口发生变更 + +变更前: + - supportKeys(deviceId: number, keys: Array<KeyCode>, callback: Callback<Array<boolean>>): void; + - getKeyboardType(deviceId: number, callback: Callback<KeyboardType>): void; + +变更后: + - supportKeys(deviceId: number, keys: Array<KeyCode>, callback: AsyncCallback<Array<boolean>>): void; + - getKeyboardType(deviceId: number, callback: AsyncCallback<KeyboardType>): void; + +**适配指导** + +以setPointerVisible为例,示例代码如下: + +```ts +import pointer from '@ohos.multimodalInput.pointer'; +pointer.setPointerVisible(true, (error) => { + console.log(`Set pointer visible success`); + }); + +try { + pointer.setPointerVisible(true, (error) => { + if (error) { + console.log(`Set pointer visible failed, error: ${JSON.stringify(error, [`code`, `message`])}`); + return; + } + console.log(`Set pointer visible success`); + }); +} catch (error) { + console.log(`Set pointer visible failed, error: ${JSON.stringify(error, [`code`, `message`])}`); +} +``` + diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-power.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-power.md new file mode 100644 index 0000000000000000000000000000000000000000..f981146225f2d667916415d5670f050f57e15b0e --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-power.md @@ -0,0 +1,68 @@ +# 电源子系统ChangeLog + +## cl.powermgr.1 API错误信息返回方式变更 + +下列API使用业务逻辑返回值表示错误信息,不符合OpenHarmony接口错误码规范。从API9进行变更。 + +- 耗电统计:[@ohos.batteryStatistics](../../../application-dev/reference/apis/js-apis-batteryStatistics.md) + - 屏幕亮度:[@ohos.brightness](../../../application-dev/reference/apis/js-apis-brightness.md) + - 系统电源管理:[@ohos.power](../../../application-dev/reference/apis/js-apis-power.md) + - Runninglock锁:[@ohos.runningLock](../../../application-dev/reference/apis/js-apis-runninglock.md) + - 热管理:[@ohos.thermal](../../../application-dev/reference/apis/js-apis-thermal.md) + +异步接口:通过AsyncCallback或Promise的error对象返回错误信息。 + +同步接口:通过抛出异常的方式返回错误信息。 + +#### 变更影响 + +基于此前版本开发的应用,需适配接口的错误信息返回方式,否则会影响原有业务逻辑。 + +#### 关键的接口/组件变更 + +在以下接口增加错误码处理: + - getBatteryStats(callback: AsyncCallback): void + - getAppPowerValue(uid: number): number + - getAppPowerPercent(uid: number): number + - getHardwareUnitPowerValue(type: ConsumptionType): number + - getHardwareUnitPowerPercent(type: ConsumptionType): number + - setValue(value: number): void + - shutdown(reason: string): void; + - isActive(): boolean + - wakeup(detail: string): void + - suspend(): void + - getPowerMode(): DevicePowerMode + - setPowerMode(mode: DevicePowerMode, callback: AsyncCallback<void>): void + - setPowerMode(mode: DevicePowerMode): Promise<void> + - hold(timeout: number): void + - isHolding(): boolean + - unhold(): void + - isSupported(type: RunningLockType): boolean + - isSupported(type: RunningLockType): boolean + - create(name: string, type: RunningLockType, callback: AsyncCallback<RunningLock>): void + - create(name: string, type: RunningLockType): Promise<RunningLock> + - registerThermalLevelCallback(callback: Callback<ThermalLevel>): void + - unregisterThermalLevelCallback(callback?: Callback<void>): void + - getLevel(): ThermalLevel + +#### 适配指导 + +请参考各接口的API参考。 +## cl.powermgr.2 系统接口变更 + +#### 变更影响 + +基于此前版本开发的应用,需适配新接口名和错误信息返回方式,否则会影响原有业务逻辑。 + +#### 关键的接口/组件变更 + +| 包名 | 旧接口 | 新接口 | +| ----------- | ------------------------------------ | ------------------------------ | +| @ohos.power | shutdownDevice(reason: string): void | shutdown(reason: string): void | +| @ohos.power | rebootDevice(reason: string): void | reboot(reason: string): void | +| @ohos.power | wakeupDevice(detail: string): void | wakeup(detail: string): void | +| @ohos.power | suspendDevice(): void | suspend(): void | + +#### 适配指导 + +请参考系统电源管理[@ohos.power](../../../application-dev/reference/apis/js-apis-power.md)的API参考。 diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-request.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-request.md new file mode 100644 index 0000000000000000000000000000000000000000..ec7e3f8202e14792db1a8df9fde33390a935944c --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-request.md @@ -0,0 +1,108 @@ +# 上传下载子系统ChangeLog + +OpenHarmony 3.2.8.1版本相较于OpenHarmony 3.2.beta3版本,request子系统的API变更如下 + +## cl.request.1 错误码定义及API部分接口名称变更 + +- 新增上传下载接口的[错误码](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/errorcodes/errorcode-request.md)处理。 +- 错误信息通过AsyncCallback或Promise的error对象返回。其中,参数类型和数量错误信息,通过抛出异常的方式返回。 +- API部分接口需要用新的接口替换,参数不变。 + +**变更影响** + +基于此前版本开发的应用,需适配变更后的新错误码和错误信息返回方式,否则会影响原有业务逻辑。 + +**关键的接口/组件变更** + +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|--------------|--------------|-----------------------------------------------------------------------------------------------------------------------|-----------| +| ohos.request | request | EXCEPTION_PERMISSION | 新增 | +| ohos.request | request | EXCEPTION_PARAMCHECK | 新增 | +| ohos.request | request | EXCEPTION_UNSUPPORTED | 新增 | +| ohos.request | request | EXCEPTION_FILEIO | 新增 | +| ohos.request | request | EXCEPTION_FILEPATH | 新增 | +| ohos.request | request | EXCEPTION_SERVICE | 新增 | +| ohos.request | request | EXCEPTION_OTHERS | 新增 | +| ohos.request | request | ERROR_OFFLINE | 新增 | +| ohos.request | request | ERROR_UNSUPPORTED_NETWORK_TYPE | 新增 | +| ohos.request | request | function downloadFile(context: BaseContext, config: DownloadConfig, callback: AsyncCallback): void; | 新增 | +| ohos.request | request | function downloadFile(context: BaseContext, config: DownloadConfig): Promise; | 新增 | +| ohos.request | request | function uploadFile(context: BaseContext, config: UploadConfig, callback: AsyncCallback): void; | 新增 | +| ohos.request | request | function uploadFile(context: BaseContext, config: UploadConfig): Promise; | 新增 | +| ohos.request | DownloadTask | delete(callback: AsyncCallback): void; | 新增 | +| ohos.request | DownloadTask | delete(): Promise; | 新增 | +| ohos.request | DownloadTask | suspend(callback: AsyncCallback): void; | 新增 | +| ohos.request | DownloadTask | suspend(): Promise; | 新增 | +| ohos.request | DownloadTask | restore(callback: AsyncCallback): void; | 新增 | +| ohos.request | DownloadTask | restore(): Promise; | 新增 | +| ohos.request | DownloadTask | getTaskInfo(callback: AsyncCallback): void; | 新增 | +| ohos.request | DownloadTask | getTaskInfo(): Promise; | 新增 | +| ohos.request | DownloadTask | getTaskMimeType(callback: AsyncCallback): void; | 新增 | +| ohos.request | DownloadTask | getTaskMimeType(): Promise; | 新增 | +| ohos.request | UploadTask | delete(callback: AsyncCallback): void; | 新增 | +| ohos.request | UploadTask | delete(): Promise; | 新增 | +| ohos.request | request | function download(config: DownloadConfig, callback: AsyncCallback): void;
代替接口:function downloadFile(context: BaseContext, config: DownloadConfig, callback: AsyncCallback): void; | 废弃 | +| ohos.request | request | function download(config: DownloadConfig): Promise;
代替接口:function downloadFile(context: BaseContext, config: DownloadConfig): Promise; | 废弃 | +| ohos.request | request | function download(context: BaseContext, config: DownloadConfig, callback: AsyncCallback): void;
代替接口:function downloadFile(context: BaseContext, config: DownloadConfig, callback: AsyncCallback): void; | 废弃 | +| ohos.request | request | function download(context: BaseContext, config: DownloadConfig): Promise;
代替接口:function downloadFile(context: BaseContext, config: DownloadConfig): Promise; | 废弃 | +| ohos.request | request | function upload(config: UploadConfig, callback: AsyncCallback): void;
代替接口:function uploadFile(context: BaseContext, config: UploadConfig, callback: AsyncCallback): void; | 废弃 | +| ohos.request | request | function upload(config: UploadConfig): Promise;
代替接口:function uploadFile(context: BaseContext, config: UploadConfig): Promise; | 废弃 | +| ohos.request | request | function upload(context: BaseContext, config: UploadConfig, callback: AsyncCallback): void;
代替接口:function uploadFile(context: BaseContext, config: UploadConfig, callback: AsyncCallback): void; | 废弃 | +| ohos.request | request | function upload(context: BaseContext, config: UploadConfig): Promise;
代替接口:function uploadFile(context: BaseContext, config: UploadConfig): Promise; | 废弃 | +| ohos.request | DownloadTask | remove(callback: AsyncCallback): void;
代替接口:delete(callback: AsyncCallback): void | 废弃 | +| ohos.request | DownloadTask | remove(): Promise;
代替接口:delete(): Promise; | 废弃 | +| ohos.request | DownloadTask | pause(callback: AsyncCallback): void;
代替接口:suspend(callback: AsyncCallback): void; | 废弃 | +| ohos.request | DownloadTask | pause(): Promise;
代替接口:suspend(): Promise; | 废弃 | +| ohos.request | DownloadTask | resume(callback: AsyncCallback): void;
代替接口:restore(callback: AsyncCallback): void; | 废弃 | +| ohos.request | DownloadTask | resume(): Promise;
代替接口:restore(): Promise; | 废弃 | +| ohos.request | DownloadTask | query(callback: AsyncCallback): void;
代替接口:getTaskInfo(callback: AsyncCallback): void; | 废弃 | +| ohos.request | DownloadTask | query(): Promise;
代替接口:getTaskInfo(): Promise; | 废弃 | +| ohos.request | DownloadTask | queryMimeType(callback: AsyncCallback): void;
代替接口:getTaskMimeType(callback: AsyncCallback): void; | 废弃 | +| ohos.request | DownloadTask | queryMimeType(): Promise;
代替接口:getTaskMimeType(): Promise; | 废弃 | +| ohos.request | UploadTask | remove(callback: AsyncCallback): void;
代替接口:delete(callback: AsyncCallback): void; | 废弃 | +| ohos.request | UploadTask | remove(): Promise;
代替接口:delete(): Promise; | 废弃 | +| system.request | UploadResponse | code | 废弃 | +| system.request | UploadResponse | data | 废弃 | +| system.request | UploadResponse | headers | 废弃 | +| system.request | DownloadResponse | token | 废弃 | +| system.request | OnDownloadCompleteResponse | uri | 废弃 | +| system.request | RequestFile | filename | 废弃 | +| system.request | RequestFile | name | 废弃 | +| system.request | RequestFile | uri | 废弃 | +| system.request | RequestFile | type | 废弃 | +| system.request | RequestData | name | 废弃 | +| system.request | RequestData | value | 废弃 | +| system.request | UploadRequestOptions | url | 废弃 | +| system.request | UploadRequestOptions | data | 废弃 | +| system.request | UploadRequestOptions | files | 废弃 | +| system.request | UploadRequestOptions | header | 废弃 | +| system.request | UploadRequestOptions | description | 废弃 | +| system.request | UploadRequestOptions | success | 废弃 | +| system.request | UploadRequestOptions | fail | 废弃 | +| system.request | UploadRequestOptions | complete | 废弃 | +| system.request | OnDownloadCompleteOptions | token | 废弃 | +| system.request | OnDownloadCompleteOptions | success | 废弃 | +| system.request | OnDownloadCompleteOptions | fail | 废弃 | +| system.request | OnDownloadCompleteOptions | complete | 废弃 | +| system.request | Request | static upload(options: UploadRequestOptions): void; | 废弃 | +| system.request | Request | static download(options: DownloadRequestOptions): void; | 废弃 | +| system.request | Request | static onDownloadComplete(options: OnDownloadCompleteOptions): void; | 废弃 | + + +**适配指导** + +以downloadFile为例,在新版本上需要使用如下方式进行调用: + +```ts +try { + request.downloadFile(globalThis.abilityContext, { url: 'https://xxxx/xxxxx.hap', + filePath: 'xxx/xxxxx.hap'}, (err, data) => { + if (err) { + console.error('Failed to request the download. Cause: ' + JSON.stringify(err)); + return; + } + }); +} catch (err) { + console.log("downloadFile callback fail." + "errCode:" + err.code + ",errMessage:" + err.message); +} +``` \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-theme.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-theme.md new file mode 100644 index 0000000000000000000000000000000000000000..87c2c62d7cdb8ef1c0c2b6b26724be8224813ec8 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-theme.md @@ -0,0 +1,148 @@ +# 主题框架changeLog + +## cl.theme.1 API9接口支持异常处理 + +下列模块内部接口使用业务逻辑返回值表示错误信息,不符合OpenHarmony接口错误码规范。在API9进行变更。 + - 壁纸管理服务:@ohos.wallpaper.d.ts + + - 锁屏管理服务:@ohos.screenLock.d.ts + +以上模块中的接口变更为: +同步接口:通过抛出异常的方式返回错误信息。 +异步接口:参数检查错误同步抛出,业务逻辑错误通过AsyncCallback或Promise的error对象抛出。 + +**变更影响** + +基于此前版本开发的应用,需适配接口的错误信息返回方式,否则会影响原有业务逻辑。 + +**关键接口/组件变更** + +以下标记为壁纸管理服务接口废除: + - getColors(wallpaperType: WallpaperType, callback: AsyncCallback>): void; + - getColors(wallpaperType: WallpaperType): Promise>; + - getId(wallpaperType: WallpaperType, callback: AsyncCallback): void; + - getId(wallpaperType: WallpaperType): Promise; + - getMinHeight(callback: AsyncCallback): void; + - getMinHeight(): Promise; + - getMinWidth(callback: AsyncCallback): void; + - getMinWidth(): Promise; + - isChangePermitted(callback: AsyncCallback): void; + - isChangePermitted(): Promise; + - isOperationAllowed(callback: AsyncCallback): void; + - isOperationAllowed(): Promise; + - reset(wallpaperType: WallpaperType, callback: AsyncCallback): void; + - reset(wallpaperType: WallpaperType): Promise; + - setWallpaper(source: string | image.PixelMap, wallpaperType: WallpaperType, callback: AsyncCallback): void; + - setWallpaper(source: string | image.PixelMap, wallpaperType: WallpaperType): Promise; + - getFile(wallpaperType: WallpaperType, callback: AsyncCallback): void; + - getFile(wallpaperType: WallpaperType): Promise; + - getPixelMap(wallpaperType: WallpaperType, callback: AsyncCallback): void; + - getPixelMap(wallpaperType: WallpaperType): Promise; + +壁纸管理服务替代接口如下: + - getColorsSync(wallpaperType: WallpaperType): Array; + - getIdSync(wallpaperType: WallpaperType): number; + - getMinHeightSync(): number; + - getMinWidthSync(): number; + - isChangeAllowed(): boolean; + - isUserChangeAllowed(): boolean; + - restore(wallpaperType: WallpaperType, callback: AsyncCallback): void; + - restore(wallpaperType: WallpaperType): Promise; + - setImage(source: string | image.PixelMap, wallpaperType: WallpaperType, callback: AsyncCallback): void; + - setImage(source: string | image.PixelMap, wallpaperType: WallpaperType): Promise; + - getFileSync(wallpaperType: WallpaperType): number; + - getImage(wallpaperType: WallpaperType, callback: AsyncCallback): void; + - getImage(wallpaperType: WallpaperType): Promise; + +以下标记为壁纸管理服务接口变更: + - on(type: 'colorChange', callback: (colors: Array, wallpaperType: WallpaperType) => void): void + - off(type: 'colorChange', callback?: (colors: Array, wallpaperType: WallpaperType) => void): void + +以下标记为锁屏管理服务接口废除: + - isScreenLocked(callback: AsyncCallback): void; + - isScreenLocked(): Promise; + - isSecureMode(callback: AsyncCallback): void; + - isSecureMode(): Promise; + - unlockScreen(callback: AsyncCallback): void; + - unlockScreen(): Promise; + +锁屏管理服务替代接口如下: + - isLocked(): boolean; + - isSecure(): boolean; + - unlock(callback: AsyncCallback): void; + - unlock():Promise; + +以下标记为锁屏管理服务接口删除: + - lockScreen(callback: AsyncCallback): void; + - lockScreen(): Promise; + +以下标记为锁屏管理服务接口新增: + - lock(callback: AsyncCallback): void; + - lock():Promise; + +以下标记为锁屏管理服务接口变更: + - onSystemEvent(callback: Callback): boolean; + - sendScreenLockEvent(event: String, parameter: number, callback: AsyncCallback): void; + - sendScreenLockEvent(event: String, parameter: number): Promise; + +**壁纸管理服务适配指导** + +异步接口以getImage为例,示例代码如下: + +```ts +import pointer from '@ohos.wallpaper'; +try { + wallpaper.getImage(wallpaper.WallpaperType.WALLPAPER_SYSTEM).then((data) => { + console.log(`success to getImage: ${JSON.stringify(data)}`); + }).catch((error) => { + console.error(`failed to getImage because: ${JSON.stringify(error)}`); + }); +} catch (err) { + console.error(`failed to getImage because: ${JSON.stringify(err)}`); +} + +``` + +同步接口以getFileSync为例,示例代码如下: + +```ts +import pointer from '@ohos.wallpaper'; +try { + let file = wallpaper.getFileSync(wallpaper.WallpaperType.WALLPAPER_SYSTEM); +} catch (err) { + console.error(`failed to getFileSync because: ${err.message}`); +} +``` + +**锁屏管理服务适配指导** + +异步接口以lock为例,示例代码如下: + +```ts +import screenLock from '@ohos.screenlock'; +try { + screenLock.lock((err, data) => { + if (err) { + console.error(`Failed to lock the screen, because: ${err.message}`); + return; + } + console.info(`lock the screen successfully. result: ${data}`); + }); +} catch (err) { + console.error(`Failed to lock the screen, because: ${err.message}`); +} + +``` + +同步接口以onSystemEvent为例,示例代码如下: + +```ts +import screenLock from '@ohos.screenlock'; +try { + let isSuccess = screenLock.onSystemEvent((event) => { + console.log(`Register the system event which related to screenlock successfully. eventType: ${event.eventType}`) + }); +} catch (err) { + console.error(`Failed to register the system event which related to screenlock, because: ${err.message}`) +} +``` diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.3/changelog-wifi.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.3/changelog-wifi.md new file mode 100644 index 0000000000000000000000000000000000000000..1f84833ca57af98d069eeba6c13c993f31cd1e8a --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.3/changelog-wifi.md @@ -0,0 +1,115 @@ +# 基础通信WIFI子系统ChangeLog + + +## cl.wifi.1 系统API和API9接口迁移到新增的@ohos.wifiManager.d.ts +@ohos.wifi.d.ts接口不支持抛出错误码,而API9以及SystemAPI都需要支持错误码抛出,为支持该功能,将@ohos.wifi.d.ts中的所有SystemAPI以及API9接口迁移到新增的@ohos.wifiManager.d.ts当中,并添加错误码描述。 + +后续需要import @ohos.wifiManager.d.ts才能够使用wifi的系统API以及API9接口: + +import wifiManager from '@ohos.wifiManager'; + + +**变更影响** + +仅对系统API以及API9所有接口的使用有影响,需要import @ohos.wifiManager才能使用wifi的系统API和API9接口 + +import wifiManager from '@ohos.wifiManager'; + +对于其他接口无影响 + + +**关键的接口/组件变更** + +| 类名 | 接口类型 | 接口声明 | 变更类型 | +| -- | -- | -- | -- | +| wifi | namespace | declare namespace wifi | API9接口变更,迁移到@ohos.wifiManager.d.ts | +| wifi | method | function enableWifi(): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值改为void | +| wifi | method | function disableWifi(): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值改为void | +| wifi | method | function scan(): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值改为void | +| wifi | method | function getScanResults(): Promise<Array<WifiScanInfo>> | API9接口变更,迁移到@ohos.wifiManager.d.ts,由getScanInfos修改为getScanResults | +| wifi | method | function getScanResults(callback: AsyncCallback<Array<WifiScanInfo>>): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,由getScanInfos修改为getScanResults | +| wifi | method | function getScanResultsSync():  Array<[WifiScanInfo]> | API9接口变更,迁移到@ohos.wifiManager.d.ts | +| wifi | method | function addCandidateConfig(config: WifiDeviceConfig): Promise<number> | API9接口变更,迁移到@ohos.wifiManager.d.ts | +| wifi | method | function addCandidateConfig(config: WifiDeviceConfig, callback: AsyncCallback<number>): void | API9接口变更,迁移到@ohos.wifiManager.d.ts | +| wifi | method | function removeCandidateConfig(networkId: number): Promise<void> | API9接口变更,迁移到@ohos.wifiManager.d.ts | +| wifi | method | function removeCandidateConfig(networkId: number, callback: AsyncCallback<void>): void | API9接口变更,迁移到@ohos.wifiManager.d.ts | +| wifi | method | function addUntrustedConfig(config: WifiDeviceConfig): Promise<boolean> | API9接口变更,该接口删除 | +| wifi | method | function addUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback<boolean>): void | API9接口变更,该接口删除 | +| wifi | method | function removeUntrustedConfig(config: WifiDeviceConfig): Promise<boolean> | API9接口变更,该接口删除 | +| wifi | method | function removeUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback<boolean>): void | API9接口变更,该接口删除 | +| wifi | method | function getCandidateConfigs():  Array<[WifiDeviceConfig]> | API9接口变更,迁移到@ohos.wifiManager.d.ts | +| wifi | method | function connectToCandidateConfig(networkId: number): void | API9接口变更,迁移到@ohos.wifiManager.d.ts | +| wifi | method | function connectToNetwork(networkId: number): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | method | function connectToDevice(config: WifiDeviceConfig): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | method | function disconnect(): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | method | function reassociate(): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | method | function reconnect(): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | method | function disableNetwork(netId: number): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | method | function removeAllNetwork(): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | method | function removeDevice(id: number): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | method | function enableHotspot(): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | method | function disableHotspot(): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | method | function setHotspotConfig(config: HotspotConfig): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | method | function getP2pLocalDevice(): Promise<WifiP2pDevice> | API9接口变更,迁移到@ohos.wifiManager.d.ts | +| wifi | method | function getP2pLocalDevice(callback: AsyncCallback<WifiP2pDevice>): void | API9接口变更,迁移到@ohos.wifiManager.d.ts | +| wifi | method | function getP2pGroups(): Promise<Array<WifiP2pGroupInfo>> | API9接口变更,迁移到@ohos.wifiManager.d.ts | +| wifi | method | function getP2pGroups(callback: AsyncCallback<Array<WifiP2pGroupInfo>>): void | API9接口变更,迁移到@ohos.wifiManager.d.ts | +| wifi | method | function createGroup(config: WifiP2PConfig): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | method | function removeGroup(): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | method | function p2pConnect(config: WifiP2PConfig): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | method | function p2pCancelConnect(): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | method | function startDiscoverDevices(): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | method | function stopDiscoverDevices(): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | method | function deletePersistentGroup(netId: number): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | method | function setDeviceName(devName: string): void | API9接口变更,迁移到@ohos.wifiManager.d.ts,返回值修改为void | +| wifi | interface | export interface WifiEapConfig | API9接口变更,迁移到@ohos.wifiManager.d.ts | +| wifi | enum | export enum EapMethod | API9接口变更,迁移到@ohos.wifiManager.d.ts | +| wifi | enum | export enum Phase2Method | API9接口变更,迁移到@ohos.wifiManager.d.ts | +| wifi | interface | export interface WifiDeviceConfig | API9接口变更,迁移到@ohos.wifiManager.d.ts,增加eapConfig参数 | +| wifi | interface | export interface IpConfig | API9接口变更,迁移到@ohos.wifiManager.d.ts,增加prefixLength参数 | +| wifi | interface | export interface WifiInfoElem | API9接口变更,迁移到@ohos.wifiManager.d.ts | +| wifi | enum | export enum WifiChannelWidth | API9接口变更,迁移到@ohos.wifiManager.d.ts | +| wifi | interface | export interface WifiScanInfo | API9接口变更,迁移到@ohos.wifiManager.d.ts,增加centerFrequency0、centerFrequency1、infoElems三个参数 | +| wifi | enum | export enum WifiSecurityType | API9接口变更,迁移到@ohos.wifiManager.d.ts,增加4种加密类型 | +| wifi | interface | export interface WifiLinkedInfo | API9接口变更,迁移到@ohos.wifiManager.d.ts,增加MacType参数 | + + +**适配指导(可选,不涉及则可以删除)** + +以getLinkedInfo为例,在新版本中需要使用如下方式进行调用: + +``` +import wifiManager from '@ohos.wifiManager' + +wifiManager.getLinkedInfo((err, data) => { + if (err) { + console.error("get linked info error"); + return; + } + console.info("get linked info: " + JSON.stringify(data)); +}); + +wifiManager.getLinkedInfo().then(data => { + console.info("get linked info: " + JSON.stringify(data)); +}).catch(error => { + console.info("get linked info error"); +}); + +``` + +## cl.wifiext.1 系统API和API9接口迁移到新增的@ohos.wifiManagerExt.d.ts + +@ohos.wifiext.d.ts接口不支持抛出错误码,而API9以及SystemAPI都需要支持错误码抛出,为支持该功能,将@ohos.wifiext.d.ts中的所有SystemAPI以及API9接口迁移到新增的@ohos.wifiManagerExt.d.ts当中,并添加错误码描述 + +后续需要import @ohos.wifiManagerExt.d.ts才能够使用wifi的系统API以及API9接口: + +import wifiManagerExt from '@ohos.wifiManagerExt'; + + +**变更影响** + +仅对系统API以及API9所有接口的使用有影响,需要import @ohos.wifiManagerExt才能使用wifi的系统API和API9接口,与wifiManager配套使用 + +import wifiManagerExt from '@ohos.wifiManagerExt'; + +对于其他接口无影响 diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.9.1/changelogs-arkui.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.9.1/changelogs-arkui.md index 03fb7e2d7bc8bbb20d9294731f78805b245fd1d6..4ce56f7346c9f1f0c92dc1037eb9eb1845e7a6e5 100644 --- a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.9.1/changelogs-arkui.md +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.9.1/changelogs-arkui.md @@ -65,4 +65,62 @@ ArkUI子系统alertDialog, actionSheet, customDialog组件及prompt, promptActio **适配指导** -无需适配 \ No newline at end of file +无需适配 + +## cl.arkui.3 自定义组件成员变量初始化的方式与约束校验场景补全 + +[自定义组件成员变量初始化规则](../../../application-dev/quick-start/arkts-restrictions-and-extensions.md#自定义组件成员变量初始化的方式与约束)请参考文档,此版本修复了某些遗漏场景的校验。 + + +**变更影响** + +如果未按照文档规范,进行自定义组件成员变量初始化赋值,编译报错。 + +**关键的接口/组件变更** + +不涉及。 + +**适配指导** + +按文档提示修改。 + +## cl.arkui.4 自定义父子组件成员变量赋值约束校验场景补全 + +[自定义父子组件成员变量赋值规则](../../../application-dev/quick-start/arkts-restrictions-and-extensions.md#自定义组件成员变量初始化的方式与约束)请参考文档,此版本修复了某些遗漏场景的校验。 + + +**变更影响** + +如果自定义父子组件成员变量初始化未按照文档规范,编译报错。 + +**关键的接口/组件变更** + +不涉及。 + +**适配指导** + +按文档提示修改,使用其它装饰器变量或常规变量赋值。 + +## cl.arkui.5 单一子组件校验补全 + +对 'Button', 'FlowItem','GridItem','GridCol','ListItem','Navigator','Refresh','RichText','ScrollBar','StepperItem','TabContent'等只支持一个子组件的开启校验。 + + +**变更影响** + +如果上述组件内有超过一个子组件,编译报错。 + +**关键的接口/组件变更** + +```js +RichText('RichText') { + Text('Text1') + Text('Text2') +} +/* ArkTS:ERROR File: /root/newOH/developtools/ace-ets2bundle/compiler/sample/pages/home.ets:25:7 + The component 'RichText' can only have a single child component. */ +``` + +**适配指导** + +按报错提示修改,指定组件内只能有一个子组件。 diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.1.1/changelogs-account_os_account.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.1.1/changelogs-account_os_account.md new file mode 100644 index 0000000000000000000000000000000000000000..bf26a15f894d6fd568f51a3fcaf6a269d33ad999 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.1.1/changelogs-account_os_account.md @@ -0,0 +1,20 @@ +# 帐号子系统ChangeLog + +## cl.account_os_account.1 分布式帐号昵称和头像规格扩大 + +已有分布式帐号的昵称长度和头像大小的规格过小,无法满足其他昵称较长、头像较大的使用场景。 + +因此,将分布式帐号昵称长度和头像大小的规格扩大。 + +**变更影响** + +该接口变更前向兼容,基于此前版本开发的应用可按照最新规格使用该接口,原有逻辑不受影响。 + +**关键接口/组件变更** + +变更前: + - 昵称长度限制为20个字符,头像大小限制为3M + +变更后: + - 昵称长度限制为1024个字符,头像大小限制为10M + diff --git a/zh-cn/release-notes/changelogs/v3.2-beta3/changelog-v3.2-beta3.md b/zh-cn/release-notes/changelogs/v3.2-beta3/changelog-v3.2-beta3.md index 411ee5c31b0bbafb237fae401acf30963693cc49..17479bdd769a91863a6485970379359541e6c9b2 100644 --- a/zh-cn/release-notes/changelogs/v3.2-beta3/changelog-v3.2-beta3.md +++ b/zh-cn/release-notes/changelogs/v3.2-beta3/changelog-v3.2-beta3.md @@ -227,4 +227,30 @@ struct Index { **关键的接口/组件变更** +无 + +## 电源管理子系统 + +### 修改@ohos.batteryinfo.d.ts文件名 + +API声明文件@ohos.batteryinfo.d.ts,变更其文件名为@ohos.batteryInfo.d.ts。 + +**变更影响** + +JS/TS 引用该声明时,由`import batteryInfo from '@ohos.batteryinfo';` 变为`import batteryInfo from '@ohos.batteryInfo';` + +**关键的接口/组件变更** + +无 + +### 修改runninglock.d.ts文件名 + +API声明文件@ohos.runninglock.d.ts,变更其文件名为@ohos.runningLock.d.ts。 + +**变更影响** + +JS/TS 引用该声明时,由`import runningLock from '@ohos.runninglock';` 变为`import runningLock from '@ohos.runningLock';` + +**关键的接口/组件变更** + 无 \ No newline at end of file